diff

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 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) (Tree, error)

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

func (From) ParseWithCFNIgnorer

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

ParseWithCFNIgnorer constructs a diff tree that represent the differences of a YAML document against the From document, ignoring certain CFN paths.

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