package opa
import "github.com/open-policy-agent/opa/internal/rego/opa"
Index ¶
- type EvalOpts
- type OPA
- func New() *OPA
- func (o *OPA) Eval(ctx context.Context, opts EvalOpts) (*Result, error)
- func (o *OPA) Init() (*OPA, error)
- func (o *OPA) WithDataJSON(data interface{}) *OPA
- func (o *OPA) WithPolicyBytes(policy []byte) *OPA
- type Result
Types ¶
type EvalOpts ¶
EvalOpts define options for performing an evaluation.
type OPA ¶
type OPA struct { }
OPA is a stub implementation of a opa.OPA.
func New ¶
func New() *OPA
New unimplemented.
func (*OPA) Eval ¶
Eval unimplemented.
func (*OPA) Init ¶
Init unimplemented.
func (*OPA) WithDataJSON ¶
WithDataJSON unimplemented.
func (*OPA) WithPolicyBytes ¶
WithPolicyBytes unimplemented.
type Result ¶
type Result struct { Result []byte }
Result holds the evaluation result.
Source Files ¶
- Version
- v0.29.4
- Published
- May 31, 2021
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 6 seconds ago –
Tools for package owners.