Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Differ ¶
type Differ struct {
// contains filtered or unexported fields
}
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 }
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)
Click to show internal directories.
Click to hide internal directories.