image

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

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

type Replacements map[imagename.ImageName]imagename.ImageName

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.

Jump to

Keyboard shortcuts

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