ocidocker

package
v0.0.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DockerHubHosts is a map of hostnames associated with Docker Hub's registry. The number is a priority ranking
	// used to determine the order we will search for auth credentials
	DockerHubHosts = map[string]byte{
		"docker.io":               0,
		"index.docker.io":         1,
		"registry-1.docker.io":    2,
		"registry.hub.docker.com": 3,
	}
	// DockerHubHostsSorted is a slice of hostnames associated with Docker Hub's registry, sorted by their ranking
	DockerHubHostsSorted = sync.OnceValue(func() []string {
		sorted := make([]string, len(DockerHubHosts))
		for host, rank := range DockerHubHosts {
			sorted[rank] = host
		}
		return sorted
	})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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