service

package
v0.0.0-...-19f3ddf Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Container for the CrOSProvision state machine

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LaCrOSService

type LaCrOSService struct {
	Connection          common_utils.ServiceAdapterInterface
	LaCrOSMetadata      *lacros_metadata.LaCrOSMetadata
	ImagePath           *conf.StoragePath
	Blocks              int
	OverwritePayload    *conf.StoragePath
	OverrideVersion     string
	OverrideInstallPath string
}

LaCrOSService inherits ServiceInterface

func NewLaCrOSService

func NewLaCrOSService(dut *lab_api.Dut, dutClient api.DutServiceClient, req *api.InstallRequest) (*LaCrOSService, error)

func NewLaCrOSServiceFromCrOSProvisionRequest

func NewLaCrOSServiceFromCrOSProvisionRequest(dutClient api.DutServiceClient, req *api.CrosProvisionRequest, pkg *api.ProvisionState_Package) *LaCrOSService

func NewLaCrOSServiceFromExistingConnection

func NewLaCrOSServiceFromExistingConnection(conn common_utils.ServiceAdapterInterface, imagePath *conf.StoragePath, overwritePayload *conf.StoragePath, overrideVersion string, overrideInstallPath string) LaCrOSService

NewLaCrOSServiceFromExistingConnection is equivalent to the above constructor, but recycles a ServiceAdapter. Generally useful for tests.

func (*LaCrOSService) CleanupOnFailure

func (c *LaCrOSService) CleanupOnFailure(states []common_utils.ServiceState, executionErr error) error

CleanupOnFailure is called if one of service's states failes to Execute() and should clean up the temporary files, and undo the execution, if feasible.

func (*LaCrOSService) GetComponentManifestPath

func (l *LaCrOSService) GetComponentManifestPath() string

func (*LaCrOSService) GetComponentPath

func (l *LaCrOSService) GetComponentPath() string

func (*LaCrOSService) GetComponentRootPath

func (l *LaCrOSService) GetComponentRootPath() string

func (*LaCrOSService) GetCompressedImagePath

func (l *LaCrOSService) GetCompressedImagePath() string

func (*LaCrOSService) GetDeviceCompressedImagePath

func (l *LaCrOSService) GetDeviceCompressedImagePath() string

func (*LaCrOSService) GetHashTreePath

func (l *LaCrOSService) GetHashTreePath() string

func (*LaCrOSService) GetLatestVersionPath

func (l *LaCrOSService) GetLatestVersionPath() string

func (*LaCrOSService) GetLocalImagePath

func (l *LaCrOSService) GetLocalImagePath() string

func (*LaCrOSService) GetManifestPath

func (l *LaCrOSService) GetManifestPath() string

func (*LaCrOSService) GetMetatadaPath

func (l *LaCrOSService) GetMetatadaPath() string

func (*LaCrOSService) GetTablePath

func (l *LaCrOSService) GetTablePath() string

func (*LaCrOSService) WriteToFile

func (l *LaCrOSService) WriteToFile(ctx context.Context, data, outputPath string) error

writeToFile takes a string and writes its contents to a file on a DUT.

Jump to

Keyboard shortcuts

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