Versions in this module Expand all Collapse all v3 v3.6.8 Jun 22, 2021 v3.6.7 Jun 15, 2021 Changes in this version + func AddNamespaceRangesUser(name string) (int, int, error) + func CanAccess(path string, pair IDPair) bool + func GetRootUIDGID(uidMap, gidMap []IDMap) (int, int, error) + func LookupGID(gid int) (user.Group, error) — darwin/amd64, js/wasm, linux/amd64 + func LookupGroup(groupname string) (user.Group, error) — darwin/amd64, js/wasm, linux/amd64 + func LookupUID(uid int) (user.User, error) — darwin/amd64, js/wasm, linux/amd64 + func LookupUser(username string) (user.User, error) — darwin/amd64, js/wasm, linux/amd64 + func MkdirAllAndChown(path string, mode os.FileMode, owner IDPair) error + func MkdirAllAndChownNew(path string, mode os.FileMode, owner IDPair) error + func MkdirAndChown(path string, mode os.FileMode, owner IDPair) error + type IDMap struct + ContainerID int + HostID int + Size int + type IDMappings struct + func NewIDMappings(username, groupname string) (*IDMappings, error) + func NewIDMappingsFromMaps(uids []IDMap, gids []IDMap) *IDMappings + func (i *IDMappings) Empty() bool + func (i *IDMappings) GIDs() []IDMap + func (i *IDMappings) RootPair() IDPair + func (i *IDMappings) ToContainer(pair IDPair) (int, int, error) + func (i *IDMappings) ToHost(pair IDPair) (IDPair, error) + func (i *IDMappings) UIDs() []IDMap + type IDPair struct + GID int + UID int