A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/moby/moby/v2@v2.0.0-20250814210528-a34c4d9bb99f/daemon/pkg/registry below:

registry package - github.com/moby/moby/v2/daemon/pkg/registry - Go Packages

Package registry contains client primitives to interact with a remote Docker registry.

View Source
const (
	
	DefaultNamespace = "docker.io"
	
	
	
	
	
	
	DefaultRegistryHost = "registry-1.docker.io"
	
	IndexHostname = "index.docker.io"
	
	IndexServer = "https://" + IndexHostname + "/v1/"
	
	IndexName = "docker.io"
)

TODO(thaJeztah) both the "index.docker.io" and "registry-1.docker.io" domains are here for historic reasons and backward-compatibility. These domains are still supported by Docker Hub (and will continue to be supported), but there are new domains already in use, and plans to consolidate all legacy domains to new "canonical" domains. Once those domains are decided on, we should update these consts (but making sure to preserve compatibility with existing installs, clients, and user configuration).

AuthClientID is used the ClientID used for the token server

CertsDir is the directory where certificates are stored.

- Linux: "/etc/docker/certs.d/" - Linux (with rootlessKit): $XDG_CONFIG_HOME/docker/certs.d/" or "$HOME/.config/docker/certs.d/" - Windows: "%PROGRAMDATA%/docker/certs.d/"

TODO(thaJeztah): certsDir but stored in our config, and passed when needed. For the CLI, we should also default to same path as rootless.

ConvertToHostname normalizes a registry URL which has http|https prepended to just its hostname. It is used to match credentials, which may be either stored as hostname or as hostname including scheme (in legacy configuration files).

Headers returns request modifiers with a User-Agent and metaHeaders

NewStaticCredentialStore returns a credential store which always returns the same credential values.

PingV2Registry attempts to ping a v2 registry and on success return a challenge manager for the supported authentication types. If a response is received but cannot be interpreted, a PingResponseError will be returned.

ValidateIndexName validates an index name. It is used by the daemon to validate the daemon configuration.

ValidateMirror validates and normalizes an HTTP(S) registry mirror. It returns an error if the given mirrorURL is invalid, or the normalized format for the URL otherwise.

It is used by the daemon to validate the daemon configuration.

APIEndpoint represents a remote API endpoint

type PingResponseError struct {
	Err error
}

PingResponseError is used when the response from a ping was received but invalid.

Service is a registry service. It tracks configuration data such as a list of mirrors.

NewService returns a new instance of Service ready to be installed into an engine.

Auth contacts the public registry with the provided credentials, and returns OK if authentication was successful. It can be used to verify the validity of a client's credentials.

IsInsecureRegistry returns true if the registry at given host is configured as insecure registry.

LookupPullEndpoints creates a list of v2 endpoints to try to pull from, in order of preference. It gives preference to mirrors over the actual registry, and HTTPS over plain HTTP.

LookupPushEndpoints creates a list of v2 endpoints to try to push to, in order of preference. It gives preference to HTTPS over plain HTTP. Mirrors are not included.

ReplaceConfig prepares a transaction which will atomically replace the registry service's configuration when the returned commit function is called.

ResolveAuthConfig looks up authentication for the given reference from the given authConfigs.

IMPORTANT: This function is for internal use and should not be used by external projects.

Search queries the public registry for repositories matching the specified search term and filters.

ServiceConfig returns a copy of the public registry service's configuration.

type ServiceOptions struct {
	Mirrors            []string `json:"registry-mirrors,omitempty"`
	InsecureRegistries []string `json:"insecure-registries,omitempty"`
}

ServiceOptions holds command line options.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4