os

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyEnv = []string{}

Functions

func CommandRun

func CommandRun(commandText string, env []string, arguments ...string) error

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

func UserInGroups(authUser string, powerAuthGroups []string) bool

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.

Jump to

Keyboard shortcuts

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