snowshu.core.replica package¶
Submodules¶
snowshu.core.replica.replica_factory module¶
-
class
snowshu.core.replica.replica_factory.
ReplicaFactory
¶ Bases:
object
-
analyze
(barf: bool, retry_count: int) → None¶
-
create
(name: Optional[str], barf: bool, retry_count: Optional[int] = 1) → Optional[str]¶
-
load_config
(config: Union[pathlib.Path, str, TextIO], target_arch=None)¶ does all the initial work to make the resulting ReplicaFactory object usable.
-
snowshu.core.replica.replica_manager module¶
-
class
snowshu.core.replica.replica_manager.
ReplicaManager
¶ Bases:
object
manages the local replica ecosystem.
-
static
launch_docker_command
(replica: str) → str¶ Finds the replica and returns a docker run command to launch it. :param replica: the common name of the replica, ie “integration-test” for image “snowshu_replica_integration-test”.
- Returns
The docker command to run a detached replica mounted to port 9999.
-
static
list
()¶
-
static