commonconfigs

package
v0.0.0-...-cd06882 Latest Latest
Warning

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

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

Documentation

Overview

Package commonconfigs defines common configurations.

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

This section is empty.

Functions

func NewContainerConfig

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

Types

type CmdExecutionConfig

type CmdExecutionConfig struct {
	*interfaces.AbstractTestExecutionConfig

	CommandConfig interfaces.CommandConfigInterface
	StateKeeper   interfaces.StateKeeperInterface
	Configs       *Configs
	// contains filtered or unexported fields
}

CmdExecutionConfig represents the configuration for any test execution.

func (*CmdExecutionConfig) Execute

func (tecfg *CmdExecutionConfig) Execute(ctx context.Context) error

type CommandExecutorPairedConfig

type CommandExecutorPairedConfig struct {
	CommandType  interfaces.CommandType
	ExecutorType interfaces.ExecutorType
	// contains filtered or unexported fields
}

CommandExecutorPairedConfig represents command and executor pair

func (*CommandExecutorPairedConfig) IsRequired

func (cepc *CommandExecutorPairedConfig) IsRequired() bool

IsRequired returns whether the command is required.

func (*CommandExecutorPairedConfig) ToString

func (cepc *CommandExecutorPairedConfig) ToString() string

ToString returns string representation of the object.

func (*CommandExecutorPairedConfig) WithRequired

func (cepc *CommandExecutorPairedConfig) WithRequired(required bool) *CommandExecutorPairedConfig

WithRequired returns back the CommandExecutorPairedConfig with required set.

type Configs

type Configs struct {
	MainConfigs    []*CommandExecutorPairedConfig
	CleanupConfigs []*CommandExecutorPairedConfig
}

Configs represents main and cleanup configs. Cleanup configs are executed if any error occurs with main config execution. If any command of cleanup config is already executed, they will be skipped during cleanup.

func (*Configs) ToString

func (configs *Configs) ToString() string

ToString returns string representation of the object.

type ContainerConfig

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

ContainerConfig represents Cft container configs.

func (*ContainerConfig) GetContainer

GetContainer returns the concrete container based on provided container type.

Jump to

Keyboard shortcuts

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