Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: buf gen (#12651)
h3n4ld0bda5dfcd9a
diff --git a/frontend/src/types/proto/store/data_source.ts b/frontend/src/types/proto/store/data_source.tsindex c692b241d6..6bd22d2611 100644--- a/frontend/src/types/proto/store/data_source.ts+++ b/frontend/src/types/proto/store/data_source.ts@@ -255,6 +255,7 @@ export interface DataSourceOptions {/** master_username and master_obfuscated_password are master credentials used by redis sentinel mode. */masterUsername: string;masterObfuscatedPassword: string;+ redisType: DataSourceOptions_RedisType;}export enum DataSourceOptions_AuthenticationType {@@ -318,6 +319,67 @@ export function dataSourceOptions_AuthenticationTypeToNumber(object: DataSourceO}}+export enum DataSourceOptions_RedisType {+ REDIS_TYPE_UNSPECIFIED = "REDIS_TYPE_UNSPECIFIED",+ STANDALONE = "STANDALONE",+ SENTINEL = "SENTINEL",+ CLUSTER = "CLUSTER",+ UNRECOGNIZED = "UNRECOGNIZED",+}++export function dataSourceOptions_RedisTypeFromJSON(object: any): DataSourceOptions_RedisType {+ switch (object) {+ case 0:+ case "REDIS_TYPE_UNSPECIFIED":+ return DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED;+ case 1:+ case "STANDALONE":+ return DataSourceOptions_RedisType.STANDALONE;+ case 2:+ case "SENTINEL":+ return DataSourceOptions_RedisType.SENTINEL;+ case 3:+ case "CLUSTER":+ return DataSourceOptions_RedisType.CLUSTER;+ case -1:+ case "UNRECOGNIZED":+ default:+ return DataSourceOptions_RedisType.UNRECOGNIZED;+ }+}++export function dataSourceOptions_RedisTypeToJSON(object: DataSourceOptions_RedisType): string {+ switch (object) {+ case DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED:+ return "REDIS_TYPE_UNSPECIFIED";+ case DataSourceOptions_RedisType.STANDALONE:+ return "STANDALONE";+ case DataSourceOptions_RedisType.SENTINEL:+ return "SENTINEL";+ case DataSourceOptions_RedisType.CLUSTER:+ return "CLUSTER";+ case DataSourceOptions_RedisType.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export function dataSourceOptions_RedisTypeToNumber(object: DataSourceOptions_RedisType): number {+ switch (object) {+ case DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED:+ return 0;+ case DataSourceOptions_RedisType.STANDALONE:+ return 1;+ case DataSourceOptions_RedisType.SENTINEL:+ return 2;+ case DataSourceOptions_RedisType.CLUSTER:+ return 3;+ case DataSourceOptions_RedisType.UNRECOGNIZED:+ default:+ return -1;+ }+}+export interface DataSourceOptions_Address {host: string;port: string;@@ -653,6 +715,7 @@ function createBaseDataSourceOptions(): DataSourceOptions {masterName: "",masterUsername: "",masterObfuscatedPassword: "",+ redisType: DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED,};}@@ -724,6 +787,9 @@ export const DataSourceOptions = {if (message.masterObfuscatedPassword !== "") {writer.uint32(178).string(message.masterObfuscatedPassword);}+ if (message.redisType !== DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED) {+ writer.uint32(184).int32(dataSourceOptions_RedisTypeToNumber(message.redisType));+ }return writer;},@@ -888,6 +954,13 @@ export const DataSourceOptions = {message.masterObfuscatedPassword = reader.string();continue;+ case 23:+ if (tag !== 184) {+ break;+ }++ message.redisType = dataSourceOptions_RedisTypeFromJSON(reader.int32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -935,6 +1008,9 @@ export const DataSourceOptions = {masterObfuscatedPassword: isSet(object.masterObfuscatedPassword)? globalThis.String(object.masterObfuscatedPassword): "",+ redisType: isSet(object.redisType)+ ? dataSourceOptions_RedisTypeFromJSON(object.redisType)+ : DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED,};},@@ -1006,6 +1082,9 @@ export const DataSourceOptions = {if (message.masterObfuscatedPassword !== "") {obj.masterObfuscatedPassword = message.masterObfuscatedPassword;}+ if (message.redisType !== DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED) {+ obj.redisType = dataSourceOptions_RedisTypeToJSON(message.redisType);+ }return obj;},@@ -1042,6 +1121,7 @@ export const DataSourceOptions = {message.masterName = object.masterName ?? "";message.masterUsername = object.masterUsername ?? "";message.masterObfuscatedPassword = object.masterObfuscatedPassword ?? "";+ message.redisType = object.redisType ?? DataSourceOptions_RedisType.REDIS_TYPE_UNSPECIFIED;return message;},};diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 05b7a3e680..cd5d173472 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -109,6 +109,7 @@- [DataSourceExternalSecret.AuthType](#bytebase-store-DataSourceExternalSecret-AuthType)- [DataSourceExternalSecret.SecretType](#bytebase-store-DataSourceExternalSecret-SecretType)- [DataSourceOptions.AuthenticationType](#bytebase-store-DataSourceOptions-AuthenticationType)+ - [DataSourceOptions.RedisType](#bytebase-store-DataSourceOptions-RedisType)- [store/db_group.proto](#store_db_group-proto)- [DatabaseGroupPayload](#bytebase-store-DatabaseGroupPayload)@@ -1768,6 +1769,7 @@ PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-parti| master_name | [string](#string) | | master_name is the master name used by connecting redis-master via redis sentinel. || master_username | [string](#string) | | master_username and master_obfuscated_password are master credentials used by redis sentinel mode. || master_obfuscated_password | [string](#string) | | |+| redis_type | [DataSourceOptions.RedisType](#bytebase-store-DataSourceOptions-RedisType) | | |@@ -1881,6 +1883,20 @@ PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-parti| AWS_RDS_IAM | 3 | |++<a name="bytebase-store-DataSourceOptions-RedisType"></a>++### DataSourceOptions.RedisType+++| Name | Number | Description |+| ---- | ------ | ----------- |+| REDIS_TYPE_UNSPECIFIED | 0 | |+| STANDALONE | 1 | |+| SENTINEL | 2 | |+| CLUSTER | 3 | |++diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex ffd743a95f..2fb6ebf63b 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -595,6 +595,10 @@<a href="#bytebase.store.DataSourceOptions.AuthenticationType"><span class="badge">E</span>DataSourceOptions.AuthenticationType</a></li>+ <li>+ <a href="#bytebase.store.DataSourceOptions.RedisType"><span class="badge">E</span>DataSourceOptions.RedisType</a>+ </li>+</ul>@@ -5030,6 +5034,13 @@ Used for authentication when connecting to the data source. </p></td><td><p> </p></td></tr>+ <tr>+ <td>redis_type</td>+ <td><a href="#bytebase.store.DataSourceOptions.RedisType">DataSourceOptions.RedisType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+</tbody></table>@@ -5288,6 +5299,41 @@ Used for authentication when connecting to the data source. </p></td></tbody></table>+ <h3 id="bytebase.store.DataSourceOptions.RedisType">DataSourceOptions.RedisType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>REDIS_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>STANDALONE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SENTINEL</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CLUSTER</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+diff --git a/proto/generated-go/store/data_source.pb.go b/proto/generated-go/store/data_source.pb.goindex 28db927c13..15761dccaa 100644--- a/proto/generated-go/store/data_source.pb.go+++ b/proto/generated-go/store/data_source.pb.go@@ -227,6 +227,58 @@ func (DataSourceOptions_AuthenticationType) EnumDescriptor() ([]byte, []int) {return file_store_data_source_proto_rawDescGZIP(), []int{1, 0}}+type DataSourceOptions_RedisType int32++const (+ DataSourceOptions_REDIS_TYPE_UNSPECIFIED DataSourceOptions_RedisType = 0+ DataSourceOptions_STANDALONE DataSourceOptions_RedisType = 1+ DataSourceOptions_SENTINEL DataSourceOptions_RedisType = 2+ DataSourceOptions_CLUSTER DataSourceOptions_RedisType = 3+)++// Enum value maps for DataSourceOptions_RedisType.+var (+ DataSourceOptions_RedisType_name = map[int32]string{+ 0: "REDIS_TYPE_UNSPECIFIED",+ 1: "STANDALONE",+ 2: "SENTINEL",+ 3: "CLUSTER",+ }+ DataSourceOptions_RedisType_value = map[string]int32{+ "REDIS_TYPE_UNSPECIFIED": 0,+ "STANDALONE": 1,+ "SENTINEL": 2,+ "CLUSTER": 3,+ }+)++func (x DataSourceOptions_RedisType) Enum() *DataSourceOptions_RedisType {+ p := new(DataSourceOptions_RedisType)+ *p = x+ return p+}++func (x DataSourceOptions_RedisType) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (DataSourceOptions_RedisType) Descriptor() protoreflect.EnumDescriptor {+ return file_store_data_source_proto_enumTypes[4].Descriptor()+}++func (DataSourceOptions_RedisType) Type() protoreflect.EnumType {+ return &file_store_data_source_proto_enumTypes[4]+}++func (x DataSourceOptions_RedisType) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use DataSourceOptions_RedisType.Descriptor instead.+func (DataSourceOptions_RedisType) EnumDescriptor() ([]byte, []int) {+ return file_store_data_source_proto_rawDescGZIP(), []int{1, 1}+}+type DataSourceExternalSecret struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -403,8 +455,9 @@ type DataSourceOptions struct {// master_name is the master name used by connecting redis-master via redis sentinel.MasterName string `protobuf:"bytes,20,opt,name=master_name,json=masterName,proto3" json:"master_name,omitempty"`// master_username and master_obfuscated_password are master credentials used by redis sentinel mode.- MasterUsername string `protobuf:"bytes,21,opt,name=master_username,json=masterUsername,proto3" json:"master_username,omitempty"`- MasterObfuscatedPassword string `protobuf:"bytes,22,opt,name=master_obfuscated_password,json=masterObfuscatedPassword,proto3" json:"master_obfuscated_password,omitempty"`+ MasterUsername string `protobuf:"bytes,21,opt,name=master_username,json=masterUsername,proto3" json:"master_username,omitempty"`+ MasterObfuscatedPassword string `protobuf:"bytes,22,opt,name=master_obfuscated_password,json=masterObfuscatedPassword,proto3" json:"master_obfuscated_password,omitempty"`+ RedisType DataSourceOptions_RedisType `protobuf:"varint,23,opt,name=redis_type,json=redisType,proto3,enum=bytebase.store.DataSourceOptions_RedisType" json:"redis_type,omitempty"`}func (x *DataSourceOptions) Reset() {@@ -593,6 +646,13 @@ func (x *DataSourceOptions) GetMasterObfuscatedPassword() string {return ""}+func (x *DataSourceOptions) GetRedisType() DataSourceOptions_RedisType {+ if x != nil {+ return x.RedisType+ }+ return DataSourceOptions_REDIS_TYPE_UNSPECIFIED+}+type SASLConfig struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -944,7 +1004,7 @@ var file_store_data_source_proto_rawDesc = []byte{0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,0x09, 0x0a, 0x05, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x41,0x55, 0x4c, 0x54, 0x5f, 0x41, 0x50, 0x50, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x02, 0x42, 0x0d,- 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd3, 0x09,+ 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xf3, 0x0a,0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69,0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,0x52, 0x03, 0x73, 0x72, 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74,@@ -1012,17 +1072,27 @@ var file_store_data_source_proto_rawDesc = []byte{0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,0x64, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4f,0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,- 0x64, 0x1a, 0x31, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04,- 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74,- 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,- 0x70, 0x6f, 0x72, 0x74, 0x22, 0x6d, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69,- 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55,- 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53,- 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41,- 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x4f, 0x4f, 0x47,- 0x4c, 0x45, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x49, 0x41, 0x4d,- 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x57, 0x53, 0x5f, 0x52, 0x44, 0x53, 0x5f, 0x49, 0x41,- 0x4d, 0x10, 0x03, 0x22, 0x5a, 0x0a, 0x0a, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x64, 0x12, 0x4a, 0x0a, 0x0a, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,+ 0x17, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x54, 0x79,+ 0x70, 0x65, 0x52, 0x09, 0x72, 0x65, 0x64, 0x69, 0x73, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x31, 0x0a,+ 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,+ 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74,+ 0x22, 0x6d, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e,+ 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f,+ 0x52, 0x44, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x5f, 0x43,+ 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x53, 0x51, 0x4c, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x0f,+ 0x0a, 0x0b, 0x41, 0x57, 0x53, 0x5f, 0x52, 0x44, 0x53, 0x5f, 0x49, 0x41, 0x4d, 0x10, 0x03, 0x22,+ 0x52, 0x0a, 0x09, 0x52, 0x65, 0x64, 0x69, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16,+ 0x52, 0x45, 0x44, 0x49, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x54, 0x41, 0x4e,+ 0x44, 0x41, 0x4c, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x4e, 0x54,+ 0x49, 0x4e, 0x45, 0x4c, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45,+ 0x52, 0x10, 0x03, 0x22, 0x5a, 0x0a, 0x0a, 0x53, 0x41, 0x53, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69,0x67, 0x12, 0x3f, 0x0a, 0x0a, 0x6b, 0x72, 0x62, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x72, 0x62, 0x65, 0x72, 0x6f, 0x73, 0x43,@@ -1058,35 +1128,37 @@ func file_store_data_source_proto_rawDescGZIP() []byte {return file_store_data_source_proto_rawDescData}-var file_store_data_source_proto_enumTypes = make([]protoimpl.EnumInfo, 4)+var file_store_data_source_proto_enumTypes = make([]protoimpl.EnumInfo, 5)var file_store_data_source_proto_msgTypes = make([]protoimpl.MessageInfo, 6)var file_store_data_source_proto_goTypes = []any{(DataSourceExternalSecret_SecretType)(0), // 0: bytebase.store.DataSourceExternalSecret.SecretType(DataSourceExternalSecret_AuthType)(0), // 1: bytebase.store.DataSourceExternalSecret.AuthType(DataSourceExternalSecret_AppRoleAuthOption_SecretType)(0), // 2: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType(DataSourceOptions_AuthenticationType)(0), // 3: bytebase.store.DataSourceOptions.AuthenticationType- (*DataSourceExternalSecret)(nil), // 4: bytebase.store.DataSourceExternalSecret- (*DataSourceOptions)(nil), // 5: bytebase.store.DataSourceOptions- (*SASLConfig)(nil), // 6: bytebase.store.SASLConfig- (*KerberosConfig)(nil), // 7: bytebase.store.KerberosConfig- (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 8: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption- (*DataSourceOptions_Address)(nil), // 9: bytebase.store.DataSourceOptions.Address+ (DataSourceOptions_RedisType)(0), // 4: bytebase.store.DataSourceOptions.RedisType+ (*DataSourceExternalSecret)(nil), // 5: bytebase.store.DataSourceExternalSecret+ (*DataSourceOptions)(nil), // 6: bytebase.store.DataSourceOptions+ (*SASLConfig)(nil), // 7: bytebase.store.SASLConfig+ (*KerberosConfig)(nil), // 8: bytebase.store.KerberosConfig+ (*DataSourceExternalSecret_AppRoleAuthOption)(nil), // 9: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption+ (*DataSourceOptions_Address)(nil), // 10: bytebase.store.DataSourceOptions.Address}var file_store_data_source_proto_depIdxs = []int32{- 0, // 0: bytebase.store.DataSourceExternalSecret.secret_type:type_name -> bytebase.store.DataSourceExternalSecret.SecretType- 1, // 1: bytebase.store.DataSourceExternalSecret.auth_type:type_name -> bytebase.store.DataSourceExternalSecret.AuthType- 8, // 2: bytebase.store.DataSourceExternalSecret.app_role:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption- 4, // 3: bytebase.store.DataSourceOptions.external_secret:type_name -> bytebase.store.DataSourceExternalSecret- 3, // 4: bytebase.store.DataSourceOptions.authentication_type:type_name -> bytebase.store.DataSourceOptions.AuthenticationType- 6, // 5: bytebase.store.DataSourceOptions.sasl_config:type_name -> bytebase.store.SASLConfig- 9, // 6: bytebase.store.DataSourceOptions.additional_addresses:type_name -> bytebase.store.DataSourceOptions.Address- 7, // 7: bytebase.store.SASLConfig.krb_config:type_name -> bytebase.store.KerberosConfig- 2, // 8: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType- 9, // [9:9] is the sub-list for method output_type- 9, // [9:9] is the sub-list for method input_type- 9, // [9:9] is the sub-list for extension type_name- 9, // [9:9] is the sub-list for extension extendee- 0, // [0:9] is the sub-list for field type_name+ 0, // 0: bytebase.store.DataSourceExternalSecret.secret_type:type_name -> bytebase.store.DataSourceExternalSecret.SecretType+ 1, // 1: bytebase.store.DataSourceExternalSecret.auth_type:type_name -> bytebase.store.DataSourceExternalSecret.AuthType+ 9, // 2: bytebase.store.DataSourceExternalSecret.app_role:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption+ 5, // 3: bytebase.store.DataSourceOptions.external_secret:type_name -> bytebase.store.DataSourceExternalSecret+ 3, // 4: bytebase.store.DataSourceOptions.authentication_type:type_name -> bytebase.store.DataSourceOptions.AuthenticationType+ 7, // 5: bytebase.store.DataSourceOptions.sasl_config:type_name -> bytebase.store.SASLConfig+ 10, // 6: bytebase.store.DataSourceOptions.additional_addresses:type_name -> bytebase.store.DataSourceOptions.Address+ 4, // 7: bytebase.store.DataSourceOptions.redis_type:type_name -> bytebase.store.DataSourceOptions.RedisType+ 8, // 8: bytebase.store.SASLConfig.krb_config:type_name -> bytebase.store.KerberosConfig+ 2, // 9: bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.type:type_name -> bytebase.store.DataSourceExternalSecret.AppRoleAuthOption.SecretType+ 10, // [10:10] is the sub-list for method output_type+ 10, // [10:10] is the sub-list for method input_type+ 10, // [10:10] is the sub-list for extension type_name+ 10, // [10:10] is the sub-list for extension extendee+ 0, // [0:10] is the sub-list for field type_name}func init() { file_store_data_source_proto_init() }@@ -1180,7 +1252,7 @@ func file_store_data_source_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_data_source_proto_rawDesc,- NumEnums: 4,+ NumEnums: 5,NumMessages: 6,NumExtensions: 0,NumServices: 0,diff --git a/proto/store/data_source.proto b/proto/store/data_source.protoindex ae195b5d41..320459b5d4 100644--- a/proto/store/data_source.proto+++ b/proto/store/data_source.proto@@ -120,6 +120,14 @@ message DataSourceOptions {// master_username and master_obfuscated_password are master credentials used by redis sentinel mode.string master_username = 21;string master_obfuscated_password = 22;++ enum RedisType {+ REDIS_TYPE_UNSPECIFIED = 0;+ STANDALONE = 1;+ SENTINEL = 2;+ CLUSTER = 3;+ }+ RedisType redis_type = 23;}message SASLConfig {