opa

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfPlanPassesOpaPolicy

func CheckIfPlanPassesOpaPolicy(plan []byte, policyLocation string, opaRegoQuery string) bool

func GetDefaultOpaResponse

func GetDefaultOpaResponse(plan []byte, policyLocation string, opaRegoQuery string) string

func GetOpaConfig

func GetOpaConfig(opaConfig string) model.OpaConfig

func GetOpaResultSet

func GetOpaResultSet(plan []byte, policyLocation string, opaRegoQuery string) rego.ResultSet

func GetOpaScore

func GetOpaScore(plan []byte, policyLocation string, opaRegoQuery string) int

func GetStringInBetweenTwoString

func GetStringInBetweenTwoString(str string, startS string, endS string) (result string)

func GetTfWeightByServiceNameAndAction

func GetTfWeightByServiceNameAndAction(weights []model.Weight, serviceName string, action string) int

func GetTfWeights

func GetTfWeights(payload string) []model.Weight

func RetrieveOpaPolicyResponse

func RetrieveOpaPolicyResponse(plan []byte, policyLocation string, opaRegoQuery string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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