Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConstraintK8sLessEqual115 is a version constraint for versions <= 1.15. ConstraintK8sLessEqual115 *semver.Constraints // ConstraintK8sLess116 is a version constraint for versions < 1.16. ConstraintK8sLess116 *semver.Constraints // ConstraintK8sGreaterEqual116 is a version constraint for versions >= 1.16. ConstraintK8sGreaterEqual116 *semver.Constraints // ConstraintK8sGreaterEqual117 is a version constraint for versions >= 1.17. ConstraintK8sGreaterEqual117 *semver.Constraints // 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 // ConstraintK8sEqual122 is a version constraint for versions == 1.22. ConstraintK8sEqual122 *semver.Constraints // ConstraintK8sGreaterEqual122 is a version constraint for versions >= 1.22. ConstraintK8sGreaterEqual122 *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.