webhook

package
v0.0.0-...-5241e9a Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Admit(resp *Response, req *Request) error
}

type HandlerFunc

type HandlerFunc func(resp *Response, req *Request) error

func (HandlerFunc) Admit

func (h HandlerFunc) Admit(resp *Response, req *Request) error

type Request

type Request struct {
	v1.AdmissionRequest

	Context context.Context
}

func (*Request) DecodeObject

func (r *Request) DecodeObject(obj kclient.Object) error

func (*Request) DecodeOldObject

func (r *Request) DecodeOldObject(obj kclient.Object) error

type Response

type Response struct {
	v1.AdmissionResponse
}

func (*Response) CreatePatch

func (r *Response) CreatePatch(request *Request, newObj kclient.Object) error

type RouteMatch

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

func (*RouteMatch) DryRun

func (r *RouteMatch) DryRun(dryRun bool) *RouteMatch

func (*RouteMatch) Group

func (r *RouteMatch) Group(group string) *RouteMatch

func (*RouteMatch) Handle

func (r *RouteMatch) Handle(handler Handler)

func (*RouteMatch) HandleFunc

func (r *RouteMatch) HandleFunc(handler HandlerFunc)

func (*RouteMatch) Kind

func (r *RouteMatch) Kind(kind string) *RouteMatch

func (*RouteMatch) Name

func (r *RouteMatch) Name(name string) *RouteMatch

func (*RouteMatch) Namespace

func (r *RouteMatch) Namespace(namespace string) *RouteMatch

func (*RouteMatch) Operation

func (r *RouteMatch) Operation(operation v1.Operation) *RouteMatch

func (*RouteMatch) Resource

func (r *RouteMatch) Resource(resource string) *RouteMatch

func (*RouteMatch) SubResource

func (r *RouteMatch) SubResource(sr string) *RouteMatch

func (*RouteMatch) Version

func (r *RouteMatch) Version(version string) *RouteMatch

type Router

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

func NewRouter

func NewRouter() *Router

func (*Router) DryRun

func (r *Router) DryRun(dryRun bool) *RouteMatch

func (*Router) Group

func (r *Router) Group(group string) *RouteMatch

func (*Router) Handle

func (r *Router) Handle(handler Handler)

func (*Router) HandleFunc

func (r *Router) HandleFunc(hf HandlerFunc)

func (*Router) Kind

func (r *Router) Kind(kind string) *RouteMatch

func (*Router) Name

func (r *Router) Name(name string) *RouteMatch

func (*Router) Namespace

func (r *Router) Namespace(namespace string) *RouteMatch

func (*Router) Operation

func (r *Router) Operation(operation v1.Operation) *RouteMatch

func (*Router) Resource

func (r *Router) Resource(resource string) *RouteMatch

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(rw http.ResponseWriter, req *http.Request)

func (*Router) SubResource

func (r *Router) SubResource(subResource string) *RouteMatch

func (*Router) Version

func (r *Router) Version(version string) *RouteMatch

Jump to

Keyboard shortcuts

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