const userNsLength …
const mapReInitializeThreshold …
type userNsPodsManager …
type UsernsManager …
type userNamespace …
type idMapping …
const mappingsFile …
func (m *UsernsManager) writeMappingsToFile(pod types.UID, userNs userNamespace) error { … }
func (m *UsernsManager) readMappingsFromFile(pod types.UID) ([]byte, error) { … }
func MakeUserNsManager(kl userNsPodsManager) (*UsernsManager, error) { … }
func (m *UsernsManager) recordPodMappings(pod types.UID) error { … }
func (m *UsernsManager) isSet(v uint32) bool { … }
func (m *UsernsManager) allocateOne(pod types.UID) (firstID uint32, length uint32, err error) { … }
func (m *UsernsManager) record(pod types.UID, from, length uint32) (err error) { … }
func (m *UsernsManager) Release(podUID types.UID) { … }
func (m *UsernsManager) podAllocated(podUID types.UID) bool { … }
func (m *UsernsManager) releaseWithLock(pod types.UID) { … }
func (m *UsernsManager) parseUserNsFileAndRecord(pod types.UID, content []byte) (userNs userNamespace, err error) { … }
func (m *UsernsManager) createUserNs(pod *v1.Pod) (userNs userNamespace, err error) { … }
func (m *UsernsManager) GetOrCreateUserNamespaceMappings(pod *v1.Pod, runtimeHandler string) (*runtimeapi.UserNamespace, error) { … }
func (m *UsernsManager) CleanupOrphanedPodUsernsAllocations(pods []*v1.Pod, runningPods []*kubecontainer.Pod) error { … }
func EnabledUserNamespacesSupport() bool { … }