package
1.4.0-beta.2
Repository: https://github.com/crisesw/containerd.git
Documentation: pkg.go.dev

# Packages

config package containers utilities for helping configure the Docker resolver.
No description provided by the author

# Functions

AppendDistributionSourceLabel updates the label of blob with distribution source.
ConfigureDefaultRegistries is used to create a default configuration for registries.
ConvertManifest changes application/octet-stream to schema2 config media type if need.
DefaultHost is the default host function.
GetErrorAllDescriptors returns a slice of all ErrorDescriptors that are registered, irrespective of what group they're in.
GetErrorCodeGroup returns the named group of error descriptors.
GetGroupNames returns the list of Error group names that are registered.
MatchAllHosts is a host match function which is always true.
MatchLocalhost is a host match function which returns true for localhost.
NewAuthorizer creates a Docker authorizer using the provided function to get credentials for the token server or basic auth.
NewDockerAuthorizer creates an authorizer using Docker's registry authentication spec.
NewInMemoryTracker returns a StatusTracker that tracks content status in-memory.
NewResolver returns a new resolver to a Docker registry.
ParseErrorCode returns the value by the string error code.
Register will make the passed-in error known to the environment and return a new ErrorCode.
Registries joins multiple registry configuration functions, using the same order as provided within the arguments.
WithAuthClient provides the HTTP client for the authorizer.
WithAuthCreds provides a credential function to the authorizer.
WithAuthHeader provides HTTP headers for authorization.
WithAuthorizer configures the default authorizer for a registry.
WithClient configures the default http client for a registry.
WithHostTranslator defines the default translator to use for registry hosts.
WithPlainHTTP configures registries to use plaintext http scheme for the provided host match function.
WithScope appends a custom registry auth scope to the context.

# Constants

HostCapabilityPull represents the capability to fetch manifests and blobs by digest.
HostCapabilityPush represents the capability to push blobs and manifests.
HostCapabilityResolve represents the capability to fetch manifests by name.
LegacyConfigMediaType should be replaced by OCI image spec.

# Variables

ErrInvalidAuthorization is used when credentials are passed to a server but those credentials are rejected.
ErrNoToken is returned if a request is successful but the body does not contain an authorization token.
ErrorCodeDenied is returned if a client does not have sufficient permission to perform an action.
ErrorCodeTooManyRequests is returned if a client attempts too many times to contact a service endpoint.
ErrorCodeUnauthorized is returned if a request requires authentication.
ErrorCodeUnavailable provides a common error to report unavailability of a service or endpoint.
ErrorCodeUnknown is a generic error that can be used as a last resort if there is no situation-specific error message that can be used.
ErrorCodeUnsupported is returned when an operation is not supported.
MaxManifestSize represents the largest size accepted from a registry during resolution.

# Structs

Error provides a wrapper around ErrorCode with extra Details provided.
ErrorDescriptor provides relevant information about a given error code.
RegistryHost represents a complete configuration for a registry host, representing the capabilities, authorizations, connection configuration, and location.
ResolverOptions are used to configured a new Docker register resolver.
Status of a content operation.

# Interfaces

Authorizer is used to authorize HTTP requests based on 401 HTTP responses.
ErrorCoder is the base interface for ErrorCode and Error allowing users of each to just call ErrorCode to get the real ID of each.
StatusTracker to track status of operations.

# Type aliases

AuthorizerOpt configures an authorizer.
ErrorCode represents the error type.
Errors provides the envelope for multiple errors and a few sugar methods for use within the application.
HostCapabilities represent the capabilities of the registry host.
RegistryHosts fetches the registry hosts for a given namespace, provided by the host component of an distribution image reference.
RegistryOpt defines a registry default option.