Documentation ¶
Overview ¶
Container for the CrOSProvision state machine
Index ¶
- type LaCrOSService
- func NewLaCrOSService(dut *lab_api.Dut, dutClient api.DutServiceClient, req *api.InstallRequest) (*LaCrOSService, error)
- func NewLaCrOSServiceFromCrOSProvisionRequest(dutClient api.DutServiceClient, req *api.CrosProvisionRequest, ...) *LaCrOSService
- func NewLaCrOSServiceFromExistingConnection(conn common_utils.ServiceAdapterInterface, imagePath *conf.StoragePath, ...) LaCrOSService
- func (c *LaCrOSService) CleanupOnFailure(states []common_utils.ServiceState, executionErr error) error
- func (l *LaCrOSService) GetComponentManifestPath() string
- func (l *LaCrOSService) GetComponentPath() string
- func (l *LaCrOSService) GetComponentRootPath() string
- func (l *LaCrOSService) GetCompressedImagePath() string
- func (l *LaCrOSService) GetDeviceCompressedImagePath() string
- func (l *LaCrOSService) GetHashTreePath() string
- func (l *LaCrOSService) GetLatestVersionPath() string
- func (l *LaCrOSService) GetLocalImagePath() string
- func (l *LaCrOSService) GetManifestPath() string
- func (l *LaCrOSService) GetMetatadaPath() string
- func (l *LaCrOSService) GetTablePath() string
- func (l *LaCrOSService) WriteToFile(ctx context.Context, data, outputPath string) error
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.
Click to show internal directories.
Click to hide internal directories.