matches

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdateSnapshotKey = ContextKey("update-snapshot")

UpdateSnapshotKey defines a signal to the snapshot watcher to update the snapshot its checking.

Functions

func Validate

func Validate(sourceCRD []byte, sampleFile []byte) error

Validate takes a source CRD and a sample file and validates its contents against the CRD definition.

func ValidateCRDValidation added in v0.11.0

func ValidateCRDValidation(crd *apiextensions.CustomResourceDefinition, sampleFile []byte) error

Types

type ContextKey

type ContextKey string

type Matcher

type Matcher interface {
	Match(ctx context.Context, crdLocation string, payload []byte) error
}

Matcher that can assert information given a CRD and a payload configuration of the matcher.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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