Documentation ¶
Overview ¶
Package webhook implements the authenticator.Token interface using HTTP webhooks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookTokenAuthenticator ¶
type WebhookTokenAuthenticator struct {
// contains filtered or unexported fields
}
func New ¶
func New(kubeConfigFile string, ttl time.Duration) (*WebhookTokenAuthenticator, error)
New creates a new WebhookTokenAuthenticator from the provided kubeconfig file.
func NewFromInterface ¶ added in v1.5.1
func NewFromInterface(tokenReview authenticationclient.TokenReviewInterface, ttl time.Duration) (*WebhookTokenAuthenticator, error)
NewFromInterface creates a webhook authenticator using the given tokenReview client
func (*WebhookTokenAuthenticator) AuthenticateToken ¶
AuthenticateToken implements the authenticator.Token interface.
Click to show internal directories.
Click to hide internal directories.