Versions in this module Expand all Collapse all v1 v1.56.0 Jul 24, 2026 v1.55.0 Jul 24, 2026 Changes in this version + type CheckRequest struct + CaveatContext map[string]any + Permission string + ResourceID string + ResourceType string + SubjectID string + SubjectRelation string + SubjectType string + type CheckResult struct + HasPermission bool + IsConditional bool + MissingContext []string + type Config struct + CaveatTypeSet *caveattypes.TypeSet + Datastore datastore.Datastore + DispatchChunkSize uint16 + DispatchConcurrencyLimit uint16 + MaxDepth uint32 + SchemaCacheMaxCostBytes int64 + SchemaMode datalayer.SchemaMode + type Permissions struct + func NewPermissions(cfg Config) (*Permissions, error) + func (p *Permissions) Check(ctx context.Context, req CheckRequest) (CheckResult, error) + func (p *Permissions) Close() error