imageref

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: EPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCacheRegistry

func FromCacheRegistry(registryURL string) bool

FromCacheRegistry reports whether registryURL is the special from_cache sentinel.

func HasRegistryHost

func HasRegistryHost(imageRef string) bool

HasRegistryHost returns true when imageRef already contains an explicit registry host. Docker reference heuristic: first component before '/' is considered a host when it contains '.' or ':' or equals localhost.

func Match

func Match(a, b, registryURL string, fromCache bool) bool

Match reports whether two image refs refer to the same image when resolved against registryURL. fromCache mirrors launch/pull behavior for from_cache registries.

func MatchParamsOptional

func MatchParamsOptional(registryURL string) (url string, fromCache bool)

MatchParamsOptional returns registryURL and fromCache for image match/lookup. An empty registryURL uses fromCache=true (cache/drift lookup semantics).

func Resolve

func Resolve(imageRef, registryURL string, fromCache bool) (string, []string)

Resolve returns pull and lookup references for an image. - fromCache=true never mutates the returned pull ref (it is not used for pulling) - lookup refs include safe aliases to improve local cache matching.

func ResolveForRegistry

func ResolveForRegistry(imageName, registryURL string) (pullRef string, lookup []string, fromCache bool)

ResolveForRegistry resolves pull and lookup refs for imageName against registryURL. fromCache mirrors pull vs from_cache registry behavior used across process manager.

func SanitizeRegistryHost

func SanitizeRegistryHost(raw string) string

SanitizeRegistryHost normalizes a registry URL-like value to a plain host[:port]. Examples:

Types

This section is empty.

Jump to

Keyboard shortcuts

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