router

package
v0.44.0-rc.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

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:

  1. Local overrides;
  2. Policy contract chains for a namespace target (as namespace chains have higher priority);
  3. Bearer token chains for a container target - if they're not defined, then it checks Policy contract chains;
  4. 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL