opa

package
v0.29.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvalOpts

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

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

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 holds the evaluation result.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL