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

Function WithMounter

xunix/mount.go:11–13  ·  view source on GitHub ↗
(ctx context.Context, i mount.Interface)

Source from the content-addressed store, hash-verified

9type mounterKey struct{}
10
11func WithMounter(ctx context.Context, i mount.Interface) context.Context {
12 return context.WithValue(ctx, mounterKey{}, i)
13}
14
15func Mounter(ctx context.Context) mount.Interface {
16 m := ctx.Value(mounterKey{})

Callers 2

ctxFunction · 0.92
TestGPUsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestGPUsFunction · 0.74