Versions in this module Expand all Collapse all v0 v0.9.1 Dec 2, 2020 Changes in this version + var ErrNotFound = errors.New("not found") + func RenderPrimitiveValue(v reflect.Value) string + type Node struct + Path []PathStep + PathString string + TypeX reflect.Type + TypeY reflect.Type + ValueX reflect.Value + ValueY reflect.Value + func (n Node) StringX() string + func (n Node) StringY() string + type Nodes []Node + func (ns Nodes) Find(query string) (Nodes, error) + func (ns Nodes) FindByPrefix(prefix string) Nodes + func (ns Nodes) FindOne(query string) (*Node, error) + type Option func(*differ) + func WithIgnoreAddingMapKeys() Option + type PathStep struct + MapIndex string + SliceIndex int + Type PathStepType + func (s PathStep) String() string + type PathStepType string + const MapIndexPathStep + const SliceIndexPathStep + type RenderOption func(*Renderer) + func WithLeftPadding(p int) RenderOption + func WithRedactPath(prefix, replacementX, replacementY string) RenderOption + type Renderer struct + func NewRenderer(opts ...RenderOption) *Renderer + func (r *Renderer) Render(ns Nodes) string + type Result struct + func DiffUnstructureds(x, y unstructured.Unstructured, opts ...Option) (*Result, error) + func (r *Result) HasDiff() bool + func (r *Result) Nodes() Nodes + func (r *Result) NumNodes() int