Documentation
¶
Overview ¶
DLC constants and helpers
DLC constants and helpers ¶
DLC constants and helpers ¶
DLC constants and helpers ¶
DLC constants and helpers ¶
DLC constants and helpers
Index ¶
- func GetSSHConfig() *ssh.ClientConfig
- func IsCROS(ctx context.Context, logger *log.Logger, dutClient api.DutServiceClient) bool
- func NewCrossOverInitState(params *CrossOverParameters) common_utils.ServiceState
- func NewCrossOverTerminateState(params *CrossOverParameters) common_utils.ServiceState
- func NewFullOSImageState(params *CrossOverParameters) common_utils.ServiceState
- func NewRebootFromUSBState(params *CrossOverParameters) common_utils.ServiceState
- func NewSetupUSBState(params *CrossOverParameters) common_utils.ServiceState
- func NewValidateState(params *CrossOverParameters) common_utils.ServiceState
- type CrossOverInitState
- type CrossOverParameters
- type CrossOverTerminateState
- type FullOSImageState
- type OS_TYPE
- type RebootFromUSBState
- type SetupUSBState
- type ValidateState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSSHConfig ¶
func GetSSHConfig() *ssh.ClientConfig
GetSSHConfig construct a static ssh config
func NewCrossOverInitState ¶
func NewCrossOverInitState(params *CrossOverParameters) common_utils.ServiceState
func NewCrossOverTerminateState ¶
func NewCrossOverTerminateState(params *CrossOverParameters) common_utils.ServiceState
func NewFullOSImageState ¶
func NewFullOSImageState(params *CrossOverParameters) common_utils.ServiceState
func NewRebootFromUSBState ¶
func NewRebootFromUSBState(params *CrossOverParameters) common_utils.ServiceState
func NewSetupUSBState ¶
func NewSetupUSBState(params *CrossOverParameters) common_utils.ServiceState
func NewValidateState ¶
func NewValidateState(params *CrossOverParameters) common_utils.ServiceState
Types ¶
type CrossOverInitState ¶
type CrossOverInitState struct {
// contains filtered or unexported fields
}
CrossOverInitState starts the servod process.
func (CrossOverInitState) Execute ¶
func (s CrossOverInitState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (CrossOverInitState) Name ¶
func (s CrossOverInitState) Name() string
func (CrossOverInitState) Next ¶
func (s CrossOverInitState) Next() common_utils.ServiceState
type CrossOverParameters ¶
type CrossOverParameters struct { Dut *lab_api.Dut TargetImagePath *storage_path.StoragePath DutClient api.DutServiceClient PostProvisionState common_utils.ServiceState ServoNexusClient api.ServodServiceClient PrevError string StopServo bool PartnerMetadata *api.PartnerMetadata }
type CrossOverTerminateState ¶
type CrossOverTerminateState struct {
// contains filtered or unexported fields
}
CrossOverTerminateState stops the servod process and downloads the servod logs.
func (CrossOverTerminateState) Execute ¶
func (s CrossOverTerminateState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (CrossOverTerminateState) Name ¶
func (s CrossOverTerminateState) Name() string
func (CrossOverTerminateState) Next ¶
func (s CrossOverTerminateState) Next() common_utils.ServiceState
type FullOSImageState ¶
type FullOSImageState struct {
// contains filtered or unexported fields
}
FullOSImageState copies the full Android/Cros image onto DUT disk.
func (FullOSImageState) Execute ¶
func (s FullOSImageState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (FullOSImageState) Name ¶
func (s FullOSImageState) Name() string
func (FullOSImageState) Next ¶
func (s FullOSImageState) Next() common_utils.ServiceState
type RebootFromUSBState ¶
type RebootFromUSBState struct {
// contains filtered or unexported fields
}
RebootFromUSBState sets the DUT power off and bring it back up in rec mode.
func (RebootFromUSBState) Execute ¶
func (s RebootFromUSBState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (RebootFromUSBState) Name ¶
func (s RebootFromUSBState) Name() string
func (RebootFromUSBState) Next ¶
func (s RebootFromUSBState) Next() common_utils.ServiceState
type SetupUSBState ¶
type SetupUSBState struct {
// contains filtered or unexported fields
}
SetupUSBState downloads the bootable provision image onto USB.
func (SetupUSBState) Execute ¶
func (s SetupUSBState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (SetupUSBState) Name ¶
func (s SetupUSBState) Name() string
func (SetupUSBState) Next ¶
func (s SetupUSBState) Next() common_utils.ServiceState
type ValidateState ¶
type ValidateState struct {
// contains filtered or unexported fields
}
ValidateState checks if the correct version was provisioned or not.
func (ValidateState) Execute ¶
func (s ValidateState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (ValidateState) Name ¶
func (s ValidateState) Name() string
func (ValidateState) Next ¶
func (s ValidateState) Next() common_utils.ServiceState
Click to show internal directories.
Click to hide internal directories.