MCPcopy
hub / github.com/opencontainers/runc / criuCgMode

Function criuCgMode

libcontainer/criu_linux.go:1216–1231  ·  view source on GitHub ↗
(mode string)

Source from the content-addressed store, hash-verified

1214}
1215
1216func criuCgMode(mode string) (criurpc.CriuCgMode, error) {
1217 switch mode {
1218 case "":
1219 return criurpc.CriuCgMode_DEFAULT, nil
1220 case "soft":
1221 return criurpc.CriuCgMode_SOFT, nil
1222 case "full":
1223 return criurpc.CriuCgMode_FULL, nil
1224 case "strict":
1225 return criurpc.CriuCgMode_STRICT, nil
1226 case "ignore":
1227 return criurpc.CriuCgMode_IGNORE, nil
1228 default:
1229 return 0, errors.New("invalid manage-cgroups-mode value")
1230 }
1231}

Callers 2

CheckpointMethod · 0.85
RestoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…