Skip to main content

lint_workload

Function lint_workload 

Source
pub fn lint_workload<'a>(
    workload_stop_when: &[StopConditionSpec],
    phases: impl Iterator<Item = (&'a str, &'a WorkloadPhase)> + Clone,
) -> Result<Vec<String>, String>
Expand description

Run every lint over the loaded workload. Ok(warnings) — the run may proceed, with each warning routed to the operator; Err — a spec is malformed and the load fails.