Documentation ¶
Index ¶
Constants ¶
View Source
const FAILURE = "Failure"
View Source
const SUCCESS = "Success"
Variables ¶
This section is empty.
Functions ¶
func Conversion ¶
func Conversion(htype ConversionHandlerType) *configuration
func SchemeBasedConversion ¶
func SchemeBasedConversion() *configuration
Types ¶
type CRDDeclaration ¶
type CRDDeclaration struct {
resources.ObjectData
}
func (*CRDDeclaration) Kind ¶
func (this *CRDDeclaration) Kind() webhook.WebhookKind
type ConversionHandlerType ¶
type Definition ¶
type HTTPHandler ¶
type HTTPHandler struct { logger.LogContext // contains filtered or unexported fields }
HTTPHandler represents each individual webhook.
func (*HTTPHandler) ServeHTTP ¶
func (this *HTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*HTTPHandler) Webhook ¶
func (this *HTTPHandler) Webhook() Interface
type Interface ¶
type Interface interface {
Handle(log logger.LogContext, version string, obj runtime.RawExtension) (runtime.Object, error)
}
type Request ¶
type Request = api.ConversionRequest
type Response ¶
type Response = api.ConversionResponse
type WebhookFunc ¶
type WebhookFunc func(log logger.LogContext, version string, obj runtime.RawExtension) (runtime.Object, error)
WebhookFunc implements Handler interface using a single function.
func (WebhookFunc) Handle ¶
func (this WebhookFunc) Handle(log logger.LogContext, version string, obj runtime.RawExtension) (runtime.Object, error)
Handle process the AdmissionRequest by invoking the underlying function.
func (WebhookFunc) Type ¶
func (this WebhookFunc) Type() ConversionHandlerType
Source Files ¶
Click to show internal directories.
Click to hide internal directories.