Documentation ¶
Index ¶
- func GetVersion(annotations map[string]string) string
- func NewVersionAnnotations(from map[string]string) map[string]string
- func RegisterKnownConstraints(versions ...string)
- func SetVersion(annotations map[string]string, version string) map[string]string
- func UpgradeAllowed(from, to string) error
- func Validate(version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersion ¶
GetVersion returns version from the annotations.
func NewVersionAnnotations ¶
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 ¶
SetVersion set version to the annotations.
func UpgradeAllowed ¶
UpgradeAllowed returns nil when upgrade allowed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.