moby/registry
Sebastiaan van Stijn cb76638699
registry/search: pass User-Agent through headers
Commit 3991faf464 moved search into the registry
package, which also made the `dockerversion` package a dependency for registry,
which brings additional (indirect) dependencies, such as `pkg/parsers/kernel`,
and `golang.org/x/sys/windows/registry`.

Client code, such as used in docker/cli may depend on the `registry` package,
but should not depend on those additional dependencies.

This patch moves setting the userAgent to the API router, and instead of
passing it as a separate argument, includes it into the "headers".

As these headers now not only contain the `X-Meta-...` headers, the variables
were renamed accordingly.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-03-21 14:41:29 +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: remove dependency on rootlesskit, add SetCertsDir() 2022-03-25 16:21:45 +01:00
config_test.go runconfig, oci, image, layer, distribution: fix empty-lines (revive) 2022-09-28 01:58:52 +02: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