Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
Element is a structure that host a definition of policy Rule, and the Rule itself when created
type List ¶
List of Rules checked in order of the list
func (*List) BuildRules ¶
BuildRules instanciate the Rule of each Element, based on the parameters collected from setup.
func (*List) Evaluate ¶
func (p *List) Evaluate(ctx context.Context, state request.Request, data map[string]interface{}, engines map[string]policy.Engine) (int, error)
Evaluate all policy one by one until one provide a valid result if no Rule can provide a result, the DefaultPolicy of the list applies
Click to show internal directories.
Click to hide internal directories.