Documentation ¶
Index ¶
- func ConnectCluster(ctx context.Context, clusterName string, location *url.URL, ...) (http.Handler, error)
- func Location(clusterName string, apiEndpoint string, proxyURL string) (*url.URL, http.RoundTripper, error)
- func NewThrottledUpgradeAwareProxyHandler(location *url.URL, transport http.RoundTripper, ...) *proxy.UpgradeAwareHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectCluster ¶
func ConnectCluster(ctx context.Context, clusterName string, location *url.URL, transport http.RoundTripper, responder rest.Responder, impersonateSecretGetter func(context.Context, string) (*corev1.Secret, error)) (http.Handler, error)
ConnectCluster returns a handler for proxy cluster.
func Location ¶
func Location(clusterName string, apiEndpoint string, proxyURL string) (*url.URL, http.RoundTripper, error)
Location returns a URL to which one can send traffic for the specified cluster.
func NewThrottledUpgradeAwareProxyHandler ¶
func NewThrottledUpgradeAwareProxyHandler(location *url.URL, transport http.RoundTripper, wrapTransport, upgradeRequired bool, responder rest.Responder) *proxy.UpgradeAwareHandler
NewThrottledUpgradeAwareProxyHandler creates a new proxy handler with a default flush interval. Responder is required for returning errors to the caller.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.