Preserve the in-progress cluster RPC experiment for archival
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//! Shared wire contract for querying the Bedrock instance serving the request.
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct StatusRequest {}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct DeploymentStatus {
|
||||
pub deployment: String,
|
||||
pub config_version: Option<String>,
|
||||
pub storage_driver: String,
|
||||
pub read_only: bool,
|
||||
}
|
||||
|
||||
bedrock_rpc::service! {
|
||||
"/admin/v1/deployment" {
|
||||
fn status(StatusRequest) -> DeploymentStatus;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user