Expand description
TreeWorker implementation for tree-based command propagation.
Provides TreeWorker, which distributes command execution across a cluster topology using gateway nodes and propagation channels. Mirrors ClusterShell’s TreeWorker class.
The TreeWorker uses:
PropagationTreeRouterto determine next-hop gatewaysPropagationChannelto communicate with gateway processes- Direct
SshWorker/ExecWorkerfor leaf nodes reachable without gateways
Structs§
- TarExtract
Error - Error raised when rcopy tar extraction fails.
- Tree
Worker - Worker that distributes command execution across a cluster topology.
- Tree
Worker Config - Configuration for tree-based execution.
Enums§
- TarExtract
Filter - Explicit trust level for tar extraction (PEP 706
filter=port). - Tree
Worker Event - Result from a remote node received through the tree.
Constants§
- SNAME_
STDERR SNAME_STDERRequivalent: stream name attributed to stderr data.- SNAME_
STDOUT SNAME_STDOUTequivalent: stream name attributed to stdout data.- TAR_
CMD_ FMT - Remote tar|base64 command format for tree rcopy (TAR_CMD_FMT).
- UNTAR_
CMD_ FMT - Remote untar command format for forward tree copy (UNTAR_CMD_FMT).
Functions§
- extract_
tar - Extract a ustar archive into
destwith explicit trust semantics. - shell_
escape_ single_ quoted - Escape a string for inclusion between single quotes in a shell command.
- tar_
command - Build the remote tar|base64 command used for tree rcopy.
- untar_
command - Build the remote untar command used for forward tree copy.