diffs

package
v0.28.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.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 BaseChecker

type BaseChecker struct {
	CurrentConfig map[string]any
	NewConfig     map[string]any
}

func NewBaseChecker

func NewBaseChecker(currentConfig, newConfig map[string]any) *BaseChecker

func (*BaseChecker) AssertImmutableViolations

func (*BaseChecker) AssertImmutableViolations(diffs r3diff.Changelog, immutablePaths []string) []error

func (*BaseChecker) AssertReducerUnsupportedViolations

func (*BaseChecker) AssertReducerUnsupportedViolations(diffs r3diff.Changelog, reducerRules []rules.Rule) []error

func (*BaseChecker) DiffToString

func (*BaseChecker) DiffToString(diffs r3diff.Changelog) string

func (*BaseChecker) FilterDiffFromPhase

func (*BaseChecker) FilterDiffFromPhase(changelog r3diff.Changelog, phasePath string) r3diff.Changelog

func (*BaseChecker) GenerateDiff

func (v *BaseChecker) GenerateDiff() (r3diff.Changelog, error)

type Checker

type Checker interface {
	AssertImmutableViolations(diffs r3diff.Changelog, immutablePaths []string) []error
	AssertReducerUnsupportedViolations(diffs r3diff.Changelog, reducerRules []rules.Rule) []error
	GenerateDiff() (r3diff.Changelog, error)
	DiffToString(diffs r3diff.Changelog) string
	FilterDiffFromPhase(changelog r3diff.Changelog, phasePath string) r3diff.Changelog
}

Jump to

Keyboard shortcuts

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