Documentation ¶
Index ¶
Constants ¶
const ( // Version is the current application's version literal Version = config.CurrentVersionNumber )
Variables ¶
var ErrNoUpdateAvailable = check.NoUpdateAvailable
ErrNoUpdateAvailable returned when a check fails to find a newer update.
Functions ¶
func Apply ¶
Apply cheks if the running process is able to update itself and than updates to the passed release
func CheckForUpdate ¶
CheckForUpdate checks the equinox.io api if there is an update available NOTE: if equinox says there is a new update, but the version number IS NOT larger, we interpret that as no update (you may have gotten a newer version by building it yourself).
func CliCheckForUpdates ¶
CliCheckForUpdates is the automatic update check from the commandline.
func ShouldAutoUpdate ¶
func ShouldAutoUpdate(setting config.AutoUpdateSetting, newVer string) bool
ShouldAutoUpdate decides wether a new version should be applied checks against config setting and new version string. returns false in case of error
Types ¶
This section is empty.
Notes ¶
Bugs ¶
no good way to restart yet. - tracking https://github.com/inconshreveable/go-update/issues/5