Skip to content

policy_bundle

Structs

Traits

  • BundleParser - Parses policy bundle bytes into a policy evaluator snapshot.

firma_sidecar::authority_client::policy_bundle::BundleParser

Section titled “firma_sidecar::authority_client::policy_bundle::BundleParser”

Trait

Parses policy bundle bytes into a policy evaluator snapshot.

Methods:

  • parse: Parse a bundle into an evaluator, seeded with the bundle’s TTL

firma_sidecar::authority_client::policy_bundle::CedarBundleParser

Section titled “firma_sidecar::authority_client::policy_bundle::CedarBundleParser”

Struct

Production [BundleParser] that builds a [CedarPolicyEvaluator] from the bundle bytes pushed by the Authority.

Unit Struct

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Default
    • fn default() -> CedarBundleParser
  • BundleParser
    • fn parse(self: &Self, policies: &[u8], entity_schema: &[u8], ttl_seconds: u32, version: &str) -> Result<Box<dyn PolicyEvaluation>, String>