configs

package
v0.0.0-...-49abd51 Latest Latest
Warning

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

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

Documentation

Overview

Package configs contains the definitions and storage of command configs.

Index

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 ExecuteFilterFilterExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.FilterExecutionCmdType, ExecutorType: executors.FilterExecutorType}
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.

Types

type CommandConfig

type CommandConfig struct {
	ExecutorConfig interfaces.ExecutorConfigInterface
	// contains filtered or unexported fields
}

CommandConfig represents command config.

func (*CommandConfig) GetCommand

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

GetExecutor returns the concrete executor based on provided executor type.

Jump to

Keyboard shortcuts

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