GO-2022-0888 : Crash due to malformed relay protocol message in github.com/syncthing/syncthing
Discover Packages
github.com/syncthing/syncthing
internal
upgrade
package
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Oct 8, 2014
License: GPL-3.0
Opens a new window with license information.
Imports: 16
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
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.