Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToMiddleware ¶
func ToMiddleware(auth Authenticator) func(rw http.ResponseWriter, req *http.Request, next http.Handler)
func WebhookConfigForURL ¶
Types ¶
type Authenticator ¶
func NewWebhookAuthenticator ¶
func NewWebhookAuthenticator(cacheTTL time.Duration, kubeConfigFile string) (Authenticator, error)
type AuthenticatorFunc ¶
func (AuthenticatorFunc) Authenticate ¶
type Middleware ¶
func NewWebhookMiddleware ¶
func NewWebhookMiddleware(cacheTTL time.Duration, kubeConfigFile string) (Middleware, error)
Click to show internal directories.
Click to hide internal directories.