configs

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HwTestExecutionConfigType       interfaces.ConfigType = "HwTest"
	PreLocalTestExecutionConfigType interfaces.ConfigType = "PreLocalTest"
	LocalTestExecutionConfigType    interfaces.ConfigType = "LocalTest"

	// For unit tests purposes only
	UnSupportedTestExecutionConfigType interfaces.ConfigType = "UnsupportedTest"
)

Config types

Variables

View Source
var AndroidCompanionDutServerStart_AndroidDutExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.AndroidCompanionDutServiceStartCmdType, ExecutorType: executors.AndroidDutExecutorType}
View Source
var AndroidProvisionInstall_AndroidProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.AndroidProvisionInstallCmdType, ExecutorType: executors.AndroidProvisionExecutorType}
View Source
var AndroidProvisionServerStart_AndroidProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.AndroidProvisionServiceStartCmdType, ExecutorType: executors.AndroidProvisionExecutorType}
View Source
var CacheServerStart_CacheServerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.CacheServerStartCmdType, ExecutorType: executors.CacheServerExecutorType}
View Source
var CpconPublishStart_CrosCpconPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.CpconPublishStartCmdType, ExecutorType: executors.CrosPublishExecutorType}
View Source
var CpconPublishUpload_CrosCpconPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.CpconPublishUploadCmdType, ExecutorType: executors.CrosPublishExecutorType}
View Source
var DutServerStart_CrosDutExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.DutServiceStartCmdType, ExecutorType: executors.CrosDutExecutorType}
View Source
var DutServiceStart_CrosDutVmExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.DutServiceStartCmdType, ExecutorType: executors.CrosDutVmExecutorType}
View Source
var DutVmCacheServerStart_CacheServerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.DutVmCacheServerStartCmdType, ExecutorType: executors.CacheServerExecutorType}
View Source
var DutVmGetImage_CrosDutVmExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.DutVmGetImageCmdType, ExecutorType: executors.CrosDutVmExecutorType}
View Source
var FetchContainerMetadata_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.FetchContainerMetadataCmdType, ExecutorType: executors.NoExecutorType}
View Source
var GcsPublishStart_CrosGcsPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GcsPublishStartCmdType, ExecutorType: executors.CrosGcsPublishExecutorType}
View Source
var GcsPublishUpload_CrosGcsPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GcsPublishUploadCmdType, ExecutorType: executors.CrosGcsPublishExecutorType}
View Source
var GenericPostProcess_GenericPostProcessExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericPostProcessCmdType, ExecutorType: executors.GenericPostProcessExecutorType}
View Source
var GenericProvision_GenericProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericProvisionCmdType, ExecutorType: executors.GenericProvisionExecutorType}
View Source
var GenericPublish_GenericPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericPublishCmdType, ExecutorType: executors.GenericPublishExecutorType}
View Source
var GenericService_GenericServiceExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericServiceCmdType, ExecutorType: executors.GenericServiceExecutorType}
View Source
var GenericTests_GenericTestsExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericTestsCmdType, ExecutorType: executors.GenericTestsExecutorType}

All currently supported command-executor pairs.

