diff

package
v1.33.3 Latest Latest
Warning

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

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

Documentation

Overview

Package diff provides functionalities to compare two YAML documents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type From

type From []byte

From is the YAML document that another YAML document is compared against.

func (From) Parse

func (from From) Parse(to []byte, overriders ...overrider) (Tree, error)

Parse constructs a diff tree that represent the differences of a YAML document against the From document.

func (From) ParseWithCFNOverriders added in v1.28.0

func (from From) ParseWithCFNOverriders(to []byte) (Tree, error)

ParseWithCFNOverriders constructs a diff tree that represent the differences of a YAML document against the From document with overriders designed for CFN documents, including: 1. An ignorer that ignores diffs under "Metadata.Manifest". 2. An overrider that is able to compare intrinsic functions with full/short form correctly.

type Tree

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

Tree represents a difference tree between two YAML documents.

func (Tree) Write

func (t Tree) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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