registry

package
v0.0.0-...-874b831 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package registry is a fork of github.com/docker/docker/registry, taken at commit moby@49306c6. Git history was not preserved in this fork, but can be found using the URLs provided.

This fork was created to remove the dependency on the "Moby" codebase, and because the CLI only needs a subset of its features. The original package was written specifically for use in the daemon code, and includes functionality that cannot be used in the CLI.

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

Index

Constants

View Source
const AuthClientID = "docker"

AuthClientID is used the ClientID used for the token server

View Source
const IndexName = "docker.io"

IndexName is the name of the index

Variables

This section is empty.

Functions

func Headers

func Headers(userAgent string, metaHeaders http.Header) []transport.RequestModifier

Headers returns request modifiers with a User-Agent and metaHeaders

func NewIndexInfo

func NewIndexInfo(reposName reference.Named) *registry.IndexInfo

NewIndexInfo creates a new registry.IndexInfo or the given repository-name, and detects whether the registry is considered "secure" (non-localhost).

func ReadCertsDirectory

func ReadCertsDirectory(tlsConfig *tls.Config, directory string) error

ReadCertsDirectory reads the directory for TLS certificates including roots and certificate pairs and updates the provided TLS configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL