moby/registry
Tibor Vass 99cd23cefd Revert "Remove the rest of v1 manifest support"
This reverts commit 98fc09128b in order to
keep registry v2 schema1 handling and libtrust-key-based engine ID.

Because registry v2 schema1 was not officially deprecated and
registries are still relying on it, this patch puts its logic back.

However, registry v1 relics are not added back since v1 logic has been
removed a while ago.

This also fixes an engine upgrade issue in a swarm cluster. It was relying
on the Engine ID to be the same upon upgrade, but the mentioned commit
modified the logic to use UUID and from a different file.

Since the libtrust key is always needed to support v2 schema1 pushes,
that the old engine ID is based on the libtrust key, and that the engine ID
needs to be conserved across upgrades, adding a UUID-based engine ID logic
seems to add more complexity than it solves the problems.

Hence reverting the engine ID changes as well.

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit f695e98cb7)
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-06-18 18:54:57 +00:00
..
resumable Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
auth.go *: remove interfacer linter from CI 2019-03-13 11:48:39 +11:00
auth_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
config.go Revert "Remove the rest of v1 manifest support" 2019-06-18 18:54:57 +00:00
config_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
config_unix.go Add canonical import comment 2018-02-05 16:51:57 -05:00
config_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
endpoint_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
endpoint_v1.go Various code-cleanup 2018-05-23 17:50:54 +02:00
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
registry.go registry: use len(via)!=0 instead of via!=nil 2018-12-11 16:37:16 +03:00
registry_mock_test.go Various code-cleanup 2018-05-23 17:50:54 +02:00
registry_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
service.go Revert "Remove the rest of v1 manifest support" 2019-06-18 18:54:57 +00:00
service_v1.go Add canonical import comment 2018-02-05 16:51:57 -05:00
service_v1_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
service_v2.go Format code with gofmt -s from go-1.11beta1 2018-09-06 15:24:16 -07:00
session.go Various code-cleanup 2018-05-23 17:50:54 +02:00
types.go Add canonical import comment 2018-02-05 16:51:57 -05:00