2020-10-24 18:04:57 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
package milvus.proto.etcd;
|
2021-04-22 14:45:57 +08:00
|
|
|
option go_package="github.com/milvus-io/milvus/internal/proto/etcdpb";
|
2020-10-24 18:04:57 +08:00
|
|
|
|
|
|
|
import "common.proto";
|
|
|
|
import "schema.proto";
|
|
|
|
|
2022-07-22 10:20:29 +08:00
|
|
|
// this proto only used to describe object that will persist into etcd
|
2020-10-24 18:04:57 +08:00
|
|
|
|
2021-02-09 13:11:55 +08:00
|
|
|
message IndexInfo {
|
|
|
|
string index_name = 1;
|
|
|
|
int64 indexID = 2;
|
|
|
|
repeated common.KeyValuePair index_params = 3;
|
2022-06-17 18:08:12 +08:00
|
|
|
bool deleted = 4;
|
2022-06-21 18:44:12 +08:00
|
|
|
uint64 create_time = 5;
|
2021-02-09 13:11:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message FieldIndexInfo{
|
2021-02-02 10:09:10 +08:00
|
|
|
int64 filedID = 1;
|
2021-02-11 08:41:59 +08:00
|
|
|
int64 indexID = 2;
|
2021-02-02 10:09:10 +08:00
|
|
|
}
|
|
|
|
|
2023-06-25 17:20:43 +08:00
|
|
|
enum DatabaseState {
|
|
|
|
DatabaseUnknown = 0;
|
|
|
|
DatabaseCreated = 1;
|
|
|
|
DatabaseCreating = 2;
|
|
|
|
DatabaseDropping = 3;
|
|
|
|
DatabaseDropped = 4;
|
|
|
|
}
|
|
|
|
|
2022-09-05 13:29:11 +08:00
|
|
|
enum CollectionState {
|
|
|
|
CollectionCreated = 0;
|
|
|
|
CollectionCreating = 1;
|
|
|
|
CollectionDropping = 2;
|
|
|
|
CollectionDropped = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum PartitionState {
|
|
|
|
PartitionCreated = 0;
|
|
|
|
PartitionCreating = 1;
|
|
|
|
PartitionDropping = 2;
|
|
|
|
PartitionDropped = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum AliasState {
|
|
|
|
AliasCreated = 0;
|
|
|
|
AliasCreating = 1;
|
|
|
|
AliasDropping = 2;
|
|
|
|
AliasDropped = 3;
|
|
|
|
}
|
|
|
|
|
2021-01-19 14:44:03 +08:00
|
|
|
message CollectionInfo {
|
|
|
|
int64 ID = 1;
|
|
|
|
schema.CollectionSchema schema = 2;
|
|
|
|
uint64 create_time = 3;
|
2022-07-22 10:20:29 +08:00
|
|
|
// deprecate
|
2021-01-19 14:44:03 +08:00
|
|
|
repeated int64 partitionIDs = 4;
|
2022-07-22 10:20:29 +08:00
|
|
|
// deprecate
|
2021-07-06 09:16:03 +08:00
|
|
|
repeated string partitionNames = 5;
|
2022-10-10 20:31:22 +08:00
|
|
|
// deprecate
|
2021-07-03 14:36:18 +08:00
|
|
|
repeated FieldIndexInfo field_indexes = 6;
|
|
|
|
repeated string virtual_channel_names = 7;
|
|
|
|
repeated string physical_channel_names = 8;
|
2022-07-22 10:20:29 +08:00
|
|
|
// deprecate
|
2021-07-21 18:00:14 +08:00
|
|
|
repeated uint64 partition_created_timestamps = 9;
|
2021-09-08 15:00:00 +08:00
|
|
|
int32 shards_num = 10;
|
2021-09-27 14:13:58 +08:00
|
|
|
repeated common.KeyDataPair start_positions = 11;
|
2021-12-21 19:49:02 +08:00
|
|
|
common.ConsistencyLevel consistency_level = 12;
|
2022-09-05 13:29:11 +08:00
|
|
|
CollectionState state = 13; // To keep compatible with older version, default state is `Created`.
|
2022-10-10 20:31:22 +08:00
|
|
|
repeated common.KeyValuePair properties = 14;
|
2023-06-25 17:20:43 +08:00
|
|
|
int64 db_id = 15;
|
2022-07-22 10:20:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message PartitionInfo {
|
|
|
|
int64 partitionID = 1;
|
|
|
|
string partitionName = 2;
|
|
|
|
uint64 partition_created_timestamp = 3;
|
2022-08-10 10:22:38 +08:00
|
|
|
int64 collection_id = 4;
|
2022-09-05 13:29:11 +08:00
|
|
|
PartitionState state = 5; // To keep compatible with older version, default state is `Created`.
|
2022-08-10 10:22:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message AliasInfo {
|
|
|
|
string alias_name = 1;
|
|
|
|
int64 collection_id = 2;
|
|
|
|
uint64 created_time = 3;
|
2022-09-05 13:29:11 +08:00
|
|
|
AliasState state = 4; // To keep compatible with older version, default state is `Created`.
|
2023-06-25 17:20:43 +08:00
|
|
|
int64 db_id = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DatabaseInfo {
|
|
|
|
string tenant_id = 1;
|
|
|
|
string name = 2;
|
|
|
|
int64 id = 3;
|
|
|
|
DatabaseState state = 4;
|
|
|
|
uint64 created_time = 5;
|
2021-01-19 14:44:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message SegmentIndexInfo {
|
2021-07-03 20:00:40 +08:00
|
|
|
int64 collectionID = 1;
|
|
|
|
int64 partitionID = 2;
|
|
|
|
int64 segmentID = 3;
|
|
|
|
int64 fieldID = 4;
|
|
|
|
int64 indexID = 5;
|
|
|
|
int64 buildID = 6;
|
|
|
|
bool enable_index = 7;
|
2022-06-21 18:44:12 +08:00
|
|
|
uint64 create_time = 8;
|
2021-01-19 14:44:03 +08:00
|
|
|
}
|
|
|
|
|
2022-07-22 10:20:29 +08:00
|
|
|
// TODO move to proto files of interprocess communication
|
2020-10-24 18:04:57 +08:00
|
|
|
message CollectionMeta {
|
2020-11-13 15:17:18 +08:00
|
|
|
int64 ID=1;
|
2020-10-24 18:04:57 +08:00
|
|
|
schema.CollectionSchema schema=2;
|
|
|
|
uint64 create_time=3;
|
2020-11-13 15:17:18 +08:00
|
|
|
repeated int64 segmentIDs=4;
|
2020-10-24 18:04:57 +08:00
|
|
|
repeated string partition_tags=5;
|
2021-03-12 14:22:09 +08:00
|
|
|
repeated int64 partitionIDs=6;
|
2020-10-24 18:04:57 +08:00
|
|
|
}
|
2022-07-22 10:20:29 +08:00
|
|
|
|
|
|
|
message CredentialInfo {
|
|
|
|
string username = 1;
|
|
|
|
// encrypted by bcrypt (for higher security level)
|
|
|
|
string encrypted_password = 2;
|
|
|
|
string tenant = 3;
|
|
|
|
bool is_super = 4;
|
|
|
|
// encrypted by sha256 (for good performance in cache mapping)
|
|
|
|
string sha256_password = 5;
|
|
|
|
}
|