pub async fn validate_console_session(
infra: &InfraContext<'_>,
token: &str,
name: &str,
) -> Result<(), Error>Expand description
Validate that a CFS session is suitable for attaching a console.
Returns NotFound if the session doesn’t exist, BadRequest if the
session is not image-type or has missing internal state, and Conflict
if it is not running.