Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Adapt ¶
func Adapt(c AdmissionHandlerType) admission.AdmissionHandlerType
Types ¶
type DefaultHandler ¶
type DefaultHandler struct { }
DefaultHandler can be used for a default implementation of all interface methods
func (*DefaultHandler) Handle ¶
func (this *DefaultHandler) Handle(logger.LogContext, Request) admission.Response
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
Click to show internal directories.
Click to hide internal directories.