Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Server connection details
Host string `yaml:"host" mapstructure:"host"`
Port int `yaml:"port" mapstructure:"port"`
User string `yaml:"user" mapstructure:"user"`
Password string `yaml:"password" mapstructure:"password"`
// Remote endpoint to connect to through the tunnel
RemoteHost string `yaml:"remoteHost" mapstructure:"remoteHost"`
RemotePort int `yaml:"remotePort" mapstructure:"remotePort"`
// Local port to listen on
LocalPort int `yaml:"localPort" mapstructure:"localPort"`
// Optional connection timeout (defaults to 5 seconds if not specified)
Timeout time.Duration `yaml:"timeout" mapstructure:"timeout"`
// Optional known hosts file path for host key verification
KnownHostsFile string `yaml:"knownHostsFile" mapstructure:"knownHostsFile"`
// Optional flag to disable host key checking (NOT recommended for production)
InsecureIgnoreHostKey bool `yaml:"insecureIgnoreHostKey" mapstructure:"insecureIgnoreHostKey"`
}
Config holds the configuration for an SSH tunnel
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
Tunnel represents an SSH tunnel that forwards traffic from a local port to a remote endpoint
Click to show internal directories.
Click to hide internal directories.