Skip to main content

PolicyService

Trait PolicyService 

Source
pub trait PolicyService: Send + Sync {
    // Required methods
    fn policy_snapshot(&self) -> ProxyPolicy;
    fn update_policy_from(
        &self,
        actor: AuditActor,
        target: String,
        policy: ProxyPolicy,
    );
    fn patch_policy_from(
        &self,
        actor: AuditActor,
        target: String,
        patch: ProxyPolicyPatch,
    );
}

Required Methods§

Source

fn policy_snapshot(&self) -> ProxyPolicy

Source

fn update_policy_from( &self, actor: AuditActor, target: String, policy: ProxyPolicy, )

Source

fn patch_policy_from( &self, actor: AuditActor, target: String, patch: ProxyPolicyPatch, )

Implementors§