MCPcopy
hub / github.com/moby/moby / progressOutput

Struct progressOutput

client/pkg/streamformatter/streamformatter.go:187–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187type progressOutput struct {
188 sf formatProgress
189 out io.Writer
190
191 // TODO(thaJeztah): investigate if this can be removed or replaced.
192 //
193 // It was a workaround for responses adding an extra (final) (aux) message
194 // progress; see https://github.com/moby/moby/pull/1425. When updating, also
195 // check for the similar implementation in daemon/internal/streamformatter.
196 newLines bool
197 mu sync.Mutex
198}
199
200// WriteProgress formats progress information from a ProgressReader.
201func (out *progressOutput) WriteProgress(prog progress.Progress) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected