Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.1.11
type Client struct {
SshClientConfig *ssh.ClientConfig
SshUrl string
}
Client is an ssh wrapper to dialog with a sftp server.
type Config ¶
type Config struct {
User string `yaml:"user"`
Host string `yaml:"host"`
Port string `yaml:"port"`
SshKeyPath string `yaml:"sshKeyPath"`
}
Config is the configuration structure used by an ssh client.
func (Config) GetSshClientConfig ¶
func (c Config) GetSshClientConfig() (*ssh.ClientConfig, error)
GetSshClientConfig loads and parses a private key to return an ssh client config.
Click to show internal directories.
Click to hide internal directories.