image

package
v0.0.0-...-703489d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 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

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

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

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

Jump to

Keyboard shortcuts

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