Documentation
¶
Index ¶
- func NewInMemoryManager(cfg *egv1a1.ExtensionManager, server extension.EnvoyGatewayExtensionServer) (extTypes.Manager, func(), error)
- func NewManager(cfg *config.Server, inK8s bool) (extTypes.Manager, error)
- type Manager
- func (m *Manager) CleanupHookConns()
- func (m *Manager) FailOpen() bool
- func (m *Manager) GetPostXDSHookClient(xdsHookType egv1a1.XDSTranslatorHook) (extTypes.XDSHookClient, error)
- func (m *Manager) GetPreXDSHookClient(xdsHookType egv1a1.XDSTranslatorHook) (extTypes.XDSHookClient, error)
- func (m *Manager) GetTranslationHookConfig() *egv1a1.TranslationConfig
- func (m *Manager) HasExtension(g gwapiv1.Group, k gwapiv1.Kind) bool
- type XDSHook
- func (h *XDSHook) PostClusterModifyHook(cluster *cluster.Cluster, extensionResources []*unstructured.Unstructured) (*cluster.Cluster, error)
- func (h *XDSHook) PostHTTPListenerModifyHook(l *listener.Listener, extensionResources []*unstructured.Unstructured) (*listener.Listener, error)
- func (h *XDSHook) PostRouteModifyHook(route *route.Route, routeHostnames []string, ...) (*route.Route, error)
- func (h *XDSHook) PostTranslateModifyHook(clusters []*cluster.Cluster, secrets []*tls.Secret, ...) ([]*cluster.Cluster, []*tls.Secret, []*listener.Listener, ...)
- func (h *XDSHook) PostVirtualHostModifyHook(vh *route.VirtualHost) (*route.VirtualHost, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInMemoryManager ¶ added in v1.1.0
func NewInMemoryManager(cfg *egv1a1.ExtensionManager, server extension.EnvoyGatewayExtensionServer) (extTypes.Manager, func(), error)
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) CleanupHookConns ¶
func (m *Manager) CleanupHookConns()
func (*Manager) FailOpen ¶ added in v1.3.0
FailOpen returns true if the extension manager is configured to fail open, and false otherwise.
func (*Manager) GetPostXDSHookClient ¶
func (m *Manager) GetPostXDSHookClient(xdsHookType egv1a1.XDSTranslatorHook) (extTypes.XDSHookClient, error)
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 egv1a1.XDSTranslatorHook) (extTypes.XDSHookClient, error)
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) GetTranslationHookConfig ¶ added in v1.5.0
func (m *Manager) GetTranslationHookConfig() *egv1a1.TranslationConfig
GetTranslationHookConfig returns the translation hook configuration.
type XDSHook ¶
type XDSHook struct {
// contains filtered or unexported fields
}
func (*XDSHook) PostClusterModifyHook ¶ added in v1.5.0
func (h *XDSHook) PostClusterModifyHook(cluster *cluster.Cluster, extensionResources []*unstructured.Unstructured) (*cluster.Cluster, error)
func (*XDSHook) PostHTTPListenerModifyHook ¶
func (h *XDSHook) PostHTTPListenerModifyHook(l *listener.Listener, extensionResources []*unstructured.Unstructured) (*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 (*XDSHook) PostVirtualHostModifyHook ¶
func (h *XDSHook) PostVirtualHostModifyHook(vh *route.VirtualHost) (*route.VirtualHost, error)