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 ¶
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
Click to show internal directories.
Click to hide internal directories.