Skip to main content

call

Function call 

Source
pub(crate) async fn call(
    state: &AppState,
    slug: &str,
    host: &str,
    op: &str,
    params: Value,
    reason: &str,
) -> RemoteOpResult
Expand description

Run op on host as the agent slug and return the machine’s answer. A failure to reach or sign is a failed result, so every caller gets one shape back. The srv-side door for operations that other features make: the fleet Global Memory sync (fleet_sync) is the first.