refs

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDigestPinnedReference added in v0.3.3

func IsDigestPinnedReference(ref string) bool

IsDigestPinnedReference reports whether ref names an immutable repository digest.

func IsImageIDLikeReference

func IsImageIDLikeReference(ref string) bool

IsImageIDLikeReference reports whether ref is a Docker image ID rather than a pullable tag.

func NormalizeImageUpdateRef

func NormalizeImageUpdateRef(imageRef string) string

NormalizeImageUpdateRef returns the canonical image reference key used for update match.

Types

type Reference

type Reference struct {
	NormalizedRef string
	RegistryHost  string
	Repository    string
	Tag           string
}

Reference is a normalized Docker image reference.

func NormalizeReference

func NormalizeReference(imageRef string) (*Reference, error)

NormalizeReference parses and canonicalizes an image reference.

Jump to

Keyboard shortcuts

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