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

Method Controllers

cgroup2/manager.go:306–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304}
305
306func (c *Manager) Controllers() ([]string, error) {
307 b, err := os.ReadFile(filepath.Join(c.path, controllersFile))
308 if err != nil {
309 return nil, err
310 }
311 return strings.Fields(string(b)), nil
312}
313
314func (c *Manager) Update(resources *Resources) error {
315 return setResources(c.path, resources)

Callers 1

main.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected