pub struct Namespace {
pub stack_name: DnsName,
pub instance_name: DnsName,
pub service_origins: 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>§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 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).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
impl UnwindSafe for Namespace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more