moby/distribution/xfer
Sebastiaan van Stijn bb66ebd621
distribution: xfer.LayerDownloadManager.Download(): remove "os" argument
This argument was added for LCOW support, but it was only used to verify if
the passed platform (OS) matched the host. Given that all uses of this function
(except for one) passed runtime.GOOS, we may as well move the check to that
location.

We should do more cleaning up after this, and perform such validations early,
instead of passing platform around in too many places where it's only used for
similar validations. This is a first step in that direction.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-01-21 15:07:55 +01:00
..
download.go distribution: xfer.LayerDownloadManager.Download(): remove "os" argument 2022-01-21 15:07:55 +01:00
download_test.go distribution: xfer.LayerDownloadManager.Download(): remove "os" argument 2022-01-21 15:07:55 +01:00
transfer.go distribution/xfer: use "main" instead of "master" for progress channel 2020-07-14 10:48:30 +02:00
transfer_test.go TestTransfer*: don't call t.Fatal from a goroutine 2019-09-18 12:57:37 +02:00
upload.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
upload_test.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00