userver: pytest_userver.plugins.dynamic_config.DynamicConfig Class Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.dynamic_config.DynamicConfig Class Reference

Simple dynamic config backend. More...

Public Member Functions

 __init__ (self, *typing.Dict[str, typing.Any] initial_values, typing.Iterable[str] config_cache_components, caches.InvalidationState cache_invalidation_state)
 
 set_values (self, values)
 
 get_values (self)
 
 remove_values (self, keys)
 
 set (self, **values)
 
 get (self, key, default=None)
 
 remove (self, key)
 

Protected Member Functions

 _sync_with_service (self)
 

Protected Attributes

 _values
 
 _cache_invalidation_state
 
 _config_cache_components
 

Detailed Description

Simple dynamic config backend.

Definition at line 32 of file dynamic_config.py.

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.dynamic_config.DynamicConfig.__init__ (   self,
*typing.Dict[str, typing.Any]  initial_values,
typing.Iterable[str]  config_cache_components,
caches.InvalidationState  cache_invalidation_state 
)

Definition at line 35 of file dynamic_config.py.

Member Function Documentation

◆ _sync_with_service()

pytest_userver.plugins.dynamic_config.DynamicConfig._sync_with_service (   self)
protected

Definition at line 76 of file dynamic_config.py.

◆ get()

pytest_userver.plugins.dynamic_config.DynamicConfig.get (   self,
  key,
  default = None 
)

Definition at line 66 of file dynamic_config.py.

◆ get_values()

pytest_userver.plugins.dynamic_config.DynamicConfig.get_values (   self)

Definition at line 50 of file dynamic_config.py.

◆ remove()

pytest_userver.plugins.dynamic_config.DynamicConfig.remove (   self,
  key 
)

Definition at line 73 of file dynamic_config.py.

◆ remove_values()

pytest_userver.plugins.dynamic_config.DynamicConfig.remove_values (   self,
  keys 
)

Definition at line 53 of file dynamic_config.py.

◆ set()

pytest_userver.plugins.dynamic_config.DynamicConfig.set (   self,
**  values 
)

Definition at line 63 of file dynamic_config.py.

◆ set_values()

pytest_userver.plugins.dynamic_config.DynamicConfig.set_values (   self,
  values 
)

Definition at line 46 of file dynamic_config.py.

Member Data Documentation

◆ _cache_invalidation_state

pytest_userver.plugins.dynamic_config.DynamicConfig._cache_invalidation_state
protected

Definition at line 43 of file dynamic_config.py.

◆ _config_cache_components

pytest_userver.plugins.dynamic_config.DynamicConfig._config_cache_components
protected

Definition at line 44 of file dynamic_config.py.

◆ _values

pytest_userver.plugins.dynamic_config.DynamicConfig._values
protected

Definition at line 42 of file dynamic_config.py.


The documentation for this class was generated from the following file: