package
4.3.0-rc.1
Repository: https://github.com/sylabs/singularity.git
Documentation: pkg.go.dev

# Functions

GetConfig parses a subuid/subgid configuration file and returns a Config holding all mapping entries, it allows to pass a custom function getUserFn used to lookup in a custom user database, if there is no custom function, the default one is used.
GetGIDRange determines subUID mappings for the user uid based on the /etc/subgid file.
GetUIDRange determines subUID mappings for the user uid based on the /etc/subuid file.

# Constants

SubGIDFile is the default path to the subgid file.
SubUIDFile is the default path to the subuid file.

# Structs

Config holds all entries found in the corresponding configuration file and manages its configuration.
Entry
Entry represents an entry line of subuid/subgid configuration file.

# Type aliases

GetUserFn defines the user lookup function prototype.