Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyEnv = []string{}
Functions ¶
func CommandRun ¶
CommandRun executes some text as a command. This is assumed to be text that will be run by a shell so we need to write out the command to a temporary file and then ask the shell to execute it, after which the temporary file is removed.
func UserInGroups ¶
UserInGroups checks if the given username is in the given unix groups. It might be worth caching this for performance reasons.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.