saltext.vault.utils.vault.cache¶
Vault-specific cache classes
- class saltext.vault.utils.vault.cache.CommonCache(context, cbank, cache_backend=None, ttl=None, flush_exception=None)[source]¶
Base class that unifies context and other cache backends.
- class saltext.vault.utils.vault.cache.VaultCache(context, cbank, ckey, cache_backend=None, ttl=None, flush_exception=None)[source]¶
Encapsulates session and other cache backends for a single domain like secret path metadata. Uses a single cache key.
- class saltext.vault.utils.vault.cache.VaultConfigCache(context, cbank, ckey, opts, cache_backend_factory=<function _get_cache_backend>, init_config=None, flush_exception=None)[source]¶
Handles caching of received configuration
- class saltext.vault.utils.vault.cache.LeaseCacheMixin(*args, **kwargs)[source]¶
Mixin for auth and lease cache that checks validity and acts with hydrated objects
- class saltext.vault.utils.vault.cache.VaultLeaseCache(*args, **kwargs)[source]¶
Handles caching of Vault leases. Supports multiple cache keys. Checks whether cached leases are still valid before returning. Does not enforce for per-lease
min_ttl
.- get(ckey, valid_for=0, flush=True)[source]¶
Returns valid cached lease data or None. Flushes cache if invalid by default.
- class saltext.vault.utils.vault.cache.VaultAuthCache(context, cbank, ckey, auth_cls, cache_backend=None, ttl=None, flush_exception=None)[source]¶
Implements authentication secret-specific caches. Checks whether the cached secrets are still valid before returning.