func VerbMatches(rule *rbacv1.PolicyRule, requestedVerb string) bool { … }
func APIGroupMatches(rule *rbacv1.PolicyRule, requestedGroup string) bool { … }
func ResourceMatches(rule *rbacv1.PolicyRule, combinedRequestedResource, requestedSubresource string) bool { … }
func ResourceNameMatches(rule *rbacv1.PolicyRule, requestedName string) bool { … }
func NonResourceURLMatches(rule *rbacv1.PolicyRule, requestedURL string) bool { … }
func CompactString(r rbacv1.PolicyRule) string { … }
type SortableRuleSlice …
func (s SortableRuleSlice) Len() int { … }
func (s SortableRuleSlice) Swap(i, j int) { … }
func (s SortableRuleSlice) Less(i, j int) bool { … }