Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasRegistryHost ¶
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 ¶
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 Resolve ¶
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 ¶
SanitizeRegistryHost normalizes a registry URL-like value to a plain host[:port]. Examples:
- https://docker.io/ -> docker.io
- http://registry.local:5000/v2 -> registry.local:5000
Types ¶
This section is empty.