pub struct Namespace {
pub stack_name: DnsName,
pub instance_name: DnsName,
pub service_origins: BTreeMap<String, String>,
pub endpoint_urls: BTreeMap<String, String>,
pub datastore_urls: BTreeMap<String, String>,
pub secrets: BTreeMap<String, String>,
pub integrations: BTreeMap<String, BTreeMap<String, String>>,
}Expand description
The values a substrate supplies for one instance. Built per instance per substrate; resolution itself is substrate-blind.
Fields§
§stack_name: DnsName§instance_name: DnsName§service_origins: BTreeMap<String, String>§endpoint_urls: BTreeMap<String, String>§datastore_urls: BTreeMap<String, String>Legacy ${datastores.X.url} values reconstructed from journaled
provision: checkpoints (local container / render-postgres).
secrets: BTreeMap<String, String>§integrations: BTreeMap<String, BTreeMap<String, String>>Implementations§
Source§impl Namespace
impl Namespace
Sourcepub fn bind_endpoints(&mut self, def: &StackDef)
pub fn bind_endpoints(&mut self, def: &StackDef)
Bind named URLs without replacing the provider’s service origins. Rebind after changing origins, such as for a container’s private network.
Sourcepub fn add_integration_checkpoints(&mut self, checkpoints: &[Checkpoint])
pub fn add_integration_checkpoints(&mut self, checkpoints: &[Checkpoint])
Load integration output checkpoints into the interpolation namespace.
Payload shape is provider-agnostic:
{ "outputs": { "secret_key": "...", "publishable_key": "..." } }.
pub fn integration_outputs_from_checkpoints( checkpoints: &[Checkpoint], ) -> BTreeMap<String, BTreeMap<String, String>>
Sourcepub fn add_datastore_checkpoints(
&mut self,
checkpoints: &[Checkpoint],
prefer_external: bool,
)
pub fn add_datastore_checkpoints( &mut self, checkpoints: &[Checkpoint], prefer_external: bool, )
Reconstruct legacy ${datastores.X.url} values from journaled
provision: checkpoints.
Local checkpoints store a single url. Render checkpoints store
internal_url / external_url; prefer_external selects which
(service env → internal, operator prepare / verify → external).