swappable_policy
Module: authority_client::swappable_policy
Section titled “Module: authority_client::swappable_policy”Contents
Section titled “Contents”Structs
SwappablePolicyEvaluation- Policy evaluator backed by an atomically swappable snapshot.
firma_sidecar::authority_client::swappable_policy::SwappablePolicyEvaluation
Section titled “firma_sidecar::authority_client::swappable_policy::SwappablePolicyEvaluation”Struct
Policy evaluator backed by an atomically swappable snapshot.
Trait Implementations:
- PolicyEvaluation
fn evaluate(self: &Self, principal: &AgentId, action: &str, resource: &str, context: serde_json::Value) -> Result<bool, String>fn evaluate_verdict(self: &Self, principal: &AgentId, action: &str, resource: &str, context: serde_json::Value) -> Result<PolicyVerdict, String>- Delegate to the inner evaluator so aCedarPolicyEvaluatorsnapshot’sfn is_fresh(self: &Self) -> boolfn version(self: &Self) -> Option<String>