moby--moby/registry
Sebastiaan van Stijn 98202c86ad
registry: remove ErrInvalidRepositoryName
This error was only returned in a single location, and not used anywhere
as a specific type.

The error returned by `validateNoScheme()` also appeared to only be used in
one case; in all other cases, the error itself was ignored, and replaced with
a custom error. Because of this, this patch also replace `validateNoScheme()`
with a `hasScheme()` function that returns a boolean, to better match how it's
used.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-03-17 17:09:15 +01:00
..
resumable refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
auth.go registry: un-export HTTPClient() and NewTransport() 2022-03-17 17:08:05 +01:00
auth_test.go registry: tests: remove unused mock code and use gotest.tools 2022-03-17 17:07:48 +01:00
config.go registry: remove ErrInvalidRepositoryName 2022-03-17 17:09:15 +01:00
config_test.go registry: un-export config.LoadXXX() functions 2022-03-17 17:09:11 +01:00
config_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
config_windows.go registry: fix mtls config dir passing 2020-05-14 12:02:09 -07:00
endpoint_test.go registry: un-export V1Endpoint and NewV1Endpoint() 2022-03-17 17:09:00 +01:00
endpoint_v1.go registry: un-export Ping(), PingResult, remove v1Endpoint.Path() 2022-03-17 17:09:07 +01:00
errors.go registry: remove v1 code not related to searching 2020-10-28 15:23:27 +01:00
registry.go registry: remove unused error return from HostCertsDir() 2022-03-17 17:09:13 +01:00
registry_mock_test.go registry: tests: remove unused mock code and use gotest.tools 2022-03-17 17:07:48 +01:00
registry_test.go registry: un-export Session, remove NewSession() 2022-03-17 17:09:09 +01:00
service.go registry: remove ErrInvalidRepositoryName 2022-03-17 17:09:15 +01:00
service_v2.go registry: un-export DefaultService 2022-03-17 17:08:04 +01:00
session.go registry: un-export Session, remove NewSession() 2022-03-17 17:09:09 +01:00
types.go registry: un-export Ping(), PingResult, remove v1Endpoint.Path() 2022-03-17 17:09:07 +01:00