service

package
v0.0.0-...-293b33e Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: BSD-3-Clause Imports: 4 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 AShService

type AShService struct {
	Connection       common_utils.ServiceAdapterInterface
	ImagePath        *conf.StoragePath
	OverwritePayload *conf.StoragePath
}

AShService inherits ServiceInterface

func NewAShService

func NewAShService(dut *lab_api.Dut, dutClient api.DutServiceClient, req *api.InstallRequest) (*AShService, error)

func NewAShServiceFromCrOSProvisionRequest

func NewAShServiceFromCrOSProvisionRequest(dutClient api.DutServiceClient, req *api.CrosProvisionRequest, pkg *api.ProvisionState_Package) *AShService

func NewAShServiceFromExistingConnection

func NewAShServiceFromExistingConnection(conn common_utils.ServiceAdapterInterface, imagePath *conf.StoragePath, overwritePayload *conf.StoragePath) AShService

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

func (*AShService) CleanupOnFailure

func (c *AShService) 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 (*AShService) GetAutotestDir

func (c *AShService) GetAutotestDir() string

func (*AShService) GetStagingDirectory

func (c *AShService) GetStagingDirectory() string

func (*AShService) GetTargetDir

func (c *AShService) GetTargetDir() string

func (*AShService) GetTastDir

func (c *AShService) GetTastDir() string

Jump to

Keyboard shortcuts

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