admission

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package admission provides an HTTP handler for a Kubernetes admission webhook. It includes functionality to decode incoming admission requests, execute the corresponding operations, and return appropriate admission responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler represents the HTTP handler for an admission webhook.

func NewHandler

func NewHandler() *Handler

NewHandler returns a new admission Handler.

func (*Handler) Serve

func (h *Handler) Serve(hook operations.Hook) http.HandlerFunc

Serve returns an http.HandlerFunc for an admission webhook.

Jump to

Keyboard shortcuts

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