Broker
broker_state_verification
Perform cli commands and docker engine verification (state checking).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ctx |
Context
|
Typer (Click like) special internal object that holds state relevant for the script execution at every single level. |
required |
Source code in src/trecover/app/cli/broker.py
broker_start
broker_start(
port=Option(
var.BROKER_PORT,
"--port",
"-p",
help="Bind socket to this port.",
),
ui_port=Option(
var.BROKER_UI_PORT,
"--port",
"-p",
help="Bind UI socket to this port.",
),
auto_remove=Option(
False,
"--rm",
is_flag=True,
help="Remove docker container after service exit",
),
attach=Option(
False,
"--attach",
"-a",
is_flag=True,
help="Attach local standard input, output, and error streams",
),
)
Start broker service.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
port |
int, default
|
Bind broker socket to this port. |
Option(var.BROKER_PORT, '--port', '-p', help='Bind socket to this port.')
|
ui_port |
int, default
|
Bind UI socket to this port. |
Option(var.BROKER_UI_PORT, '--port', '-p', help='Bind UI socket to this port.')
|
auto_remove |
bool, default
|
Remove broker docker container after service exit. |
Option(False, '--rm', is_flag=True, help='Remove docker container after service exit')
|
attach |
bool, default
|
Attach output and error streams. |
Option(False, '--attach', '-a', is_flag=True, help='Attach local standard input, output, and error streams')
|
Source code in src/trecover/app/cli/broker.py
broker_stop
broker_stop(
prune=Option(
False,
"--prune",
"-p",
is_flag=True,
help="Prune broker.",
),
v=Option(
False,
"--volume",
"-v",
is_flag=True,
help="Remove the volumes associated with the container",
),
)
Stop broker service.
Source code in src/trecover/app/cli/broker.py
broker_prune
broker_prune(
force=Option(
False,
"--force",
"-f",
is_flag=True,
help="Force the removal of a running container",
),
v=Option(
False,
"--volume",
"-v",
is_flag=True,
help="Remove the volumes associated with the container",
),
)
Prune broker service docker container.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
force |
bool, default
|
Force the removal of a running container. |
Option(False, '--force', '-f', is_flag=True, help='Force the removal of a running container')
|
v |
bool, default
|
Remove the volumes associated with the container. |
Option(False, '--volume', '-v', is_flag=True, help='Remove the volumes associated with the container')
|
Source code in src/trecover/app/cli/broker.py
broker_status
Display broker service status.
Source code in src/trecover/app/cli/broker.py
broker_attach
Attach local output stream to a running broker service.