pub struct Lab { /* private fields */ }Expand description
An authored spec, ready to plan.
Implementations§
Source§impl Lab
impl Lab
Sourcepub fn parse(yaml: &str) -> Result<Lab, Problems>
pub fn parse(yaml: &str) -> Result<Lab, Problems>
The lab of yaml, written in the authored format.
§Errors
The problems that stop the parser, coded and placed.
Sourcepub fn with_images(self, images: Table) -> Lab
pub fn with_images(self, images: Table) -> Lab
The lab with the runner’s image table: each VM’s image from it unless the spec’s overrides give one, and the access machine the spec leaves to the runner.
Sourcepub fn with_templates(self, texts: BTreeMap<ProjectPath, String>) -> Lab
pub fn with_templates(self, texts: BTreeMap<ProjectPath, String>) -> Lab
The lab with the texts of its project’s templates (read by the caller that generates,
from Lab::template_paths): the renderers install them filled in. A template whose text
isn’t given fails the machine’s configuration where it is applied, saying so.
Sourcepub fn template_paths(&self) -> Vec<ProjectPath>
pub fn template_paths(&self) -> Vec<ProjectPath>
The project files the lab’s steps fill in as templates, each once.
Sourcepub fn catalogue(&self) -> &'static Catalogue
pub fn catalogue(&self) -> &'static Catalogue
The catalogue its services resolve in: Isoloom’s own.
Sourcepub fn lowered(&self, scope: Scope) -> Lowered
pub fn lowered(&self, scope: Scope) -> Lowered
The spec lowered for scope, the image table applied.
Sourcepub fn for_target(&self, target: Target) -> Spec
pub fn for_target(&self, target: Target) -> Spec
The spec as target runs it.
Sourcepub fn possible(&self) -> Vec<Target>
pub fn possible(&self) -> Vec<Target>
The targets every machine has the form for, narrowed by the spec’s targets:.
Sourcepub fn refusal(&self, target: Target) -> Option<Problem>
pub fn refusal(&self, target: Target) -> Option<Problem>
Why target can’t run the lab, found while lowering: the first machine it has no form
for, or a VM step it doesn’t render yet, as a refused problem at the field.
Sourcepub fn problems(&self) -> Problems
pub fn problems(&self) -> Problems
The spec’s problems: its own, then its lowered form’s at the fields the author wrote, in file order.
Sourcepub fn problems_with_files(&self, dir: &Path) -> Problems
pub fn problems_with_files(&self, dir: &Path) -> Problems
Lab::problems, and the project paths the spec names that don’t exist in dir.