Documentation ¶
Index ¶
- Variables
- func Init(config *ServerConfig)
- func RunCmd(script string) error
- func RunCmdErrWithAfterCmd(script string, afterCmd string)
- func RunCmdErrWithExit(script string)
- func RunCmdErrWithNothing(script string)
- func RunCmdGetData(script string) (res string)
- func SSHConnect(user, password, host string, port int) (*ssh.Client, error)
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var G_SSH_CLIENT *ssh.Client
Functions ¶
func Init ¶
func Init(config *ServerConfig)
func RunCmdErrWithAfterCmd ¶
func RunCmdErrWithExit ¶
func RunCmdErrWithExit(script string)
func RunCmdErrWithNothing ¶
func RunCmdErrWithNothing(script string)
func RunCmdGetData ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.