Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConstraintK8sEqual120 is a version constraint for versions == 1.20. ConstraintK8sEqual120 *semver.Constraints // ConstraintK8sGreaterEqual120 is a version constraint for versions >= 1.20. ConstraintK8sGreaterEqual120 *semver.Constraints // ConstraintK8sLessEqual121 is a version constraint for versions <= 1.21. ConstraintK8sLessEqual121 *semver.Constraints // ConstraintK8sEqual121 is a version constraint for versions == 1.21. ConstraintK8sEqual121 *semver.Constraints // ConstraintK8sGreaterEqual121 is a version constraint for versions >= 1.21. ConstraintK8sGreaterEqual121 *semver.Constraints // ConstraintK8sLessEqual122 is a version constraint for versions <= 1.22. ConstraintK8sLessEqual122 *semver.Constraints // ConstraintK8sEqual122 is a version constraint for versions == 1.22. ConstraintK8sEqual122 *semver.Constraints // ConstraintK8sGreaterEqual122 is a version constraint for versions >= 1.22. ConstraintK8sGreaterEqual122 *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 )
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.