versions

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Latest = "latest"
	Next   = "next"
	Test   = "test"
)

Variables

This section is empty.

Functions

func GetLatestVersion

func GetLatestVersion(url LatestGcomAPI) (string, error)

func IsGreaterThanOrEqual

func IsGreaterThanOrEqual(newVersion, stableVersion string) (bool, error)

IsGreaterThanOrEqual semantically checks whether newVersion is greater than or equal to stableVersion.

Types

type LatestGcomAPI

type LatestGcomAPI = string
const (
	LatestStableVersionURL LatestGcomAPI = "https://grafana.com/api/grafana/versions/stable"
	LatestBetaVersionURL   LatestGcomAPI = "https://grafana.com/api/grafana/versions/beta"
)

type Version

type Version struct {
	Version string
	Channel string
}

func GetVersion

func GetVersion(tag string) (*Version, error)

type VersionFromAPI

type VersionFromAPI struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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