version

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ReleasesPrefix = "suite_"

ReleasesPrefix denotes the expected prefix for all release files

Variables

This section is empty.

Functions

func GetRelevantVersions

func GetRelevantVersions(availVersionsStr []string,
	startVersionStr string,
	endVersionStr string) ([]string, error)

GetRelevantVersions sorts and returns the list of versions from highest (included) to the lowest (excluded). The method auto-detects what's the lower and what's the higher range bound.

func HighestVersion added in v0.0.1

func HighestVersion(versions []string) (string, error)

HighestVersion returns the highest version string from an array of version strings

func LatestReleaseInDir added in v0.0.1

func LatestReleaseInDir(releasesDir string) (string, error)

LatestReleaseInDir returns the file matching the highest semver for a group of files in the specified `releasesDir`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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