Documentation
¶
Index ¶
- Variables
- func RegisterTenantServiceServer(s grpc.ServiceRegistrar, srv TenantServiceServer)
- type AliRegionId
- func (AliRegionId) Descriptor() protoreflect.EnumDescriptor
- func (x AliRegionId) Enum() *AliRegionId
- func (AliRegionId) EnumDescriptor() ([]byte, []int)deprecated
- func (x AliRegionId) Number() protoreflect.EnumNumber
- func (x AliRegionId) String() string
- func (AliRegionId) Type() protoreflect.EnumType
- type AwsRegionId
- func (AwsRegionId) Descriptor() protoreflect.EnumDescriptor
- func (x AwsRegionId) Enum() *AwsRegionId
- func (AwsRegionId) EnumDescriptor() ([]byte, []int)deprecated
- func (x AwsRegionId) Number() protoreflect.EnumNumber
- func (x AwsRegionId) String() string
- func (AwsRegionId) Type() protoreflect.EnumType
- type CloudConfig
- func (*CloudConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CloudConfig) GetAccessId() string
- func (x *CloudConfig) GetAccessSecret() string
- func (x *CloudConfig) GetName() string
- func (x *CloudConfig) GetProvider() CloudProvider
- func (x *CloudConfig) GetToken() string
- func (x *CloudConfig) GetUrl() string
- func (*CloudConfig) ProtoMessage()
- func (x *CloudConfig) ProtoReflect() protoreflect.Message
- func (x *CloudConfig) Reset()
- func (x *CloudConfig) String() string
- type CloudConfigs
- type CloudProduct
- func (CloudProduct) Descriptor() protoreflect.EnumDescriptor
- func (x CloudProduct) Enum() *CloudProduct
- func (CloudProduct) EnumDescriptor() ([]byte, []int)deprecated
- func (x CloudProduct) Number() protoreflect.EnumNumber
- func (x CloudProduct) String() string
- func (CloudProduct) Type() protoreflect.EnumType
- type CloudProvider
- func (CloudProvider) Descriptor() protoreflect.EnumDescriptor
- func (x CloudProvider) Enum() *CloudProvider
- func (CloudProvider) EnumDescriptor() ([]byte, []int)deprecated
- func (x CloudProvider) Number() protoreflect.EnumNumber
- func (x CloudProvider) String() string
- func (CloudProvider) Type() protoreflect.EnumType
- type HuaweiRegionId
- func (HuaweiRegionId) Descriptor() protoreflect.EnumDescriptor
- func (x HuaweiRegionId) Enum() *HuaweiRegionId
- func (HuaweiRegionId) EnumDescriptor() ([]byte, []int)deprecated
- func (x HuaweiRegionId) Number() protoreflect.EnumNumber
- func (x HuaweiRegionId) String() string
- func (HuaweiRegionId) Type() protoreflect.EnumType
- type K8SRegionId
- func (K8SRegionId) Descriptor() protoreflect.EnumDescriptor
- func (x K8SRegionId) Enum() *K8SRegionId
- func (K8SRegionId) EnumDescriptor() ([]byte, []int)deprecated
- func (x K8SRegionId) Number() protoreflect.EnumNumber
- func (x K8SRegionId) String() string
- func (K8SRegionId) Type() protoreflect.EnumType
- type Region
- type TenantServiceClient
- type TenantServiceServer
- type TencentRegionId
- func (TencentRegionId) Descriptor() protoreflect.EnumDescriptor
- func (x TencentRegionId) Enum() *TencentRegionId
- func (TencentRegionId) EnumDescriptor() ([]byte, []int)deprecated
- func (x TencentRegionId) Number() protoreflect.EnumNumber
- func (x TencentRegionId) String() string
- func (TencentRegionId) Type() protoreflect.EnumType
- type UnimplementedTenantServiceServer
- type UnsafeTenantServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( CloudProvider_name = map[int32]string{ 0: "ali", 1: "tencent", 2: "huawei", 3: "k8s", 4: "harvester", } CloudProvider_value = map[string]int32{ "ali": 0, "tencent": 1, "huawei": 2, "k8s": 3, "harvester": 4, } )
Enum value maps for CloudProvider.
var ( CloudProduct_name = map[int32]string{ 0: "product_all", 1: "product_ecs", 2: "product_rds", 3: "product_domain", 4: "product_oss", 5: "product_pod", } CloudProduct_value = map[string]int32{ "product_all": 0, "product_ecs": 1, "product_rds": 2, "product_domain": 3, "product_oss": 4, "product_pod": 5, } )
Enum value maps for CloudProduct.
var ( AliRegionId_name = map[int32]string{ 0: "ali_all", 1: "ali_cn_qingdao", 2: "ali_cn_beijing", 3: "ali_cn_zhangjiakou", 4: "ali_cn_huhehaote", 5: "ali_cn_wulanchabu", 6: "ali_cn_hangzhou", 7: "ali_cn_shanghai", 8: "ali_cn_shenzhen", 9: "ali_cn_heyuan", 10: "ali_cn_guangzhou", 11: "ali_cn_chengdu", 12: "ali_cn_hongkong", 13: "ali_ap_southeast_1", 14: "ali_ap_southeast_2", 15: "ali_ap_southeast_3", 16: "ali_ap_southeast_5", 17: "ali_ap_south_1", 18: "ali_ap_northeast_1", 19: "ali_us_west_1", 20: "ali_us_east_1", 21: "ali_eu_central_1", 22: "ali_eu_west_1", } AliRegionId_value = map[string]int32{ "ali_all": 0, "ali_cn_qingdao": 1, "ali_cn_beijing": 2, "ali_cn_zhangjiakou": 3, "ali_cn_huhehaote": 4, "ali_cn_wulanchabu": 5, "ali_cn_hangzhou": 6, "ali_cn_shanghai": 7, "ali_cn_shenzhen": 8, "ali_cn_heyuan": 9, "ali_cn_guangzhou": 10, "ali_cn_chengdu": 11, "ali_cn_hongkong": 12, "ali_ap_southeast_1": 13, "ali_ap_southeast_2": 14, "ali_ap_southeast_3": 15, "ali_ap_southeast_5": 16, "ali_ap_south_1": 17, "ali_ap_northeast_1": 18, "ali_us_west_1": 19, "ali_us_east_1": 20, "ali_eu_central_1": 21, "ali_eu_west_1": 22, } )
Enum value maps for AliRegionId.
var ( TencentRegionId_name = map[int32]string{ 0: "tc_all", 1: "tc_ap_bangkok", 2: "tc_ap_beijing", 3: "tc_ap_chengdu", 4: "tc_ap_chongqing", 5: "tc_ap_guangzhou", 6: "tc_ap_hongkong", 7: "tc_ap_jakarta", 8: "tc_ap_mumbai", 9: "tc_ap_nanjing", 10: "tc_ap_seoul", 11: "tc_ap_shanghai", 12: "tc_ap_shanghai_fsi", 13: "tc_ap_shenzhen_fsi", 14: "tc_ap_singapore", 15: "tc_ap_tokyo", 16: "tc_eu_frankfurt", 17: "tc_eu_moscow", 18: "tc_na_ashburn", 19: "tc_na_siliconvalley", 20: "tc_na_toronto", 21: "tc_sa_saopaulo", } TencentRegionId_value = map[string]int32{ "tc_all": 0, "tc_ap_bangkok": 1, "tc_ap_beijing": 2, "tc_ap_chengdu": 3, "tc_ap_chongqing": 4, "tc_ap_guangzhou": 5, "tc_ap_hongkong": 6, "tc_ap_jakarta": 7, "tc_ap_mumbai": 8, "tc_ap_nanjing": 9, "tc_ap_seoul": 10, "tc_ap_shanghai": 11, "tc_ap_shanghai_fsi": 12, "tc_ap_shenzhen_fsi": 13, "tc_ap_singapore": 14, "tc_ap_tokyo": 15, "tc_eu_frankfurt": 16, "tc_eu_moscow": 17, "tc_na_ashburn": 18, "tc_na_siliconvalley": 19, "tc_na_toronto": 20, "tc_sa_saopaulo": 21, } )
Enum value maps for TencentRegionId.
var ( HuaweiRegionId_name = map[int32]string{ 0: "hw_all", 1: "hw_cn_north_1", 2: "hw_cn_north_4", 3: "hw_cn_south_1", 4: "hw_cn_east_2", 5: "hw_cn_east_3", 6: "hw_cn_southwest_2", 7: "hw_ap_southeast_1", 8: "hw_ap_southeast_2", 9: "hw_ap_southeast_3", 10: "hw_af_south_1", 11: "hw_cn_south_2", } HuaweiRegionId_value = map[string]int32{ "hw_all": 0, "hw_cn_north_1": 1, "hw_cn_north_4": 2, "hw_cn_south_1": 3, "hw_cn_east_2": 4, "hw_cn_east_3": 5, "hw_cn_southwest_2": 6, "hw_ap_southeast_1": 7, "hw_ap_southeast_2": 8, "hw_ap_southeast_3": 9, "hw_af_south_1": 10, "hw_cn_south_2": 11, } )
Enum value maps for HuaweiRegionId.
var ( K8SRegionId_name = map[int32]string{ 0: "k8s_all", } K8SRegionId_value = map[string]int32{ "k8s_all": 0, } )
Enum value maps for K8SRegionId.
var ( AwsRegionId_name = map[int32]string{ 0: "aws_all", 1: "aws_us_east_2", 2: "aws_us_east_1", 3: "aws_us_west_1", 4: "aws_us_west_2", 5: "aws_af_south_1", 6: "aws_ap_east_1", 7: "aws_ap_south_1", 8: "aws_ap_northeast_3", 9: "aws_ap_northeast_2", 10: "aws_ap_northeast_1", 11: "aws_ap_southeast_2", 12: "aws_ap_southeast_1", 13: "aws_ca_central_1", 14: "aws_eu_central_1", 15: "aws_eu_west_1", 16: "aws_eu_west_2", 17: "aws_eu_south_1", 18: "aws_eu_west_3", 19: "aws_eu_north_1", 20: "aws_me_south_1", 21: "aws_sa_east_1", } AwsRegionId_value = map[string]int32{ "aws_all": 0, "aws_us_east_2": 1, "aws_us_east_1": 2, "aws_us_west_1": 3, "aws_us_west_2": 4, "aws_af_south_1": 5, "aws_ap_east_1": 6, "aws_ap_south_1": 7, "aws_ap_northeast_3": 8, "aws_ap_northeast_2": 9, "aws_ap_northeast_1": 10, "aws_ap_southeast_2": 11, "aws_ap_southeast_1": 12, "aws_ca_central_1": 13, "aws_eu_central_1": 14, "aws_eu_west_1": 15, "aws_eu_west_2": 16, "aws_eu_south_1": 17, "aws_eu_west_3": 18, "aws_eu_north_1": 19, "aws_me_south_1": 20, "aws_sa_east_1": 21, } )
Enum value maps for AwsRegionId.
var File_idl_pbtenant_tenant_proto protoreflect.FileDescriptor
var TenantService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pbtenant.TenantService", HandlerType: (*TenantServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, Metadata: "idl/pbtenant/tenant.proto", }
TenantService_ServiceDesc is the grpc.ServiceDesc for TenantService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTenantServiceServer ¶
func RegisterTenantServiceServer(s grpc.ServiceRegistrar, srv TenantServiceServer)
Types ¶
type AliRegionId ¶
type AliRegionId int32
阿里云区域,需要将对应的 _ 转化为 -
const ( AliRegionId_ali_all AliRegionId = 0 AliRegionId_ali_cn_qingdao AliRegionId = 1 // 青岛 AliRegionId_ali_cn_beijing AliRegionId = 2 // 北京 AliRegionId_ali_cn_zhangjiakou AliRegionId = 3 // 张家口 AliRegionId_ali_cn_huhehaote AliRegionId = 4 // 呼和浩特 AliRegionId_ali_cn_wulanchabu AliRegionId = 5 // 乌兰察布 AliRegionId_ali_cn_hangzhou AliRegionId = 6 // 杭州 AliRegionId_ali_cn_shanghai AliRegionId = 7 // 上海 AliRegionId_ali_cn_shenzhen AliRegionId = 8 // 深圳 AliRegionId_ali_cn_heyuan AliRegionId = 9 // 河源 AliRegionId_ali_cn_guangzhou AliRegionId = 10 // 广州 AliRegionId_ali_cn_chengdu AliRegionId = 11 // 成都 AliRegionId_ali_cn_hongkong AliRegionId = 12 // 中国香港-香港 AliRegionId_ali_ap_southeast_1 AliRegionId = 13 // 亚太东南1-新加坡 AliRegionId_ali_ap_southeast_2 AliRegionId = 14 // 亚太东南2-悉尼 AliRegionId_ali_ap_southeast_3 AliRegionId = 15 // 亚太东南3-吉隆坡 AliRegionId_ali_ap_southeast_5 AliRegionId = 16 // 亚太东南5-雅加达 AliRegionId_ali_ap_south_1 AliRegionId = 17 // 亚太南部1-孟买 AliRegionId_ali_ap_northeast_1 AliRegionId = 18 // 亚太东北1-东京 AliRegionId_ali_us_west_1 AliRegionId = 19 // 美国西部1-硅谷 AliRegionId_ali_us_east_1 AliRegionId = 20 // 美国东部1-弗吉尼亚 AliRegionId_ali_eu_central_1 AliRegionId = 21 // 欧洲中部1-法兰克福 AliRegionId_ali_eu_west_1 AliRegionId = 22 // 英国(伦敦)-伦敦 )
func (AliRegionId) Descriptor ¶
func (AliRegionId) Descriptor() protoreflect.EnumDescriptor
func (AliRegionId) Enum ¶
func (x AliRegionId) Enum() *AliRegionId
func (AliRegionId) EnumDescriptor
deprecated
func (AliRegionId) EnumDescriptor() ([]byte, []int)
Deprecated: Use AliRegionId.Descriptor instead.
func (AliRegionId) Number ¶
func (x AliRegionId) Number() protoreflect.EnumNumber
func (AliRegionId) String ¶
func (x AliRegionId) String() string
func (AliRegionId) Type ¶
func (AliRegionId) Type() protoreflect.EnumType
type AwsRegionId ¶
type AwsRegionId int32
亚马逊云区域,需要将对应的 _ 转化为 -
const ( AwsRegionId_aws_all AwsRegionId = 0 AwsRegionId_aws_us_east_2 AwsRegionId = 1 // US East (Ohio) AwsRegionId_aws_us_east_1 AwsRegionId = 2 // US East (N. Virginia) AwsRegionId_aws_us_west_1 AwsRegionId = 3 // US West (N. California) AwsRegionId_aws_us_west_2 AwsRegionId = 4 // US West (Oregon) AwsRegionId_aws_af_south_1 AwsRegionId = 5 // Africa (Cape Town) AwsRegionId_aws_ap_east_1 AwsRegionId = 6 // Asia Pacific (Hong Kong) AwsRegionId_aws_ap_south_1 AwsRegionId = 7 // Asia Pacific (Mumbai) AwsRegionId_aws_ap_northeast_3 AwsRegionId = 8 // Asia Pacific (Osaka) AwsRegionId_aws_ap_northeast_2 AwsRegionId = 9 // Asia Pacific (Seoul) AwsRegionId_aws_ap_northeast_1 AwsRegionId = 10 // Asia Pacific (Singapore) AwsRegionId_aws_ap_southeast_2 AwsRegionId = 11 // Asia Pacific (Sydney) AwsRegionId_aws_ap_southeast_1 AwsRegionId = 12 // Asia Pacific (Tokyo) AwsRegionId_aws_ca_central_1 AwsRegionId = 13 // Canada (Central) AwsRegionId_aws_eu_central_1 AwsRegionId = 14 // Europe (Frankfurt) AwsRegionId_aws_eu_west_1 AwsRegionId = 15 // Europe (Ireland) AwsRegionId_aws_eu_west_2 AwsRegionId = 16 // Europe (London) AwsRegionId_aws_eu_south_1 AwsRegionId = 17 // Europe (Milan) AwsRegionId_aws_eu_west_3 AwsRegionId = 18 // Europe (Paris) AwsRegionId_aws_eu_north_1 AwsRegionId = 19 // Europe (Stockholm) AwsRegionId_aws_me_south_1 AwsRegionId = 20 // Middle East (Bahrain) AwsRegionId_aws_sa_east_1 AwsRegionId = 21 // South America (São Paulo) )
func (AwsRegionId) Descriptor ¶
func (AwsRegionId) Descriptor() protoreflect.EnumDescriptor
func (AwsRegionId) Enum ¶
func (x AwsRegionId) Enum() *AwsRegionId
func (AwsRegionId) EnumDescriptor
deprecated
func (AwsRegionId) EnumDescriptor() ([]byte, []int)
Deprecated: Use AwsRegionId.Descriptor instead.
func (AwsRegionId) Number ¶
func (x AwsRegionId) Number() protoreflect.EnumNumber
func (AwsRegionId) String ¶
func (x AwsRegionId) String() string
func (AwsRegionId) Type ¶
func (AwsRegionId) Type() protoreflect.EnumType
type CloudConfig ¶
type CloudConfig struct { // 云服务提供商,具体参考 CloudProvider 的定义 Provider CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"` // 账户名称,由用户自定义,必须全局唯一,方便多个系统之间的维护 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 认证方式1:与 access_secret 结合使用,两者均非空时生效 AccessId string `protobuf:"bytes,3,opt,name=access_id,json=accessId,proto3" json:"access_id,omitempty"` // 认证方式1:与 access_id 结合使用,两者均非空时生效 AccessSecret string `protobuf:"bytes,4,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"` // 如果是私有云,需要提供URL Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` // 如果是私有云,需要提供URL Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CloudConfig) Descriptor
deprecated
func (*CloudConfig) Descriptor() ([]byte, []int)
Deprecated: Use CloudConfig.ProtoReflect.Descriptor instead.
func (*CloudConfig) GetAccessId ¶
func (x *CloudConfig) GetAccessId() string
func (*CloudConfig) GetAccessSecret ¶
func (x *CloudConfig) GetAccessSecret() string
func (*CloudConfig) GetName ¶
func (x *CloudConfig) GetName() string
func (*CloudConfig) GetProvider ¶
func (x *CloudConfig) GetProvider() CloudProvider
func (*CloudConfig) GetToken ¶
func (x *CloudConfig) GetToken() string
func (*CloudConfig) GetUrl ¶
func (x *CloudConfig) GetUrl() string
func (*CloudConfig) ProtoMessage ¶
func (*CloudConfig) ProtoMessage()
func (*CloudConfig) ProtoReflect ¶
func (x *CloudConfig) ProtoReflect() protoreflect.Message
func (*CloudConfig) Reset ¶
func (x *CloudConfig) Reset()
func (*CloudConfig) String ¶
func (x *CloudConfig) String() string
type CloudConfigs ¶
type CloudConfigs struct { // 云配置 Configs []*CloudConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` // contains filtered or unexported fields }
云配置信息
func (*CloudConfigs) Descriptor
deprecated
func (*CloudConfigs) Descriptor() ([]byte, []int)
Deprecated: Use CloudConfigs.ProtoReflect.Descriptor instead.
func (*CloudConfigs) GetConfigs ¶
func (x *CloudConfigs) GetConfigs() []*CloudConfig
func (*CloudConfigs) ProtoMessage ¶
func (*CloudConfigs) ProtoMessage()
func (*CloudConfigs) ProtoReflect ¶
func (x *CloudConfigs) ProtoReflect() protoreflect.Message
func (*CloudConfigs) Reset ¶
func (x *CloudConfigs) Reset()
func (*CloudConfigs) String ¶
func (x *CloudConfigs) String() string
type CloudProduct ¶
type CloudProduct int32
云产品
const ( // 0 - 所有产品 CloudProduct_product_all CloudProduct = 0 // 1 - ECS类产品:阿里云ECS,腾讯云CVM,华为云ECS,亚马逊EC2 CloudProduct_product_ecs CloudProduct = 1 // 2 - RDS类产品:阿里云RDS,腾讯云CDB CloudProduct_product_rds CloudProduct = 2 // 3 - Domain类产品:阿里云Domain CloudProduct_product_domain CloudProduct = 3 // 4 - OSS类产品:阿里云OSS CloudProduct_product_oss CloudProduct = 4 // 5 - POD类产品:阿里云ECI,华为云CCI,腾讯云EKS CloudProduct_product_pod CloudProduct = 5 )
func (CloudProduct) Descriptor ¶
func (CloudProduct) Descriptor() protoreflect.EnumDescriptor
func (CloudProduct) Enum ¶
func (x CloudProduct) Enum() *CloudProduct
func (CloudProduct) EnumDescriptor
deprecated
func (CloudProduct) EnumDescriptor() ([]byte, []int)
Deprecated: Use CloudProduct.Descriptor instead.
func (CloudProduct) Number ¶
func (x CloudProduct) Number() protoreflect.EnumNumber
func (CloudProduct) String ¶
func (x CloudProduct) String() string
func (CloudProduct) Type ¶
func (CloudProduct) Type() protoreflect.EnumType
type CloudProvider ¶
type CloudProvider int32
云提供商
const ( // 0 - 阿里云 CloudProvider_ali CloudProvider = 0 // 1 - 腾讯云 CloudProvider_tencent CloudProvider = 1 // 2 - 华为云 CloudProvider_huawei CloudProvider = 2 // 3 - K8S CloudProvider_k8s CloudProvider = 3 // 3 - Harvester CloudProvider_harvester CloudProvider = 4 )
func (CloudProvider) Descriptor ¶
func (CloudProvider) Descriptor() protoreflect.EnumDescriptor
func (CloudProvider) Enum ¶
func (x CloudProvider) Enum() *CloudProvider
func (CloudProvider) EnumDescriptor
deprecated
func (CloudProvider) EnumDescriptor() ([]byte, []int)
Deprecated: Use CloudProvider.Descriptor instead.
func (CloudProvider) Number ¶
func (x CloudProvider) Number() protoreflect.EnumNumber
func (CloudProvider) String ¶
func (x CloudProvider) String() string
func (CloudProvider) Type ¶
func (CloudProvider) Type() protoreflect.EnumType
type HuaweiRegionId ¶
type HuaweiRegionId int32
华为云区域,需要将对应的 _ 转化为 -
const ( HuaweiRegionId_hw_all HuaweiRegionId = 0 HuaweiRegionId_hw_cn_north_1 HuaweiRegionId = 1 // 华北-北京一 HuaweiRegionId_hw_cn_north_4 HuaweiRegionId = 2 // 华北-北京四 HuaweiRegionId_hw_cn_south_1 HuaweiRegionId = 3 // 华南-广州 HuaweiRegionId_hw_cn_east_2 HuaweiRegionId = 4 // 华东-上海二 HuaweiRegionId_hw_cn_east_3 HuaweiRegionId = 5 // 华东-上海一 HuaweiRegionId_hw_cn_southwest_2 HuaweiRegionId = 6 // 西南-贵阳一 HuaweiRegionId_hw_ap_southeast_1 HuaweiRegionId = 7 // 中国-香港 HuaweiRegionId_hw_ap_southeast_2 HuaweiRegionId = 8 // 亚太-曼谷 HuaweiRegionId_hw_ap_southeast_3 HuaweiRegionId = 9 // 亚太-新加坡 HuaweiRegionId_hw_af_south_1 HuaweiRegionId = 10 //非洲-约翰内斯堡 HuaweiRegionId_hw_cn_south_2 HuaweiRegionId = 11 // 华南-深圳 )
func (HuaweiRegionId) Descriptor ¶
func (HuaweiRegionId) Descriptor() protoreflect.EnumDescriptor
func (HuaweiRegionId) Enum ¶
func (x HuaweiRegionId) Enum() *HuaweiRegionId
func (HuaweiRegionId) EnumDescriptor
deprecated
func (HuaweiRegionId) EnumDescriptor() ([]byte, []int)
Deprecated: Use HuaweiRegionId.Descriptor instead.
func (HuaweiRegionId) Number ¶
func (x HuaweiRegionId) Number() protoreflect.EnumNumber
func (HuaweiRegionId) String ¶
func (x HuaweiRegionId) String() string
func (HuaweiRegionId) Type ¶
func (HuaweiRegionId) Type() protoreflect.EnumType
type K8SRegionId ¶
type K8SRegionId int32
私有云区域 预留
const (
K8SRegionId_k8s_all K8SRegionId = 0
)
func (K8SRegionId) Descriptor ¶
func (K8SRegionId) Descriptor() protoreflect.EnumDescriptor
func (K8SRegionId) Enum ¶
func (x K8SRegionId) Enum() *K8SRegionId
func (K8SRegionId) EnumDescriptor
deprecated
func (K8SRegionId) EnumDescriptor() ([]byte, []int)
Deprecated: Use K8SRegionId.Descriptor instead.
func (K8SRegionId) Number ¶
func (x K8SRegionId) Number() protoreflect.EnumNumber
func (K8SRegionId) String ¶
func (x K8SRegionId) String() string
func (K8SRegionId) Type ¶
func (K8SRegionId) Type() protoreflect.EnumType
type Region ¶
type Region struct { //id Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //name Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Region) ProtoReflect ¶
func (x *Region) ProtoReflect() protoreflect.Message
type TenantServiceClient ¶
type TenantServiceClient interface { }
TenantServiceClient is the client API for TenantService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTenantServiceClient ¶
func NewTenantServiceClient(cc grpc.ClientConnInterface) TenantServiceClient
type TenantServiceServer ¶
type TenantServiceServer interface {
// contains filtered or unexported methods
}
TenantServiceServer is the server API for TenantService service. All implementations must embed UnimplementedTenantServiceServer for forward compatibility
type TencentRegionId ¶
type TencentRegionId int32
腾讯云区域,需要将对应的 _ 转化为 -
const ( TencentRegionId_tc_all TencentRegionId = 0 TencentRegionId_tc_ap_bangkok TencentRegionId = 1 //亚太东南(曼谷) TencentRegionId_tc_ap_beijing TencentRegionId = 2 //华北地区(北京) TencentRegionId_tc_ap_chengdu TencentRegionId = 3 //西南地区(成都) TencentRegionId_tc_ap_chongqing TencentRegionId = 4 //西南地区(重庆) TencentRegionId_tc_ap_guangzhou TencentRegionId = 5 //华南地区(广州) TencentRegionId_tc_ap_hongkong TencentRegionId = 6 //港澳台地区(中国香港) TencentRegionId_tc_ap_jakarta TencentRegionId = 7 //亚太东南(雅加达) TencentRegionId_tc_ap_mumbai TencentRegionId = 8 // 亚太南部(孟买) TencentRegionId_tc_ap_nanjing TencentRegionId = 9 //华东地区(南京) TencentRegionId_tc_ap_seoul TencentRegionId = 10 //亚太东北(首尔) TencentRegionId_tc_ap_shanghai TencentRegionId = 11 //华东地区(上海) TencentRegionId_tc_ap_shanghai_fsi TencentRegionId = 12 //华东地区(上海金融) TencentRegionId_tc_ap_shenzhen_fsi TencentRegionId = 13 //华南地区(深圳金融) TencentRegionId_tc_ap_singapore TencentRegionId = 14 //亚太东南(新加坡) TencentRegionId_tc_ap_tokyo TencentRegionId = 15 //亚太东北(东京) TencentRegionId_tc_eu_frankfurt TencentRegionId = 16 //欧洲地区(法兰克福) TencentRegionId_tc_eu_moscow TencentRegionId = 17 //欧洲地区(莫斯科) TencentRegionId_tc_na_ashburn TencentRegionId = 18 //美国东部(弗吉尼亚) TencentRegionId_tc_na_siliconvalley TencentRegionId = 19 //美国西部(硅谷) TencentRegionId_tc_na_toronto TencentRegionId = 20 //北美地区(多伦多) TencentRegionId_tc_sa_saopaulo TencentRegionId = 21 //南美地区(圣保罗) )
func (TencentRegionId) Descriptor ¶
func (TencentRegionId) Descriptor() protoreflect.EnumDescriptor
func (TencentRegionId) Enum ¶
func (x TencentRegionId) Enum() *TencentRegionId
func (TencentRegionId) EnumDescriptor
deprecated
func (TencentRegionId) EnumDescriptor() ([]byte, []int)
Deprecated: Use TencentRegionId.Descriptor instead.
func (TencentRegionId) Number ¶
func (x TencentRegionId) Number() protoreflect.EnumNumber
func (TencentRegionId) String ¶
func (x TencentRegionId) String() string
func (TencentRegionId) Type ¶
func (TencentRegionId) Type() protoreflect.EnumType
type UnimplementedTenantServiceServer ¶
type UnimplementedTenantServiceServer struct { }
UnimplementedTenantServiceServer must be embedded to have forward compatible implementations.
type UnsafeTenantServiceServer ¶
type UnsafeTenantServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTenantServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenantServiceServer will result in compilation errors.
Source Files
¶
- tenant.pb.go
- tenant_grpc.pb.go