Versions in this module Expand all Collapse all v2 v2.0.2 Nov 1, 2021 Changes in this version + const HostMissing + const NoDestinationGiven + const RandomPortAddress + type ForwardConfig struct + Destination string + Source string + func (f ForwardConfig) String() string + type PemKey struct + Data []byte + func NewPemKey(keyPath, passphrase string) (*PemKey, error) + func (k *PemKey) HandlePassphrase(handler func() ([]byte, error)) error + func (k *PemKey) Parse() (ssh.Signer, error) + func (k PemKey) IsEncrypted() (bool, error) + type PemKeyParser interface + Parse func() (*ssh.Signer, error) + type SSHChannel struct + ChannelType string + Destination string + Source string + func (ch *SSHChannel) Accept() error + func (ch *SSHChannel) Listen(serverClient *ssh.Client) error + func (ch SSHChannel) String() string + type SSHConfigFile struct + func NewEmptySSHConfigStruct() *SSHConfigFile + func NewSSHConfigFile(configPath string) (*SSHConfigFile, error) + func (r SSHConfigFile) Get(host string) *SSHHost + type SSHHost struct + Hostname string + IdentityAgent string + Key string + LocalForward *ForwardConfig + Port string + RemoteForward *ForwardConfig + User string + func (h SSHHost) String() string + type Server struct + Address string + Insecure bool + Key *PemKey + Name string + SSHAgent string + Timeout time.Duration + User string + func NewServer(user, address, key, sshAgent, cfgPath string) (*Server, error) + func (s Server) String() string + type Tunnel struct + ConnectionRetries int + KeepAliveInterval time.Duration + Ready chan bool + Type string + WaitAndRetry time.Duration + func New(tunnelType string, server *Server, source, destination []string, config string) (*Tunnel, error) + func (t *Tunnel) Channels() []*SSHChannel + func (t *Tunnel) Listen() error + func (t *Tunnel) Start() error + func (t Tunnel) Stop() + func (t Tunnel) String() string Other modules containing this package github.com/cookielab/mole