Skip to main content

Module config

Module config 

Source

Structs§

CpexConfig
Top-level CPEX configuration.
GlobalConfig
Global configuration — applies across all routes.
Pattern
An entity-name pattern. Holds the original pattern string (for serialization round-tripping and operator-facing diagnostics) plus a WildMatch matcher pre-compiled at deserialize time so route resolution doesn’t re-parse the pattern on every request. Custom Serialize / Deserialize make this transparent to YAML — it serializes as a plain string, just like the previous String field did.
PluginSettings
Global plugin settings.
PolicyGroup
A named policy group — plugins to activate and optional metadata.
ResolvedPlugin
A resolved plugin with optional config overrides and when clause.
RouteEntry
A per-entity routing rule.
RouteMeta
Operational metadata on a route entry.

Enums§

PluginRouteRef
A reference to a plugin in a route or policy group.
StringOrList
A tool matcher — single name, list of names, or glob pattern.

Functions§

load_config
Load and parse a CPEX config from a YAML file.
parse_config
Parse a CPEX config from a YAML string.
resolve_identity_plugins_for_route
Resolve the identity-resolve dispatch list for a specific entity. Hook-specific counterpart to resolve_plugins_for_entity — consults the global authentication: block, tag-bundle authentication: blocks, and the route’s own authentication: block to determine which plugins fire on the identity.resolve hook for this route.
resolve_plugins_for_entity
Resolve which plugins should fire for a given entity.