Documentation
¶
Overview ¶
Package configs contains the definitions and storage of command configs.
Index ¶
- Constants
- Variables
- func GenerateFilterConfigs(ctx context.Context, totalFilters int) *commonconfigs.Configs
- func GeneratePostConfigs(ctx context.Context) *commonconfigs.Configs
- func GeneratePreConfigs(ctx context.Context) *commonconfigs.Configs
- func NewCommandConfig(execConfig interfaces.ExecutorConfigInterface) interfaces.CommandConfigInterface
- func NewExecutorConfig(ctr *crostoolrunner.CrosToolRunner, ...) interfaces.ExecutorConfigInterface
- type CommandConfig
- type Ctpv2ExecutionConfig
- type ExecutorConfig
Constants ¶
View Source
const ( LuciBuildFilterExecutionConfigType interfaces.ConfigType = "LuciBuild" Ctpv2PreExecutionConfigType interfaces.ConfigType = "Ctpv2PreExection" Ctpv2PostExecutionConfigType interfaces.ConfigType = "Ctpv2PostExection" // For unit tests purposes only UnSupportedFilterExecutionConfigType interfaces.ConfigType = "UnsupportedTest" )
Config types
Variables ¶
View Source
var AlStatusCleanUpNoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.AlStatusCleanUpCmdType, ExecutorType: commonexecutors.NoExecutorType}
View Source
var AlStatusUpdateNoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.AlStatusUpdateCmdType, ExecutorType: commonexecutors.NoExecutorType}
View Source
var ContainerCloseLogsContainerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.ContainerCloseLogsCmdType, ExecutorType: commonexecutors.ContainerExecutorType}
View Source
var ContainerReadLogsContainerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.ContainerReadLogsCmdType, ExecutorType: commonexecutors.ContainerExecutorType}
View Source
var ContainerStartContainerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.ContainerStartCmdType, ExecutorType: commonexecutors.ContainerExecutorType}
View Source
var CtrStartAsyncCtrExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.CtrServiceStartAsyncCmdType, ExecutorType: commonexecutors.CtrExecutorType}
View Source
var CtrStopCtrExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.CtrServiceStopCmdType, ExecutorType: commonexecutors.CtrExecutorType}
View Source
var ExecuteFilterFilterExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.FilterExecutionCmdType, ExecutorType: executors.FilterExecutorType}
View Source
var GcloudAuthCtrExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.GcloudAuthCmdType, ExecutorType: commonexecutors.CtrExecutorType}
View Source
var GenerateTrv2ReqsNoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenerateTrv2RequestsCmdType, ExecutorType: commonexecutors.NoExecutorType}
View Source
var MiddleOutNoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.MiddleoutExecutionType, ExecutorType: commonexecutors.NoExecutorType}
View Source
var PrepareFilterContainersNoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.PrepareFilterContainersCmdType, ExecutorType: commonexecutors.NoExecutorType}
View Source
var ScheduleTasksNoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ScheduleTasksCmdType, ExecutorType: commonexecutors.NoExecutorType}
View Source
var SummarizeNoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.SummarizeCmdType, ExecutorType: commonexecutors.NoExecutorType}
View Source
var TranslateRequestNoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TranslateRequestType, ExecutorType: commonexecutors.NoExecutorType}
View Source
var TranslateV1toV2RequestNoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TranslateV1toV2RequestType, ExecutorType: commonexecutors.NoExecutorType}
Functions ¶
func GenerateFilterConfigs ¶
func GenerateFilterConfigs(ctx context.Context, totalFilters int) *commonconfigs.Configs
GenerateFilterConfigs generates cmd execution for ctpv2.
func GeneratePostConfigs ¶
func GeneratePostConfigs(ctx context.Context) *commonconfigs.Configs
GeneratePostConfigs generates post cmd execution for ctpv2.
func GeneratePreConfigs ¶
func GeneratePreConfigs(ctx context.Context) *commonconfigs.Configs
GeneratePreConfigs generates pre cmd execution for ctpv2.
func NewCommandConfig ¶
func NewCommandConfig(execConfig interfaces.ExecutorConfigInterface) interfaces.CommandConfigInterface
func NewExecutorConfig ¶
func NewExecutorConfig( ctr *crostoolrunner.CrosToolRunner, contConfig interfaces.ContainerConfigInterface) interfaces.ExecutorConfigInterface
Types ¶
type CommandConfig ¶
type CommandConfig struct { ExecutorConfig interfaces.ExecutorConfigInterface // contains filtered or unexported fields }
CommandConfig represents command config.
func (*CommandConfig) GetCommand ¶
func (cfg *CommandConfig) GetCommand( cmdType interfaces.CommandType, execType interfaces.ExecutorType) (interfaces.CommandInterface, error)
GetCommand returns the concrete command based on provided command and executor type.
type Ctpv2ExecutionConfig ¶
type Ctpv2ExecutionConfig struct { *commonconfigs.CmdExecutionConfig TotalFilters int }
Ctpv2ExecutionConfig represents the configuration for any test execution.
func NewCtpv2ExecutionConfig ¶
func NewCtpv2ExecutionConfig( totalFilters int, configType interfaces.ConfigType, cmdConfig interfaces.CommandConfigInterface, ski interfaces.StateKeeperInterface) *Ctpv2ExecutionConfig
func (*Ctpv2ExecutionConfig) GenerateConfig ¶
func (ctpv2cfg *Ctpv2ExecutionConfig) GenerateConfig(ctx context.Context) error
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 ¶
func (cfg *ExecutorConfig) GetExecutor(execType interfaces.ExecutorType) (interfaces.ExecutorInterface, error)
GetExecutor returns the concrete executor based on provided executor type.
Click to show internal directories.
Click to hide internal directories.