View Source
var ParseEnvInfo_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ParseEnvInfoCmdType, ExecutorType: executors.NoExecutorType}
View Source
var ProcessResults_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ProcessResultsCmdType, ExecutorType: executors.NoExecutorType}
View Source
var ProvisionInstall_CrosProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ProvisonInstallCmdType, ExecutorType: executors.CrosProvisionExecutorType}
View Source
var ProvisionServerStart_CrosProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ProvisionServiceStartCmdType, ExecutorType: executors.CrosProvisionExecutorType}
View Source
var RdbPublishStart_CrosRdbPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.RdbPublishStartCmdType, ExecutorType: executors.CrosRdbPublishExecutorType}
View Source
var RdbPublishUpload_CrosRdbPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.RdbPublishUploadCmdType, ExecutorType: executors.CrosRdbPublishExecutorType}
View Source
var SshStartReverseTunnel_SshTunnelExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.SshStartReverseTunnelCmdType, ExecutorType: executors.SshTunnelExecutorType}
View Source
var SshStartTunnel_SshTunnelExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.SshStartTunnelCmdType, ExecutorType: executors.SshTunnelExecutorType}
View Source
var SshStopTunnels_SshTunnelExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.SshStopTunnelsCmdType, ExecutorType: executors.SshTunnelExecutorType}
View Source
var TestFinderExecution_CrosTestFinderExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TestFinderExecutionCmdType, ExecutorType: executors.CrosTestFinderExecutorType}
View Source
var TestFinderServerStart_CrosTestFinderExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TestFinderServiceStartCmdType, ExecutorType: executors.CrosTestFinderExecutorType}
View Source
var TestServerStart_CrosTestExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TestServiceStartCmdType, ExecutorType: executors.CrosTestExecutorType}
View Source
var TestsExecution_CrosTestExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TestsExecutionCmdType, ExecutorType: executors.CrosTestExecutorType}
View Source
var TkoDirectUpload_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TkoDirectUploadCmdType, ExecutorType: executors.NoExecutorType}
View Source
var TkoPublishStart_CrosTkoPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TkoPublishStartCmdType, ExecutorType: executors.CrosTkoPublishExecutorType}
View Source
var TkoPublishUpload_CrosTkoPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TkoPublishUploadCmdType, ExecutorType: executors.CrosTkoPublishExecutorType}
View Source
var UpdateContainerImagesLocally_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.UpdateContainerImagesLocallyCmdType, ExecutorType: executors.NoExecutorType}
View Source
var UpdateDutState_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.UpdateDutStateCmdType, ExecutorType: executors.NoExecutorType}
View Source
var VMProvisionLease_CrosVMProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.VMProvisionLeaseCmdType, ExecutorType: executors.CrosVMProvisionExecutorType}
View Source
var VMProvisionRelease_CrosVMProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.VMProvisionReleaseCmdType, ExecutorType: executors.CrosVMProvisionExecutorType}
View Source
var VMProvisionServerStart_CrosVMProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.VMProvisionServiceStartCmdType, ExecutorType: executors.CrosVMProvisionExecutorType}

Functions

func GenerateHwConfigs

func GenerateHwConfigs(ctx context.Context, cftHwStepsConfig *tpcommon.HwTestConfig, sk *data.HwTestStateKeeper, inputV2 *api.CrosTestRunnerDynamicRequest, isAndroidProvisionRequired bool) *commonconfigs.Configs

GenerateHwConfigs generates hw tests execution for lab environment.

func GeneratePreLocalConfigs

func GeneratePreLocalConfigs(ctx context.Context) *commonconfigs.Configs

func NewContainerConfig

func NewContainerConfig(
	ctr *crostoolrunner.CrosToolRunner,
	containerImagesMap map[string]*api.ContainerImageInfo, cqRun bool) interfaces.ContainerConfigInterface

Types

type CftContainerConfig

type CftContainerConfig struct {
	Ctr                *crostoolrunner.CrosToolRunner
	ContainerImagesMap map[string]*api.ContainerImageInfo
	// contains filtered or unexported fields
}

CftContainerConfig represents Cft container configs.

func (*CftContainerConfig) GetContainer

GetContainer returns the concrete container based on provided container type.

type CommandConfig

type CommandConfig struct {
	ExecutorConfig interfaces.ExecutorConfigInterface
}

CommandConfig represents command config.

func (*CommandConfig) GetCommand

GetCommand returns the concrete command based on provided command and executor type.

type ExecutorConfig

type ExecutorConfig struct {
	ContainerConfig   interfaces.ContainerConfigInterface
	InvServiceAddress string
	Ctr               *crostoolrunner.CrosToolRunner
	// contains filtered or unexported fields
}

ExecutorConfig represents executor configs.

func (*ExecutorConfig) GetExecutor

GetExecutor returns the concrete executor based on provided executor type.

type Trv2ExecutionConfig

type Trv2ExecutionConfig struct {
	*commonconfigs.CmdExecutionConfig
	// contains filtered or unexported fields
}

TestExecutionConfig represents the configuration for any test execution.

func (*Trv2ExecutionConfig) GenerateConfig

func (trv2cfg *Trv2ExecutionConfig) GenerateConfig(ctx context.Context) error

Jump to

Keyboard shortcuts

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