containerd/remotes
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
..
docker remotes/docker: Only return "already exists" on push when the upload was successful 2021-04-06 19:45:24 -07:00
errors Include URL and method in ErrUnexpectedStatus 2021-03-11 14:28:46 +00:00
handlers_test.go Word spelling correction 2019-09-25 16:49:54 +08:00
handlers.go Add OCI ref.name to unique key in remotes handler 2021-04-01 14:20:30 -04:00
resolver.go Correct PusherFunc helper to match Pusher intf 2019-04-12 09:12:55 -05:00