Versions in this module Expand all Collapse all v0 v0.2.1 Oct 8, 2025 Changes in this version + func FormatDiff(diffs []diffmatchpatch.Diff, options DiffOptions) string + func GenerateDiffWithOptions(_ context.Context, current, desired *un.Unstructured, logger logging.Logger, ...) (*t.ResourceDiff, error) + func GetLineDiff(oldText, newText string) []diffmatchpatch.Diff + type CompactDiffFormatter struct + func (f *CompactDiffFormatter) Format(diffs []diffmatchpatch.Diff, options DiffOptions) string + type DefaultDiffRenderer struct + func (r *DefaultDiffRenderer) RenderDiffs(stdout io.Writer, diffs map[string]*dt.ResourceDiff) error + func (r *DefaultDiffRenderer) SetDiffOptions(options DiffOptions) + type DiffFormatter interface + Format func(diffs []diffmatchpatch.Diff, options DiffOptions) string + func NewFormatter(compact bool) DiffFormatter + type DiffOptions struct + AddPrefix string + ChunkSeparator string + Compact bool + ContextLines int + ContextPrefix string + DeletePrefix string + UseColors bool + func DefaultDiffOptions() DiffOptions + type DiffRenderer interface + RenderDiffs func(stdout io.Writer, diffs map[string]*dt.ResourceDiff) error + func NewDiffRenderer(logger logging.Logger, diffOpts DiffOptions) DiffRenderer + type FullDiffFormatter struct + func (f *FullDiffFormatter) Format(diffs []diffmatchpatch.Diff, options DiffOptions) string