moby--moby/distribution/metadata
Michal Minář 0928f3f2e3
Compare V2Metadata with associated auth config
to avoid unnecessary blob re-uploads.

Cross repository mount from particular repo will most probably fail if
the user pushing to the registry is not the same as the one who pulled
or pushed to the source repo.

This PR attempts first to cross-repo mount from the source repositories
associated with the pusher's auth config. Then it falls back to other
repositories sorted from the most similar to the target repo to the
least.

It also prevents metadata deletion in cases where cross-repo mount fails
and the auth config hashes differ.

Signed-off-by: Michal Minář <miminar@redhat.com>
2016-09-29 14:16:00 +02:00
..
metadata.go Safer file io for configuration files 2016-04-21 11:31:15 -07:00
v1_id_service.go Improved push and pull with upload manager and download manager 2015-12-09 19:13:35 -08:00
v1_id_service_test.go Improved push and pull with upload manager and download manager 2015-12-09 19:13:35 -08:00
v2_metadata_service.go Compare V2Metadata with associated auth config 2016-09-29 14:16:00 +02:00
v2_metadata_service_test.go Changes cross-repository blob mounting to a blob Create option 2016-01-14 14:26:03 -08:00