diff

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(ctx context.Context, source api.Source, target api.Source, workspace string, opts ...Option) (string, error)

func OnlyPresentKeys

func OnlyPresentKeys(source any, targetMap map[string]any)

func Tree

Types

type Option

type Option func(*Options)

func Colorize

func Colorize(colors bool) Option

func FilterVolatileFields added in v1.3.0

func FilterVolatileFields(filterVolatile bool) Option

func Filters added in v1.3.0

func Filters(filters ...string) Option

func OnlyPresent

func OnlyPresent(present bool) Option

func WithSecrets added in v1.3.0

func WithSecrets(secrets bool) Option

type Options

type Options struct {
	Color           bool
	PresentAtSource bool
	Filters         []string
	Secrets         bool
	FilterVolatile  bool
}

Jump to

Keyboard shortcuts

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