containerd/remotes/docker
Aaron Lehmann 4c1fa57194 remotes/docker: Only return "already exists" on push when the upload was successful
The `(dockerPusher).Push` method uses a `StatusTracker` to check if an
upload already happened, before repeating the upload. However, there is
no provision for failure handling. If a PUT request returns an error,
the `StatusTracker` will still see the upload as if it happened
successfully. Add a status boolean so that only successful uploads
short-circuit `Push`.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
2021-04-06 19:45:24 -07:00
..
auth docs: Various typo found by codespell 2020-12-22 13:22:16 +08:00
config Keep host order as defined in TOML file 2021-04-01 09:29:16 -07:00
schema1 fix: polish log to make more clear 2019-06-20 20:46:26 +08:00
authorizer.go Log unexpected responses 2020-09-03 14:52:11 +01:00
converter.go bugfix: support application/octet-stream during pull 2018-12-29 13:58:36 +08:00
errcode.go docs: Various typo found by codespell 2020-12-22 13:22:16 +08:00
errdesc.go Add distribution subpkgs to core 2019-10-07 13:38:12 -04:00
fetcher_test.go Add namespace query parameter for registry proxying 2020-08-03 09:32:44 -07:00
fetcher.go Export repository scope helper functions 2020-10-06 10:49:01 +09:00
handler_test.go Add unit test for func in remotes/docker/handler.go 2020-05-28 16:54:33 +08:00
handler.go remotes: support cross-repo-push 2019-06-13 09:51:46 +08:00
httpreadseeker.go httpReadSeeker: fix typo in error-message 2020-10-29 23:07:43 +01:00
pusher_test.go Add unit test for func in remotes/docker/pusher.go 2021-01-19 16:24:27 +08:00
pusher.go remotes/docker: Only return "already exists" on push when the upload was successful 2021-04-06 19:45:24 -07:00
registry_test.go Use net.IP.IsLoopback() to match loopback addresses 2021-03-15 09:57:01 +05:30
registry.go Merge pull request #5160 from MadhavJivrajani/master 2021-03-17 09:37:17 -04:00
resolver_test.go Add namespace query parameter for registry proxying 2020-08-03 09:32:44 -07:00
resolver.go Ensure request.header is never nil 2021-01-13 05:46:50 +11:00
scope_test.go Export repository scope helper functions 2020-10-06 10:49:01 +09:00
scope.go Export repository scope helper functions 2020-10-06 10:49:01 +09:00
status.go remotes/docker: Only return "already exists" on push when the upload was successful 2021-04-06 19:45:24 -07:00