Documentation
¶
Overview ¶
Package updatecheck reports whether a newer diagrid-dev-dashboard release exists.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReleaseVersion ¶
IsReleaseVersion reports whether v is a real released version (valid semver once a leading "v" is ensured). A source/dev build ("dev") is not.
Types ¶
type Result ¶
type Result struct {
Current string `json:"current"`
Latest string `json:"latest"`
UpdateAvailable bool `json:"updateAvailable"`
ReleaseURL string `json:"releaseUrl"`
}
Result is the update-availability payload shared by the CLI notice and the GET /api/update-check endpoint. When UpdateAvailable is true, Current and Latest are normalized with a leading "v" and ReleaseURL points at the release.
Click to show internal directories.
Click to hide internal directories.