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 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
Click to show internal directories.
Click to hide internal directories.