MCPcopy Create free account
hub / github.com/containers/image / printCopyInfo

Method printCopyInfo

copy/progress_bars.go:123–127  ·  view source on GitHub ↗

printCopyInfo prints a "Copying ..." message on the copier if the output is set to `io.Discard`. In that case, the progress bars won't be rendered but we still want to indicate when blobs and configs are copied.

(kind string, info types.BlobInfo)

Source from the content-addressed store, hash-verified

121// set to `io.Discard`. In that case, the progress bars won't be rendered but
122// we still want to indicate when blobs and configs are copied.
123func (c *copier) printCopyInfo(kind string, info types.BlobInfo) {
124 if c.progressOutput == io.Discard {
125 c.Printf("Copying %s %s\n", kind, info.Digest)
126 }
127}
128
129// mark100PercentComplete marks the progress bars as 100% complete;
130// it may do so by possibly advancing the current state if it is below the known total.

Callers 2

copyConfigMethod · 0.80
copyLayerMethod · 0.80

Calls 1

PrintfMethod · 0.95

Tested by

no test coverage detected