cli

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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Install OTAs with the omaha-client.
	Omaha = "omaha"

	// Install OTAs with the system-update-checker.
	SystemUpdateChecker = "system-update-checker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveConfig

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

func NewArchiveConfig

func NewArchiveConfig(fs *flag.FlagSet) *ArchiveConfig

func (*ArchiveConfig) BuildArchive

func (c *ArchiveConfig) BuildArchive() *artifacts.Archive

func (*ArchiveConfig) OutputDir

func (c *ArchiveConfig) OutputDir() (string, func(), error)

type BuildConfig

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

func NewBuildConfig

func NewBuildConfig(
	fs *flag.FlagSet,
	archiveConfig *ArchiveConfig,
	deviceConfig *DeviceConfig,
	defaultBuildID string,
) *BuildConfig

func NewBuildConfigWithPrefix

func NewBuildConfigWithPrefix(
	fs *flag.FlagSet,
	archiveConfig *ArchiveConfig,
	deviceConfig *DeviceConfig,
	defaultBuildID string,
	prefix string,
) *BuildConfig

func (*BuildConfig) GetBuild

func (c *BuildConfig) GetBuild(ctx context.Context, deviceClient *device.Client, dir string) (artifacts.Build, error)

func (*BuildConfig) GetBuilder

func (c *BuildConfig) GetBuilder() (*artifacts.Builder, error)

func (*BuildConfig) Validate

func (c *BuildConfig) Validate() error

type DeviceConfig

type DeviceConfig struct {
	SerialSocketPath string
	// contains filtered or unexported fields
}

func NewDeviceConfig

func NewDeviceConfig(fs *flag.FlagSet) *DeviceConfig

func (*DeviceConfig) DeviceResolver

func (c *DeviceConfig) DeviceResolver(ctx context.Context) (device.DeviceResolver, error)

func (*DeviceConfig) NewDeviceClient

func (c *DeviceConfig) NewDeviceClient(ctx context.Context) (*device.Client, error)

func (*DeviceConfig) SSHPrivateKey

func (c *DeviceConfig) SSHPrivateKey() (ssh.Signer, error)

type InstallerConfig

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

func NewInstallerConfig

func NewInstallerConfig(fs *flag.FlagSet) (*InstallerConfig, error)

func (*InstallerConfig) AVBTool

func (c *InstallerConfig) AVBTool() (*avb.AVBTool, error)

func (*InstallerConfig) ConfigureBuild

func (c *InstallerConfig) ConfigureBuild(ctx context.Context, device *device.Client, build artifacts.Build) (artifacts.Build, error)

ConfigureBuild configures a build for the updater.

func (*InstallerConfig) Updater

func (c *InstallerConfig) Updater(repo *packages.Repository, updatePackageURL string) (updater.Updater, error)

Updater returns the configured updater.

func (*InstallerConfig) ZBITool

func (c *InstallerConfig) ZBITool() (*zbi.ZBITool, error)

type InstallerMode

type InstallerMode = string

type SerialConfig

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

func NewSerialConfig

func NewSerialConfig(fs *flag.FlagSet) *SerialConfig

func (*SerialConfig) Serial

func (f *SerialConfig) Serial() (net.Conn, error)

Jump to

Keyboard shortcuts

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