proxy

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAvailablePlugin = fmt.Errorf("there is no available proxy for the plugin")

ErrAvailablePlugin -

View Source
var RouteCtxKey = "route"

RouteCtxKey the context key to save the route

Functions

func DisableClusterGatewayAuthTransportWrapper

func DisableClusterGatewayAuthTransportWrapper() transport.WrapperFunc

DisableClusterGatewayAuthTransportWrapper disable impersonate feature in Cluster Gateway

Types

type BackendProxy

type BackendProxy interface {
	Handler(*http.Request, http.ResponseWriter)
}

BackendProxy -

func NewBackendPluginProxy

func NewBackendPluginProxy(plugin *types.Plugin, kubeClient client.Client, kubeConfig *rest.Config) (BackendProxy, error)

NewBackendPluginProxy create or return a proxy tool for a plugin

func NewKubeAPIProxy

func NewKubeAPIProxy(kubeConfig *rest.Config, plugin *types.Plugin) (BackendProxy, error)

NewKubeAPIProxy create a proxy for the Kubernetes API

func NewKubeServiceProxy

func NewKubeServiceProxy(kubeClient client.Client, plugin *types.Plugin) BackendProxy

NewKubeServiceProxy create a proxy for the service

Jump to

Keyboard shortcuts

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