moby/distribution
Aaron Lehmann 589a5226e7 Allow v1 protocol fallback when pulling all tags from a repository unknown to v2 registry
This is a followup to #18839. That PR relaxed the fallback logic so that
if a manifest doesn't exist on v2, or the user is unauthorized to access
it, we try again with the v1 protocol. A similar special case is needed
for "pull all tags" (docker pull -a). If the v2 registry doesn't
recognize the repository, or doesn't allow the user to access it, we
should fall back to v1 and try to pull all tags from the v1 registry.
Conversely, if the v2 registry does allow us to list the tags, there
should be no fallback, even if there are errors pulling those tags.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-12-23 15:21:43 -08:00
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata Improved push and pull with upload manager and download manager 2015-12-09 19:13:35 -08:00
xfer Add metadata function to layer store 2015-12-14 16:52:15 -08:00
pull.go Do not fall back to the V1 protocol when we know we are talking to a V2 registry 2015-12-16 15:02:03 -08:00
pull_v1.go Make v1 pull/push output consistent with v2 2015-12-16 15:02:24 -08:00
pull_v2.go Allow v1 protocol fallback when pulling all tags from a repository unknown to v2 registry 2015-12-23 15:21:43 -08:00
pull_v2_test.go Add own reference package wrapper 2015-12-16 11:58:52 -08:00
pull_v2_unix.go Add distribution package 2015-11-24 09:40:24 -08:00
pull_v2_windows.go Add distribution package 2015-11-24 09:40:24 -08:00
push.go Do not fall back to the V1 protocol when we know we are talking to a V2 registry 2015-12-16 15:02:03 -08:00
push_v1.go Make v1 pull/push output consistent with v2 2015-12-16 15:02:24 -08:00
push_v2.go Do not fall back to the V1 protocol when we know we are talking to a V2 registry 2015-12-16 15:02:03 -08:00
push_v2_test.go Improved push and pull with upload manager and download manager 2015-12-09 19:13:35 -08:00
push_v2_unix.go Add distribution package 2015-11-24 09:40:24 -08:00
push_v2_windows.go Add distribution package 2015-11-24 09:40:24 -08:00
registry.go Do not fall back to the V1 protocol when we know we are talking to a V2 registry 2015-12-16 15:02:03 -08:00
registry_unit_test.go Do not fall back to the V1 protocol when we know we are talking to a V2 registry 2015-12-16 15:02:03 -08:00