Versions in this module Expand all Collapse all v0 v0.0.310 Jun 15, 2022 Changes in this version + func APIGroupMatches(rule *rbacv1.PolicyRule, requestedGroup string) bool + func CompactString(r rbacv1.PolicyRule) string + func NonResourceURLMatches(rule *rbacv1.PolicyRule, requestedURL string) bool + func ResourceMatches(rule *rbacv1.PolicyRule, ...) bool + func ResourceNameMatches(rule *rbacv1.PolicyRule, requestedName string) bool + func RoleRefGroupKind(roleRef rbacv1.RoleRef) schema.GroupKind + func String(r rbacv1.PolicyRule) string + func SubjectsStrings(subjects []rbacv1.Subject) ([]string, []string, []string, []string) + func VerbMatches(rule *rbacv1.PolicyRule, requestedVerb string) bool + type RBACAuthorizer struct + func NewRBACAuthorizer(am am.AccessManagementInterface) *RBACAuthorizer + func (r *RBACAuthorizer) Authorize(requestAttributes authorizer.Attributes) (authorizer.Decision, string, error) + type SortableRuleSlice []rbacv1.PolicyRule + func (s SortableRuleSlice) Len() int + func (s SortableRuleSlice) Less(i, j int) bool + func (s SortableRuleSlice) Swap(i, j int)