middleware

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuthorization added in v0.2.0

func CheckAuthorization(client client.Client, log logr.Logger, tls bool) mux.MiddlewareFunc

func CheckJWTMiddleware

func CheckJWTMiddleware(client client.Client, log logr.Logger) mux.MiddlewareFunc

func CheckPaths added in v0.2.0

func CheckPaths(client client.Client, log logr.Logger, allowedPaths sets.String, skipTo func(writer http.ResponseWriter, request *http.Request)) mux.MiddlewareFunc

func CheckUserInCapsuleGroupMiddleware

func CheckUserInCapsuleGroupMiddleware(client client.Client, log logr.Logger, claim string, impersonate func(http.ResponseWriter, *http.Request)) mux.MiddlewareFunc

func CheckUserInIgnoredGroupMiddleware added in v0.1.1

func CheckUserInIgnoredGroupMiddleware(client client.Client, log logr.Logger, claim string, ignoredUserGroups sets.String, fn func(writer http.ResponseWriter, request *http.Request)) mux.MiddlewareFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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