diff

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 16 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

type Printer added in v0.3.0

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

func NewPrinter added in v0.3.0

func NewPrinter(differ *Differ, log logrus.FieldLogger) *Printer

func (*Printer) Print added in v0.3.0

func (p *Printer) Print(obj *unstructured.Unstructured, event watch.EventType)

Jump to

Keyboard shortcuts

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