Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialTimeout ¶
Types ¶
type Client ¶
type Client struct { // User Authenticate as. User string `yaml:"user"` // Host SSH server to connect to. Host string `yaml:"host"` // Password Used for SSH authentication. Password string `yaml:"password,omitempty"` // PrivateKey Used for SSH authentication. PrivateKey string `yaml:"private_key,omitempty"` // Passphrase Private key passphrase. Passphrase string `yaml:"passphrase,omitempty"` // LogLevel Level of logging print. LogLevel int8 `yaml:"log_level,omitempty"` // LogEncoding Log output format. LogEncoding string `yaml:"log_encoding"` // RetryMin Minimum time to retry connecting to the ssh server RetryMin time.Duration `yaml:"retry_min,omitempty"` // RetryMax Maximum time to retry connecting to the ssh server RetryMax time.Duration `yaml:"retry_max,omitempty"` // ServerAliveInterval Interval to use for the ssh server's keepalive ServerAliveInterval time.Duration `yaml:"server_alive_interval"` // ServerAliveCountMax Maximum number of keepalive packets to send ServerAliveCountMax uint32 `yaml:"server_alive_count_max"` // Logger Used for logging Logger *slog.Logger }
Click to show internal directories.
Click to hide internal directories.