orangeqs.juice.client.service#

Client functions for interacting with Juice services.

Module Contents#

Functions#

orchestrator_rpc_client

Create an XML-RPC client for the orchestrator.

restart_service_partial

Restart the service without restarting the container.

restart_service_full

Restart the service by restarting the container.

rebuild_service_dry_run

Run a dry-run rebuild of the environment for a service.

API#

orangeqs.juice.client.service.orchestrator_rpc_client() orangeqs.juice.messaging._rpc._client.UnixStreamXMLRPCClient#

Create an XML-RPC client for the orchestrator.

orangeqs.juice.client.service.restart_service_partial(service_name: str) None#

Restart the service without restarting the container.

orangeqs.juice.client.service.restart_service_full(service_name: str) None#

Restart the service by restarting the container.

orangeqs.juice.client.service.rebuild_service_dry_run(service_name: str) tuple[bool, list[str]]#

Run a dry-run rebuild of the environment for a service.

Parameters#

  • service_name (str): The name of the service to rebuild.

Returns#

  • (bool): Whether the dry-run command was successful.

  • (list[str]): The output lines from the dry-run command.