Skip to content

local_exec

Functions


firma_sidecar::startup::local_exec::spawn_local_exec_endpoint

Section titled “firma_sidecar::startup::local_exec::spawn_local_exec_endpoint”

Function

Build and spawn the local-exec governance endpoint if configured.

Returns a JoinHandle for the endpoint task, or None when [local_exec] is absent from the config.

Returns an error when the socket cannot be bound (bad path, permissions).

fn spawn_local_exec_endpoint(config: &crate::config::SidecarConfig, cancel: tokio_util::sync::CancellationToken) -> anyhow::Result<Option<tokio::task::JoinHandle<()>>>