images

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compatibilitier

type Compatibilitier interface {
	AddDeprecated(deprecated ...string)
	AddRemoved(removed ...string)
	AddChanged(changed ...string)
}

Compatibilitier is the interface for the compatibility checker

type ImagesConfiguration

type ImagesConfiguration struct {

	// DEPRECATEDImagesTree is replaced by Images
	DEPRECATEDImagesTree map[string]map[string]*image.Image `yaml:"images_tree"`
	Images               map[string]map[string]*image.Image `yaml:"images"`
	// contains filtered or unexported fields
}

ImagesConfiguration

Image structure image_tree:

image_name:
	image_tag1:
		<Image>
	image_tag2:
		<Image>

func NewImagesConfiguration

func NewImagesConfiguration(fs afero.Fs, graph ImagesGraphTemplatesStorer, store repository.ImagesStorer, render repository.Renderer, compatibility Compatibilitier) *ImagesConfiguration

NewImagesConfiguration method create a new ImagesConfiguration struct

func (*ImagesConfiguration) CheckCompatibility

func (c *ImagesConfiguration) CheckCompatibility() error

CheckCompatibility method ensures that ImagesConfiguration is compatible with current version

func (*ImagesConfiguration) LoadImagesConfiguration

func (c *ImagesConfiguration) LoadImagesConfiguration(path string) error

LoadImagesConfiguration method generate and return an ImagesConfiguration struct from a file

func (*ImagesConfiguration) LoadImagesConfigurationFromDir

func (c *ImagesConfiguration) LoadImagesConfigurationFromDir(dir string) error

LoadImagesConfigurationFromDir loads images tree from all files on directory

func (*ImagesConfiguration) LoadImagesConfigurationFromFile

func (c *ImagesConfiguration) LoadImagesConfigurationFromFile(path string) error

LoadImagesConfigurationFromFile loads images tree from file

func (*ImagesConfiguration) LoadImagesToStore

func (c *ImagesConfiguration) LoadImagesToStore(path string) error

LoadImagesToStore method loads images defined on configuration to images store

type ImagesGraphTemplatesStorer

type ImagesGraphTemplatesStorer interface {
	AddImage(name, version string, image *configimage.Image) error
	Iterate() <-chan graph.GraphNoder
}

TemplatesStorer interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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