Skip to main content

resolve_policy

Function resolve_policy 

Source
pub fn resolve_policy(
    base: &Policy,
    overlay: Option<&RuntimePolicy>,
    logical_key: &str,
    defaults: PolicyDefaults,
) -> Result<ResolvedPolicy, PolicyError>
Expand description

Merge a static policy with a sparse overlay once, for one logical key.

A malformed container, boolean or read deadline fails the whole invocation; TTL or ramp errors disable only that layer; an invalid recovery or shadow option preserves ordinary serving.