EntryKey = Tuple[str, str]
+FindParams = Dict[str, Any]
class ConfigEntry(Protocol):
... # pragma: no cover
+class FindingConfigStore(ConfigStore, Protocol):
+ """A protocol for a config store that can more efficiently find
+ items within the the store.
+ """
+
+ def find_entries(
+ self, ns: str, params: FindParams
+ ) -> Collection[ConfigEntry]:
+ """Find entries in the store matching the given params.
+ Params is a dict that will be compared to the same keys/attributes of
+ the objects being searched. Only exact matches will be returned.
+ """
+ ... # pragma: no cover
+
+
class PathResolver(Protocol):
"""A protocol describing a type that can map volumes, subvolumes, and
paths to real paths within a cephfs system.