Documentation ¶
Index ¶
- Variables
- func CollectProvenance()
- type Composition
- type Event
- type ObjectLineage
- func (o ObjectLineage) Bisect(argMap map[string]string) string
- func (o ObjectLineage) FieldDiff(fieldName string, vNumStart, vNumEnd int) string
- func (o ObjectLineage) FullDiff(vNumStart, vNumEnd int) string
- func (o ObjectLineage) GetVersions() string
- func (o ObjectLineage) SpecHistory() string
- func (o ObjectLineage) SpecHistoryInterval(vNumStart, vNumEnd int) string
- func (o ObjectLineage) String() string
- type OrderedMap
- type ProvenanceOfObject
- type Spec
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CollectProvenance ¶
func CollectProvenance()
Types ¶
type Composition ¶
type Composition struct { Level int Kind string Name string Status string Children []Composition }
Used for Final output
type ObjectLineage ¶
for example a postgres
func (ObjectLineage) Bisect ¶
func (o ObjectLineage) Bisect(argMap map[string]string) string
Outer loop is going through each of the versions in order. First I parse the query into a slice of field/value pairs. Then build the map of related fields that belong to the same top level attribute and need to be found in the same underlying map. Then I looped over the field value pairs, searched based on the type.
func (ObjectLineage) FieldDiff ¶
func (o ObjectLineage) FieldDiff(fieldName string, vNumStart, vNumEnd int) string
func (ObjectLineage) FullDiff ¶
func (o ObjectLineage) FullDiff(vNumStart, vNumEnd int) string
func (ObjectLineage) GetVersions ¶
func (o ObjectLineage) GetVersions() string
func (ObjectLineage) SpecHistory ¶
func (o ObjectLineage) SpecHistory() string
func (ObjectLineage) SpecHistoryInterval ¶
func (o ObjectLineage) SpecHistoryInterval(vNumStart, vNumEnd int) string
func (ObjectLineage) String ¶
func (o ObjectLineage) String() string
Returns the string representation of ObjectLineage used in GetHistory
type OrderedMap ¶
type OrderedMap []pair
func (OrderedMap) At ¶
func (o OrderedMap) At(attrib string) (interface{}, bool)
Similar to a map access .. returns Data, ok
type ProvenanceOfObject ¶
type ProvenanceOfObject struct { ObjectFullHistory ObjectLineage ResourcePlural string Name string }
func FindProvenanceObjectByName ¶
func FindProvenanceObjectByName(name string, allObjects []ProvenanceOfObject) *ProvenanceOfObject
func NewProvenanceOfObject ¶
func NewProvenanceOfObject() *ProvenanceOfObject
type Spec ¶
func (Spec) OrderedPairs ¶
func (s Spec) OrderedPairs() OrderedMap
Need some way to bring order to the elements of the AttributeToData map, because otherwise, the output is randomly ordered and I cannot unit test that. so This method orders the map based on the Attribute key and is similar to C++'s pair.