Documentation
¶
Index ¶
- type Compatibilitier
- type ImagesConfiguration
- func (c *ImagesConfiguration) CheckCompatibility() error
- func (c *ImagesConfiguration) LoadImagesConfiguration(path string) error
- func (c *ImagesConfiguration) LoadImagesConfigurationFromDir(dir string) error
- func (c *ImagesConfiguration) LoadImagesConfigurationFromFile(path string) error
- func (c *ImagesConfiguration) LoadImagesToStore(path string) error
- type ImagesGraphTemplatesStorer
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
Click to show internal directories.
Click to hide internal directories.