policies

package
v0.7.42 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrPrepareForEvalCode = "meshkit-11144"
	ErrEvalCode           = "meshkit-11145"
)

Variables

This section is empty.

Functions

func ErrEval added in v0.6.54

func ErrEval(err error) error

func ErrPrepareForEval added in v0.6.54

func ErrPrepareForEval(err error) error

Types

type Rego added in v0.6.54

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

func NewRegoInstance added in v0.6.54

func NewRegoInstance(policyDir string, regManager *registry.RegistryManager) (*Rego, error)

func (*Rego) RegoPolicyHandler added in v0.6.54

func (r *Rego) RegoPolicyHandler(regoQueryString string, designFile []byte) (interface{}, error)

RegoPolicyHandler takes the required inputs and run the query against all the policy files provided

Jump to

Keyboard shortcuts

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