package
6.6.0
Repository: https://github.com/lxc/incus.git
Documentation: pkg.go.dev

# Functions

NewSetFromCurrentProcess returns a Set from the process' current uid/gid map.
NewSetFromIncusIDMap parses an Incus raw.idmap into a new idmap Set.
NewSetFromJSON unpacks an idmap Set from its JSON representation.
NewSetFromSystem returns a Set for the specified user from the system's subuid/subgid configuration.

# Variables

DefaultFullKernelSet is the default Set of uid/gid with no mapping at all.
ErrHostIDIsSubID indicates that an expected host ID is part of a subid range.
ErrNoSuitableSubmap indicates that it was impossible to split a submap with the requested characteristics.
ErrNoUserMap indicates that no entry could be found for the user.
ErrSubidUnsupported indicates that the system is lacking support for subuid/subgid.

# Structs

Entry
Entry is a single idmap entry (line).
Range represents a range of uid or gid.
Set is a list of Entry with some functions on it.

# Type aliases

ByHostID allows for sorting an Set by host id.