docker/distribution
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
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata Compare V2Metadata with associated auth config 2016-09-29 14:16:00 +02:00
xfer Use describable interfaces 2016-06-06 17:49:34 -07:00
errors.go swarm/controller: allow cancellation to propagate 2016-07-25 18:31:24 -07:00
pull.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
pull_v1.go Fix logrus formatting 2016-06-11 13:16:55 -07:00
pull_v2.go Cleanup pullSchema2 2016-09-05 15:02:14 +08:00
pull_v2_test.go Windows CI Unit Test: Distribution turn off failing tests 2016-02-28 20:02:51 -08:00
pull_v2_unix.go Removing old custom RootFS behavior on Windows. 2016-07-29 14:15:59 -07:00
pull_v2_windows.go Removing old custom RootFS behavior on Windows. 2016-07-29 14:15:59 -07:00
push.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
push_v1.go Pass upstream client's user agent through to registry on operations beyond pulls 2016-03-21 14:31:47 -07:00
push_v2.go Compare V2Metadata with associated auth config 2016-09-29 14:16:00 +02:00
push_v2_test.go Compare V2Metadata with associated auth config 2016-09-29 14:16:00 +02:00
registry.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
registry_unit_test.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00