locations

package
v0.0.0-...-0ce0b36 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locations

type Locations interface {
	GetTestDefinitions(definition tmv1beta1.StepDefinition) ([]*testdefinition.TestDefinition, error)
}

Locations is an interface which provides functions for receiving TestDefinitions that are fetched from testDefLocations.

func NewLocations

func NewLocations(log logr.Logger, spec tmv1beta1.TestrunSpec) (Locations, error)

NewLocations returns locations interface for a testrun

func NewSetLocations

func NewSetLocations(log logr.Logger, sets []tmv1beta1.LocationSet) (Locations, error)

func NewTestLocations

func NewTestLocations(log logr.Logger, testLocations []tmv1beta1.TestLocation) (Locations, error)

NewTestLocations takes the parsed CRD Locations and fetches all TestDefintions from all locations.

type Set

type Set struct {
	Info         tmv1beta1.LocationSet
	TestLocation Locations
}

type Sets

type Sets struct {
	Sets    map[string]*Set
	Default *Set
}

func (*Sets) GetTestDefinitions

func (s *Sets) GetTestDefinitions(step tmv1beta1.StepDefinition) ([]*testdefinition.TestDefinition, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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