PostgreSQL and MySQL backups run through paired outposts, with operator sign-in, off-site copies, and legacy import. Retention stays on each orbit, so the unused retention console is removed. Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
777 B
Rust
35 lines
777 B
Rust
use serde::{Deserialize, Serialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
|
#[serde(rename_all = "snake_case")]
|
|
pub enum PairingState {
|
|
Unpaired,
|
|
CodeShown,
|
|
Claimed,
|
|
Active,
|
|
Offline,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct PairingCode {
|
|
pub code: String,
|
|
pub expires_at: chrono::DateTime<chrono::Utc>,
|
|
pub hub_outpost_id: Option<Uuid>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Serialize)]
|
|
pub struct OutpostSummary {
|
|
pub id: Uuid,
|
|
pub name: Option<String>,
|
|
pub last_seen: Option<String>,
|
|
pub pairing_state: String,
|
|
}
|
|
|
|
#[derive(Clone, Serialize, Deserialize)]
|
|
pub struct WormholeCredentials {
|
|
pub outpost_id: Uuid,
|
|
pub upload_token: String,
|
|
pub hub_url: String,
|
|
}
|