diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-02-05 14:22:10 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-02-05 14:22:10 +0100 |
commit | 9f468b4439bdd5e2e67a6215f941556310877155 (patch) | |
tree | 7524ac5326e069d014fd25b624d794d52aa5e745 /src/api/admin/api.rs | |
parent | 97be7b38fa3bd3172895f6ab44157e5236d65cd6 (diff) | |
download | garage-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.rs | 17 |
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 // ********************************************** |