webhooks

package
Version: v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 8 Imported by: 25

Documentation

Overview

Package webhooks manages and receives Kubernetes Webhooks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

Handler handles a webhook's AdmissionReview coming in, and will return the AdmissionReview that will be the return value of the webhook

type WebHook

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

WebHook manage Kubernetes webhooks

func NewWebHook

func NewWebHook(mux *http.ServeMux) *WebHook

NewWebHook returns a Kubernetes webhook manager

func (*WebHook) AddHandler

func (wh *WebHook) AddHandler(path string, gk schema.GroupKind, op admissionv1.Operation, h Handler)

AddHandler adds a handler for a given path, group and kind, and operation

Source Files

Jump to

Keyboard shortcuts

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