nexus_compare

package
v0.0.0-...-baa1f0e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 23 Imported by: 3

Documentation

Index

Constants

View Source
const (
	SpecMatch      = ".*properties\\/spec.*"
	StatusMatch    = ".*properties\\/status.*"
	SingletonPath  = "/is_singleton"
	ApiGenPath     = "/nexus-rest-api-gen"
	RequiredString = "required"
)

Variables

This section is empty.

Functions

func CompareFiles

func CompareFiles(data1, data2 []byte) (bool, *bytes.Buffer, error)

func CompareReports

func CompareReports(data1, data2 []byte) (dyff.Report, dyff.Report, dyff.Report, error)

func CreateTableStyleString

func CreateTableStyleString(separator string, indent int, columns ...string) string

func GetMapNode

func GetMapNode(data []byte, path []string) (interface{}, error)

func GetSpecName

func GetSpecName(data []byte) (string, error)

func PrintReportDiff

func PrintReportDiff(report dyff.Report, buffer *bytes.Buffer) error

Types

type CustomReport

type CustomReport struct {
	dyff.Report
	MinorChangeThreshold float64
	NoTableStyle         bool
	DoNotInspectCerts    bool
	OmitHeader           bool
	UseGoPatchPaths      bool
}

func (*CustomReport) LoadX509Certs

func (report *CustomReport) LoadX509Certs(from, to string) (string, string, error)

func (*CustomReport) WriteReport

func (report *CustomReport) WriteReport(out io.Writer) error

Jump to

Keyboard shortcuts

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