Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConstraintK8sEqual122 is a version constraint for versions == 1.22. ConstraintK8sEqual122 *semver.Constraints // ConstraintK8sEqual123 is a version constraint for versions == 1.23. ConstraintK8sEqual123 *semver.Constraints // ConstraintK8sGreaterEqual123 is a version constraint for versions >= 1.23. ConstraintK8sGreaterEqual123 *semver.Constraints // ConstraintK8sLess123 is a version constraint for versions < 1.23. ConstraintK8sLess123 *semver.Constraints // ConstraintK8sEqual124 is a version constraint for versions == 1.24. ConstraintK8sEqual124 *semver.Constraints // ConstraintK8sLess124 is a version constraint for versions < 1.24. ConstraintK8sLess124 *semver.Constraints // ConstraintK8sGreaterEqual125 is a version constraint for versions >= 1.25. ConstraintK8sGreaterEqual125 *semver.Constraints // ConstraintK8sLess125 is a version constraint for versions < 1.25. ConstraintK8sLess125 *semver.Constraints // ConstraintK8sGreaterEqual126 is a version constraint for versions >= 1.26. ConstraintK8sGreaterEqual126 *semver.Constraints // ConstraintK8sLess126 is a version constraint for versions < 1.26. ConstraintK8sLess126 *semver.Constraints // ConstraintK8sGreaterEqual127 is a version constraint for versions >= 1.27. ConstraintK8sGreaterEqual127 *semver.Constraints // ConstraintK8sLess127 is a version constraint for versions < 1.27. ConstraintK8sLess127 *semver.Constraints // ConstraintK8sGreaterEqual128 is a version constraint for versions >= 1.28. ConstraintK8sGreaterEqual128 *semver.Constraints )
Functions ¶
func CheckVersionMeetsConstraint ¶
CheckVersionMeetsConstraint returns true if the <version> meets the <constraint>.
func CompareVersions ¶
CompareVersions returns true if the constraint <version1> compared by <operator> to <version2> returns true, and false otherwise. The comparison is based on semantic versions, i.e. <version1> and <version2> will be converted if needed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.