webhooks

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultingWebhookFor

func DefaultingWebhookFor(defaulter Defaulter) *admission.Webhook

func RegisterGatewayApiWebhooks

func RegisterGatewayApiWebhooks(webhookSvcNs, webhookSvcName string, caBundle []byte)

func RegisterWebhooks

func RegisterWebhooks(webhookSvcNs, webhookSvcName string, caBundle []byte)

func ValidatingWebhookFor

func ValidatingWebhookFor(validator Validator) *admission.Webhook

Types

type Defaulter

type Defaulter interface {
	WebhookObject
	SetDefaults(obj interface{})
}

type Validator

type Validator interface {
	WebhookObject
	ValidateCreate(obj interface{}) error
	ValidateUpdate(oldObj, obj interface{}) error
	ValidateDelete(obj interface{}) error
}

type WebhookObject

type WebhookObject interface {
	RuntimeObject() runtime.Object
}

Jump to

Keyboard shortcuts

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