version

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion(annotations map[string]string) string

GetVersion returns version from the annotations.

func NewVersionAnnotations

func NewVersionAnnotations(from map[string]string) map[string]string

NewVersionAnnotations returns annotations only with version annotation when the version annotation found in from annotations.

func RegisterKnownConstraints

func RegisterKnownConstraints(versions ...string)

RegisterKnownConstraints register the know constraints. NOTE: the parameter constraints must be in increasing order.

func SetVersion

func SetVersion(annotations map[string]string, version string) map[string]string

SetVersion set version to the annotations.

func UpgradeAllowed

func UpgradeAllowed(from, to string) error

UpgradeAllowed returns nil when upgrade allowed.

func Validate

func Validate(version string) error

Validate returns nil when version is the default version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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