Documentation ¶
Index ¶
- func WithAuditing(handler http.Handler, a auditing.Auditing) http.Handler
- func WithAuthentication(handler http.Handler, authRequest authenticator.Request) http.Handler
- func WithAuthorization(handler http.Handler, authorizers authorizer.Authorizer) http.Handler
- func WithKubeAPIServer(handler http.Handler, config *rest.Config, failed proxy.ErrorResponder) http.Handler
- func WithMultipleClusterDispatcher(handler http.Handler, dispatch dispatch.Dispatcher) http.Handler
- func WithRequestInfo(handler http.Handler, resolver request.RequestInfoResolver) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAuthentication ¶
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 ¶
Multiple cluster dispatcher forward request to desired cluster based on request cluster name which included in request path clusters/{cluster}
func WithRequestInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.