updater

package
v1.0.7-0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2015 License: BSD-3-Clause, BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdateCheckDuration = (24 * time.Hour)

Functions

func DefaultUpdaterOptions

func DefaultUpdaterOptions(g *libkb.GlobalContext) *keybase1.UpdateOptions

DefaultUpdaterOptions returns update config for this environment

Types

type UpdateChecker

type UpdateChecker struct {
	// contains filtered or unexported fields
}

func NewUpdateChecker

func NewUpdateChecker(updater Updater) UpdateChecker

func (*UpdateChecker) Check

func (u *UpdateChecker) Check(force bool, requested bool) error

func (*UpdateChecker) Start

func (u *UpdateChecker) Start()

func (*UpdateChecker) Stop

func (u *UpdateChecker) Stop()

type Updater

type Updater struct {
	libkb.Contextified
	// contains filtered or unexported fields
}

func NewDefaultUpdater

func NewDefaultUpdater(g *libkb.GlobalContext) *Updater

func NewUpdater

func NewUpdater(g *libkb.GlobalContext, options keybase1.UpdateOptions, source sources.UpdateSource) Updater

func (*Updater) ApplyUpdate

func (u *Updater) ApplyUpdate(ui libkb.UpdateUI, update keybase1.Update, force bool) (err error)

func (*Updater) CheckForUpdate

func (u *Updater) CheckForUpdate(skipAssetDownload bool, force bool, requested bool) (update *keybase1.Update, err error)

func (Updater) Options

func (u Updater) Options() keybase1.UpdateOptions

func (*Updater) PromptForUpdateAction

func (u *Updater) PromptForUpdateAction(ui libkb.UpdateUI, update keybase1.Update) (err error)

func (*Updater) Restart

func (u *Updater) Restart(ui libkb.UpdateUI) (didQuit bool, err error)

func (*Updater) Update

func (u *Updater) Update(ui libkb.UpdateUI, force bool, requested bool) (update *keybase1.Update, err error)

Update checks, downloads and performs an update.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL