Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BearerChainFeedRouter ¶ added in v0.42.0
func BearerChainFeedRouter(localOverrideStorage policyengine.LocalOverrideStorage, morphChainStorage policyengine.MorphRuleChainStorageReader, override bearer.APEOverride) (policyengine.ChainRouter, error)
BearerChainFeedRouter creates a chain router emplacing bearer token rule chains. Bearer token chains override only container target chains within Policy contract. This means the order of checking is as follows:
- Local overrides;
- Policy contract chains for a namespace target (as namespace chains have higher priority);
- Bearer token chains for a container target - if they're not defined, then it checks Policy contract chains;
- Checks for the remaining targets.
func SingleUseRouterWithBearerTokenChains ¶
func SingleUseRouterWithBearerTokenChains(overrides []bearer.APEOverride) (engine.ChainRouter, error)
SingleUseRouterWithBearerTokenChains creates chain router with inmemory storage implementation and fed with APE chains defined in Bearer token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.