tmancer

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tmancer

Easily spawn and manage local tunnels (schools of tunas 🐟).

For poor fellow developers who ever found themselves needing to use a lot of local tunnels.

Maybe there are other clever ways of doing this, but I am not that smart and I liked the idea of this little project.

Installation

If you have go available.

go install github.com/lzambarda/tmancer@latest

Or you can clone this repo and build it

make build

Usage

tmancer --help

But it is pretty simple, it just needs a config file

tmancer horde_config.json

Configuration

A configuration file is just a json file with any number of tunnel configs, such as:

[
  {
    "name": "foo",
    "local_port": 8000,
    "k8s": {
      "namespace": "foo-staging-1",
      "service": "svc/foo-lb",
      "port": 7100
    }
  },
  {
      "name": "bar",
      "local_port": 9000,
      "custom": "ssh -N -L 127.0.0.1:9000:x.x.x.x:8091 [proxy] -f"
  },
  ...
]

Note that the kubernetes configuration is just sugar, you could achieve the same with a custom kubectl command.

Example output

NAME            TYPE            PORT            PID             AGE             STATUS
foo             k8s             50053           48845           N/A             Reopening       signal: killed
very-important  custom          50054           48848           14m3s           Open
jake            custom          50051           N/A             N/A             PortBusy

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package internal contains everything you do not want to expose.
Package internal contains everything you do not want to expose.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址