package
0.0.0-20240529160050-e0271d09a7b6
Repository: https://github.com/stackrox/release-registry.git
Documentation: pkg.go.dev

# Functions

CompareReleaseVersions compares the two versions, which must be release versions, and returns -1 if versionA is DEFINITELY a lower version than versionB, or 1 if versionA is DEFINITELY a greater version than versionB.
CompareReleaseVersionsOr compares the two versions if both of them are release versions.
CompareVersions compares the two versions and returns -1 if versionA is a lower version than versionB or 1 if version A is a greater version than versionB.
CompareVersionsOr compares the two versions and returns -1 if versionA is a lower version than versionB or 1 if version A is a greater version than versionB.
GetKind returns the version kind (release, RC, development) of the given version string.
LatestVersion returns the latest version from a list of unsorted semantic versions.
Validate returns no error if the given version is a valid version in the context of the service.

# Constants

DevelopmentKind is the version kind for development version strings.
InvalidKind is the version kind for unrecognized version strings.
NightlyKind is the version kind for nightly release version strings.
RCKind is the version kind for RC version strings.
ReleaseKind is the version kind for release version strings.

# Type aliases

ByVersion implements sort.Interface based on the version information.
Kind indicates the kind of a version string (development, RC, or release).