updates

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2015 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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