opa

package
v0.0.0-...-937c6ff Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const SERVICE_NAME string = "OPA"

Variables

This section is empty.

Functions

This section is empty.

Types

type OPAService

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

func (*OPAService) AddOrUpdatePolicy

func (opa *OPAService) AddOrUpdatePolicy(namespace string, name string, outputParameters map[string]interface{}, policy string) error

func (OPAService) EvaluatePolicy

func (opa OPAService) EvaluatePolicy(policy string, input interface{}) (rego.ResultSet, error)

func (OPAService) GetPolicyKeys

func (opa OPAService) GetPolicyKeys() []string

func (*OPAService) RemovePolicy

func (opa *OPAService) RemovePolicy(namespace string, name string)

Jump to

Keyboard shortcuts

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