Versions in this module Expand all Collapse all v0 v0.2.0 Jun 15, 2020 Changes in this version + func Mutating(factory AdmissionHandlerType) configuration + func NewAdmissionRegistration(resources resources.ResourcesSource, spec interface{}, ...) (*adminreg.RuleWithOperations, error) + func NewAdmissionSpecData(resources resources.ResourcesSource, policy adminreg.FailurePolicyType, ...) ([]adminreg.RuleWithOperations, *adminreg.FailurePolicyType, error) + func Validating(factory AdmissionHandlerType) configuration + type AdmissionHandlerType func(wh webhook.Interface) (Interface, error) + type Decoder struct + func NewDecoder(scheme *runtime.Scheme) *Decoder + func (d *Decoder) Decode(req Request, into runtime.Object) error + func (d *Decoder) DecodeRaw(rawObj runtime.RawExtension, into runtime.Object) error + type DefaultHandler struct + func (this *DefaultHandler) Handle(logger.LogContext, Request) Response + type Definition interface + GetFailurePolicy func() adminreg.FailurePolicyType + GetHTTPHandler func(wh webhook.Interface) (http.Handler, error) + GetKind func() webhook.WebhookKind + GetNamespaces func() *meta.LabelSelector + GetOperations func() []adminreg.OperationType + type HTTPHandler struct + func (this *HTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (this *HTTPHandler) Webhook() Interface + type Interface interface + Handle func(logger.LogContext, Request) Response + type MutatingWebhookDeclaration struct + func (this *MutatingWebhookDeclaration) DeepCopy() *adminreg.MutatingWebhook + func (this *MutatingWebhookDeclaration) Kind() webhook.WebhookKind + type Request struct + type Response struct + Patches []jsonpatch.JsonPatchOperation + func Allowed(reason string) Response + func Denied(reason string) Response + func ErrorResponse(code int32, err error) Response + func PatchResponseFromRaw(original, current []byte) Response + func Patched(reason string, patches ...jsonpatch.JsonPatchOperation) Response + func ValidationResponse(allowed bool, reason string) Response + func (this *Response) Complete(req Request) error + type ValidatingWebhookDeclaration struct + func (this *ValidatingWebhookDeclaration) DeepCopy() *adminreg.ValidatingWebhook + func (this *ValidatingWebhookDeclaration) Kind() webhook.WebhookKind + type WebhookFunc func(logger.LogContext, Request) Response + func (this WebhookFunc) Handle(logger logger.LogContext, req Request) Response + func (this WebhookFunc) Type() AdmissionHandlerType