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

Function WithMountpoint

cgroup2/manager.go:224–229  ·  view source on GitHub ↗

WithMountpoint sets the unified mountpoint. The default path is /sys/fs/cgroup.

(path string)

Source from the content-addressed store, hash-verified

222
223// WithMountpoint sets the unified mountpoint. The default path is /sys/fs/cgroup.
224func WithMountpoint(path string) InitOpts {
225 return func(c *InitConfig) error {
226 c.mountpoint = path
227 return nil
228 }
229}
230
231// Load a cgroup.
232func Load(group string, opts ...InitOpts) (*Manager, error) {

Callers 1

main.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…