validate

package
v0.0.0-...-750f79a Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindingValidation

func BindingValidation(binding *v1alpha1.Binding) field.ErrorList

BindingValidation validates a Binding and returns a list of errors.

Types

type StaticCreate

type StaticCreate struct{}

StaticCreate runs basic Binding validation for Create operation.

func (*StaticCreate) Validate

func (v *StaticCreate) Validate(binding *v1alpha1.Binding) *webhook.Error

Validate validate Binding instance

type ValidationHandler

type ValidationHandler struct {
	CreateValidators []Validator
	UpdateValidators []Validator
	// contains filtered or unexported fields
}

func NewValidationHandler

func NewValidationHandler(log log.FieldLogger) *ValidationHandler

func (*ValidationHandler) Handle

func (*ValidationHandler) InjectClient

func (h *ValidationHandler) InjectClient(c client.Client) error

InjectClient injects the client into the handlers

func (*ValidationHandler) InjectDecoder

func (h *ValidationHandler) InjectDecoder(d *admission.Decoder) error

type Validator

type Validator interface {
	Validate(*v1alpha1.Binding) *webhook.Error
}

Jump to

Keyboard shortcuts

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