Skip to main content

resolve_plugins_for_entity

Function resolve_plugins_for_entity 

Source
pub fn resolve_plugins_for_entity(
    config: &CpexConfig,
    entity_type: &str,
    entity_name: &str,
    request_scope: Option<&str>,
    request_tags: &HashSet<String>,
) -> Vec<ResolvedPlugin>
Expand description

Resolve which plugins should fire for a given entity.

When routing is disabled, returns all plugin names. When enabled, matches the entity against routes and collects plugins from the all group, defaults, matching policy groups (via merged tags), and the route itself.

request_scope and request_tags come from the host’s MetaExtension on the request.