webhook

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCheckoutValidatorToManager

func AddCheckoutValidatorToManager(mgr manager.Manager) error

func AddPoolValidatorToManager

func AddPoolValidatorToManager(mgr manager.Manager) error

Types

type CheckoutValidatorHandler

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

CheckoutValidatorHandler performs validation for the Checkout type.

func (*CheckoutValidatorHandler) Handle

func (*CheckoutValidatorHandler) InjectDecoder

func (cvh *CheckoutValidatorHandler) InjectDecoder(d *admission.Decoder) error

func (*CheckoutValidatorHandler) InjectMapper

func (cvh *CheckoutValidatorHandler) InjectMapper(m meta.RESTMapper) error

type PoolValidator

type PoolValidator struct {
	*pvpoolv1alpha1.Pool `json:",inline"`
}

PoolValidator extends the Pool type to provide validation.

+kubebuilder:object:root=true

func (*PoolValidator) DeepCopy

func (in *PoolValidator) DeepCopy() *PoolValidator

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PoolValidator.

func (*PoolValidator) DeepCopyInto

func (in *PoolValidator) DeepCopyInto(out *PoolValidator)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PoolValidator) DeepCopyObject

func (in *PoolValidator) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PoolValidator) ValidateCreate

func (pv *PoolValidator) ValidateCreate() error

func (*PoolValidator) ValidateDelete

func (pv *PoolValidator) ValidateDelete() error

func (*PoolValidator) ValidateUpdate

func (pv *PoolValidator) ValidateUpdate(old runtime.Object) error

Jump to

Keyboard shortcuts

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