opa

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const PACKAGE_HATCHET_MODULE = "hatchet.module"
View Source
const PACKAGE_HATCHET_ORGANIZATION = "hatchet.organization"
View Source
const PACKAGE_HATCHET_TEAM = "hatchet.team"

Variables

This section is empty.

Functions

func RunAllowQuery

func RunAllowQuery(query *OPAQuery, input map[string]interface{}) (bool, error)

RunAllowQuery runs a simple query with a simple "allow" results that evaluates to true or false

func RunMonitorQuery

func RunMonitorQuery(query *OPAQuery, input map[string]interface{}) (*types.CreateMonitorResultRequest, error)

RunMonitorQuery runs a query with output that can be decoded to MonitorActionOutput

Types

type OPAQuery

type OPAQuery struct {
	*rego.PreparedEvalQuery
}

func LoadQueryFromBytes

func LoadQueryFromBytes(name string, fileBytes []byte) (*OPAQuery, error)

func LoadQueryFromFile

func LoadQueryFromFile(name, filepath string) (*OPAQuery, error)

Jump to

Keyboard shortcuts

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