MCPcopy Index your code
hub / github.com/containerd/containerd / WithMountHandler

Function WithMountHandler

core/mount/manager/manager.go:60–68  ·  view source on GitHub ↗
(name string, h mount.Handler)

Source from the content-addressed store, hash-verified

58type Opt func(*managerOptions) error
59
60func WithMountHandler(name string, h mount.Handler) Opt {
61 return func(o *managerOptions) error {
62 if o.handlers == nil {
63 o.handlers = make(map[string]mount.Handler)
64 }
65 o.handlers[name] = h
66 return nil
67 }
68}
69
70func WithAllowedRoot(root string) Opt {
71 return func(o *managerOptions) error {

Callers 10

initFunction · 0.92
TestLoopbackMountFunction · 0.85
TestLoopbackOverlayFunction · 0.85
TestManagerFunction · 0.85
TestGCFunction · 0.85
TestInfoFunction · 0.85
TestInfoSystemMountsFunction · 0.85

Calls

no outgoing calls

Tested by 9

TestLoopbackMountFunction · 0.68
TestLoopbackOverlayFunction · 0.68
TestManagerFunction · 0.68
TestGCFunction · 0.68
TestInfoFunction · 0.68
TestInfoSystemMountsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…