Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGlobalHelper ¶
Types ¶
type Helper ¶
type Helper struct {
SshClientPtr *ssh.Client
DialClient
SessionClient
SftpClient
Options
}
func GetGlobalHelper ¶
func GetGlobalHelper() *Helper
func (*Helper) SetClients ¶
type Option ¶
type Option func(*Options)
func AuthMethod ¶
func AuthMethod(method ssh.AuthMethod) Option
func HostKeyCallback ¶
func HostKeyCallback(callback ssh.HostKeyCallback) Option
type Options ¶
type Options struct {
Host string
User string
AuthMethod ssh.AuthMethod
HostKeyCallback ssh.HostKeyCallback
Timeout time.Duration
}
type SessionClient ¶
Click to show internal directories.
Click to hide internal directories.