Documentation ¶
Overview ¶
Utilities for container image reference strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigestExists ¶
check if image reference contains digest
func GetCanonicalRef ¶
Given an image reference and a manifest digest string, returns an untagged canonical reference for the image. If the image reference has a digest then the canonical reference will still use the provided manifest digest overwriting the existing digest in the image reference.
func GetDigestFromImageRef ¶
func GetDigestFromImageRef(imageRef string) digest.Digest
Helper function to parse an image reference and get digest from it if found. The caller must check that the returned digest is non-empty before using it.
func GetDigestFromRepoDigests ¶
Finds a repo digest matching the provided image reference from a list of repo digests and returns the repo digest's digest.
Types ¶
This section is empty.