Documentation
¶
Index ¶
Constants ¶
const ( DefaultRegistryDomain = "docker.io" DefaultRegistryHost = "index.docker.io" )
domains for Docker Hub, the default registry
Variables ¶
This section is empty.
Functions ¶
func GetRegistryAddress ¶
GetRegistryAddress parses an image name and returns the address of the specified registry
func NewHTTPClient ¶ added in v0.1.8
NewHTTPClient returns a shared *http.Client with TLS verification configured according to ShouldSkipRegistryTLSVerify. The client is initialized once on first call and reused on all subsequent calls, so the TLS setting is read only at first use and the security warning is emitted at most once.
func NormalizeRegistryHost ¶ added in v1.0.0
NormalizeRegistryHost maps the forms a registry host is commonly written in onto the address GetRegistryAddress returns, so the two can be compared.
It accepts a bare domain, the docker.io alias for Docker Hub, and the "https://index.docker.io/v1/" key that docker login writes into config.json. A port is significant and is preserved: a different port is a different registry.
func ShouldSkipRegistryTLSVerify ¶ added in v0.1.8
func ShouldSkipRegistryTLSVerify() bool
ShouldSkipRegistryTLSVerify returns true if the DOCKWATCH_REGISTRY_TLS_SKIP_VERIFY environment variable is set to a truthy value.
Types ¶
This section is empty.