type
AccessDecision
type AccessDecision struct {
kind AccessDecisionKind
expression query.Expression
}An allow, deny, or filtered authorization result.
Allowfunc() AccessDecision- Authorize without a document predicate.
Denyfunc() AccessDecision- Reject the operation.
Wherefunc(query.Expression) AccessDecision- Require a predicate on the atomic store operation.
Kindfunc() AccessDecisionKind- Report allow, deny, or filtered.
Filterfunc() (query.Node, bool)- Return a detached predicate for a filtered decision.
AccessDecision is immutable. Construct it with Allow, Deny, or Where; filtered predicates remain attached to the same atomic store query as the operation.
Methods
AccessDecision.Filter()Filter returns a detached predicate for a filtered decision.
AccessDecision.Kind()Kind reports whether the decision allows, denies, or filters the operation.