lib

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Unknown DiffType = "unknown"
	Added            = "added"
	Removed          = "removed"
	Changed          = "changed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffType

type DiffType string

type YamlDiffEntry

type YamlDiffEntry struct {
	Path     []string
	ValueOld interface{}
	ValueNew interface{}
}

func (YamlDiffEntry) GetType

func (e YamlDiffEntry) GetType() DiffType

type YamlDiffResult

type YamlDiffResult struct {
	Diffs []YamlDiffEntry
}

func DiffYaml

func DiffYaml(oldYaml map[string]interface{}, newYaml map[string]interface{}) YamlDiffResult

func (YamlDiffResult) Get

func (r YamlDiffResult) Get(path []string) []YamlDiffEntry

func (YamlDiffResult) HasChanged

func (r YamlDiffResult) HasChanged(path []string) bool

Jump to

Keyboard shortcuts

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