cross_over

package
v0.0.0-...-1aab961 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: 18 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSSHConfig

func GetSSHConfig() *ssh.ClientConfig

GetSSHConfig construct a static ssh config

func IsCROS

func IsCROS(ctx context.Context, logger *log.Logger, dutClient api.DutServiceClient) bool

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 (CrossOverInitState) Name

func (s CrossOverInitState) Name() string

func (CrossOverInitState) Next

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 (CrossOverTerminateState) Name

func (CrossOverTerminateState) Next

type FullOSImageState

type FullOSImageState struct {
	// contains filtered or unexported fields
}

FullOSImageState copies the full Android/Cros image onto DUT disk.

func (FullOSImageState) Execute

func (FullOSImageState) Name

func (s FullOSImageState) Name() string

func (FullOSImageState) Next

type OS_TYPE

type OS_TYPE int
const (
	ANDROID OS_TYPE = iota
	CROS
	UNKNOWN
)

func DetectOS

func DetectOS(logger *log.Logger, dutAddress string) (OS_TYPE, error)

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 (RebootFromUSBState) Name

func (s RebootFromUSBState) Name() string

func (RebootFromUSBState) Next

type SetupUSBState

type SetupUSBState struct {
	// contains filtered or unexported fields
}

SetupUSBState downloads the bootable provision image onto USB.

func (SetupUSBState) Execute

func (SetupUSBState) Name

func (s SetupUSBState) Name() string

func (SetupUSBState) Next

type ValidateState

type ValidateState struct {
	// contains filtered or unexported fields
}

ValidateState checks if the correct version was provisioned or not.

func (ValidateState) Execute

func (ValidateState) Name

func (s ValidateState) Name() string

func (ValidateState) Next

Jump to

Keyboard shortcuts

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