Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConstraintK8sGreaterEqual118 is a version constraint for versions >= 1.18. ConstraintK8sGreaterEqual118 *semver.Constraints // ConstraintK8sEqual118 is a version constraint for versions == 1.18. ConstraintK8sEqual118 *semver.Constraints // ConstraintK8sGreaterEqual119 is a version constraint for versions >= 1.19. ConstraintK8sGreaterEqual119 *semver.Constraints // ConstraintK8sLess119 is a version constraint for versions < 1.19. ConstraintK8sLess119 *semver.Constraints // ConstraintK8sLess120 is a version constraint for versions < 1.20. ConstraintK8sLess120 *semver.Constraints // ConstraintK8sEqual119 is a version constraint for versions == 1.19. ConstraintK8sEqual119 *semver.Constraints // ConstraintK8sGreaterEqual120 is a version constraint for versions >= 1.20. ConstraintK8sGreaterEqual120 *semver.Constraints // ConstraintK8sEqual120 is a version constraint for versions == 1.20. ConstraintK8sEqual120 *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 // 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 )
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.