Versions in this module Expand all Collapse all v3 v3.0.0 May 12, 2022 Changes in this version + func ToMiddleware(auth Authenticator) func(rw http.ResponseWriter, req *http.Request, next http.Handler) + func WebhookConfigForURL(url string) (string, error) + type Authenticator interface + Authenticate func(req *http.Request) (user.Info, bool, error) + func NewWebhookAuthenticator(cacheTTL time.Duration, kubeConfigFile string) (Authenticator, error) + type AuthenticatorFunc func(req *http.Request) (user.Info, bool, error) + func (a AuthenticatorFunc) Authenticate(req *http.Request) (user.Info, bool, error) + type Middleware func(http.ResponseWriter, *http.Request, http.Handler) + func NewWebhookMiddleware(cacheTTL time.Duration, kubeConfigFile string) (Middleware, error) + func (m Middleware) Wrap(handler http.Handler) http.Handler