sudo

package
v0.0.0-...-445020f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 4 Imported by: 3

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

func ExecWithPassword(password string, script ...string) ([]byte, []byte, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL