Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoTunnelCloser func() error = func() error { return nil }
NoTunnelCloser is a function that does nothing and returns nil.
Functions ¶
Types ¶
type Config ¶
type Config struct {
User string `json:"sshUser"`
Host string `json:"sshHost"`
Port string `json:"sshPort"`
PrivateKey string `json:"sshPrivateKey"`
}
Config represents the configuration for an SSH tunnel.
func ParseInlineConfig ¶
ParseInlineConfig parses the given data as a JSON object and returns a Config if the "useSSH" field is true.
type Tunnel ¶
type Tunnel interface {
// Addr returns the address that the tunnel is listening on
Addr() string
// Host returns the host that the tunnel is listening on
Host() string
// Port returns the port that the tunnel is listening on
Port() int
// Close closes the tunnel
Close() error
}
Tunnel is an ssh tunnel
func NewSocks5Tunnel ¶
NewSocks5Tunnel creates a new socks5 proxy using the ssh tunnel
Click to show internal directories.
Click to hide internal directories.