Documentation ¶
Index ¶
- func CheckIllegal(args ...string) bool
- func Exec(cmdStr string) (string, error)
- func ExecCronjobWithTimeOut(cmdStr string, workdir string, timeout time.Duration) (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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIllegal ¶ added in v1.3.6
func ExecCronjobWithTimeOut ¶ added in v1.2.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.