Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
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 ResolveDigest ¶ added in v1.2.4
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