imageprovider

package
v0.1.78 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReleaseImageProvider

type ReleaseImageProvider interface {
	GetImage(key string) string
	ImageExist(key string) (string, bool)
	Version() string
	ComponentVersions() (map[string]string, error)
	ComponentImages() map[string]string
}

ReleaseImageProvider provides the functionality to retrieve OpenShift components' container image from a release image.

type SimpleReleaseImageProvider added in v0.1.49

type SimpleReleaseImageProvider struct {
	*releaseinfo.ReleaseImage
	// contains filtered or unexported fields
}

func New

func NewFromImages

func NewFromImages(componentsImages map[string]string) *SimpleReleaseImageProvider

func NewWithRegistryOverrides added in v0.1.78

func NewWithRegistryOverrides(releaseImage *releaseinfo.ReleaseImage, registryOverrides map[string]string) *SimpleReleaseImageProvider

NewWithRegistryOverrides creates a SimpleReleaseImageProvider that applies registry overrides to all component images. This ensures init containers and other sub-resources created by CPO use the overridden image references.

The returned provider owns a private copy of releaseImage.ComponentImages() so callers can safely mutate it.

func (*SimpleReleaseImageProvider) ComponentImages added in v0.1.60

func (p *SimpleReleaseImageProvider) ComponentImages() map[string]string

func (*SimpleReleaseImageProvider) GetImage added in v0.1.49

func (p *SimpleReleaseImageProvider) GetImage(key string) string

func (*SimpleReleaseImageProvider) GetMissingImages added in v0.1.49

func (p *SimpleReleaseImageProvider) GetMissingImages() []string

func (*SimpleReleaseImageProvider) ImageExist added in v0.1.49

func (p *SimpleReleaseImageProvider) ImageExist(key string) (string, bool)

Jump to

Keyboard shortcuts

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