Help us shape the future of Go! Take the 2026 Go Developer Survey

webhook

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(manager controllerruntime.Manager, webhookList ...Webhook) error

Types

type Func

type Func func(ctx context.Context, req admission.Request) *admission.Response

type Handler

type Handler interface {
	OnCreate(client client.Client, decoder *admission.Decoder, recorder record.EventRecorder) Func
	OnDelete(client client.Client, decoder *admission.Decoder, recorder record.EventRecorder) Func
	OnUpdate(client client.Client, decoder *admission.Decoder, recorder record.EventRecorder) Func
}

type Webhook

type Webhook interface {
	GetPath() string
	GetHandlers() []Handler
}

Jump to

Keyboard shortcuts

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