helpers

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRegistryDomain       = "docker.io"
	DefaultRegistryHost         = "index.docker.io"
	LegacyDefaultRegistryDomain = "index.docker.io"
)

domains for Docker Hub, the default registry

Variables

This section is empty.

Functions

func GetRegistryAddress

func GetRegistryAddress(imageRef string) (string, error)

GetRegistryAddress parses an image name and returns the address of the specified registry

func NewHTTPClient added in v0.1.8

func NewHTTPClient() *http.Client

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 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.

Jump to

Keyboard shortcuts

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