frostfs-testlib/src/frostfs_testlib/storage/__init__.py
Andrey Berezin f072f88673 [#127] Change service registration
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
2023-11-22 19:54:39 +03:00

15 lines
494 B
Python

from frostfs_testlib.storage.service_registry import ServiceRegistry
__class_registry = ServiceRegistry()
def get_service_registry() -> ServiceRegistry:
"""Returns registry with registered classes related to cluster and cluster nodes.
ServiceClassRegistry is a singleton instance that can be configured with multiple classes that
represents service on the cluster physical node.
Returns:
Singleton ServiceClassRegistry instance.
"""
return __class_registry