pub struct StackMeta { /* private fields */ }Expand description
The per-stack settings and records, for every org.
Implementations§
Source§impl StackMeta
impl StackMeta
Sourcepub fn remove(&self, org: &OrgId, name: &str) -> Result<()>
pub fn remove(&self, org: &OrgId, name: &str) -> Result<()>
Forget everything kept for a removed stack.
Sourcepub fn env(&self, org: &OrgId, name: &str) -> Result<String>
pub fn env(&self, org: &OrgId, name: &str) -> Result<String>
The stack’s environment as stored (.env text; empty: none).
pub fn set_env(&self, org: &OrgId, name: &str, text: &str) -> Result<()>
Sourcepub fn domains(
&self,
org: &OrgId,
name: &str,
) -> Result<BTreeMap<String, Vec<DomainSpec>>>
pub fn domains( &self, org: &OrgId, name: &str, ) -> Result<BTreeMap<String, Vec<DomainSpec>>>
The stack’s managed domains per service.
pub fn set_domains( &self, org: &OrgId, name: &str, domains: &BTreeMap<String, Vec<DomainSpec>>, ) -> Result<()>
Sourcepub fn deployments(&self, org: &OrgId, name: &str) -> Result<Vec<Deployment>>
pub fn deployments(&self, org: &OrgId, name: &str) -> Result<Vec<Deployment>>
The stack’s deployments, newest first.
pub fn deployment(&self, org: &OrgId, name: &str, id: u64) -> Result<Deployment>
Sourcepub fn start(&self, org: &OrgId, d: Deployment) -> Result<Deployment>
pub fn start(&self, org: &OrgId, d: Deployment) -> Result<Deployment>
Record a new deployment, deploying from now: numbered after the
newest, which is superseded if it has not settled. Old records past
KEEP_DEPLOYMENTS are pruned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StackMeta
impl RefUnwindSafe for StackMeta
impl Send for StackMeta
impl Sync for StackMeta
impl Unpin for StackMeta
impl UnsafeUnpin for StackMeta
impl UnwindSafe for StackMeta
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