traffic

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrafficWebhookHandler

type TrafficWebhookHandler[T runtime.Object] struct {
	// Creates a new traffic object. Example, an empty *Ingress
	NewObj func() T
	// Creates a traffic accessor for the given traffic object
	NewAccessor func(T) trafficapi.Interface

	HostService trafficctrl.HostService
	CertService trafficctrl.CertificateService
	// contains filtered or unexported fields
}

TrafficWebhookHandler implements the admission Handler interface with the generic logic to handle requests for an object that can be wrapped around the traffic interface

func NewTrafficWebhookHandler

func NewTrafficWebhookHandler[T runtime.Object](
	addToScheme func(s *runtime.Scheme) error,
	newObj func() T,
	newAccessor func(T) trafficapi.Interface,

	hostService trafficctrl.HostService,
	certService trafficctrl.CertificateService,
) (*TrafficWebhookHandler[T], error)

func (*TrafficWebhookHandler[T]) Handle

Jump to

Keyboard shortcuts

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