Versions in this module Expand all Collapse all v1 v1.4.0 Aug 15, 2026 Changes in this version + var ErrNoSchemaState = errors.New("no schema state — push the schema first") + func FieldVerdictsForCaller(snapshot *Snapshot, caller Caller) (map[string]map[string]FieldVerdict, error) + func IdentityScopedTables(ctx context.Context) (map[string]bool, bool) + func IsIdentityDependent(raw json.RawMessage) bool + func IsRowDependent(raw json.RawMessage) bool + func MaskedFields(ctx context.Context) (map[string][]FieldMask, bool) + func ResetIdentityScopeCache() + type Caller struct + AppRole string + Claims map[string]any + UserID string + type FieldMask struct + Column string + RowDependent bool + type FieldVerdict struct + Create Verdict + Read Verdict + Write Verdict + type Model struct + Access map[string]Verdict + Name string + Table string + func FilterForCaller(snapshot *Snapshot, caller Caller) ([]Model, error) + type Snapshot struct + AST json.RawMessage + AdminConfig json.RawMessage + Hash string + func LoadSnapshot(ctx context.Context) (*Snapshot, error) + type Verdict string + const VerdictAllow + const VerdictDeny + const VerdictRow + func Evaluate(raw json.RawMessage, caller Caller) Verdict