Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Updater ¶
type Updater struct { HTTPClient *http.Client RequestTimeout time.Duration Context context.Context Filename string // contains filtered or unexported fields }
Updater is the core struct of the update library holding all configurations
func NewUpdater ¶
NewUpdater initializes a new Updater and tries to guess the Filename
func (*Updater) Apply ¶
Apply downloads the new binary from Github, fetches the SHA256 sum from the SHA256SUMS file and applies the update to the currently running binary
Click to show internal directories.
Click to hide internal directories.