patroni.postgresql.available_parameters package

Module contents

patroni.postgresql.available_parameters.filter_and_sort_files(_files: Iterator[ Traversable]) → Iterator[ Traversable] View on GitHub

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[ Traversable]) → Iterator[ Traversable] View on GitHub

Recursively walk through Path/Traversable objects, yielding all YAML files in deterministic order. +

Parameters:

tvbs – An iterator over PathLikeObj objects, where each object is a file or directory that potentially contains YAML files.

Yields:

PathLikeObj objects representing YAML files found during the traversal.

patroni.postgresql.available_parameters.get_validator_files() → Iterator[ Traversable] View on GitHub

Recursively find YAML files from the current package directory. +

Returns:

an iterator of PathLikeObj objects representing validator files.


© Copyright 2015 Compose, Zalando SE. Revision 9d231aee.

Built with Sphinx using a theme provided by Read the Docs.

Read the Docs v: latest

+ Builds