Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultNetwork = "tcp" DefaultPort = "22" DefaultTimeout = uint32(1) )
SSH constants.
Variables ¶
This section is empty.
Functions ¶
func NewSSHClient ¶
NewSSHClient creates and returns a ssh client with an active connection. The consumer of the client must ensure that the connection is closed.
func RunSSHCommand ¶
RunSSHCommand runs command using a given sh client and returns the output and error from the command execution.
func StartSSHCommand ¶
StartSSHCommand runs command and doesn't wait for the command to complete.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.