Documentation
¶
Index ¶
- Constants
- func DecodeAuthHeader(authEncoded string) (dockerregistry.AuthConfig, error)
- func EncodeAuthHeader(username, password, serverAddress string) (string, error)
- func ExtractRegistryHost(imageRef string) string
- func GetRegistryAddress(imageRef string) (string, error)
- func IsRegistryMatch(left, right string) bool
- func LookupKeys(url string) []string
- func NormalizeRegistryForComparison(url string) string
- func NormalizeRegistryURL(url string) string
- func SplitRegistryURL(url string) (host, namespace string)
Constants ¶
View Source
const ( DefaultRegistry = "registry-1.docker.io" DefaultRegistryDomain = "docker.io" DefaultRegistryHost = "index.docker.io" ContentDigestHeader = "Docker-Content-Digest" ChallengeHeader = "WWW-Authenticate" )
Variables ¶
This section is empty.
Functions ¶
func DecodeAuthHeader ¶
func DecodeAuthHeader(authEncoded string) (dockerregistry.AuthConfig, error)
func EncodeAuthHeader ¶
func ExtractRegistryHost ¶
func GetRegistryAddress ¶
func IsRegistryMatch ¶
func LookupKeys ¶
func NormalizeRegistryURL ¶
func SplitRegistryURL ¶ added in v2.15.0
SplitRegistryURL separates a registry URL into its comparison host and an optional repository namespace: "https://ghcr.io/acme/" yields ("ghcr.io", "acme").
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.