Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUpdater ¶
func NewUpdater( ctx context.Context, binaryPath string, finalizer autoupdate.UpdateFinalizer, config *UpdaterConfig, ) (*actor.Actor, error)
NewUpdater returns an Actor suitable for an oklog/run group. It is a light wrapper around autoupdate.NewUpdater to simplify having multiple ones in launcher.
Types ¶
type UpdaterConfig ¶
type UpdaterConfig struct { Logger log.Logger RootDirectory string // launcher's root dir. use for holding tuf staging and updates AutoupdateInterval time.Duration UpdateChannel autoupdate.UpdateChannel InitialDelay time.Duration // start delay, to avoid whomping critical early data NotaryURL string MirrorURL string NotaryPrefix string HTTPClient *http.Client SigChannel chan os.Signal }
UpdaterConfig is a struct of update related options. It's used to simplify the call to `createUpdater` from launcher's main blocks.
Click to show internal directories.
Click to hide internal directories.