mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-01 04:20:39 +00:00
control_plane: implement attach hook
This commit is contained in:
@@ -39,3 +39,16 @@ pub struct ValidateResponseTenant {
|
||||
pub id: TenantId,
|
||||
pub valid: bool,
|
||||
}
|
||||
|
||||
#[cfg(testing)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct AttachHookRequest {
|
||||
tenant_id: TenantId,
|
||||
pageserver_id: Option<NodeId>,
|
||||
}
|
||||
|
||||
#[cfg(testing)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct AttachHookResponse {
|
||||
gen: Option<u32>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user