Skip to main content

ExtendsResolver

Type Alias ExtendsResolver 

Source
pub type ExtendsResolver = Arc<dyn Fn(&str) -> Result<String, KvlarError> + Send + Sync>;
Expand description

Callback type for resolving extends directives in policies.

Takes a template/file name and returns the YAML string content. This keeps kvlar-core pure (no I/O) — the caller provides the resolver.

Aliased Type§

pub struct ExtendsResolver { /* private fields */ }