README ¶ ssh SSH client for remote command execution. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Client func NewClient(config *Config) (*Client, error) func (c *Client) Exec(command string) (stdout string, stderr string, err error) type Config func (c *Config) Check() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } Client SSH Client func NewClient ¶ func NewClient(config *Config) (*Client, error) NewClient Factory func (*Client) Exec ¶ func (c *Client) Exec(command string) (stdout string, stderr string, err error) Exec execute a command type Config ¶ type Config struct { IP string `json:"ip"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password,omitempty"` Key string `json:"key,omitempty"` Timeout int `json:"timeout"` } Config SSH Config func (*Config) Check ¶ func (c *Config) Check() error Check config Source Files ¶ View all Source files config.go ssh.go Click to show internal directories. Click to hide internal directories.