Documentation ¶
Overview ¶
Package updatecheck provides a mechanism for periodically checking for updates to Coder.
The update check is performed by querying the GitHub API for the latest release of Coder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker is responsible for periodically checking for updates.
type Options ¶
type Options struct { // Client is the HTTP client to use for the update check, // if omitted, http.DefaultClient will be used. Client *http.Client // URL is the URL to check for the latest version of Coder, // if omitted, the default URL will be used. URL string // Interval is the interval at which to check for updates, // default 24h. Interval time.Duration // UpdateTimeout sets the timeout for the update check, // default 30s. UpdateTimeout time.Duration // Notify is called when a newer version of Coder (than the // last update check) is available. Notify func(r Result) }
Options set optional parameters for the update check.
Click to show internal directories.
Click to hide internal directories.