Documentation ¶
Index ¶
- func CheckIllegal(args ...string) bool
- func Exec(cmdStr string) (string, error)
- func ExecCmd(cmdStr string) error
- func ExecCmdWithDir(cmdStr, workDir string) error
- func ExecContainerScript(containerName, cmdStr string, timeout time.Duration) error
- func ExecCronjobWithTimeOut(cmdStr, workdir, outPath string, timeout time.Duration) error
- func ExecScript(scriptPath, workDir string) (string, error)
- func ExecWithCheck(name string, a ...string) (string, error)
- func ExecWithTimeOut(cmdStr string, timeout time.Duration) (string, error)
- func Execf(cmdStr string, a ...interface{}) (string, error)
- func HasNoPasswordSudo() bool
- func SudoHandleCmd() string
- func Which(name string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIllegal ¶ added in v1.3.6
func ExecCmdWithDir ¶ added in v1.8.0
func ExecContainerScript ¶ added in v1.7.0
func ExecCronjobWithTimeOut ¶ added in v1.2.0
func ExecScript ¶ added in v1.6.0
func ExecWithTimeOut ¶ added in v1.1.0
func HasNoPasswordSudo ¶ added in v1.1.2
func HasNoPasswordSudo() bool
func SudoHandleCmd ¶ added in v1.3.0
func SudoHandleCmd() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.