registryutil

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegistryHosts

func RegistryHosts(mirrors []string, authorizer docker.Authorizer, client *http.Client) docker.RegistryHosts

RegistryHosts returns a RegistryHosts function that tries mirrors before the upstream registry. Mirrors are only applied for Docker Hub (registry-1.docker.io / docker.io); all other registries use the default configuration. When mirrors is empty the default configuration is returned unchanged.

client is used for both mirror and upstream connections; pass nil to use http.DefaultClient.

Types

This section is empty.

Jump to

Keyboard shortcuts

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