github.com/Aestek/consul@v1.2.4-0.20190309222502-b2c31e33971a/sentinel/evaluator.go (about) 1 package sentinel 2 3 // Evaluator wraps the Sentinel evaluator from the HashiCorp Sentinel policy 4 // engine. 5 type Evaluator interface { 6 Compile(policy string) error 7 Execute(policy string, enforcementLevel string, data map[string]interface{}) bool 8 }