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

Method RootControllers

cgroup2/manager.go:298–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

296}
297
298func (c *Manager) RootControllers() ([]string, error) {
299 b, err := os.ReadFile(filepath.Join(c.unifiedMountpoint, controllersFile))
300 if err != nil {
301 return nil, err
302 }
303 return strings.Fields(string(b)), nil
304}
305
306func (c *Manager) Controllers() ([]string, error) {
307 b, err := os.ReadFile(filepath.Join(c.path, controllersFile))

Callers 1

main.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected