Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrPrepareForEvalCode = "meshkit-11144" ErrEvalCode = "meshkit-11145" )
Variables ¶
View Source
var SyncRelationship sync.Mutex
Functions ¶
func ErrPrepareForEval ¶
Types ¶
type ComponentUpdateActionPayload ¶
type ComponentUpdateActionPayload struct {
Id string `json:"id"`
Value interface{} `json:"value"`
Path []string `json:"path"`
}
ComponentUpdateActionPayload describes patch action from policy
type CustomPrint ¶ added in v0.8.40
type CustomPrint struct {
Messages []string
}
CustomPrint implements the print.Hook interface to capture print statements
type Rego ¶
type Rego struct {
// contains filtered or unexported fields
}
func NewRegoInstance ¶
func NewRegoInstance(policyDir string, regManager *registry.RegistryManager) (*Rego, error)
NewRegoInstance creates a new Rego evaluator with relationships loaded
func (*Rego) RegoPolicyHandler ¶
func (r *Rego) RegoPolicyHandler( design pattern.PatternFile, query string, ) (pattern.EvaluationResponse, error)
RegoPolicyHandler evaluates the given policy query against the design
Click to show internal directories.
Click to hide internal directories.