Skip to main content

parse_container_output

Function parse_container_output 

Source
pub fn parse_container_output(
    output: &str,
    caller_runtime: Option<ContainerRuntime>,
) -> Result<(ContainerRuntime, Vec<ContainerInfo>), String>
Expand description

Parse the stdout of a container listing command.

When sentinels are present (combined detection run): extract runtime from the sentinel line, parse remaining lines as NDJSON. When caller_runtime is provided (subsequent run with known runtime): parse all lines as NDJSON.