Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
func RenderPrimitiveValue ¶
Types ¶
type Node ¶
type Option ¶
type Option func(*differ)
func WithIgnoreAddingMapKeys ¶
func WithIgnoreAddingMapKeys() Option
WithIgnoreAddingMapKeys configures differ to ignore all map keys that were added to the second object and missing in the first one.
type PathStep ¶
type PathStep struct { Type PathStepType MapIndex string SliceIndex int }
type PathStepType ¶
type PathStepType string
const ( MapIndexPathStep PathStepType = "MapIndex" SliceIndexPathStep PathStepType = "SliceIndex" )
type RenderOption ¶
type RenderOption func(*Renderer)
func WithLeftPadding ¶
func WithLeftPadding(p int) RenderOption
func WithRedactPath ¶
func WithRedactPath(prefix, replacementX, replacementY string) RenderOption
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer(opts ...RenderOption) *Renderer
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func DiffUnstructureds ¶
func DiffUnstructureds(x, y unstructured.Unstructured, opts ...Option) (*Result, error)
DiffUnstructureds calculates the diff between two unstructured objects.
Click to show internal directories.
Click to hide internal directories.