registry

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager

func NewManager(cfg *config.Server) (extTypes.Manager, error)

NewManager returns a new Manager

Types

type Manager

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

func (*Manager) CleanupHookConns

func (m *Manager) CleanupHookConns()

func (*Manager) GetPostXDSHookClient

func (m *Manager) GetPostXDSHookClient(xdsHookType v1alpha1.XDSTranslatorHook) extTypes.XDSHookClient

GetPostXDSHookClient checks if the registered extension makes use of a particular hook type that modifies xDS resources after they are generated by Envoy Gateway. If the extension makes use of the hook then the XDS Hook Client is returned. If it does not support the hook type then nil is returned

func (*Manager) GetPreXDSHookClient

func (m *Manager) GetPreXDSHookClient(xdsHookType v1alpha1.XDSTranslatorHook) extTypes.XDSHookClient

GetPreXDSHookClient checks if the registered extension makes use of a particular hook type that modifies inputs that are used to generate an xDS resource. If the extension makes use of the hook then the XDS Hook Client is returned. If it does not support the hook type then nil is returned

func (*Manager) HasExtension

func (m *Manager) HasExtension(g v1.Group, k v1.Kind) bool

HasExtension checks to see whether a given Group and Kind has an associated extension registered for it.

type XDSHook

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

func (*XDSHook) PostHTTPListenerModifyHook

func (h *XDSHook) PostHTTPListenerModifyHook(l *listener.Listener) (*listener.Listener, error)

func (*XDSHook) PostRouteModifyHook

func (h *XDSHook) PostRouteModifyHook(route *route.Route, routeHostnames []string, extensionResources []*unstructured.Unstructured) (*route.Route, error)

func (*XDSHook) PostTranslateModifyHook

func (h *XDSHook) PostTranslateModifyHook(clusters []*cluster.Cluster, secrets []*tls.Secret) ([]*cluster.Cluster, []*tls.Secret, error)

func (*XDSHook) PostVirtualHostModifyHook

func (h *XDSHook) PostVirtualHostModifyHook(vh *route.VirtualHost) (*route.VirtualHost, error)

Jump to

Keyboard shortcuts

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