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

Method state

cgroup1/freezer.go:60–66  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

58}
59
60func (f *freezerController) state(path string) (State, error) {
61 current, err := os.ReadFile(filepath.Join(f.root, path, "freezer.state"))
62 if err != nil {
63 return "", err
64 }
65 return State(strings.ToLower(strings.TrimSpace(string(current)))), nil
66}
67
68func (f *freezerController) waitState(path string, state State) error {
69 for {

Callers 2

waitStateMethod · 0.95
StateMethod · 0.80

Calls 1

StateTypeAlias · 0.70

Tested by

no test coverage detected