Versions in this module Expand all Collapse all v0 v0.8.1 Dec 12, 2025 v0.8.0 Dec 2, 2025 Changes in this version + type AuthMethod interface + Method func() gossh.AuthMethod + type BaseClient struct + func (c *BaseClient) SetClientConfig(config *ClientConfig) + func (c *BaseClient) SetClientConfigFile(configStr, hostname string) error + type Client interface + Connect func() (ClientConn, error) + Dial func(network, addr string, config *ClientConfig) (ClientConn, error) + SetClientConfig func(config *ClientConfig) + SetClientConfigFile func(configStr, hostname string) error + type ClientConfig struct + Auth []AuthMethod + HostKeyCallback HostKeyCallback + HostName string + Port string + User string + type ClientConn interface + Close func() error + NewSession func() (Session, error) + type HostKeyCallback interface + Callback func() gossh.HostKeyCallback + type MockAuthMethod struct + MethodFunc func() any + func (m *MockAuthMethod) Method() gossh.AuthMethod + type MockClient struct + ConnectFunc func() (ClientConn, error) + DialFunc func(network, addr string, config *ClientConfig) (ClientConn, error) + SetClientConfigFileFunc func(configStr, hostname string) error + SetClientConfigFunc func(config *ClientConfig) + func NewMockSSHClient() *MockClient + func (m *MockClient) Connect() (ClientConn, error) + func (m *MockClient) Dial(network, addr string, config *ClientConfig) (ClientConn, error) + func (m *MockClient) SetClientConfig(config *ClientConfig) + func (m *MockClient) SetClientConfigFile(configStr, hostname string) error + type MockClientConn struct + CloseFunc func() error + NewSessionFunc func() (Session, error) + func (m *MockClientConn) Close() error + func (m *MockClientConn) NewSession() (Session, error) + type MockHostKeyCallback struct + CallbackFunc func() any + func (m *MockHostKeyCallback) Callback() gossh.HostKeyCallback + type MockPublicKeyAuthMethod struct + SignerFunc func() gossh.Signer + func (m *MockPublicKeyAuthMethod) Method() gossh.AuthMethod + type MockSession struct + CloseFunc func() error + CombinedOutputFunc func(cmd string) ([]byte, error) + RunFunc func(cmd string) error + SetStderrFunc func(w io.Writer) + SetStdoutFunc func(w io.Writer) + func (m *MockSession) Close() error + func (m *MockSession) CombinedOutput(cmd string) ([]byte, error) + func (m *MockSession) Run(cmd string) error + func (m *MockSession) SetStderr(w io.Writer) + func (m *MockSession) SetStdout(w io.Writer) + type PublicKeyAuthMethod struct + func (p *PublicKeyAuthMethod) Method() gossh.AuthMethod + type RealClientConn struct + func (c *RealClientConn) Close() error + func (c *RealClientConn) NewSession() (Session, error) + type RealSession struct + func (s *RealSession) Close() error + func (s *RealSession) CombinedOutput(cmd string) ([]byte, error) + func (s *RealSession) Run(cmd string) error + func (s *RealSession) SetStderr(w io.Writer) + func (s *RealSession) SetStdout(w io.Writer) + type SSHClient struct + func NewSSHClient() *SSHClient + func (c *SSHClient) Connect() (ClientConn, error) + func (c *SSHClient) Dial(network, addr string, config *ClientConfig) (ClientConn, error) + type Session interface + Close func() error + CombinedOutput func(cmd string) ([]byte, error) + Run func(cmd string) error + SetStderr func(w io.Writer) + SetStdout func(w io.Writer)