validator

package
v3.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Deserializer = codecs.UniversalDeserializer()
)

Functions

func Handler

func Handler(validator Validator) http.HandlerFunc

Types

type Validator

type Validator interface {
	Log(keyVals ...interface{})
	Resource() string
	Validate(review *admissionv1.AdmissionRequest) (bool, error)
}

Jump to

Keyboard shortcuts

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