Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffResult ¶
type DiffResult struct { Diff gojsondiff.Diff Modified bool }
func Diff ¶
func Diff(left, right *unstructured.Unstructured) *DiffResult
Diff performs a diff on two unstructured objects
func (*DiffResult) ASCIIFormat ¶
func (d *DiffResult) ASCIIFormat(left *unstructured.Unstructured, formatOpts formatter.AsciiFormatterConfig) (string, error)
ASCIIFormat returns the ASCII format of the diff
type DiffResultList ¶
type DiffResultList struct { Diffs []DiffResult Modified bool }
func DiffArray ¶
func DiffArray(leftArray, rightArray []*unstructured.Unstructured) (*DiffResultList, error)
DiffArray performs a diff on a list of unstructured objects. Objects are expected to match environments
Click to show internal directories.
Click to hide internal directories.