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)
| 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. |
| 123 | func (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. |
no test coverage detected