package
0.37.26
Repository: https://github.com/meta-quick/opax.git
Documentation: pkg.go.dev

# Functions

IsCancel returns true if err was caused by cancellation.
IsError returns true if the err is an Error.
New returns a new error with the passed code.

# Constants

CancelledErr is the error code returned if the evaluation is cancelled.
InternalErr is the error code returned if the evaluation fails due to an internal error.
InvalidBundleErr is the error code returned if the bundle loaded is corrupted.
InvalidConfigErr is the error code returned if the OPA initialization fails due to an invalid config.
InvalidPolicyOrDataErr is the error code returned if either policy or data is invalid.
NotReadyErr is the error code returned if the OPA instance is not initialized.

# Structs

Error is the error code type returned by the SDK functions when an error occurs.