MCPcopy Create free account
hub / github.com/containerd/cgroups / Path

Method Path

cgroup1/memory.go:198–200  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

196}
197
198func (m *memoryController) Path(path string) string {
199 return filepath.Join(m.root, path)
200}
201
202func (m *memoryController) Create(path string, resources *specs.LinuxResources) error {
203 if err := os.MkdirAll(m.Path(path), defaultDirPerm); err != nil {

Callers 5

CreateMethod · 0.95
UpdateMethod · 0.95
StatMethod · 0.95
setMethod · 0.95
memoryEventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected