cli_v2: implement CreateMetadataSnapshot

This commit is contained in:
Alex Auvolat
2025-02-05 14:22:10 +01:00
parent 97be7b38fa
commit 9f468b4439
9 changed files with 94 additions and 68 deletions
+17
View File
@@ -77,6 +77,9 @@ admin_endpoints![
AddBucketAlias,
RemoveBucketAlias,
// Node operations
CreateMetadataSnapshot,
// Worker operations
ListWorkers,
GetWorkerInfo,
@@ -91,6 +94,8 @@ admin_endpoints![
];
local_admin_endpoints![
// Node operations
CreateMetadataSnapshot,
// Background workers
ListWorkers,
GetWorkerInfo,
@@ -623,6 +628,18 @@ pub struct RemoveBucketAliasRequest {
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RemoveBucketAliasResponse(pub GetBucketInfoResponse);
// **********************************************
// Node operations
// **********************************************
// ---- CreateMetadataSnapshot ----
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct LocalCreateMetadataSnapshotRequest;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct LocalCreateMetadataSnapshotResponse;
// **********************************************
// Worker operations
// **********************************************