versions

package
v2.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVersionLessThan added in v2.14.0

func IsVersionLessThan(version, threshold string) bool

IsVersionLessThan reports whether version is strictly less than threshold.

func OldestSupportedVersionFromBuild added in v2.14.0

func OldestSupportedVersionFromBuild(vers []Version) string

OldestSupportedVersionFromBuild returns the oldest version still within the compatibility window for the current build, derived from versions.yml.

func UpgradableVersions added in v2.10.9

func UpgradableVersions(versions []Version, currentVersion semver.Version) []string

func UpgradableVersionsFromBuild added in v2.10.9

func UpgradableVersionsFromBuild(versions []Version) []string

Types

type Version added in v2.10.9

type Version struct {
	Version       string `json:"version"`
	Lts           bool   `json:"lts,omitempty"`
	EndOfLifeDate string `json:"endOfLifeDate"`
	ReleaseDate   string `json:"releaseDate"`
	SemVer        *semver.Version
}

func ParseFromFile

func ParseFromFile(path string) []Version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL