filters

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuditing

func WithAuditing(handler http.Handler, a auditing.Auditing) http.Handler

func WithAuthentication

func WithAuthentication(handler http.Handler, auth authenticator.Request, loginRecorder im.LoginRecorder) http.Handler

WithAuthentication installs authentication handler to handler chain. The following part is a little bit ugly, WithAuthentication also logs user failed login attempt if using basic auth. But only treats request with requestURI `/oauth/authorize` as login attempt

func WithAuthorization

func WithAuthorization(handler http.Handler, authorizers authorizer.Authorizer) http.Handler

WithAuthorization passes all authorized requests on to handler, and returns forbidden error otherwise.

func WithKubeAPIServer

func WithKubeAPIServer(handler http.Handler, config *rest.Config, failed proxy.ErrorResponder) http.Handler

WithKubeAPIServer proxy request to kubernetes service if requests path starts with /api

func WithMultipleClusterDispatcher

func WithMultipleClusterDispatcher(handler http.Handler, dispatch dispatch.Dispatcher) http.Handler

Multiple cluster dispatcher forward request to desired cluster based on request cluster name which included in request path clusters/{cluster}

func WithRequestInfo

func WithRequestInfo(handler http.Handler, resolver request.RequestInfoResolver) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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