package
0.16.0
Repository: https://github.com/fermitools/managed-tokens.git
Documentation: pkg.go.dev

# Functions

CheckForExecutables takes a map of executables of the form {"name_of_executable": "whatever"} and checks if each executable is in $PATH.
CheckRunningUserNotRoot checks that the current user running any of the executables is not the system root user.
ContextWithOverrideTimeout takes a parent context and returns a new context with an override timeout set.
ContextWithVerbose wraps a context with a verbose=true value.
GetArgsFromTemplate takes a template string and breaks it into a slice of args.
GetOverrideTimeoutFromContext returns the override timeout value from a context if it's been stored and type-checks it.
GetProperTimeoutFromContext takes a context and a default duration, and tries to see if the context is holding an overrideTimeout key.
GetVerboseFromContext returns the type-checked value of the verbose contextKey from a context if it has been stored.
IsSliceSubSlice verifies every element within sliceOne is contained within sliceTwo.
MergeCmdArgs is meant to take a FlagSet that defines defaults and flags for a particular command, for example ping, and merges the extraArgs with the defaults.
TemplateToCommand takes a *template.Template and a struct, cmdArgs, and executes the template with those args.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author