Versions in this module Expand all Collapse all v0 v0.5.0 Mar 28, 2026 v0.4.0 Mar 23, 2026 Changes in this version + var Allow = privacy.Allow + var Deny = privacy.Deny + var Skip = privacy.Skip + func Allowf(format string, a ...any) error + func DecisionContext(parent context.Context, decision error) context.Context + func DecisionFromContext(ctx context.Context) (error, bool) + func Denyf(format string, a ...any) error + func Skipf(format string, a ...any) error + type AgentMutationRuleFunc func(context.Context, *ent.AgentMutation) error + func (f AgentMutationRuleFunc) EvalMutation(ctx context.Context, m ent.Mutation) error + type AgentQueryRuleFunc func(context.Context, *ent.AgentQuery) error + func (f AgentQueryRuleFunc) EvalQuery(ctx context.Context, q ent.Query) error + type EventMutationRuleFunc func(context.Context, *ent.EventMutation) error + func (f EventMutationRuleFunc) EvalMutation(ctx context.Context, m ent.Mutation) error + type EventQueryRuleFunc func(context.Context, *ent.EventQuery) error + func (f EventQueryRuleFunc) EvalQuery(ctx context.Context, q ent.Query) error + type Filter interface + Where func(entql.P) + type FilterFunc func(context.Context, Filter) error + func (f FilterFunc) EvalMutation(ctx context.Context, m ent.Mutation) error + func (f FilterFunc) EvalQuery(ctx context.Context, q ent.Query) error + type MutationPolicy = privacy.MutationPolicy + type MutationRule = privacy.MutationRule + func DenyMutationOperationRule(op ent.Op) MutationRule + func OnMutationOperation(rule MutationRule, op ent.Op) MutationRule + type MutationRuleFunc = privacy.MutationRuleFunc + type Policy = privacy.Policy + type QueryMutationRule = privacy.QueryMutationRule + func AlwaysAllowRule() QueryMutationRule + func AlwaysDenyRule() QueryMutationRule + func ContextQueryMutationRule(eval func(context.Context) error) QueryMutationRule + type QueryPolicy = privacy.QueryPolicy + type QueryRule = privacy.QueryRule + type QueryRuleFunc func(context.Context, ent.Query) error + func (f QueryRuleFunc) EvalQuery(ctx context.Context, q ent.Query) error