Help us shape the future of Go! Take the 2026 Go Developer Survey

diff

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package diff compares how the same values behave against two versions of a chart.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(ts []Transition)

Sort orders transitions by kind (BREAKING first), then by key.

Types

type ChangedOptions

type ChangedOptions struct {
	OldDefaults map[string]interface{}
	NewDefaults map[string]interface{}
	User        map[string]interface{}
	Render      probe.RenderFunc
	Base        compare.Snapshot
	Noise       map[string]bool
	Workers     int
}

type Kind

type Kind int
const (
	Breaking Kind = iota
	Pinned
	Changed
	Fixed
)

func (Kind) String

func (k Kind) String() string

type Transition

type Transition struct {
	Path       []string
	Kind       Kind
	From, To   probe.Status
	Value      interface{}
	OldDefault interface{}
	NewDefault interface{}
	HasValue   bool
}

func ChangedDefaults

func ChangedDefaults(o ChangedOptions) ([]Transition, int64)

ChangedDefaults finds defaults the user does not set whose change between versions alters the rendered output of the new version: it renders the new chart with the old default forced back and compares.

func Keys

func Keys(old, new *probe.Result, oldDefaults, newDefaults map[string]interface{}) []Transition

Keys reports how every key the user sets moved between the two versions.

func (Transition) Key

func (t Transition) Key() string

Jump to

Keyboard shortcuts

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