package
3.1.0+incompatible
Repository: https://github.com/mem/singularity.git
Documentation: pkg.go.dev
# Functions
Add creates an instance file for a named instance in a privileged or unprivileged path.
CheckName checks if name is a valid instance name.
ExtractName extracts instance name from an instance:// URI.
Get returns the instance file corresponding to instance name.
GetDirPrivileged returns directory where instances file will be stored if instance is run with privileges.
GetDirUnprivileged returns directory where instances file will be stored if instance is run without privileges.
List returns instance files matching username and/or name pattern.
NewLogger instantiates a new logger with formatter and return it.
ProcName returns processus name based on instance name and username.
SetLogFile replaces stdout/stderr streams and redirect content to log file.
# Constants
DefaultLogFormat represents default log format.
JSONLogFormat represents JSON log format.
KubernetesLogFormat represents kubernetes log format.
# Variables
LogFormats contains supported log format by default.
# Type aliases
LogFormatter implements a log formatter.