osp

package
v0.0.0-...-6b32d26 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandRun

func CommandRun(command string, env []string, args ...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 GetHostname

func GetHostname() string

GetHostname get current host name

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