package
1.2.0
Repository: https://github.com/open-policy-agent/opa.git
Documentation: pkg.go.dev

# Functions

MockBundle sets a bundle named file on the test server containing the given policies.
MockOCIBundle prepares the server to allow serving "/v2" OCI responses from the supplied policies Ref parameter must be in the form of <registry>/<org>/<repo>:<tag> that will be used in detecting future calls.
MustNewServer returns a new Server for test purposes or panics if an error occurs.
NewServer returns a new Server for test purposes.
ParserOptions sets the ast.ParserOptions to use when parsing modules when preparing bundles.
Ready provides a channel that the server will use to gate readiness.

# Structs

Server provides a mock HTTP server for testing the SDK and integrations.