registry

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package registry asks image registries what a tag points at, without downloading the image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Digest

func Digest(ctx context.Context, ref string) (digest.Digest, error)

Digest returns the digest ref's tag points at now. Registries answer it with a HEAD request, which Docker Hub does not count as a pull.

func Version

func Version(ctx context.Context, ref string) (string, error)

Version reads the version an image says it is, for this machine's platform: the org.opencontainers.image.version label, or a variable such as PG_VERSION or NGINX_VERSION. It is empty when the image says nothing. ref may be pinned to a digest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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