type policyLoadError …
func (p policyLoadError) Error() string { … }
type PolicyList …
func NewFromFile(path string) (PolicyList, error) { … }
func matches(p abac.Policy, a authorizer.Attributes) bool { … }
func subjectMatches(p abac.Policy, user user.Info) bool { … }
func verbMatches(p abac.Policy, a authorizer.Attributes) bool { … }
func nonResourceMatches(p abac.Policy, a authorizer.Attributes) bool { … }
func resourceMatches(p abac.Policy, a authorizer.Attributes) bool { … }
func (pl PolicyList) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) { … }
func (pl PolicyList) RulesFor(ctx context.Context, user user.Info, namespace string) ([]authorizer.ResourceRuleInfo, []authorizer.NonResourceRuleInfo, bool, error) { … }
func getVerbs(isReadOnly bool) []string { … }