| 185 | } |
| 186 | |
| 187 | type 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. |
| 201 | func (out *progressOutput) WriteProgress(prog progress.Progress) error { |
nothing calls this directly
no outgoing calls
no test coverage detected