matchsnapshot

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MatcherName = "matchSnapshot"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path    string `yaml:"path"`
	Minimal bool   `yaml:"minimal"`
}

type Matcher

type Matcher struct {
	Updater Updater
}

func (*Matcher) Match

func (m *Matcher) Match(ctx context.Context, crdLocation string, payload []byte) error

type Update

type Update struct{}

func (*Update) Update

func (u *Update) Update(sourceTemplateLocation string, targetSnapshotLocation string, minimal bool) error

Update any given files in the snapshots.

type Updater

type Updater interface {
	Update(sourceTemplateLocation string, targetSnapshot string, minimal bool) error
}

Jump to

Keyboard shortcuts

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