MCPcopy Index your code
hub / github.com/docker/cli / Read

Method Read

cli/command/container/cp.go:64–68  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

62)
63
64func (pt *copyProgressPrinter) Read(p []byte) (int, error) {
65 n, err := pt.ReadCloser.Read(p)
66 atomic.AddInt64(pt.total, int64(n))
67 return n, err
68}
69
70func copyProgress(ctx context.Context, dst io.Writer, header string, total *int64) (func(), <-chan struct{}) {
71 done := make(chan struct{})

Callers 3

withCustomHeadersFromEnvFunction · 0.45
TestExportDefaultImportFunction · 0.45
parseExternalCAFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestExportDefaultImportFunction · 0.36