Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { GetUpdatePreferenceAuto() (bool, bool) GetUpdatePreferenceSnoozeUntil() keybase1.Time GetUpdatePreferenceSkip() string GetUpdateLastChecked() keybase1.Time SetUpdatePreferenceAuto(b bool) error SetUpdatePreferenceSkip(v string) error SetUpdatePreferenceSnoozeUntil(t keybase1.Time) error SetUpdateLastChecked(t keybase1.Time) error GetRunModeAsString() string }
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group represents a class of work and forms a namespace in which units of work can be executed with duplicate suppression.
type UpdateChecker ¶
type UpdateChecker struct {
// contains filtered or unexported fields
}
func NewUpdateChecker ¶
func NewUpdateChecker(updater *Updater, ui UI, log logger.Logger) UpdateChecker
func (*UpdateChecker) Check ¶
func (u *UpdateChecker) Check(force bool, requested bool) error
Check checks for an update. If not requested (by user) and not forced it will exit early if check has already been applied within checkDuration().
func (*UpdateChecker) Start ¶
func (u *UpdateChecker) Start()
func (*UpdateChecker) Stop ¶
func (u *UpdateChecker) Stop()
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
func NewUpdater ¶
func NewUpdater(options keybase1.UpdateOptions, source sources.UpdateSource, config Config, log logger.Logger) *Updater
func (*Updater) Options ¶
func (u *Updater) Options() keybase1.UpdateOptions
Source Files ¶
Click to show internal directories.
Click to hide internal directories.