Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AtlasNoUpdateNotifier when enabled it cancels checking for update
AtlasNoUpdateNotifier = "ATLAS_NO_UPDATE_NOTIFIER"
)
Variables ¶
This section is empty.
Functions ¶
func CheckForUpdate ¶
func CheckForUpdate(version string, logF func(i ...interface{}))
CheckForUpdate implements a notification to the user when a later release is available 1. Check release file ~/.atlas/release.json for latest known release and poll time 2. If last poll was more than 24h, poll GitHub public API https://docs.github.com/en/rest/reference/releases#get-the-latest-release 3. Store the latest release metadata 4. If current build Version, that is not development, is lower than the latest release, notify user
Types ¶
type LatestRelease ¶
LatestRelease holds the required fields from https://api.github.com/repos/ariga/atlas/releases/latest.
Click to show internal directories.
Click to hide internal directories.