Skip to main content

container_exec_collect

Function container_exec_collect 

Source
async fn container_exec_collect(
    cm: &ContainerManager,
    container_name: &str,
    command: &str,
) -> Result<(String, Vec<u8>, Vec<u8>), String>
Expand description

Runs command in the agent’s container and collects both streams, capped at MAX_OUTPUT + 1 bytes each. Returns the exec id (for the exit code) and the two buffers.