pub struct StackDef {
pub stack: Stack,
pub secrets: SecretsSpec,
pub integrations: BTreeMap<String, Integration>,
pub services: BTreeMap<String, Service>,
pub jobs: BTreeMap<String, Service>,
pub endpoints: BTreeMap<String, Endpoint>,
pub legacy_datastores: BTreeSet<String>,
}Expand description
Top level of stackless.toml. Unknown top-level sections are
rejected (an old binary cannot honor a section it does not know).
Fields§
§stack: Stack§secrets: SecretsSpec§integrations: BTreeMap<String, Integration>§services: BTreeMap<String, Service>§jobs: BTreeMap<String, Service>§endpoints: BTreeMap<String, Endpoint>§legacy_datastores: BTreeSet<String>Names from a stripped legacy [datastores.*] section in an
instance snapshot. Empty for fresh files. Lets
${datastores.*.url} validate and resolve from journaled
provision checkpoints on resume.
Implementations§
Source§impl StackDef
impl StackDef
pub fn resolve_endpoints( &self, origins: &BTreeMap<String, String>, ) -> BTreeMap<String, ResolvedEndpoint>
Source§impl StackDef
impl StackDef
Sourcepub fn parse(text: &str) -> Result<Self, DefError>
pub fn parse(text: &str) -> Result<Self, DefError>
Parse definition text. Syntax errors and schema mismatches are distinct codes: an agent fixes them differently.
Sourcepub fn parse_snapshot(text: &str) -> Result<Self, DefError>
pub fn parse_snapshot(text: &str) -> Result<Self, DefError>
Parse a definition snapshotted into an instance record.
Older snapshots may still contain [datastores.*]. Strip that
section (fresh files still reject it via Self::parse) but
keep the datastore names and ${datastores.*.url} interpolations
so resume can resolve URLs from journaled provision checkpoints.
Source§impl StackDef
impl StackDef
pub fn resolved_placements(&self, default_provider: &str) -> Placements
pub fn placements(&self, default_provider: &str) -> BTreeMap<String, String>
pub fn step_provider<'a>( &'a self, default_provider: &'a str, step: &Step, ) -> &'a str
Source§impl StackDef
impl StackDef
Source§impl StackDef
impl StackDef
pub fn execution_plan( &self, provider: &str, early_origins: bool, ) -> Result<ExecutionPlan, DefError>
Sourcepub fn execution_plan_with_placement(
&self,
provider: &str,
early_origins: impl Fn(&str) -> bool,
) -> Result<ExecutionPlan, DefError>
pub fn execution_plan_with_placement( &self, provider: &str, early_origins: impl Fn(&str) -> bool, ) -> Result<ExecutionPlan, DefError>
URL availability is a property of the target’s hosting provider.