aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/api.rs
diff options
context:
space:
mode:
authorAlex Auvolat <lx@deuxfleurs.fr>2025-02-05 14:22:10 +0100
committerAlex Auvolat <lx@deuxfleurs.fr>2025-02-05 14:22:10 +0100
commit9f468b4439bdd5e2e67a6215f941556310877155 (patch)
tree7524ac5326e069d014fd25b624d794d52aa5e745 /src/api/admin/api.rs
parent97be7b38fa3bd3172895f6ab44157e5236d65cd6 (diff)
downloadgarage-9f468b4439bdd5e2e67a6215f941556310877155.tar.gz
garage-9f468b4439bdd5e2e67a6215f941556310877155.zip
cli_v2: implement CreateMetadataSnapshot
Diffstat (limited to 'src/api/admin/api.rs')
-rw-r--r--src/api/admin/api.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/api/admin/api.rs b/src/api/admin/api.rs
index cde11bac..3f041208 100644
--- a/src/api/admin/api.rs
+++ b/src/api/admin/api.rs
@@ -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,
@@ -624,6 +629,18 @@ pub struct RemoveBucketAliasRequest {
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
// **********************************************