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.
Click to show internal directories.
Click to hide internal directories.