Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2019 Changes in this version + var ConditionFactories = map[string]func() Condition + type Condition interface + Fulfills func(interface{}, *Request) bool + GetName func() string + Values func(string, map[string]interface{}) bool + type Conditions map[string]Condition + func (cs Conditions) AddCondition(key string, c Condition) + func (cs Conditions) MarshalJSON() ([]byte, error) + func (cs Conditions) UnmarshalJSON(data []byte) error + type Context map[string]interface + type Request struct + Action string + Context Context + Resource string + Subject string + type StringEqualCondition struct + Equals string + func (c *StringEqualCondition) Fulfills(value interface{}, _ *Request) bool + func (c *StringEqualCondition) GetName() string + func (c *StringEqualCondition) Values(expression string, values map[string]interface{}) bool