Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthChecker ¶
type AuthChecker interface { // Check checks if the caller can perform an operation Check(ctx context.Context, group, version, resource, subresource, namespace, verb string) (*AuthResult, error) }
AuthChecker provides utility to check authorization
func NewSelfChecker ¶
func NewSelfChecker(client authorizationv1client.SelfSubjectAccessReviewInterface) AuthChecker
func NewSubjectChecker ¶
func NewSubjectChecker(client authorizationv1client.SubjectAccessReviewInterface, user string, groups []string) AuthChecker
type AuthResult ¶
AuthResult contains authorization check result
Click to show internal directories.
Click to hide internal directories.