package
3.8.7+incompatible
Repository: https://github.com/hpcng/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.
GetDir returns directory where instances file will be stored.
GetLogFilePaths returns the paths of log files containing .err, .out streams, respectively.
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
BasicLogFormat represents basic log format.
JSONLogFormat represents JSON log format.
KubernetesLogFormat represents kubernetes log format.
LogSubDir represents directory where Singularity instance log files are stored.
OciSubDir represents directory where OCI instance files are stored.
ProgPrefix is the prefix used by a singularity instance process.
SingSubDir represents directory where Singularity instance files are stored.
# Variables
LogFormats contains supported log format by default.
# Type aliases
LogFormatter implements a log formatter.