Documentation
¶
Overview ¶
Container for the CrOSProvision state machine
Index ¶
- type AShService
- func NewAShService(dut *lab_api.Dut, dutClient api.DutServiceClient, req *api.InstallRequest) (*AShService, error)
- func NewAShServiceFromCrOSProvisionRequest(dutClient api.DutServiceClient, req *api.CrosProvisionRequest, ...) *AShService
- func NewAShServiceFromExistingConnection(conn common_utils.ServiceAdapterInterface, imagePath *conf.StoragePath, ...) AShService
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
Click to show internal directories.
Click to hide internal directories.