Documentation ¶
Index ¶
- Constants
- func Authentication(authInfoParser AuthInfoParser, identityProvider IdentityProvider) func(http.Handler) http.Handler
- func CFCliVersion(next http.Handler) http.Handler
- func CFUser(nsPermissionChecker NamespacePermissionChecker, ...) func(http.Handler) http.Handler
- func Correlation(logger logr.Logger) func(http.Handler) http.Handler
- func HTTPLogging(next http.Handler) http.Handler
- type AuthInfoParser
- type IdentityProvider
- type NamespacePermissionChecker
Constants ¶
View Source
const CorrelationIDHeader = "X-Correlation-ID"
Variables ¶
This section is empty.
Functions ¶
func Authentication ¶
func Authentication( authInfoParser AuthInfoParser, identityProvider IdentityProvider, ) func(http.Handler) http.Handler
Types ¶
type AuthInfoParser ¶
type AuthInfoParser interface {
Parse(authHeader string) (authorization.Info, error)
}
type IdentityProvider ¶
type IdentityProvider interface {
GetIdentity(context.Context, authorization.Info) (authorization.Identity, error)
}
type NamespacePermissionChecker ¶ added in v0.7.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.