resolver

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Ref     ast.Ref
	Input   *ast.Term
	Metrics metrics.Metrics
}

Input as provided to a Resolver instance when evaluating.

type Resolver

type Resolver interface {
	Eval(context.Context, Input) (Result, error)
}

Resolver defines an external value resolver for OPA evaluations.

type Result

type Result struct {
	Value ast.Value
}

Result of resolving a ref.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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