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

Method Path

cgroup1/cpu.go:43–45  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

41}
42
43func (c *cpuController) Path(path string) string {
44 return filepath.Join(c.root, path)
45}
46
47func (c *cpuController) Create(path string, resources *specs.LinuxResources) error {
48 if err := os.MkdirAll(c.Path(path), defaultDirPerm); err != nil {

Callers 2

CreateMethod · 0.95
StatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected