Documentation
¶
Overview ¶
Package update checks whether a newer netscope release is available on GitHub. It never downloads or installs anything — it reports status that the menu bar and dashboard surface, with a link to the release page. (Automatic self-update is deferred: it needs code signing and privileged replacement of the root daemon.)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker periodically refreshes and caches an update Status.
func NewChecker ¶
NewChecker builds a Checker. interval bounds how often GitHub is queried.
type Status ¶
type Status struct {
Current string `json:"current"`
Latest string `json:"latest"`
UpdateAvailable bool `json:"updateAvailable"`
URL string `json:"url"` // release page (human-facing)
AssetURL string `json:"assetUrl"` // app .zip download (in-app self-update)
CheckedAt time.Time `json:"checkedAt"`
}
Status is the cached result of an update check.
Click to show internal directories.
Click to hide internal directories.