Versions in this module Expand all Collapse all v0 v0.2.0 Oct 25, 2026 Changes in this version + type Action struct + ID string + type Principal struct + ID string + Type string + type Resource struct + ID string + Type string v0.1.0 Oct 18, 2026 Changes in this version + var ErrInvalidConfiguration = errors.New("authorization: invalid configuration") + var ErrInvalidRequest = errors.New("authorization: invalid request") + var ErrInvalidSource = errors.New("authorization: invalid source") + var ErrSource = errors.New("authorization: source unavailable") + type Authorizer interface + Authorize func(context.Context, Request) (Decision, error) + type Decision struct + Allowed bool + Errors []string + Reasons []string + type Entity struct + ID string + Type string + type EntitySource interface + Entities func(context.Context, Request) ([]byte, error) + type PolicySource interface + Policies func(context.Context) ([]byte, error) + type Request struct + Action Entity + Context map[string]any + Principal Entity + Resource Entity