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 ¶
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 ¶
func GetVersion ¶
type VersionFromAPI ¶
type VersionFromAPI struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.