Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BreakdownRule ¶
func BreakdownRule(rule rbacv1.PolicyRule) []rbacv1.PolicyRule
BreadownRule takes a rule and builds an equivalent list of rules that each have at most one verb, one resource, and one resource name
func Covers ¶
func Covers(ownerRules, servantRules []rbacv1.PolicyRule) (bool, []rbacv1.PolicyRule)
Covers determines whether or not the ownerRules cover the servantRules in terms of allowed actions. It returns whether or not the ownerRules cover and a list of the rules that the ownerRules do not cover.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.