Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(client authnclientv1.AuthenticationV1Interface) authenticator.Request
func NewAuthorizer ¶
func NewAuthorizer(client authzclientv1.AuthorizationV1Interface) authorizer.Authorizer
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware performs delegated authentication and authorization for HTTP handlers.
func NewMiddleware ¶
func NewMiddleware(authn authenticator.Request, authz authorizer.Authorizer, attrs ResourceAttributes) *Middleware
func NewMiddlewareFromKubeClient ¶
func NewMiddlewareFromKubeClient(client kubernetes.Interface, attrs ResourceAttributes) *Middleware
type ResourceAttributes ¶
type ResourceAttributes struct {
Group string `json:"group"`
Version string `json:"version"`
Resource string `json:"resource"`
Namespace string `json:"namespace"`
Name string `json:"name"`
Subresource string `json:"subresource"`
}
func (*ResourceAttributes) Validate ¶
func (r *ResourceAttributes) Validate() error
Click to show internal directories.
Click to hide internal directories.