package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev

# Functions

CurrentIdentity returns the identity of the current process.
GetRootUIDGID retrieves the remapped root uid/gid pair from the set of maps.
LoadIdentityMapping takes a requested username and using the data from /etc/sub{uid,gid} ranges, creates the proper uid and gid remapping ranges for that user/group pair.
LookupGroup uses traditional local system files lookup (from libcontainer/user) on a group name, Deprecated: use [user.LookupGroup] instead.
LookupUID uses traditional local system files lookup (from libcontainer/user) on a uid Deprecated: use [user.LookupUid] instead.
LookupUser uses traditional local system files lookup (from libcontainer/user) on a username Deprecated: use [user.LookupUser] instead.
MkdirAllAndChown creates a directory (include any along the path) and then modifies ownership to the requested uid/gid.
MkdirAllAndChownNew creates a directory (include any along the path) and then modifies ownership ONLY of newly created directories to the requested uid/gid.
MkdirAndChown creates a directory and then modifies ownership to the requested uid/gid.

# Structs

Identity is either a UID and GID pair or a SID (but not both).
IdentityMapping contains a mappings of UIDs and GIDs.
IDMap contains a single entry for user namespace range remapping.