opa – github.com/open-policy-agent/opa Directories

opa command

Directories

PathSynopsis
astPackage ast declares Rego syntax tree types and also includes a parser and compiler for preparing policies for execution in the policy engine.
ast/internal
ast/locationPackage location defines locations in Rego source code.
build
build/generate-man
bundlePackage bundle implements bundle loading.
cmdPackage cmd contains the entry points for OPA commands.
compilePackage compile implements bundles compilation and linking.
configPackage config implements OPA configuration file parsing and validation.
coverPackage cover reports coverage on modules.
dependenciesPackage dependencies provides functions for determining the set of ast.Refs that AST elements depend on.
downloadPackage download implements low-level OPA bundle downloading.
features
features/wasmImport this package to enable evaluation of rego code using the built-in wasm engine.
formatPackage format implements formatting of Rego source files.
internal
keys
loaderPackage loader contains utilities for loading files into OPA.
logging
logging/test
metricsPackage metrics contains helpers for performance metric management inside the policy engine.
pluginsPackage plugins implements plugin management for the policy engine.
plugins/bundlePackage bundle implements bundle loading.
plugins/discoveryPackage discovery implements configuration discovery.
plugins/logsPackage logs implements decision log buffering and uploading.
plugins/restPackage rest implements a REST client for communicating with remote services.
plugins/statusPackage status implements status reporting.
profilerPackage profiler computes and reports on the time spent on expressions.
refactorPackage refactor implements different refactoring operations over Rego modules.
regoPackage rego exposes high level APIs for evaluating Rego policies.
replPackage repl implements a Read-Eval-Print-Loop (REPL) for interacting with the policy engine.
resolver
resolver/wasm
runtimePackage runtime contains the entry point to the policy engine.
sdkPackage sdk contains a high-level API for embedding OPA inside of Go programs.
sdk/test
serverPackage server contains the policy engine's server handlers.
server/authorizerPackage authorizer provides authorization handlers to the server.
server/identifierPackage identifier provides handlers for associating an identity with incoming requests.
server/typesPackage types contains request/response types and codes for the server.
server/writerPackage writer contains utilities for writing responses in the server.
storagePackage storage exposes the policy engine's storage layer.
storage/diskPackage disk provides disk-based implementation of the storage.Store interface.
storage/inmemPackage inmem implements an in-memory version of the policy engine's storage layer.
storage/internal
test
test/authzPackage authz contains unit and benchmark tests for authz use-cases The public (non-test) APIs are meant to be used as helpers for other tests to build off of.
test/casesPackage cases contains utilities for evaluation test cases.
test/e2e
test/e2e/authz
test/e2e/concurrency
test/e2e/diagnostics
test/e2e/h2c
test/e2e/logs
test/e2e/logs/console
test/e2e/metrics
test/e2e/shutdown
test/e2e/tls
testerPackage tester contains utilities for executing Rego tests.
test/scheduler
test/wasm
test/wasm/cmd
test/wasm/cmd/wasm-rego-testgen
topdownPackage topdown provides low-level query evaluation support.
topdown/builtinsPackage builtins contains utilities for implementing built-in functions.
topdown/cachePackage cache defines the inter-query cache interface that can cache data across queries
topdown/copypropagation
topdown/lineage
typesPackage types declares data types for Rego values and helper functions to operate on these types.
utilPackage util provides generic utilities used throughout the policy engine.
util/testPackage test contains utilities used in the policy engine's test suite.
versionPackage version contains version information that is set at build time.
Version
v0.32.0
Published
Aug 31, 2021
Platform
js/wasm
Imports
3 packages
Last checked
3 seconds ago

Tools for package owners.