matrix

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Combination

type Combination struct {
	// MatrixID is an identification of a combination from Parameters in a Matrix.
	MatrixID string

	// Params is a specific combination of Parameters in a Matrix.
	Params []v1beta1.Param
}

Combination is a specific combination of Parameters from a Matrix.

type Combinations

type Combinations []*Combination

Combinations is a slice of combinations of Parameters from a Matrix.

func FanOut

func FanOut(params []v1beta1.Param) Combinations

FanOut produces combinations of Parameters of type String from a slice of Parameters of type Array.

func (Combinations) ToMap

func (combinations Combinations) ToMap() map[string][]v1beta1.Param

ToMap converts a list of Combinations to a map where the key is the matrixId and the values are Parameters.

Jump to

Keyboard shortcuts

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