MCPcopy
hub / github.com/kubernetes-sigs/aws-load-balancer-controller / Validator

Interface Validator

pkg/webhook/validator.go:11–21  ·  view source on GitHub ↗

Validator defines interface for a validation webHook

Source from the content-addressed store, hash-verified

9
10// Validator defines interface for a validation webHook
11type Validator interface {
12 // Prototype returns a prototype of Object for this admission request.
13 Prototype(req admission.Request) (runtime.Object, error)
14
15 // ValidateCreate handles Object creation and returns error if any.
16 ValidateCreate(ctx context.Context, obj runtime.Object) error
17 // ValidateUpdate handles Object update and returns error if any.
18 ValidateUpdate(ctx context.Context, obj runtime.Object, oldObj runtime.Object) error
19 // ValidateDelete handles Object deletion and returns error if any.
20 ValidateDelete(ctx context.Context, obj runtime.Object) error
21}
22
23// ValidatingWebhookForValidator creates a new validating Webhook.
24func ValidatingWebhookForValidator(validator Validator, scheme *runtime.Scheme) *admission.Webhook {

Implementers 6

MockValidatorpkg/webhook/validator_mocks.go
MockValidatorMockRecorderpkg/webhook/validator_mocks.go
ingressClassParamsValidatorwebhooks/elbv2/ingressclassparams_vali
targetGroupBindingValidatorwebhooks/elbv2/targetgroupbinding_vali
ingressValidatorwebhooks/networking/ingress_validator.
globalAcceleratorValidatorwebhooks/aga/globalaccelerator_validat

Calls

no outgoing calls

Tested by

no test coverage detected