diffs

package
v1.116.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldPath

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

func (*FieldPath) With

func (f *FieldPath) With(part string) *FieldPath

type ObjectDiff

type ObjectDiff struct {
	OldObject *unstructured.Unstructured `json:"oldObject"`
	NewObject *unstructured.Unstructured `json:"newObject"`
	// contains filtered or unexported fields
}

func BuildObjectDiff

func BuildObjectDiff(oldObj, newObj *unstructured.Unstructured) (*ObjectDiff, error)

func (*ObjectDiff) PrettyPrintTo

func (d *ObjectDiff) PrettyPrintTo(options PrettyPrintOptions, out io.Writer)

func (*ObjectDiff) PrintStructuredTo

func (d *ObjectDiff) PrintStructuredTo(out io.Writer)

type PrettyPrintOptions

type PrettyPrintOptions struct {
	PrintObjectInfo bool
	Indent          string
}

Jump to

Keyboard shortcuts

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