package
0.0.0-20240818021530-f5e744f7964a
Repository: https://github.com/kaisenlinux/docker.io.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CertsDir is the directory where certificates are stored.
ConvertToHostname normalizes a registry URL which has http|https prepended to just its hostname.
GetAuthConfigKey special-cases using the full index address of the official index as the AuthConfig key, and uses the (host)name[:port] for private indexes.
Headers returns request modifiers with a User-Agent and metaHeaders.
HostCertsDir returns the config directory for a specific host.
NewService returns a new instance of [Service] ready to be installed into an engine.
NewStaticCredentialStore returns a credential store which always returns the same credential values.
ParseRepositoryInfo performs the breakdown of a repository name into a [RepositoryInfo], but lacks registry configuration.
ParseSearchIndexInfo will use repository name to get back an indexInfo.
PingV2Registry attempts to ping a v2 registry and on success return a challenge manager for the supported authentication types.
ReadCertsDirectory reads the directory for TLS certificates including roots and certificate pairs and updates the provided TLS configuration.
ResolveAuthConfig matches an auth configuration to a server address or a URL.
SetCertsDir allows the default certs directory to be changed.
ValidateIndexName validates an index name.
ValidateMirror validates an HTTP(S) registry mirror.
# Constants
Deprecated: v1 registries are deprecated, and endpoints are always v2.
Deprecated: v1 registries are deprecated, and endpoints are always v2.
AuthClientID is used the ClientID used for the token server.
DefaultNamespace is the default namespace.
DefaultRegistryHost is the hostname for the default (Docker Hub) registry used for pushing and pulling images.
IndexHostname is the index hostname, used for authentication and image search.
IndexName is the name of the index.
IndexServer is used for user auth and image search.
# Variables
DefaultV2Registry is the URI of the default (Docker Hub) registry.
# Structs
APIEndpoint represents a remote API endpoint.
PingResponseError is used when the response from a ping was received but invalid.
RepositoryInfo describes a repository.
Service is a registry service.
ServiceOptions holds command line options.
# Type aliases
APIVersion is an integral representation of an API version (presently either 1 or 2)
Deprecated: v1 registries are deprecated, and endpoints are always v2.