package
1.10.16
Repository: https://github.com/hyperhq/hypercli.git
Documentation: pkg.go.dev

# Functions

AddNamespaceRangesUser takes a name and finds an unused uid, gid pair and calls the appropriate helper function to add the group and then the user to the group in /etc/group and /etc/passwd respectively.
CreateIDMappings takes a requested user and group name and using the data from /etc/sub{uid,gid} ranges, creates the proper uid and gid remapping ranges for that user/group pair.
GetRootUIDGID retrieves the remapped root uid/gid pair from the set of maps.
MkdirAllAs creates a directory (include any along the path) and then modifies ownership to the requested uid/gid.
MkdirAllNewAs creates a directory (include any along the path) and then modifies ownership ONLY of newly created directories to the requested uid/gid.
MkdirAs creates a directory and then modifies ownership to the requested uid/gid.
ToContainer takes an id mapping, and uses it to translate a host ID to the remapped ID.
ToHost takes an id mapping and a remapped ID, and translates the ID to the mapped host ID.

# Structs

IDMap contains a single entry for user namespace range remapping.