Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
WebhookPathIndexKey = ".metadata.webhookPath"
)
Functions ¶
func IndexReceiverWebhookPath ¶ added in v1.0.0
IndexReceiverWebhookPath is a client.IndexerFunc that returns the Receiver's webhook path, if present in its status.
Types ¶
type EventServer ¶
type EventServer struct { kuberecorder.EventRecorder // contains filtered or unexported fields }
EventServer handles event POST requests
func NewEventServer ¶
func NewEventServer(port string, logger logr.Logger, kubeClient client.Client, eventRecorder kuberecorder.EventRecorder, noCrossNamespaceRefs bool, exportHTTPPathMetrics bool) *EventServer
NewEventServer returns an HTTP server that handles events
func (*EventServer) ListenAndServe ¶
func (s *EventServer) ListenAndServe(stopCh <-chan struct{}, mdlw middleware.Middleware, store limiter.Store)
ListenAndServe starts the HTTP server on the specified port
type ReceiverServer ¶
type ReceiverServer struct {
// contains filtered or unexported fields
}
ReceiverServer handles webhook POST requests
func NewReceiverServer ¶
func NewReceiverServer(port string, logger logr.Logger, kubeClient client.Client, exportHTTPPathMetrics bool) *ReceiverServer
NewReceiverServer returns an HTTP server that handles webhooks
func (*ReceiverServer) ListenAndServe ¶
func (s *ReceiverServer) ListenAndServe(stopCh <-chan struct{}, mdlw middleware.Middleware)
ListenAndServe starts the HTTP server on the specified port
Click to show internal directories.
Click to hide internal directories.