webhook

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package webhook contains all tools to wrap type and function for custom admin webhook from k8s api

Index

Constants

This section is empty.

Variables

View Source
var Codecs = serializer.NewCodecFactory(scheme)

Functions

This section is empty.

Types

type AdmitHandler

type AdmitHandler struct {
	V1beta1 AdmitV1Beta1Func
	V1      AdmitV1Func
}

AdmitHandler wrap different type version of AdmissionReview object

func WrapToAdminV1

func WrapToAdminV1(f AdmitV1Func) AdmitHandler

type AdmitV1Beta1Func added in v0.0.3

type AdmitV1Beta1Func func(review v1beta1.AdmissionReview) *v1beta1.AdmissionResponse

AdmitV1Beta1Func hadnler for v1beta1 Admission version

type AdmitV1Func added in v0.0.3

type AdmitV1Func func(review v1.AdmissionReview) *v1.AdmissionResponse

AdmitV1Func handler for v1 Admission version

Directories

Path Synopsis
Package net contains function and type to handle http request and response
Package net contains function and type to handle http request and response

Jump to

Keyboard shortcuts

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