evaluate

package
v0.0.0-...-522a375 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedScenario  = errors.New("could not evaluate scenario")
	ErrSpecialRetestCase    = errors.New("could not continue change evaluation because of a special retest case")
	ErrSpecialFullScaleCase = errors.New("could not continue change evaluation because of a special full scale case")
)

Functions

This section is empty.

Types

type BuildEvaluator

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

func NewBuildEvaluator

func NewBuildEvaluator(config Config) BuildEvaluator

func (BuildEvaluator) Evaluate

func (e BuildEvaluator) Evaluate(packages []info.PackageInfo, changes []info.ChangeInfo) (Evaluation, error)

type Config

type Config struct {
	DeploymentsDir string
	SpecialCases   SpecialCases
}

func NewConfig

func NewConfig(deploymentsDir string, specialRetestCases, specialRedeployCases []string) Config

type DependencyGraph

type DependencyGraph struct {
	Nodes    []*DependencyNode
	NodesMap map[string]*DependencyNode
}

func NewDependencyGraph

func NewDependencyGraph(packages []info.PackageInfo) DependencyGraph

func (DependencyGraph) Build

func (g DependencyGraph) Build() error

type DependencyNode

type DependencyNode struct {
	info.PackageInfo
	Dependants []*DependencyNode
	// contains filtered or unexported fields
}

type Evaluation

type Evaluation struct {
	Retest   []string
	Redeploy []string
}

type SpecialCases

type SpecialCases struct {
	RetestTriggers    []*regexp.Regexp
	FullScaleTriggers []*regexp.Regexp
}

Jump to

Keyboard shortcuts

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