use super::*;
pub use software::Software;
mod impls;
mod software;
pub const PREFIX: &str = "/v0";
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct RegisterClusterDto {
pub name: String,
pub vendor: Vendor,
pub handle: String,
pub location: Location,
pub description: Option<String>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Cluster {
pub name: String,
pub id: Uuid,
pub vendor: Vendor,
pub registered: bool,
pub location: Location,
pub description: Option<String>,
pub version: String,
pub platform_version: Option<String>,
pub software: Option<Software>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Clusters {
pub data: Vec<Cluster>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct ClusterToken {
pub token: String,
}
impl RegisterClusterDto {
pub const PATH: &str = "/clusters";
}
impl Cluster {
pub const PATH: &str = "/clusters";
}
impl ClusterToken {
pub const PATH: &str = "/token";
}