Versions in this module Expand all Collapse all v1 v1.0.1 Jun 25, 2024 Changes in this version + func NamespacePathFromProc(nsType NSType, pid int) string + type NS interface — linux/amd64 + type NSType string + const IPCNS + const ManagedNamespacesNum + const NETNS + const PIDNS + const USERNS + const UTSNS + type Namespace interface + Path func() string + Remove func() error + Type func() NSType + func GetNamespace(_ string, _ NSType) (Namespace, error) + func GetNamespace(nsPath string, nsType NSType) (Namespace, error) + type NamespaceManager struct + func New(namespacesDir, pinnsPath string) *NamespaceManager + func (mgr *NamespaceManager) Initialize() error + func (mgr *NamespaceManager) NamespaceFromProcEntry(pid int, nsType NSType) (_ Namespace, retErr error) + func (mgr *NamespaceManager) NewPodNamespaces(cfg *PodNamespacesConfig) ([]Namespace, error) + type PodNamespaceConfig struct — linux/amd64 + Host bool + Path string + Type NSType + type PodNamespacesConfig struct — linux/amd64 + IDMappings *idtools.IDMappings + Namespaces []*PodNamespaceConfig + Sysctls map[string]string