images

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FabricVersion

type FabricVersion struct {
	Versions *deployer.Versions
}

FabricVersion handles validation on fabric version

func (*FabricVersion) Normalize

func (fv *FabricVersion) Normalize(instance FabricVersionInstance) string

Normalize normalizes the fabric version to x.x.x-x

func (*FabricVersion) Validate

func (fv *FabricVersion) Validate(instance FabricVersionInstance) error

Validate will interate through the keys in versions map and check to see if versions is present (valid)

type FabricVersionInstance

type FabricVersionInstance interface {
	GetFabricVersion() string
}

FabricVersionInstance defines the contract expected from instances

type Image

type Image struct {
	Versions           *deployer.Versions
	DefaultRegistryURL string
	DefaultArch        string
}

Image handles checks and defaults on versions of images

func (*Image) SetDefaults

func (i *Image) SetDefaults(instance Instance) error

SetDefaults sets defaults on instance based on fabric version

func (*Image) UpdateRequired

func (i *Image) UpdateRequired(update Update) bool

UpdateRequired process update events to determine if images needed to be updated.

type Instance

type Instance interface {
	GetArch() []string
	GetRegistryURL() string
	GetFabricVersion() string
	SetFabricVersion(string)
	ImagesSet() bool
}

Instance is an instance of an IBP custom resource

type Update

type Update interface {
	ImagesUpdated() bool
	FabricVersionUpdated() bool
}

Update defines update events we are interested in

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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