Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
func Exec(cb PasswordCallback, cbData interface{}, script ...string) ([]byte, []byte, error)
Exec sudo script with provided password callback function with supplied data for it returns stdOut, latest stdErr row and
func ExecWithPassword ¶
Exec sudo script with provided password
func InputMaskedPassword ¶
func InputMaskedPassword(data interface{}) string
Masks a password input pausing a bool channel
Types ¶
type PasswordCallback ¶
type PasswordCallback func(data interface{}) string
Click to show internal directories.
Click to hide internal directories.