dockerhub

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(tarFile, architecture, OS, destination string) error

Extract all files from a `docker save` tarFile matching a given architecture and OS to destination. Note this doesn't handle files which have been deleted in layers.

func PullPlatform

func PullPlatform(ctx context.Context, image, destination, requiredOs, requiredArch string, mirrors []string) error

func ResolveDigest added in v1.2.4

func ResolveDigest(ctx context.Context, ref string, mirrors []string) (string, error)

ResolveDigest resolves the given image reference (e.g. "registry-1.docker.io/docker/foo:tag") against the registry (with optional mirrors tried first for Docker Hub references) and returns the resolved digest. It does not download any blobs; it issues only the manifest HEAD/GET that the registry resolver needs.

Authentication uses the same credentials lookup as PullPlatform (env vars DOCKER_HUB_USER/DOCKER_HUB_PASSWORD or ~/.docker/config.json), so a prior `docker login <mirror-host>` is honored.

Types

type ManifestNotFoundError

type ManifestNotFoundError struct {
	// contains filtered or unexported fields
}

func (*ManifestNotFoundError) Error

func (r *ManifestNotFoundError) Error() string

Jump to

Keyboard shortcuts

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