Versions in this module Expand all Collapse all v0 v0.3.0 Apr 24, 2026 Changes in this version + const Delete + const Equal + const Insert + func Format(w io.Writer, u Unified) + func FormatString(u Unified) string + func FormatSummary(w io.Writer, result *DiffResult) + func FormatUnifiedDiff(w io.Writer, result *DiffResult) + func ReorderFilter() func([]*yaml.RNode) ([]*yaml.RNode, error) + type DiffChangeJSON struct + New map[string]any + ObjectRef ObjectRef + Old map[string]any + UnifiedDiff string + type DiffResult struct + Added []ObjectRef + Modified []ResourceChange + Removed []ObjectRef + func DiffNodes(before, after []*yaml.RNode) (*DiffResult, error) + func (r *DiffResult) HasChanges() bool + type DiffResultJSON struct + Added []map[string]any + Deleted []ObjectRef + Modified []DiffChangeJSON + func DiffNodesJSON(before, after []*yaml.RNode) (*DiffResultJSON, error) + type Hunk = gotextdiff.Hunk + type Line = gotextdiff.Line + type ObjectRef struct + APIVersion string + Kind string + Name string + Namespace string + func ObjectRefFromMeta(meta yaml.ResourceMeta) ObjectRef + func (o ObjectRef) String() string + type OpKind = gotextdiff.OpKind + type ResourceChange struct + After string + Before string + Diff Unified + Key ObjectRef + type Unified = gotextdiff.Unified + func ComputeDiff(name, before, after string) Unified