Documentation ¶
Index ¶
- func NewConfig(app fyne.App, win fyne.Window, source selfupdate.Source, ...) *selfupdate.Config
- func NewConfigWithTimeout(app fyne.App, win fyne.Window, timeout time.Duration, source selfupdate.Source, ...) *selfupdate.Config
- func NewExitCallback(app fyne.App, win fyne.Window) func(err error)
- func NewProgressCallback(win fyne.Window) func(float64, error)
- func NewRestartConfirmCallback(win fyne.Window) func() bool
- func NewRestartConfirmCallbackWithTimeout(win fyne.Window, timeout time.Duration) func() bool
- func NewUpgradeConfirmCallback(win fyne.Window) func(string) bool
- func NewUpgradeConfirmCallbackWithTimeout(win fyne.Window, timeout time.Duration) func(string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
func NewConfig(app fyne.App, win fyne.Window, source selfupdate.Source, schedule selfupdate.Schedule, publicKey ed25519.PublicKey) *selfupdate.Config
NewConfig create a selfupdate.Config structure that provide Fyne UI dialog to progress the update
func NewConfigWithTimeout ¶
func NewConfigWithTimeout(app fyne.App, win fyne.Window, timeout time.Duration, source selfupdate.Source, schedule selfupdate.Schedule, publicKey ed25519.PublicKey) *selfupdate.Config
NewConfigWithTimeout create a selfupdate.Config structure that provide Fyne UI dialog to progress the update and provide a "default to yes" behavior if the user doesn't interact within timeout time to provide unattended update.
func NewExitCallback ¶
func NewExitCallback(app fyne.App, win fyne.Window) func(err error)
NewExitCallback properly exit a Fyne App. If a window is specified, it will report error using dialog.ShowError if the upgrade failed to Restart. If no window is specified, it will display error on the command line.
func NewProgressCallback ¶
NewProgressCallback returns a callback that can be used to present download information during update.
func NewRestartConfirmCallback ¶
func NewRestartConfirmCallback(win fyne.Window) func() bool
NewRestartConfirmCallback create a GUI based confirmation to approve restarting the application after being updated
func NewRestartConfirmCallbackWithTimeout ¶
NewRestartConfirmCallbackWithTimeout creates a GUI based restarting confirmation callback with a timeout, after which time the question will be confirmed to yes. This can assist in a "default to yes" update where computer may be unattended.
func NewUpgradeConfirmCallback ¶
NewUpgradeConfirmCallback creates a GUI based confirmation to use as selfupdate callback
func NewUpgradeConfirmCallbackWithTimeout ¶
NewUpgradeConfirmCallbackWithTimeout creates a GUI based confirmation callback with a timeout, after which time the question will be confirmed. This can assist in a "default to yes" update where computer may be unattended.
Types ¶
This section is empty.