opa

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capabilities added in v0.10.0

func Capabilities() (*ast.Capabilities, error)

Types

type InventoryResult

type InventoryResult struct {
	BuildDependencies   []string `json:"build_dependencies"`
	PackageDependencies []string `json:"package_dependencies"`
}

type Opa

type Opa struct {
	Compiler  *ast.Compiler
	Store     storage.Store
	LoadPaths []string
}

func NewOpa

func NewOpa(ctx context.Context, config *models.Config) (*Opa, error)

func (*Opa) Compile added in v0.10.0

func (o *Opa) Compile(ctx context.Context) error

func (*Opa) Eval

func (o *Opa) Eval(ctx context.Context, query string, input map[string]interface{}, result interface{}) error

func (*Opa) Print

func (o *Opa) Print(ctx print.Context, s string) error

func (*Opa) WithConfig added in v0.10.0

func (o *Opa) WithConfig(ctx context.Context, config *models.Config) error

Jump to

Keyboard shortcuts

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