updates

package
v0.2.2-buildfails Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version is the current application's version literal
	Version = config.CurrentVersionNumber
)

Variables

View Source
var ErrNoUpdateAvailable = check.NoUpdateAvailable

ErrNoUpdateAvailable returned when a check fails to find a newer update.

Functions

func Apply

func Apply(rel *check.Result) error

Apply cheks if the running process is able to update itself and than updates to the passed release

func CheckForUpdate

func CheckForUpdate() (*check.Result, error)

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

func CliCheckForUpdates(cfg *config.Config, repoPath string) error

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

Jump to

Keyboard shortcuts

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