Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func YamlToJSON ¶
YamlToJSON convert yaml to json , accept yaml data and return json data or error
Types ¶
type Evaluator ¶
type Evaluator interface {
EvaluatePolicy(queryParam []string, policy string, data string) ([]*ValidateResult, error)
}
Evaluator OPA evaluate interface
type ValidateResult ¶
type ValidateResult struct {
ExpressionValue []*rego.ExpressionValue
}
ValidateResult opa validation results
Click to show internal directories.
Click to hide internal directories.