transaction

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matrix

type Matrix struct {
	M map[string][]interface{} `yaml:",inline"`
	// contains filtered or unexported fields
}

Matrix is holding slices of values for a number of (step/transaction) variables. It generates combinations of these values. It is not thread-safe.

func (Matrix) CurrentSet

func (m Matrix) CurrentSet() variables.Variables

func (*Matrix) HasNext

func (m *Matrix) HasNext() bool

func (Matrix) MarshalJSON added in v0.3.3

func (m Matrix) MarshalJSON() ([]byte, error)

func (*Matrix) NextSet

func (m *Matrix) NextSet() variables.Variables

func (*Matrix) UnmarshalJSON added in v0.3.3

func (m *Matrix) UnmarshalJSON(b []byte) error

type Runner

type Runner interface {
	Run([]Transaction, variables.Variables) bool
}

func NewTransactionRunner

func NewTransactionRunner(stepRunner step.Runner, writer result.Writer, parallelism int) Runner

type Transaction

type Transaction struct {
	ID        string              `yaml:"id" json:"id" validate:"required"`
	Variables variables.Variables `yaml:"variables" json:"variables"`
	Steps     []step.Step         `yaml:"steps" json:"steps" validate:"required,unique=ID"`
	Matrix    *Matrix             `yaml:"matrix" json:"matrix"`
}

Transaction is the definition of a transaction

type TransactionRunner

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

func (*TransactionRunner) Run

func (r *TransactionRunner) Run(transactions []Transaction, vars variables.Variables) bool

Jump to

Keyboard shortcuts

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