BrokerClient
Module: broker::client::BrokerClient
Section titled “Module: broker::client::BrokerClient”Contents
Section titled “Contents”Functions
run- Run one wrapped tool via the broker and return its output and status.
firma_secret_provider::broker::client::BrokerClient::run
Section titled “firma_secret_provider::broker::client::BrokerClient::run”Function
Run one wrapped tool via the broker and return its output and status.
The broker’s handler applies config matching and authorization before executing the tool, so a request the handler refuses fails closed here.
Errors
Section titled “Errors”Returns [BrokerClientError::Rejected] when the broker’s handler
refused the request or failed to launch the tool,
[BrokerClientError::Unavailable] when no request reached the broker,
[BrokerClientError::OutcomeUnknown] when execution may have occurred
without a valid response,
and [BrokerClientError::ProtocolViolation] when the response broke
the wire contract. All errors are fail-closed from the caller’s
perspective: no usable output is returned, though an
[BrokerClientError::OutcomeUnknown] means the tool may have executed.
fn run(self: &Self, bin: &str, args: &[&str]) -> Result<BrokerOutput, BrokerClientError>