MCPcopy Index your code
hub / github.com/coder/envbox / Mounter

Function Mounter

xunix/mount.go:15–23  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

13}
14
15func Mounter(ctx context.Context) mount.Interface {
16 m := ctx.Value(mounterKey{})
17 if m == nil {
18 return mount.New("/bin/mount")
19 }
20
21 //nolint we should panic if this isn't the case.
22 return m.(mount.Interface)
23}
24
25type Mount struct {
26 Source string

Callers 5

runDockerCVMFunction · 0.92
MounterFunction · 0.92
GPUsFunction · 0.70
TryUnmountProcGPUDriversFunction · 0.70
MountFSFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected