Skip to content

Commit 30b9e14

Browse files
committed
feat: Add snapshot API definitions for backup and restore
issue: milvus-io/milvus#44358 Add snapshot-related protobuf definitions and RPC services: - Add snapshot privilege definitions in common.proto - Add snapshot RPC services in milvus.proto - Add snapshot.proto with request/response messages - Update proto generation script to include snapshot files This provides the foundation for implementing snapshot-based backup and restore functionality with proper privilege control. Signed-off-by: Wei Liu <[email protected]>
1 parent 7fae611 commit 30b9e14

File tree

6 files changed

+3791
-1990
lines changed

6 files changed

+3791
-1990
lines changed

go-api/commonpb/common.pb.go

Lines changed: 257 additions & 201 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go-api/milvuspb/milvus.pb.go

Lines changed: 3110 additions & 1787 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go-api/milvuspb/milvus_grpc.pb.go

Lines changed: 261 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/common.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,15 @@ enum MsgType {
327327

328328
/* WAL group */
329329
AlterWAL = 2000;
330+
331+
/* Snapshot */
332+
CreateSnapshot = 2100;
333+
DropSnapshot = 2101;
334+
ListSnapshots = 2102;
335+
DescribeSnapshot = 2103;
336+
RestoreSnapshot = 2104;
337+
GetRestoreSnapshotState = 2105;
338+
ListRestoreSnapshotJobs = 2106;
330339
}
331340

332341
message MsgBase {
@@ -476,6 +485,12 @@ enum ObjectPrivilege {
476485
PrivilegeRemoveFileResource = 73;
477486
PrivilegeListFileResources = 74;
478487
PrivilegeUpdateReplicateConfiguration = 78;
488+
489+
PrivilegeCreateSnapshot = 79;
490+
PrivilegeDropSnapshot = 80;
491+
PrivilegeDescribeSnapshot = 81;
492+
PrivilegeListSnapshots = 82;
493+
PrivilegeRestoreSnapshot = 83;
479494
}
480495

481496
message PrivilegeExt {

0 commit comments

Comments
 (0)