Documentation
¶
Index ¶
- func CheckCmd(cmd string) bool
- func ExecCommand(cmdStr string) (msg string, err error)
- func ExecSSHCmdByKey(host, user, key, command string) (string, error)
- func ExecSSHCmdByPwd(host, user, password, command string) (string, error)
- func ExecShell(ctx context.Context, command string) (string, error)
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecCommand ¶ added in v0.1.0
func ExecSSHCmdByKey ¶ added in v0.1.0
func ExecSSHCmdByPwd ¶ added in v0.1.0
Types ¶
Click to show internal directories.
Click to hide internal directories.