Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDefaulter ¶
func RegisterDefaulter(name string, d *DefaulterWrap)
func RegisterValidator ¶
func RegisterValidator(name string, v *ValidatorWrap)
func UnRegisterDefaulter ¶
func UnRegisterDefaulter(name string)
func UnRegisterValidator ¶
func UnRegisterValidator(name string)
Types ¶
type DefaulterWrap ¶
func GetDefaulter ¶
func GetDefaulter(name string) *DefaulterWrap
type MutatingHandler ¶
func (*MutatingHandler) InjectDecoder ¶
func (h *MutatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into a MutatingHandler.
type ValidatingHandler ¶
func (*ValidatingHandler) InjectDecoder ¶
func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into a ValidatingHandler.
type Validator ¶
type Validator interface { ValidateCreate(obj runtime.Object) error ValidateUpdate(old runtime.Object, new runtime.Object) error ValidateDelete(obj runtime.Object) error }
Validator defines functions for validating an operation
type ValidatorWrap ¶
func GetValidator ¶
func GetValidator(name string) *ValidatorWrap
Click to show internal directories.
Click to hide internal directories.