fake

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ValidatorName = "built-in:fake"

Variables

This section is empty.

Functions

func NewFakeValidator

func NewFakeValidator(ctx context.Context, numberOfViolations int, shouldFailWithError bool) (common.Validator, error)

Types

type FakeValidator

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

func (*FakeValidator) GetName

func (v *FakeValidator) GetName() string

func (*FakeValidator) Validate

func (v *FakeValidator) Validate(resources []unstructured.Unstructured) (violations []common.Violation, err error)

*

Jump to

Keyboard shortcuts

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