Documentation ¶ Index ¶ type Client func NewClient(user string, password string, host string, port int) (*Client, error) func (s *Client) Close() error func (s *Client) Connect() error func (s *Client) ExecCommand(session *ssh.Session, cmd string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { User string Password string Host string Port int // contains filtered or unexported fields } func NewClient ¶ func NewClient(user string, password string, host string, port int) (*Client, error) func (*Client) Close ¶ func (s *Client) Close() error func (*Client) Connect ¶ func (s *Client) Connect() error func (*Client) ExecCommand ¶ func (s *Client) ExecCommand(session *ssh.Session, cmd string) (string, error) Source Files ¶ View all Source files sshc.go Click to show internal directories. Click to hide internal directories.