Versions in this module Expand all Collapse all v3 v3.0.1 Nov 27, 2020 Changes in this version + const ImpliedConjunction + const Version + func Can(s Subject, action string, r Resource) (bool, error) + type Access string + const Allow + const Deny + type ConditionSet struct + func ResourceMatch(es ...Evaluator) ConditionSet + type Error string + func (e Error) Error() string + type Evaluator interface + func And(subEvaluators ...Evaluator) Evaluator + func Cond(left interface{}, op string, right interface{}) Evaluator + func Or(subEvaluators ...Evaluator) Evaluator + type Resource interface + GetResourceAttribute func(string) (interface{}, error) + GetResourceType func() (string, error) + type Rule struct + func (r *Rule) UnmarshalJSON(data []byte) error + func (r Rule) Access(at Access) *Rule + func (r Rule) Meta(meta interface{}) *Rule + func (r Rule) Where(action, resourceType SlugSet, conditions ConditionSet) *Rule + type SlugSet struct + func Action(sset ...string) SlugSet + func Not(s SlugSet) SlugSet + func ResourceType(sset ...string) SlugSet + type Subject interface + GetRules func() ([]*Rule, error) Other modules containing this package github.com/cloudflare/authr