Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
func (r InfluenceableReference) Operation() buildvars.Operation