pbtenant

package
v0.0.0-...-a156103 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CloudProvider_name = map[int32]string{
		0: "ali",
		1: "tencent",
		2: "huawei",
		3: "aws",
	}
	CloudProvider_value = map[string]int32{
		"ali":     0,
		"tencent": 1,
		"huawei":  2,
		"aws":     3,
	}
)

Enum value maps for CloudProvider.

View Source
var (
	CloudProduct_name = map[int32]string{
		0: "product_all",
		1: "product_ecs",
		2: "product_rds",
		3: "product_domain",
		4: "product_oss",
	}
	CloudProduct_value = map[string]int32{
		"product_all":    0,
		"product_ecs":    1,
		"product_rds":    2,
		"product_domain": 3,
		"product_oss":    4,
	}
)

Enum value maps for CloudProduct.

View Source
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",
		23: "ali_me_east_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,
		"ali_me_east_1":      23,
	}
)

Enum value maps for AliRegionId.

View Source
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_guangzhou_open",
		7:  "tc_ap_hongkong",
		8:  "tc_ap_mumbai",
		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",
	}
	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_guangzhou_open": 6,
		"tc_ap_hongkong":       7,
		"tc_ap_mumbai":         8,
		"tc_ap_seoul":          9,
		"tc_ap_shanghai":       10,
		"tc_ap_shanghai_fsi":   11,
		"tc_ap_shenzhen_fsi":   12,
		"tc_ap_singapore":      13,
		"tc_ap_tokyo":          14,
		"tc_eu_frankfurt":      15,
		"tc_eu_moscow":         16,
		"tc_na_ashburn":        17,
		"tc_na_siliconvalley":  18,
		"tc_na_toronto":        19,
	}
)

Enum value maps for TencentRegionId.

View Source
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",
	}
	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,
	}
)

Enum value maps for HuaweiRegionId.

View Source
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.

View Source
var File_idl_pbtenant_tenant_proto protoreflect.FileDescriptor
View Source
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 // 英国(伦敦)-伦敦
	AliRegionId_ali_me_east_1      AliRegionId = 23 // 中东东部1-迪拜
)

func (AliRegionId) Descriptor

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

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) 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

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"`
	// 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) 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
)

func (CloudProduct) Descriptor

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 (CloudProduct) String

func (x CloudProduct) String() string

func (CloudProduct) Type

type CloudProvider

type CloudProvider int32

云提供商

const (
	// 0 - 阿里云
	CloudProvider_ali CloudProvider = 0
	// 1 - 腾讯云
	CloudProvider_tencent CloudProvider = 1
	// 2 - 华为云
	CloudProvider_huawei CloudProvider = 2
	// 3 - 亚马逊云
	CloudProvider_aws CloudProvider = 3
)

func (CloudProvider) Descriptor

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 (CloudProvider) String

func (x CloudProvider) String() string

func (CloudProvider) Type

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
)

func (HuaweiRegionId) Descriptor

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 (HuaweiRegionId) String

func (x HuaweiRegionId) String() string

func (HuaweiRegionId) Type

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.

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_guangzhou_open TencentRegionId = 6  // 广州Open
	TencentRegionId_tc_ap_hongkong       TencentRegionId = 7  // 中国香港
	TencentRegionId_tc_ap_mumbai         TencentRegionId = 8  // 孟买
	TencentRegionId_tc_ap_seoul          TencentRegionId = 9  // 首尔
	TencentRegionId_tc_ap_shanghai       TencentRegionId = 10 // 上海
	TencentRegionId_tc_ap_shanghai_fsi   TencentRegionId = 11 // 上海金融
	TencentRegionId_tc_ap_shenzhen_fsi   TencentRegionId = 12 // 深圳金融
	TencentRegionId_tc_ap_singapore      TencentRegionId = 13 // 新加坡
	TencentRegionId_tc_ap_tokyo          TencentRegionId = 14 // 东京
	TencentRegionId_tc_eu_frankfurt      TencentRegionId = 15 // 法兰克福
	TencentRegionId_tc_eu_moscow         TencentRegionId = 16 // 莫斯科
	TencentRegionId_tc_na_ashburn        TencentRegionId = 17 // 阿什本
	TencentRegionId_tc_na_siliconvalley  TencentRegionId = 18 // 硅谷
	TencentRegionId_tc_na_toronto        TencentRegionId = 19 // 多伦多
)

func (TencentRegionId) Descriptor

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 (TencentRegionId) String

func (x TencentRegionId) String() string

func (TencentRegionId) Type

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL