moby/registry
Régis Behmo 3d8f7d0683
registry: allow mirror path prefix in config
Path prefixes were originally disallowed in the `--registry-mirrors`
option because the /v1 endpoint was assumed to be at the root of the
URI. This is no longer the case in v2.

Close #36598

Signed-off-by: Régis Behmo <regis@behmo.com>
(cherry picked from commit c587ba3422)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-12-15 19:03:48 +01:00
..
resumable refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
auth.go registry: use types/registry.AuthConfig 2022-07-29 23:05:20 +02:00
auth_test.go registry: use types/registry.AuthConfig 2022-07-29 23:05:20 +02:00
config.go registry: allow mirror path prefix in config 2023-12-15 19:03:48 +01:00
config_test.go registry: allow mirror path prefix in config 2023-12-15 19:03:48 +01:00
config_unix.go registry: remove dependency on rootlesskit, add SetCertsDir() 2022-03-25 16:21:45 +01:00
config_windows.go all: replace strings.Replace with strings.ReplaceAll 2022-05-09 19:45:40 +08:00
endpoint_test.go registry/search: pass User-Agent through headers 2023-03-21 14:41:29 +01:00
endpoint_v1.go registry/search: pass User-Agent through headers 2023-03-21 14:41:29 +01:00
errors.go registry: return "errdefs" compatible error types 2022-03-17 17:12:13 +01:00
registry.go registry: defaultService: use sync.RWMutex 2022-03-17 17:12:23 +01:00
registry_mock_test.go registry: use http.NewServeMux for tests instead of gorilla/mux 2022-12-19 13:25:43 +01:00
registry_test.go registry/search: pass User-Agent through headers 2023-03-21 14:41:29 +01:00
search.go registry/search: pass User-Agent through headers 2023-03-21 14:41:29 +01:00
search_test.go Move filtered registry search out of image service 2023-03-10 18:36:33 -05:00
service.go registry: return concrete service type 2023-03-10 18:38:08 -05:00
service_v2.go registry: return concrete service type 2023-03-10 18:38:08 -05:00
session.go Move filtered registry search out of image service 2023-03-10 18:36:33 -05:00
types.go registry: remove unneeded alias for api/types/registry import 2022-03-17 17:12:19 +01:00