MCPcopy Create free account
hub / github.com/coder/envbuilder / Write

Method Write

envbuilder.go:1854–1860  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

1852}
1853
1854func (l writeLogger) Write(p []byte) (n int, err error) {
1855 lines := bytes.Split(p, []byte("\n"))
1856 for _, line := range lines {
1857 l.logf(l.level, "%s", line)
1858 }
1859 return len(p), nil
1860}
1861
1862// Allows quick testing of layer caching using a local directory!
1863func serveLocalRegistry(ctx context.Context, logf log.Func, layerCacheDir string) (string, func(), error) {

Callers 11

runFunction · 0.80
RunCacheProbeFunction · 0.80
writeFileFunction · 0.80
TestLogsFunction · 0.80
CompileMethod · 0.80
TestUserFromFunction · 0.80
TestCoderFunction · 0.80
TestCoderRPCTimeoutFunction · 0.80
WriteFileFunction · 0.80
WriteContainerFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestLogsFunction · 0.64
TestUserFromFunction · 0.64
TestCoderFunction · 0.64
TestCoderRPCTimeoutFunction · 0.64