factoryimage

package
v0.0.0-...-c74f1dd Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const JASMINE_OREO = "jasmine_global_images_V9.6.17.0.ODIMIFE_20181108.0000.00_8.1_1c60295d1c.tgz"

Variables

View Source
var (
	ErrorFailedToFlash = errors.New("failed to flash device")
	ErrorValidation    = errors.New("failed to validate image for device")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	HostOS           string
	ImagePath        string
	WorkingDirectory string
	Logger           *logrus.Logger
}

type FactoryImage

type FactoryImage struct {
	ImagePath string

	IsExtracted bool
	// contains filtered or unexported fields
}

func New

func New(config *Config) *FactoryImage

func (*FactoryImage) Extract

func (f *FactoryImage) Extract() error

func (*FactoryImage) FlashAll

func (f *FactoryImage) FlashAll(device *device.Device, platformToolsPath platformtools.PlatformToolsPath) error

func (*FactoryImage) Validate

func (f *FactoryImage) Validate(deviceCodename device.Codename) error

Jump to

Keyboard shortcuts

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