Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnforcementResult ¶
type PolicyEngine ¶
type PolicyEngine struct {
// contains filtered or unexported fields
}
func NewPolicyEngine ¶
func NewPolicyEngine( metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) *PolicyEngine
func (*PolicyEngine) AddPolicy ¶
func (pe *PolicyEngine) AddPolicy(policy *Policy) error
func (*PolicyEngine) EnforcePolicy ¶
func (pe *PolicyEngine) EnforcePolicy( ctx context.Context, policyID string, input interface{}, ) (*EnforcementResult, error)
type PolicyStatus ¶
type PolicyStatus string
type RuleAction ¶
type RuleAction string
Click to show internal directories.
Click to hide internal directories.