Versions in this module Expand all Collapse all v1 v1.0.0 Oct 26, 2023 Changes in this version + const AssetDebug + func Asset(name string) ([]byte, error) + func AssetDigest(name string) ([sha256.Size]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func AssetString(name string) (string, error) + func Digests() (map[string][sha256.Size]byte, error) + func MustAsset(name string) []byte + func MustAssetString(name string) string + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type EvaluationError struct + func (e *EvaluationError) Error() string + type OptFunc func(*State) + func WithModules(mods map[string]*ast.Module) OptFunc + type State struct + func New(_ context.Context, opts ...OptFunc) (*State, error) + func (s *State) DumpData(ctx context.Context) error + func (s *State) FilterAuthorizedPairs(ctx context.Context, subjects engine.Subjects, pairs engine.Pairs) (engine.Pairs, error) + func (s *State) FilterAuthorizedProjects(ctx context.Context, subjects engine.Subjects) (engine.Projects, error) + func (s *State) IsAuthorized(ctx context.Context, subject engine.Subject, action engine.Action, ...) (bool, error) + func (s *State) ProjectsAuthorized(ctx context.Context, subjects engine.Subjects, action engine.Action, ...) (engine.Projects, error) + func (s *State) SetPolicies(ctx context.Context, policyMap engine.PolicyMap, roleMap engine.RoleMap) error + type UnexpectedResultExpressionError struct + func (e *UnexpectedResultExpressionError) Error() string + type UnexpectedResultSetError struct + func (e *UnexpectedResultSetError) Error() string