package webhook
import "k8s.io/kubernetes/plugin/pkg/auth/authenticator/token/webhook"
Package webhook implements the authenticator.Token interface using HTTP webhooks.
Index ¶
- type WebhookTokenAuthenticator
- func New(kubeConfigFile string, ttl time.Duration) (*WebhookTokenAuthenticator, error)
- func NewFromInterface(tokenReview authenticationclient.TokenReviewInterface, ttl time.Duration) (*WebhookTokenAuthenticator, error)
- func (w *WebhookTokenAuthenticator) AuthenticateToken(token string) (user.Info, bool, error)
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 ¶
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.
Source Files ¶
webhook.go
- Version
- v1.5.4-beta.0
- Published
- Feb 15, 2017
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 22 seconds ago –
Tools for package owners.