Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion crates/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ pub struct ZoneStatus {
pub name: ZoneName,
pub source: ZoneSource,
pub policy: String,
pub stage: ZoneStage,
pub progress: Progress,
pub keys: Vec<KeyInfo>,
pub key_status: String,
pub receipt_report: Option<ZoneLoaderReport>,
Expand All @@ -365,6 +365,19 @@ pub struct ZoneStatus {
pub halted_reason: Option<String>,
}

#[derive(Deserialize, Serialize, Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
pub enum Progress {
WaitingForChanges,
ChangesReceived,
AtUnsignedReview,
WaitingToSign,
Signing,
Signed,
SigningFailed,
AtSignedReview,
Published,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ZoneLoaderReport {
pub started_at: SystemTime,
Expand Down
Loading
Loading