Documentation
¶
Index ¶
- func DialWithTimeout(network, addr string, config *gossh.ClientConfig) (*gossh.Client, error)
- type ConnInfo
- type SSHClient
- func (c *SSHClient) Close()
- func (c *SSHClient) CpFileWithCheck(src, dst string) error
- func (c *SSHClient) IsRoot(user string) bool
- func (c *SSHClient) Run(shell string) (string, error)
- func (c *SSHClient) RunWithStreamOutput(command string, outputCallback func(string)) error
- func (c *SSHClient) Runf(shell string, args ...interface{}) (string, error)
- func (c *SSHClient) SudoHandleCmd() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialWithTimeout ¶
Types ¶
type SSHClient ¶
func (*SSHClient) CpFileWithCheck ¶
func (*SSHClient) RunWithStreamOutput ¶
func (*SSHClient) SudoHandleCmd ¶
Click to show internal directories.
Click to hide internal directories.