updater

package
v0.0.0-...-2208570 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OmahaUpdater

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

func NewOmahaUpdater

func NewOmahaUpdater(
	repo *packages.Repository,
	updatePackageURL string,
	omahaServer *omaha.OmahaServer,
	avbTool *avb.AVBTool,
	zbiTool *zbi.ZBITool,
) (*OmahaUpdater, error)

func (*OmahaUpdater) Update

func (u *OmahaUpdater) Update(ctx context.Context, c client) error

type SystemUpdateChecker

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

SystemUpdateChecker uses `update check-now` to install a package.

func NewSystemUpdateChecker

func NewSystemUpdateChecker(repo *packages.Repository) *SystemUpdateChecker

func (*SystemUpdateChecker) Update

func (u *SystemUpdateChecker) Update(ctx context.Context, c client) error

type SystemUpdater

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

SystemUpdater uses the `system-updater` to install a package.

func NewSystemUpdater

func NewSystemUpdater(repo *packages.Repository, updatePackageUrl string) *SystemUpdater

func (*SystemUpdater) Update

func (u *SystemUpdater) Update(ctx context.Context, c client) error

type Updater

type Updater interface {
	Update(ctx context.Context, c client) error
}

Jump to

Keyboard shortcuts

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