tunnel

package
v0.0.0-...-b2d0fcc Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartTunnels

func StartTunnels(
	ctx context.Context,
	host string,
	port int,
	user, sshKey string,
	tunnels []Config,
) error

StartTunnels spawns one goroutine per tunnel, each calling ssh.CreateSSHTunnel.

Types

type Config

type Config struct {
	LocalPort  string
	RemoteAddr string
}

Config describes which local port should forward to which remote address.

func CollectDependencyTunnels

func CollectDependencyTunnels(cfg *config.Config) []Config

Jump to

Keyboard shortcuts

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