bound

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Adapter

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

func (*Adapter) Handle

func (this *Adapter) Handle(logger logger.LogContext, request admission.Request) admission.Response

type AdmissionHandlerType

type AdmissionHandlerType func(webhook.Interface) (Interface, error)

type DefaultHandler

type DefaultHandler struct {
}

DefaultHandler can be used for a default implementation of all interface methods

func (*DefaultHandler) Handle

type Interface

type Interface interface {
	Handle(logger.LogContext, Request) admission.Response
}

Interface can handle an AdmissionRequest.

type Request

type Request struct {
	Request   admission.Request
	Object    resources.Object
	OldObject resources.Object
}

Request describes the admission.Attributes for the admission request.

type WebhookFunc

type WebhookFunc func(logger.LogContext, Request) admission.Response

WebhookFunc implements Handler interface using a single function.

func (WebhookFunc) Handle

func (this WebhookFunc) Handle(logger logger.LogContext, req Request) admission.Response

Handle process the AdmissionRequest by invoking the underlying function.

func (WebhookFunc) Type

func (this WebhookFunc) Type() AdmissionHandlerType

Jump to

Keyboard shortcuts

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