package opa

import "github.com/open-policy-agent/opa/internal/rego/opa"

Index

Types

type EvalOpts

type EvalOpts struct {
	Input   *interface{}
	Metrics metrics.Metrics
}

EvalOpts is a stub implementation of a opa.EvalOpts.

type OPA

type OPA struct {
}

OPA is a stub implementation of a opa.OPA.

func New

func New() *OPA

New unimplemented.

func (*OPA) Eval

func (o *OPA) Eval(ctx context.Context, opts EvalOpts) (*Result, error)

Eval unimplemented.

func (*OPA) Init

func (o *OPA) Init() (*OPA, error)

Init unimplemented.

func (*OPA) WithDataJSON

func (o *OPA) WithDataJSON(data interface{}) *OPA

WithDataJSON unimplemented.

func (*OPA) WithPolicyBytes

func (o *OPA) WithPolicyBytes(policy []byte) *OPA

WithPolicyBytes unimplemented.

type Result

type Result struct {
	Result []byte
}

Result is a stub implementation of a opa.Result.

Source Files

nop.go

Version
v0.27.0
Published
Mar 8, 2021
Platform
js/wasm
Imports
2 packages
Last checked
6 seconds ago

Tools for package owners.