image

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionPrefix = "v"

VersionPrefix used to prefix versions.

Functions

func FloatToRelease added in v0.7.0

func FloatToRelease(basename, name, separator, version string, direction FloatDirection) string

FloatToRelease will build a full image name from basename, name, separator, version parts given as arguments. If version is a non-release it will be floated either up or down depending on direction argument. Floating up means to increase the minor number by 1. Floating down means leaving minor number as it was.

Types

type FloatDirection added in v0.7.0

type FloatDirection int

FloatDirection defines the way to float a non-release version.

const (
	// FloatDirectionUp means the minor version will be incremented to find
	// compatible range ,effectively meaning a next minor release.
	FloatDirectionUp FloatDirection = iota
	// FloatDirectionDown means the minor version will be left intact, but patch
	// number will be removed, effectively meaning latest version from current
	// minor release.
	FloatDirectionDown
)

type InfluenceableReference added in v0.7.0

type InfluenceableReference struct {
	Path        string
	EnvVariable string
	artifact.Image
}

InfluenceableReference defines an image reference that can be influenced by environment variables. To disable referencing images by they built hash, caller should set variable `DONT_REFERENCE_IMAGE_BY_DIGEST=true` - images will use version and basename to resolve full OCI image name.

By setting variable defined in EnvVariable field, caller can override the full OCI name of the image.

func (InfluenceableReference) Operation added in v0.7.0

Jump to

Keyboard shortcuts

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