Skip to content

client

Modules

Structs

  • BrokerClient - Client for the out-of-sandbox secret broker, bound to one

firma_secret_provider::broker::client::BrokerClient

Section titled “firma_secret_provider::broker::client::BrokerClient”

Struct

Client for the out-of-sandbox secret broker, bound to one [ClientEndpoint].

Construction validates address-level invariants; transport-level checks (Unix socket presence, peer credentials) run at connect time.

Methods:

  • fn new(endpoint: ClientEndpoint, config: BrokerClientConfig) -> Self - Build a client for endpoint
  • fn run(self: &Self, bin: &str, args: &[&str]) -> Result<BrokerOutput, BrokerClientError> - Run one wrapped tool via the broker and return its output and status.
  • fn request<T, impl Fn(BrokerResponse<'_>) -> Result<T, BrokerClientError>>(self: &Self, request: &BrokerRequest, exec: impl Trait) -> Result<T, BrokerClientError> - Send one request and read the broker’s response.

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result