pub enum StagedUpgradeStatus {
Building,
Staged,
Confirmed,
Promoted,
Revoked,
Failed,
Expired,
}Expand description
Lifecycle of a staged upgrade. Transitions are monotonic except that
Staged can transition to either Confirmed (happy path) or Revoked
(operator calls revoke before valid_from).
Variants§
Building
The new EIF is being built. pcrs and image_digest are not yet
available.
Staged
Build finished; pcrs and image_digest are recorded. The upgrade
is awaiting operator confirmation; nothing has been sent to the
running enclave yet and no valid_from is set.
Confirmed
The operator has called POST /enclaves/{id}/upgrades/{uid}/confirm:
the backend fixed valid_from, signed the upgrade-auth payload, and
dispatched it to the running enclave as a PrepareUpgrade control
command; the enclave emitted an Upgrade chain link and
acknowledged. The new version may launch once valid_from passes.
Promoted
The new enclave has started successfully with the new image. The upgrade is complete.
Revoked
The operator revoked a confirmed upgrade before valid_from. The
running enclave has rolled back its LUKS keyslot (if applicable) and
emitted a Revocation chain link.
Failed
Build or chain-link submission failed. See error_message.
Expired
Staged but never confirmed within the backend’s staleness window; garbage-collected.
Trait Implementations§
Source§impl Clone for StagedUpgradeStatus
impl Clone for StagedUpgradeStatus
Source§fn clone(&self) -> StagedUpgradeStatus
fn clone(&self) -> StagedUpgradeStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StagedUpgradeStatus
Source§impl Debug for StagedUpgradeStatus
impl Debug for StagedUpgradeStatus
Source§impl<'de> Deserialize<'de> for StagedUpgradeStatus
impl<'de> Deserialize<'de> for StagedUpgradeStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for StagedUpgradeStatus
Source§impl PartialEq for StagedUpgradeStatus
impl PartialEq for StagedUpgradeStatus
Source§fn eq(&self, other: &StagedUpgradeStatus) -> bool
fn eq(&self, other: &StagedUpgradeStatus) -> bool
self and other values to be equal, and is used by ==.