Versions in this module Expand all Collapse all v1 v1.10.0 Feb 7, 2026 v1.9.3 Nov 17, 2025 Changes in this version + func RegisterConnector(c Connector) + type ChainBuilder interface + Build func(chain GatewayChain) (Transport, error) + func NewSSHChainBuilder() ChainBuilder + type ConnectOptions map[string]any + type Connector interface + Connect func(ctx context.Context, chain GatewayChain, opts ConnectOptions) (Session, error) + Name func() string + func GetConnector(name string) (Connector, bool) + type Endpoint struct + AuthType string + Host string + Passphrase string + Password string + Port int + PrivateKey string + Sort int + Username string + type FileCapable interface + NewSFTP func() (*sftp.Client, error) + type GatewayChain []Endpoint + type SSHChainBuilder struct + func (b *SSHChainBuilder) Build(chain GatewayChain) (Transport, error) + type Session interface + Close func() error + Protocol func() string + Transport func() Transport type Sessions + Session Session + type ShellCapable interface + NewTerminal func(ws *websocket.Conn, rows, cols int) (TerminalSession, error) + type TerminalSession interface + Ping func() error + Resize func(rows, cols int) error + Start func() + Stop func() + Write func(data []byte) error + type Transport interface + Dial func(ctx context.Context, ep Endpoint) (net.Conn, error) v1.9.2 Sep 26, 2025 v1.9.1 Sep 19, 2025 v1.9.0 Sep 15, 2025 v1.8.0 Mar 19, 2025 Changes in this version + type SessionPool struct + func NewSessionPool() *SessionPool + func (p *SessionPool) GetSession(id int64) (*Sessions, error) + func (p *SessionPool) SetSession(id int64, session *Sessions) + type Sessions struct + SshClient *ssh.Client + func NewSessions(sshClient *ssh.Client) *Sessions