diff

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CreateColorTheme map[cdiff.Tag]color.Style
	UpdateColorTheme map[cdiff.Tag]color.Style
	DeleteColorTheme map[cdiff.Tag]color.Style
)

Functions

This section is empty.

Types

type Differ

type Differ struct {
	// contains filtered or unexported fields
}

func NewDiffer

func NewDiffer(opt *Options, log logrus.FieldLogger) (*Differ, error)

func (*Differ) PrintDiff

func (d *Differ) PrintDiff(oldObj, newObj *unstructured.Unstructured, lastSeen time.Time) error

type Options

type Options struct {
	ContextLines    int
	HideEmptyDiffs  bool
	DisableWordDiff bool

	JSONPath string

	IncludePaths []string

	ExcludePaths []string

	CreateColorTheme map[cdiff.Tag]color.Style
	UpdateColorTheme map[cdiff.Tag]color.Style
	DeleteColorTheme map[cdiff.Tag]color.Style
	// contains filtered or unexported fields
}

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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