MCPcopy
hub / github.com/opencontainers/runc / Contains

Method Contains

libcontainer/configs/namespaces_linux.go:124–126  ·  view source on GitHub ↗
(t NamespaceType)

Source from the content-addressed store, hash-verified

122}
123
124func (n *Namespaces) Contains(t NamespaceType) bool {
125 return n.index(t) != -1
126}
127
128func (n *Namespaces) PathOf(t NamespaceType) string {
129 i := n.index(t)

Callers 15

ps.goFile · 0.80
CheckpointMethod · 0.80
RestoreMethod · 0.80
logCriuErrorsFunction · 0.80
criuNotificationsMethod · 0.80
setupNetworkDevicesMethod · 0.80
getSessionRingParamsMethod · 0.80
InitMethod · 0.80
prepareRootfsFunction · 0.80
mountCgroupV1Function · 0.80
createDevicesFunction · 0.80
orderNamespacePathsMethod · 0.80

Calls 1

indexMethod · 0.95

Tested by 15

checkFunction · 0.64
TestProcessEnvFunction · 0.64
TestProcessEmptyCapsFunction · 0.64
TestProcessCapsFunction · 0.64
TestAdditionalGroupsFunction · 0.64
testPidsFunction · 0.64
TestMountCgroupROFunction · 0.64
TestMountCgroupRWFunction · 0.64
TestTmpfsCopyUpFunction · 0.64
testUpdateDevicesFunction · 0.64