summaryrefslogtreecommitdiff
path: root/pkg/progress/progressreader_test.go
Commit message (Collapse)AuthorAgeFilesLines
* refactor: move from io/ioutil to io and os packageEng Zer Jun2021-08-271-4/+3
| | | | | | | | The io/ioutil package has been deprecated in Go 1.16. This commit replaces the existing io/ioutil functions with their new definitions in io and os packages. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* Add canonical import commentDaniel Nephin2018-02-051-1/+1
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* pkg/*: clean up a few issuesunclejack2017-03-301-1/+1
| | | | Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
* Improved push and pull with upload manager and download managerAaron Lehmann2015-12-091-0/+75
This commit adds a transfer manager which deduplicates and schedules transfers, and also an upload manager and download manager that build on top of the transfer manager to provide high-level interfaces for uploads and downloads. The push and pull code is modified to use these building blocks. Some benefits of the changes: - Simplification of push/pull code - Pushes can upload layers concurrently - Failed downloads and uploads are retried after backoff delays - Cancellation is supported, but individual transfers will only be cancelled if all pushes or pulls using them are cancelled. - The distribution code is decoupled from Docker Engine packages and API conventions (i.e. streamformatter), which will make it easier to split out. This commit also includes unit tests for the new distribution/xfer package. The tests cover 87.8% of the statements in the package. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>