Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
func Extract(manifests []*pullspec.OperatorCSV) ([]string, error)
Extract finds and returns all image names in a manifest
func Pin ¶
func Pin(resolver imageresolver.ImageResolver, manifests []*pullspec.OperatorCSV) error
Pin iterates through manifests and replaces all image tags with resolved digests.
func Replace ¶
func Replace(manifests []*pullspec.OperatorCSV, replacements Replacements) error
Replace takes a list of manifests and replaces the images specified in the replacement mapping.
Types ¶
type Replacements ¶
Repleamcents contains a mapping of image names to alternative image names that should be used instead. Usually image names with tags to image names with digests.
func NewReplacements ¶
func NewReplacements(replacements map[string]string) (Replacements, error)
NewReplacements takes in raw replacements and parses them to image names.
func Resolve ¶
func Resolve(resolver imageresolver.ImageResolver, references []string) (Replacements, error)
Resolver takes a list of images and returns a mapping of the images to an image name with a digst.
Click to show internal directories.
Click to hide internal directories.