Documentation
¶
Overview ¶
Package updater provides GitHub release-based update checking and self-update functionality for the NextDeploy CLI and Daemon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndPrint ¶
func CheckAndPrint(current string)
CheckAndPrint silently checks GitHub for a newer release and prints a one-line hint to stderr. Designed to be called as a goroutine so it never blocks.
func SelfUpdate ¶
SelfUpdate downloads the latest nextdeploy CLI binary and replaces the binary at /usr/local/bin/nextdeploy.
func SelfUpdateDaemon ¶ added in v0.0.9
SelfUpdateDaemon downloads the latest nextdeployd binary, replaces the binary at /usr/local/bin/nextdeployd, and restarts the systemd service.
Types ¶
type Release ¶
Release represents the subset of GitHub release API fields we care about.
func LatestRelease ¶
LatestRelease fetches the latest release tag from GitHub. Returns an empty Release and an error on failure.