toolkit

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package toolkit contains local Tast tests that exercise factory toolkit installation and uninstallation.

Index

Constants

View Source
const (
	// ToolkitInstallerPath is the full path of the installer embedded in
	// the test image. The path should be synced with factory-mini.ebuild.
	ToolkitInstallerPath = "/usr/local/factory-toolkit/install_factory_toolkit.run"
)

Variables

This section is empty.

Functions

func UninstallFactoryToolKit

func UninstallFactoryToolKit(ctx context.Context) error

UninstallFactoryToolKit uninstall the toolkit via command factory_uninstall with --yes to prevent hanging for the user response.

Types

type Installer

type Installer struct {
	// The path of factory toolkit installer to be used during installation.
	InstallerPath string
	// TODO(b/150189948) The image path  to retrieve a installer, currently
	// not supported.
	ImagePath string
	// NoEnable configures to install toolkit without starting the factory
	// mode after reboot. It comes from the installation option --no-enable
	// in the factory toolkit installer.
	NoEnable bool
}

Installer contains configurations to run the installation of factory toolkit. Currently, we only support to install toolkit from a installer.

func (*Installer) InstallFactoryToolKit

func (i *Installer) InstallFactoryToolKit(ctx context.Context) (string, error)

InstallFactoryToolKit installs the factory toolkit. Currently installs with the installer specified in the `InstallerPath`.

Jump to

Keyboard shortcuts

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