MCPcopy
hub / github.com/moby/moby / WithDefaultCgroupNamespaceMode

Function WithDefaultCgroupNamespaceMode

internal/testutil/daemon/ops.go:46–50  ·  view source on GitHub ↗

WithDefaultCgroupNamespaceMode sets the default cgroup namespace mode for the daemon

(mode string)

Source from the content-addressed store, hash-verified

44
45// WithDefaultCgroupNamespaceMode sets the default cgroup namespace mode for the daemon
46func WithDefaultCgroupNamespaceMode(mode string) Option {
47 return func(d *Daemon) {
48 d.defaultCgroupNamespaceMode = mode
49 }
50}
51
52// WithTestLogger causes the daemon to log certain actions to the provided test.
53func WithTestLogger(t LogT) Option {

Callers 3

testRunWithCgroupNsFunction · 0.92

Calls

no outgoing calls

Tested by 3

testRunWithCgroupNsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…