kubernetes/vendor/sigs.k8s.io/structured-merge-diff/v4/typed/compare.go

type Comparison

// IsSame returns true if the comparison returned no changes (the two
// compared objects are similar).
func (c *Comparison) IsSame() bool {}

// String returns a human readable version of the comparison.
func (c *Comparison) String() string {}

// ExcludeFields fields from the compare recursively removes the fields
// from the entire comparison
func (c *Comparison) ExcludeFields(fields *fieldpath.Set) *Comparison {}

func (c *Comparison) FilterFields(filter fieldpath.Filter) *Comparison {}

type compareWalker

// compare compares stuff.
func (w *compareWalker) compare(prefixFn func() string) (errs ValidationErrors) {}

// doLeaf should be called on leaves before descending into children, if there
// will be a descent. It modifies w.inLeaf.
func (w *compareWalker) doLeaf() {}

func (w *compareWalker) doScalar(t *schema.Scalar) ValidationErrors {}

func (w *compareWalker) prepareDescent(pe fieldpath.PathElement, tr schema.TypeRef, cmp *Comparison) *compareWalker {}

func (w *compareWalker) finishDescent(w2 *compareWalker) {}

func (w *compareWalker) derefMap(prefix string, v value.Value) (value.Map, ValidationErrors) {}

func (w *compareWalker) visitListItems(t *schema.List, lhs, rhs value.List) (errs ValidationErrors) {}

func (w *compareWalker) indexListPathElements(t *schema.List, list value.List) ([]fieldpath.PathElement, fieldpath.PathElementValueMap, ValidationErrors) {}

func (w *compareWalker) compareListItem(t *schema.List, pe fieldpath.PathElement, lChild, rChild value.Value) ValidationErrors {}

func (w *compareWalker) derefList(prefix string, v value.Value) (value.List, ValidationErrors) {}

func (w *compareWalker) doList(t *schema.List) (errs ValidationErrors) {}

func (w *compareWalker) visitMapItem(t *schema.Map, out map[string]interface{}

func (w *compareWalker) visitMapItems(t *schema.Map, lhs, rhs value.Map) (errs ValidationErrors) {}

func (w *compareWalker) doMap(t *schema.Map) (errs ValidationErrors) {}