executor

package
v0.0.0-...-3a98d3a 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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFilters

func DefaultFilters(req *api.CTPv2Request, containerMd map[string]*buildapi.ContainerImageInfo) ([]*api.CTPFilter, []*api.CTPFilter, error)

func ResolvedContainer

func ResolvedContainer(name string, containerMd map[string]*buildapi.ContainerImageInfo) (*api.CTPFilter, error)

Types

type AbstractExecutor

type AbstractExecutor struct {
	Executor
}

AbstractExecutor satisfies the executor requirement that is common to all.

type CloudContainerExecutor

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

CloudContainerExecutor represents executor for all crostoolrunner (ctr) related commands.

func NewCloudContainerExecutor

func NewCloudContainerExecutor(manager managers.ContainerManager) *CloudContainerExecutor

func (*CloudContainerExecutor) Execute

type CtrExecutor

type CtrExecutor struct {
	Ctr                        managers.ContainerManager
	CrosProvisionServiceClient testapi.GenericProvisionServiceClient
	KeyLocation                string
}

CrosProvisionExecutor represents executor for all crostoolrunner (ctr) related commands.

func NewCtrExecutor

func NewCtrExecutor(ctr managers.ContainerManager) *CtrExecutor

func (*CtrExecutor) Execute

func (ex *CtrExecutor) Execute(ctx context.Context, cmd string, resp *api.InternalTestplan) (*api.InternalTestplan, error)

type Executor

type Executor interface {

	// Execute runs the exector
	Execute(context.Context, string, *api.InternalTestplan) (*api.InternalTestplan, error)
}

type FilterExecutor

type FilterExecutor struct {
	Ctr managers.ContainerManager
	// contains filtered or unexported fields
}

func NewKarbonExecutor

func NewKarbonExecutor(ctr managers.ContainerManager, req *api.CTPFilter, containerMetadata map[string]*buildapi.ContainerImageInfo) (*FilterExecutor, error)

func NewKoffeeExecutor

func NewKoffeeExecutor(ctr managers.ContainerManager, req *api.CTPFilter, containerMetadata map[string]*buildapi.ContainerImageInfo) (*FilterExecutor, error)

func (*FilterExecutor) Execute

type HWRequirement

type HWRequirement struct {
	Board string
	Model string
	Deps  []string
}

type ProvisionInfo

type ProvisionInfo struct {
}

type SuiteMetadata

type SuiteMetadata struct {
	HWRequirements []*HWRequirement
	ProvisionInfo  []*ProvisionInfo
	Builds         []string
	Pool           string
}

type TestCase

type TestCase struct {
	HWRequirements []*HWRequirement
	// contains filtered or unexported fields
}

type TestPlanResponse

type TestPlanResponse struct {
	SuiteMetadata *SuiteMetadata
	TestCases     []*TestCase
}

Each "HW Requirement" will have its own "Testsuite" for its response. These will be tracked in list.

Jump to

Keyboard shortcuts

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