match

package
v0.0.0-...-e20b040 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: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACTION_ADD         = "Add"
	ACTION_DELETE      = "Delete"
	ACTION_UPDATE      = "Update"
	ACTION_IDENTICAL   = "Identical"
	ACTION_PREEMPTIVE  = "Preemptive"
	STATUS_MULTI_MATCH = "Multi Matched"

	ACTION_ADD_RUNE         = 'A'
	ACTION_DELETE_RUNE      = 'D'
	ACTION_UPDATE_RUNE      = 'U'
	ACTION_IDENTICAL_RUNE   = 'I'
	ACTION_PREEMPTIVE_RUNE  = 'P'
	STATUS_MULTI_MATCH_RUNE = 'M'
)
View Source
const SOURCE_ENV = "Source"
View Source
const TARGET_ENV = "Target"

Variables

Functions

func GetRuneLabelMap

func GetRuneLabelMap() map[string]string

func GetValueFromPath

func GetValueFromPath(item interface{}, path []string) interface{}

Types

type ByIndexValue

type ByIndexValue []IndexEntry

func (ByIndexValue) Len

func (a ByIndexValue) Len() int

func (ByIndexValue) Less

func (a ByIndexValue) Less(i, j int) bool

func (ByIndexValue) Swap

func (a ByIndexValue) Swap(i, j int)

type EnvInfoDefinition

type EnvInfoDefinition struct {
	ManifestPath string `yaml:"manifestPath"`
	Project      string `yaml:"project"`
	Environment  string `yaml:"environment"`
}

type IndexEntry

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

type IndexMap

type IndexMap map[string][]int

type IndexRuleMapGenerator

type IndexRuleMapGenerator struct {
	SelfMatch bool
	// contains filtered or unexported fields
}

func NewIndexRuleMapGenerator

func NewIndexRuleMapGenerator(selfMatch bool, ruleList rules.IndexRuleTypeList) *IndexRuleMapGenerator

func (*IndexRuleMapGenerator) RunIndexRuleAll

func (i *IndexRuleMapGenerator) RunIndexRuleAll(matchProcessingPtr *processing.MatchProcessing) (*processing.CompareResultList, *map[int]int)

type MatchEntryParserError

type MatchEntryParserError struct {
	Value  string
	Index  int
	Reason string
}

type MatchFileDefinition

type MatchFileDefinition struct {
	Name              string            `yaml:"name"`
	Type              string            `yaml:"type"`
	EntitiesMatchPath string            `yaml:"entitiesMatchPath,omitempty"`
	OutputPath        string            `yaml:"outputPath"`
	PrevResultPath    string            `yaml:"prevResultPath,omitempty"`
	ReplacementsPath  string            `yaml:"replacementsPath"`
	SkipSpecificTypes bool              `yaml:"skipSpecificTypes,omitempty"`
	SpecificTypes     []string          `yaml:"specificTypes,omitempty"`
	SpecificActions   []string          `yaml:"specificActions,omitempty"`
	SelfMatch         bool              `yaml:"selfMatch"`
	Source            EnvInfoDefinition `yaml:"sourceInfo"`
	Target            EnvInfoDefinition `yaml:"targetInfo"`
}

type MatchParameters

type MatchParameters struct {
	Name              string
	Type              string
	WorkingDir        string
	OutputDir         string
	PrevResultDir     string
	ReplacementsDir   string
	EntitiesMatchDir  string
	SkipSpecificTypes bool
	SpecificTypes     []string
	SpecificActions   []rune
	SelfMatch         bool
	Source            MatchParametersEnv
	Target            MatchParametersEnv
}

func LoadMatchingParameters

func LoadMatchingParameters(fs afero.Fs, matchFileName string) (matchParameters MatchParameters, err error)

type MatchParametersEnv

type MatchParametersEnv struct {
	EnvType     string
	WorkingDir  string
	Project     string
	Environment string
	Manifest    manifest.Manifest
}

Directories

Path Synopsis
tar

Jump to

Keyboard shortcuts

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