Documentation ¶
Overview ¶
Package upgrade performs automatic upgrade of the running binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHashMismatch = errors.New("hash mismatch")
The binary's SHA1 hash was incorrect after downloading.
Functions ¶
func UpgradeTo ¶
UpgradeTo upgrades the currently exeuting binary to the specified Build and returns an error or nil. The file is downloaded to <destination>.part and atomically renamed to the destination after the hash check. The destination is taken as the path of the currently executing binary, while following any symbolic links to it's destination.
Types ¶
Click to show internal directories.
Click to hide internal directories.