Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface {
Evaluate(ctx context.Context, input interface{}) (bool, map[string]interface{}, error)
Close()
}
Engine defines the policy evaluation interface
type RegoEngine ¶
type RegoEngine struct {
// contains filtered or unexported fields
}
RegoEngine implements Engine using OPA Rego
func NewRegoEngine ¶
NewRegoEngine creates a new engine and loads policy from file query: e.g. "data.iam.decision"
func (*RegoEngine) Close ¶
func (e *RegoEngine) Close()
Click to show internal directories.
Click to hide internal directories.