pvc/node-daemon/pvcnoded/util
Joshua Boniface afb0359c20 Refactor pvcnoded to reduce Daemon.py size
This branch commit refactors the pvcnoded component to better adhere to
good programming practices. The previous Daemon.py was a massive file
which contained almost 2000 lines of direct, root-level code which was
directly imported. Not only was this poor practice, but this resulted
in a nigh-unmaintainable file which was hard even for me to understand.

This refactoring splits a large section of the code from Daemon.py into
separate small modules and functions in the `util/` directory. This will
hopefully make most of the functionality easy to find and modify without
having to dig through a single large file.

Further the existing subcomponents have been moved to the `objects/`
directory which clearly separates them.

Finally, the Daemon.py code has mostly been moved into a function,
`entrypoint()`, which is then called from the `pvcnoded.py` stub.

An additional item is that most format strings have been replaced by
f-strings to make use of the Python 3.6 features in Daemon.py and the
utility files.
2021-08-21 03:14:22 -04:00
..
__init__.py Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
config.py Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
fencing.py Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
keepalive.py Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
libvirt.py Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
networking.py Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
services.py Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
zookeeper.py Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00