patroni.postgresql.available_parameters package¶
Module contents¶
-
patroni.postgresql.available_parameters._filter_and_sort_files(files: Iterator[pathlib.Path]) → Iterator[pathlib.Path]¶ Sort files by name, and filter out non-YAML files and Python files.
Parameters: files – A list of files and/or directories to be filtered and sorted. Yields: filtered and sorted objects.
-
patroni.postgresql.available_parameters._traversable_walk(tvbs: Iterator[pathlib.Path]) → Iterator[pathlib.Path]¶ Recursively walk through Path/Traversable objects, yielding all YAML files in deterministic order.
Parameters: tvbs – An iterator over PathLikeObjobjects, where each object is a file or directory that potentially contains YAML files.Yields: PathLikeObjobjects representing YAML files found during the traversal.
-
patroni.postgresql.available_parameters.get_validator_files() → Iterator[pathlib.Path]¶ Recursively find YAML files from the current package directory.
Returns: an iterator of PathLikeObjobjects representing validator files.