server

package
v0.0.0-...-2d2e921 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 39 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WebhookPathIndexKey = ".metadata.webhookPath"
)

Functions

func IndexReceiverWebhookPath

func IndexReceiverWebhookPath(o client.Object) []string

IndexReceiverWebhookPath is a client.IndexerFunc that returns the Receiver's webhook path, if present in its status.

Types

type EventServer

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

EventServer handles event POST requests

func NewEventServer

func NewEventServer(port string, logger logr.Logger, kubeClient client.Client, noCrossNamespaceRefs 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) *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

Jump to

Keyboard shortcuts

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