imageref

package
v1.0.0-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 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