Versions in this module Expand all Collapse all v0 v0.12.0 Jul 28, 2026 v0.11.1 Jun 26, 2026 v0.11.0 Jun 22, 2026 v0.10.0 Jun 20, 2026 v0.9.3 Jun 8, 2026 v0.9.2 Jun 4, 2026 Changes in this version + func CreatePersistentNamespace(targetPath string, pid int, nsType Type) error — linux/amd64 + func DefaultRootlessMaps() ([]IDMap, []IDMap) — linux/amd64 + func GetCurrentNamespace(nsType Type) (string, error) — linux/amd64 + func IsRootless() bool — darwin/amd64, linux/amd64 + func JoinNamespace(nsType Type, path string) error — linux/amd64 + func NamespacePath(pid int, nsType Type) string — linux/amd64 + func ParseCapability(cap string) string — linux/amd64 + func SetDomainname(domainname string) error — linux/amd64 + func SetHostname(hostname string) error — linux/amd64 + func Supported(nsType Type) bool — linux/amd64 + type Config struct — darwin/amd64, linux/amd64 + Cgroup bool + DenySetgroups bool + Domainname string + GID uint32 + GIDMappings []IDMap + Hostname string + IPC bool + Mount bool + Net bool + PID bool + Rootless bool + UID uint32 + UIDMappings []IDMap + UTS bool + User bool + type IDMap struct — linux/amd64 + ContainerID uint32 + HostID uint32 + Size uint32 + type Manager struct — darwin/amd64, linux/amd64 + func NewManager(root string) *Manager + func (m *Manager) CreateNamespaces(containerID string, cfg *Config) (*NamespacePaths, error) + func (m *Manager) DeletePersistentNamespace(containerID string) error + func (m *Manager) DeletePersistentNamespace(id string) error + func (m *Manager) GetPIDForContainer(containerID string) (int, error) + func (m *Manager) SetupUserNamespace(pid int, cfg *Config) error + func (m *Manager) TargetPath(containerID string, nsType Type) string + type NamespacePaths struct — linux/amd64 + Cgroup string + IPC string + Mount string + Net string + PID string + UTS string + User string + type Type string — linux/amd64 + const CgroupNS + const IPCNS + const MountNS + const NetNS + const PIDNS + const UTSNS + const UserNS