package
Version:
v0.0.0-...-2540391
Opens a new window with list of versions in this module.
Published: Mar 20, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func CombinedOutput(uid, command string, args ...string) ([]byte, error)
-
func Command(uid, command string, args ...string) (*exec.Cmd, error)
-
func Output(uid, command string, args ...string) ([]byte, error)
-
func Run(uid, command string, args ...string) error
CombinedOutput creates and runs command with user privilege and returns the
combined output.
Command creates a new exec.Cmd that will run with user privilege.
Output creates and runs command with user privilege and returns the output.
Run creates and runs command with user privilege.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.