gardener: github.com/gardener/gardener/pkg/utils/version Index | Files

package version

import "github.com/gardener/gardener/pkg/utils/version"

Index

Package Files

version.go

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 14 packages. Updated 2020-01-01. Refresh now. Tools for package owners.