gardener: Index | Files

package version

import ""


Package Files


func CheckVersionMeetsConstraint Uses

func CheckVersionMeetsConstraint(version, constraint string) (bool, error)

CheckVersionMeetsConstraint returns true if the <version> meets the <constraint>.

func CompareVersions Uses

func CompareVersions(version1, operator, version2 string) (bool, error)

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.

Package version imports 3 packages (graph) and is imported by 30 packages. Updated 2020-01-01. Refresh now. Tools for package owners.