opa_engine

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrNoPolicies

func NewErrNoPolicies(policyPaths []string) error

func NewErrPolicyLoad

func NewErrPolicyLoad(err error) error

Types

type Enginer

type Enginer interface {
	Query(ctx context.Context, namespace string, input interface{}) ([]QueryResult, error)
	SetTracing(enabled bool)
	Namespaces() []string
	Modules() map[string]*ast.Module
	Annotations() *ast.AnnotationSet
}

func NewEnginer

func NewEnginer(modules map[string]*ast.Module, compiler *ast.Compiler) Enginer

type ErrNoPolicies

type ErrNoPolicies struct {
	// contains filtered or unexported fields
}

func (*ErrNoPolicies) Error

func (e *ErrNoPolicies) Error() string

type ErrPolicyLoad

type ErrPolicyLoad struct {
	// contains filtered or unexported fields
}

func (*ErrPolicyLoad) Error

func (e *ErrPolicyLoad) Error() string

type QueryResult

type QueryResult struct {
	PolicyName               string
	FullyQualifiedPolicyName string
	Annotations              *ast.Annotations
	ExtraData                interface{}
	IsViolation              bool
}

Jump to

Keyboard shortcuts

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