package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
IsWithdrawn returns whether the given version is known to be a withdrawn release.
LatestPatch returns the latest non-withdrawn patch release of the series passed.
LatestPredecessor returns the latest non-withdrawn predecessor of the version passed.
LatestPredecessorHistory returns the last consecutive `k` releases that precede the given version in the upgrade order (as dictated by cockroach_releases.yaml).
MajorReleasesBetween returns the number of major releases between any two versions passed.
RandomPredecessor is like LatestPredecessor, but instead of returning the latest patch version, it will return a random one.
RandomPredecessorHistory is like `LatestPredecessorHistory`, but instead of returning a list of the latest patch releases, it will return a random non-withdrawn patch release for each release series.
WithReleaseData overwrites the release mapping while the function passed runs.