admission

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle(ctx context.Context, req *Request) *Response
}

type Request

type Request struct {
	admissionv1.AdmissionRequest
}

type Response

type Response struct {
	admissionv1.AdmissionResponse
}

func NewResponse

func NewResponse(code int, msg string, reasons ...string) *Response

type Webhook

type Webhook struct {
	// contains filtered or unexported fields
}

func NewWebhook

func NewWebhook(handler Handler) *Webhook

func (*Webhook) ServeHTTP

func (wh *Webhook) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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