diff

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGraphWithChanges

func CreateGraphWithChanges(newGraph *constellation.Config, sets *ComparisonSet) (string, error)

CreateGraphWithChanges - use both input constellations (new and original) as well as the comparison sets to create a dag that can be visualised. It uses the comparison sets to identify additions, deletions and changes between the original and new constellations.

Types

type Compare

type Compare struct {
	Original *constellation.Config
	New      *constellation.Config
}

Compare contains two constellation configurations to compare against one another.

func (*Compare) CompareConstellations

func (d *Compare) CompareConstellations() (string, error)

CompareConstellations takes two constellation configurations, compares and returns the differences.

func (*Compare) FillComparisonSets

func (d *Compare) FillComparisonSets() (sets ComparisonSet)

FillComparisonSets - loads provided set struct with data from the constellations and then determines the various differences between the sets (original constellation and new) to help detemine what has been added, removed or changed.

type ComparisonSet

type ComparisonSet struct {
	SetCommonSvcs set.Set
	SetCommonRels set.Set
	SetAddedSvcs  set.Set
	SetAddedRels  set.Set
	SetDelSvcs    set.Set
	SetDelRels    set.Set
}

ComparisonSet is a combination of two graphviz graphs.

Jump to

Keyboard shortcuts

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