MCPcopy
hub / github.com/google/go-containerregistry / progressWriter

Struct progressWriter

pkg/v1/tarball/write.go:414–418  ·  view source on GitHub ↗

progressWriter is a writer which will send the download progress

Source from the content-addressed store, hash-verified

412
413// progressWriter is a writer which will send the download progress
414type progressWriter struct {
415 w io.Writer
416 updates chan<- v1.Update
417 size, complete int64
418}
419
420func (pw *progressWriter) Write(p []byte) (int, error) {
421 n, err := pw.w.Write(p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected