diff

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifests

func Manifests(oldIndex, newIndex map[string]*manifest.MappingResult, options *Options, to io.Writer) bool

Manifests diff on manifests

func Releases

func Releases(oldIndex, newIndex map[string]*manifest.MappingResult, options *Options, to io.Writer) bool

Releases reindex the content based on the template names and pass it to Manifests

Types

type ChangeStyle

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

ChangeStyle for styling the report

type Options

type Options struct {
	OutputFormat              string
	OutputContext             int
	StripTrailingCR           bool
	ShowSecrets               bool
	SuppressedKinds           []string
	FindRenames               float32
	SuppressedOutputLineRegex []string
}

Options are all the options to be passed to generate a diff

type ParsedDiff added in v3.0.2

type ParsedDiff struct {
	Payload string `json:"payload"`
	Delta   int    `json:"delta"`
}

ParsedDiff represents a single diff in a parsed entry

type ParsedEntry added in v3.0.2

type ParsedEntry struct {
	Key         string       `json:"key"`
	ReleaseName string       `json:"releaseName"`
	Kind        string       `json:"kind"`
	Context     int          `json:"context"`
	Diffs       []ParsedDiff `json:"diffs"`
	ChangeType  string       `json:"changeType"`
}

ParsedEntry represents a single entry in the parsed report

type ParsedReport added in v3.0.2

type ParsedReport struct {
	Entries []ParsedEntry `json:"entries"`
}

ParsedReport represents the parsed and organized report

func ManifestsDiffWithReport

func ManifestsDiffWithReport(oldIndex, newIndex map[string]*manifest.MappingResult, options *Options, to io.Writer) ParsedReport

ManifestsDiffWithReport diff on manifests

type Report

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

Report to store report data and format

type ReportEntry

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

ReportEntry to store changes between releases

type ReportFormat

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

ReportFormat to the context to make a changes report

type ReportTemplateSpec

type ReportTemplateSpec struct {
	Namespace string
	Name      string
	Kind      string
	API       string
	Change    string
}

ReportTemplateSpec for common template spec

Jump to

Keyboard shortcuts

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