Discover Packages
github.com/andreajparker/syncthing
internal
upgrade
package
Version:
v0.10.14
Opens a new window with list of versions in this module.
Published: Dec 29, 2014
License: GPL-3.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package upgrade downloads and compares releases, and upgrades the running binary.
View Source
var (
ErrVersionUpToDate = errors .New ("current version is up to date")
ErrVersionUnknown = errors .New ("couldn't fetch release information")
ErrUpgradeUnsupported = errors .New ("upgrade unsupported")
ErrUpgradeInProgress = errors .New ("upgrade already in progress")
)
Returns 1 if a>b, -1 if a<b and 0 if they are equal
A wrapper around actual implementations
A wrapper around actual implementations
type Asset struct {
URL string `json:"url"`
Name string `json:"name"`
}
type Release struct {
Tag string `json:"tag_name"`
Prerelease bool `json:"prerelease"`
Assets []Asset `json:"assets"`
}
Returns the latest release, including prereleases or not depending on the argument
Source Files
¶
Click to show internal directories.
Click to hide internal directories.