webhook

package
v0.8.4-0...-97960e5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 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 {
	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
	// contains filtered or unexported fields
}

func (*Request) DecodeObject

func (r *Request) DecodeObject() (runtime.Object, error)

func (*Request) DecodeOldObject

func (r *Request) DecodeOldObject() (runtime.Object, error)

type Response

type Response struct {
	v1.AdmissionResponse
}

func (*Response) CreatePatch

func (r *Response) CreatePatch(request *Request, newObj runtime.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) *RouteMatch

func (*RouteMatch) HandleFunc

func (r *RouteMatch) HandleFunc(handler HandlerFunc) *RouteMatch

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) Type

func (r *RouteMatch) Type(objType runtime.Object) *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) *RouteMatch

func (*Router) HandleFunc

func (r *Router) HandleFunc(hf HandlerFunc) *RouteMatch

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) Type

func (r *Router) Type(objType runtime.Object) *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