versioning

package
v0.0.0-...-ce22054 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Major means a major difference between two versions
	Major = "MAJOR"
	// Minor means a minor difference between two versions
	Minor = "MINOR"
	// Patch means a patch difference between two versions
	Patch = "PATCH"
	// Same means two versions are the same
	Same = "SAME"
	// Unknown means the difference between the two versions is unknown
	Unknown = "UNKNOWN"

	// Notfound means a version could not be found
	Notfound = "NOTFOUND"
	// Failure means something went wrong went finding the version
	Failure = "FAILURE"
	// Nodata indicates there was not a failure but there wasn't any data
	Nodata = "NODATA"
)

Variables

This section is empty.

Functions

func DetermineLifeCycleStatus

func DetermineLifeCycleStatus(latestVersion string, currentVersion string) string

DetermineLifeCycleStatus compares two versions to determine the status of the difference

func FindHighestVersionInList

func FindHighestVersionInList(versions []string, allowAllReleases bool) string

FindHighestVersionInList finds the highest version in an list of versions or returns NOTFOUND

Types

This section is empty.

Jump to

Keyboard shortcuts

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