Versions in this module Expand all Collapse all v0 v0.1.1 Aug 25, 2021 v0.1.0 Aug 24, 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 IsContiguous(mappings []IDMap) bool + 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, ids IDPair) error + func MkdirAllAndChownNew(path string, mode os.FileMode, ids IDPair) error + func MkdirAllAs(path string, mode os.FileMode, ownerUID, ownerGID int) error + func MkdirAndChown(path string, mode os.FileMode, ids IDPair) error + func MkdirAs(path string, mode os.FileMode, ownerUID, ownerGID int) error + func SafeChown(name string, uid, gid int) error + func SafeLchown(name string, uid, gid int) error + type IDMap struct + ContainerID int + HostID int + Size int + func ParseIDMap(mapSpec []string, mapSetting string) (idmap []IDMap, err error) + 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