aries_cloudagent.multitenant package
Subpackages
Submodules
aries_cloudagent.multitenant.askar_profile_manager module
aries_cloudagent.multitenant.base module
aries_cloudagent.multitenant.cache module
Cache for multitenancy profiles.
- class aries_cloudagent.multitenant.cache.ProfileCache(capacity: int)[source]
Bases:
object
Profile cache that caches based on LRU strategy.
- get(key: str) Optional[Profile] [source]
Get profile with associated key from cache.
If a profile is open but has been evicted from the cache, this will reinsert the profile back into the cache. This prevents attempting to open a profile that is already open. Triggers clean up.
- Parameters
key (str) – the key to get the profile for.
- Returns
Profile if found in cache.
- Return type
Optional[Profile]
aries_cloudagent.multitenant.error module
Multitenant error classes.
aries_cloudagent.multitenant.manager module
aries_cloudagent.multitenant.manager_provider module
Profile manager for multitenancy.
- class aries_cloudagent.multitenant.manager_provider.MultitenantManagerProvider(root_profile)[source]
Bases:
BaseProvider
Multitenant manager provider.
Decides which manager to use based on the settings.
- MANAGER_TYPES = {'askar-profile': 'aries_cloudagent.multitenant.askar_profile_manager.AskarProfileMultitenantManager', 'basic': 'aries_cloudagent.multitenant.manager.MultitenantManager'}
- askar_profile_manager_path = 'aries_cloudagent.multitenant.askar_profile_manager.AskarProfileMultitenantManager'
- provide(settings: BaseSettings, injector: BaseInjector)[source]
Create the multitenant manager instance.