Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubjectAccessReview ¶
type SubjectAccessReview interface { // UserCanImpersonateUser checks if user can impersonate as impUser UserCanImpersonateUser(req *http.Request, user, impUser string) (bool, error) // UserCanImpersonateGroups checks if user can impersonate as the groups UserCanImpersonateGroups(req *http.Request, user string, groups []string) (bool, error) }
SubjectAccessReview checks if a user can impersonate as another user or group
func NewSubjectAccessReview ¶
func NewSubjectAccessReview(clusterManager *clustermanager.Manager) SubjectAccessReview
Click to show internal directories.
Click to hide internal directories.