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

Function GetFS

xunix/fs.go:25–33  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

23}
24
25func GetFS(ctx context.Context) FS {
26 f := ctx.Value(fsKey{})
27 if f == nil {
28 return &osFS{&afero.OsFs{}}
29 }
30
31 //nolint we should panic if this isn't the case.
32 return f.(FS)
33}
34
35type osFS struct {
36 *afero.OsFs

Callers 15

runDockerCVMFunction · 0.92
FSFunction · 0.92
killMethod · 0.92
Test_SameDirSymlinksFunction · 0.92
WriteCertsForRegistryFunction · 0.92
WaitForManagerFunction · 0.92
GPUsFunction · 0.85
usrLibGPUsFunction · 0.85
createDeviceFunction · 0.85
readCPUQuotaCGroupV2Function · 0.85

Calls

no outgoing calls

Tested by 1

Test_SameDirSymlinksFunction · 0.74