Skip to main content

resolve_target

Function resolve_target 

Source
async fn resolve_target(
    state: &AppState,
    req: &ShellCreateRequest,
) -> Result<(AgentTarget, String), Response>
Expand description

Where the command runs, and for an SSH host the agent that asked. Checked before anything is published, so a refused connection (no ssh, a distro that isn’t installed, a bad name) fails the call with its reason instead of running the command here.