Documentation
¶
Index ¶
- type Connection
- type SSHConnection
- type SSHConnectionManager
- func (m *SSHConnectionManager) GetConnection(key string) (*SSHConnection, error)
- func (m *SSHConnectionManager) GetConnections() ([]Connection, error)
- func (m *SSHConnectionManager) GetOrCreateSSHConnection(sshAddr string, sshUser string, sshAuth []ssh.AuthMethod, ...) (string, *SSHConnection, error)
- func (c *SSHConnectionManager) RemoveConnection(key string) error
- type Tunnel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type SSHConnection ¶
type SSHConnection struct {
// contains filtered or unexported fields
}
func NewSSHConnection ¶
func NewSSHConnection(sshAddr string, sshUser string, sshAuth []ssh.AuthMethod, sshHostKeyCallback func(hostname string, fingerprint string) error) *SSHConnection
func (*SSHConnection) AddLocalToRemoteTunnel ¶
func (c *SSHConnection) AddLocalToRemoteTunnel(localAddr string, remoteAddr string) (string, error)
func (*SSHConnection) Close ¶
func (c *SSHConnection) Close() error
func (*SSHConnection) GetTunnels ¶
func (c *SSHConnection) GetTunnels() ([]Tunnel, error)
func (*SSHConnection) Open ¶
func (c *SSHConnection) Open() error
func (*SSHConnection) RemoveTunnel ¶
func (c *SSHConnection) RemoveTunnel(key string) error
type SSHConnectionManager ¶
type SSHConnectionManager struct {
// contains filtered or unexported fields
}
func NewSSHConnectionManager ¶
func NewSSHConnectionManager() *SSHConnectionManager
func (*SSHConnectionManager) GetConnection ¶
func (m *SSHConnectionManager) GetConnection(key string) (*SSHConnection, error)
func (*SSHConnectionManager) GetConnections ¶
func (m *SSHConnectionManager) GetConnections() ([]Connection, error)
func (*SSHConnectionManager) GetOrCreateSSHConnection ¶
func (m *SSHConnectionManager) GetOrCreateSSHConnection(sshAddr string, sshUser string, sshAuth []ssh.AuthMethod, sshHostKeyCallback func(hostname string, fingerprint string) error) (string, *SSHConnection, error)
func (*SSHConnectionManager) RemoveConnection ¶
func (c *SSHConnectionManager) RemoveConnection(key string) error
Click to show internal directories.
Click to hide internal directories.