opa

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(regoFilePath string, regoPackageName string, regoFuncName string, jsonInput *[]byte) (bool, error)

Eval evaluates the 'jsonInput' against the specified rego function in the .rego file. Returns "true" if the function passes (resource is compliant); false if the function does not pass (resource is non-compliant) - regoFilePath = fully qualified filepath to the .rego file - regoPackageName = the name of the rego package at the top of the .rego file - regoFuncName = the rego function to evaluate against - jsonInput = byte representation of the json representation of the resource to eval

Types

This section is empty.

Jump to

Keyboard shortcuts

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