mirror of https://github.com/hashicorp/consul
13 lines
328 B
Go
13 lines
328 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package sentinel
|
|
|
|
// Evaluator wraps the Sentinel evaluator from the HashiCorp Sentinel policy
|
|
// engine.
|
|
type Evaluator interface {
|
|
Compile(policy string) error
|
|
Execute(policy string, enforcementLevel string, data map[string]interface{}) bool
|
|
Close()
|
|
}
|