synapse.tools.aha package
Subpackages
Submodules
synapse.tools.aha.clone module
synapse.tools.aha.easycert module
synapse.tools.aha.enroll module
synapse.tools.aha.list module
synapse.tools.aha.mirror module
- synapse.tools.aha.mirror.format_row(values, pad=' ')[source]
Render a row the way $lib.tabular does with no column separator configured, which is a leading pad, items joined by a doubled pad, and a trailing pad.
- async synapse.tools.aha.mirror.get_cell_infos(prox, outp, iden, timeout)[source]
Aha de-duplicates peer responses by run iden and labels each response with whichever service entry it resolved first, which may be the leader alias rather than the member entry. Key the responses by run iden and fall back to the name for any peer which did not report one.
- synapse.tools.aha.mirror.get_mirror_groups(svcdefs)[source]
The leader alias is only registered by an active service, so a group with no claimed leader has no alias entry to group on. Every member of a mirror group shares the cell iden, so group on that instead.
Returns a tuple of (leader_aliases, mirror_groups).