Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RunCMD = func(hostname, cmd string) (string, error) { session, err := NewSSHSession(hostname) if err != nil { return "", err } output, err := session.Output(cmd) if err != nil { return "", err } return string(output), nil }
RunCMD execute cmd on remote host
Functions ¶
func CreateConnection ¶
CreateConnection create ssh connection
Types ¶
Click to show internal directories.
Click to hide internal directories.