Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAndInstallUpdate ¶
func DownloadAndInstallUpdate(u *UpdateInfo) error
Types ¶
type Config ¶
type Config struct {
AppName string
CurrentVersion string
CheckInterval time.Duration
UpdatesFeedURL string
HTTPTimeout time.Duration
DownloadTimeout time.Duration
ShutdownCallbackTimeout time.Duration
// RequestShutdownCallback this function will be called when update will be ready to install
// if error is returned, no update will be performed
RequestShutdownCallback func() error
// SigningCertificatedName is used to check for package and Feed URL webhost certificate
// if empty, no certificate check performed
SigningCertificatedName string
}
func DefaultConfig ¶
func DefaultConfig() Config
type UpdateInfo ¶
func ListAvailableUpdates ¶
func ListAvailableUpdates() ([]*UpdateInfo, error)
Click to show internal directories.
Click to hide internal directories.