Documentation ¶
Index ¶
- func NewManager(ext v1alpha1.ExtensionManager) extType.Manager
- type Manager
- type XDSHookClient
- func (c *XDSHookClient) PostHTTPListenerModifyHook(l *listenerV3.Listener) (*listenerV3.Listener, error)
- func (c *XDSHookClient) PostRouteModifyHook(route *routeV3.Route, routeHostnames []string, ...) (*routeV3.Route, error)
- func (c *XDSHookClient) PostTranslateModifyHook(clusters []*clusterV3.Cluster, secrets []*tlsV3.Secret) ([]*clusterV3.Cluster, []*tlsV3.Secret, error)
- func (c *XDSHookClient) PostVirtualHostModifyHook(vh *routeV3.VirtualHost) (*routeV3.VirtualHost, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
func NewManager(ext v1alpha1.ExtensionManager) extType.Manager
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) GetPostXDSHookClient ¶
func (m *Manager) GetPostXDSHookClient(xdsHookType v1alpha1.XDSTranslatorHook) extType.XDSHookClient
func (*Manager) GetPreXDSHookClient ¶
func (m *Manager) GetPreXDSHookClient(xdsHookType v1alpha1.XDSTranslatorHook) extType.XDSHookClient
type XDSHookClient ¶
type XDSHookClient struct{}
func (*XDSHookClient) PostHTTPListenerModifyHook ¶
func (c *XDSHookClient) PostHTTPListenerModifyHook(l *listenerV3.Listener) (*listenerV3.Listener, error)
PostHTTPListenerModifyHook returns a modified version of the listener with a changed statprefix of the listener A more useful use-case for an extension would be looping through the FilterChains to find the HTTPConnectionManager(s) and inject a custom HTTPFilter, but that for testing purposes we don't need to make a complex change
func (*XDSHookClient) PostRouteModifyHook ¶
func (c *XDSHookClient) PostRouteModifyHook(route *routeV3.Route, routeHostnames []string, extensionResources []*unstructured.Unstructured) (*routeV3.Route, error)
PostRouteModifyHook returns a modified version of the route using context info and the passed in extensionResources
func (*XDSHookClient) PostTranslateModifyHook ¶
func (c *XDSHookClient) PostTranslateModifyHook(clusters []*clusterV3.Cluster, secrets []*tlsV3.Secret) ([]*clusterV3.Cluster, []*tlsV3.Secret, error)
PostTranslateModifyHook inserts and overrides some clusters/secrets
func (*XDSHookClient) PostVirtualHostModifyHook ¶
func (c *XDSHookClient) PostVirtualHostModifyHook(vh *routeV3.VirtualHost) (*routeV3.VirtualHost, error)
PostVirtualHostModifyHook returns a modified version of the virtualhost with a new route injected
Click to show internal directories.
Click to hide internal directories.