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/json
ast/locationPackage location defines locations in Rego source code.
build
build/generate-cli-docs
build/generate-man
bundlePackage bundle implements bundle loading.
capabilities
cmdPackage cmd contains the entry points for OPA commands.
cmd/internal
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/tracing
features/wasmImport this package to enable evaluation of rego code using the built-in wasm engine.
formatPackage format implements formatting of Rego source files.
hooks
internal
irPackage ir defines an intermediate representation (IR) for Rego.
ir/encoding
keys
loaderPackage loader contains utilities for loading files into OPA.
loader/extension
loader/filter
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/logs/status
plugins/restPackage rest implements a REST client for communicating with remote services.
plugins/server
plugins/server/encoding
plugins/server/metrics
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.
schemas
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/handlers
server/identifierPackage identifier provides handlers for associating identity information 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/inmem/test
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/authznolint: deadcode,unused // build tags confuse these linters
test/e2e/certrefresh
test/e2e/concurrency
test/e2e/diagnostics
test/e2e/distributedtracing
test/e2e/h2c
test/e2e/http
test/e2e/logs
test/e2e/logs/console
test/e2e/metrics
test/e2e/oci
test/e2e/print
test/e2e/shutdown
test/e2e/tls
test/e2e/wasm
test/e2e/wasm/authznolint: deadcode,unused // build tags confuse these linters
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
topdown/print
tracingPackage tracing enables dependency-injection at runtime.
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.64.1
Published
Apr 26, 2024
Platform
js/wasm
Imports
2 packages
Last checked
now

Tools for package owners.