model

package
v0.0.23-beta Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicInfo

type BasicInfo struct {
	// BCS服务ID
	Id *string `json:"id,omitempty"`
	// BCS服务名
	Name *string `json:"name,omitempty"`
	// BCS服务版本信息
	Version *string `json:"version,omitempty"`
	// BCS服务的类型,分为:联盟链(union),私有链(private)
	ServiceType *string `json:"service_type,omitempty"`
	// BCS服务部署类型,分为一键购买(onestep),普通购买(normal)
	PurchaseType *string `json:"purchase_type,omitempty"`
	// BCS服务安全机制,分为ECDSA(ECDSA),国密算法(sm2)
	SignAlgorithm *string `json:"sign_algorithm,omitempty"`
	// BCS服务的共识策略,分为测试策略(solo),快速拜占庭容错算法(sflic),Kafka(kafka)
	Consensus *string `json:"consensus,omitempty"`
	// BCS服务付费模式,分为按需(1),包周期(0)
	ChargingMode *int32 `json:"charging_mode,omitempty"`
	// BCS服务版本类型,分为基础版(1),专业版(2),铂金版(3)
	VersionType *int32 `json:"version_type,omitempty"`
	// BCS服务数据库类型,包括文件数据库(goleveldb),关系数据库(MySQL),NoSQL(couchdb)
	DatabaseType *string `json:"database_type,omitempty"`
	// BCS服务所在集群ID
	ClusterId *string `json:"cluster_id,omitempty"`
	// BCS服务所在集群名称
	ClusterName *string `json:"cluster_name,omitempty"`
	// BCS服务的集群类型,分为CCE集群(空),IEF集群(ief)
	ClusterType *string `json:"cluster_type,omitempty"`
	// BCS多可用区标示,分为:多可用区(yes),非多可用区(no)
	ClusterAz *string `json:"cluster_az,omitempty"`
	// BCS服务创建时间
	CreatedTime *string `json:"created_time,omitempty"`
	// BCS服务联盟链下生效,分为邀请方(create),被邀请方(invite)
	DeployType *string `json:"deploy_type,omitempty"`
	// BCS服务是否跨region
	IsCrossRegion *bool `json:"is_cross_region,omitempty"`
	// BCS服务升级失败,是否支持回滚
	IsSupportRollback *bool `json:"is_support_rollback,omitempty"`
	// BCS服务是否添加RESTful APIs支持,分为支持(true),不支持(false)
	IsSupportRestful *bool `json:"is_support_restful,omitempty"`
	// 区分BCS是否新服务,分为老服务(true),新服务(false)
	IsOldService *bool `json:"is_old_service,omitempty"`
	// BCS服务为老服务时,此字段为老服务版本号
	OldServiceVersion *string `json:"old_service_version,omitempty"`
	// BCS服务用户数据面agent地址端口列表
	AgentPortalAddrs *[]string `json:"agent_portal_addrs,omitempty"`
	// BCS服务状态,分为正常(Normal),异常(Abnormal),弹性IP异常(EipAbnormal),已冻结(Freeze),休眠中(Hibernation),未知(其余值)
	Status *string `json:"status,omitempty"`
	// BCS服务处理状态,分为创建中(IsCreating),升级中(IsUpgrading),扩缩容中(IsScaling),删除中(IsDeleting),添加中(IsAdding)
	ProcessStatus *string `json:"process_status,omitempty"`
	// BCS服务为包周期模式时,返回值为0(订单未成功),1(订单异常),2(订单正常)
	OrderStatus *int32 `json:"order_status,omitempty"`
}

func (BasicInfo) String

func (o BasicInfo) String() string

type BatchAddPeersToChannelRequest

type BatchAddPeersToChannelRequest struct {
	BlockchainId string                             `json:"blockchain_id"`
	Body         *BatchAddPeersToChannelRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchAddPeersToChannelRequest) String

type BatchAddPeersToChannelRequestBody

type BatchAddPeersToChannelRequestBody struct {
	// 加入某个通道的节点信息
	ChannelPeers *[]BatchAddPeersToChannelRequestBodyChannelPeers `json:"channel_peers,omitempty"`
}

节点加入通道

func (BatchAddPeersToChannelRequestBody) String

type BatchAddPeersToChannelRequestBodyChannelPeers

type BatchAddPeersToChannelRequestBodyChannelPeers struct {
	// peer加入的通道名称
	ChannelName *string `json:"channel_name,omitempty"`
	// 加入通道peer名称和数量,key为组织名称,value为peer数量
	Peers map[string]int32 `json:"peers,omitempty"`
}

func (BatchAddPeersToChannelRequestBodyChannelPeers) String

type BatchAddPeersToChannelResponse

type BatchAddPeersToChannelResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchAddPeersToChannelResponse) String

type BatchCreateChannelsRequest

type BatchCreateChannelsRequest struct {
	BlockchainId string                          `json:"blockchain_id"`
	Body         *BatchCreateChannelsRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchCreateChannelsRequest) String

type BatchCreateChannelsRequestBody

type BatchCreateChannelsRequestBody struct {
	// 通道列表
	Channels *[]ChannelCreateInfo `json:"channels,omitempty"`
}

创建通道的配置

func (BatchCreateChannelsRequestBody) String

type BatchCreateChannelsResponse

type BatchCreateChannelsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchCreateChannelsResponse) String

type BatchInviteMembersToChannelRequest

type BatchInviteMembersToChannelRequest struct {
	Body *BatchInviteMembersToChannelRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchInviteMembersToChannelRequest) String

type BatchInviteMembersToChannelRequestBody

type BatchInviteMembersToChannelRequestBody struct {
	// 邀请实例id
	BcsId *string `json:"bcs_id,omitempty"`
	// 邀请加入的通道名
	ChannelName *string `json:"channel_name,omitempty"`
	// 发出邀请的租户名
	InvitorUsername *string `json:"invitor_username,omitempty"`
	// 被邀请的用户列表
	InvitedUserinfo *[]InvitedDomain `json:"invited_userinfo,omitempty"`
}

邀请联盟成员

func (BatchInviteMembersToChannelRequestBody) String

type BatchInviteMembersToChannelResponse

type BatchInviteMembersToChannelResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchInviteMembersToChannelResponse) String

type BlockchainInfo

type BlockchainInfo struct {
	// 服务实例ID
	Id *string `json:"id,omitempty"`
	// 服务实例名
	Name *string `json:"name,omitempty"`
}

func (BlockchainInfo) String

func (o BlockchainInfo) String() string

type CfgRequestBody

type CfgRequestBody struct {
	// 链代码名称
	ChaincodeName string `json:"chaincode_name"`
	// SDK配置文件存放路径
	CertPath string `json:"cert_path"`
	// 通道名称
	ChannelName string `json:"channel_name"`
	// key:组织名,value:该组织下需要下载的peer节点信息
	PeerOrgs map[string][]string `json:"peer_orgs"`
	// key:联盟成员名称,value:该联盟成员peer组织名称hash值数组
	UnionInfo map[string][]string `json:"union_info,omitempty"`
}

func (CfgRequestBody) String

func (o CfgRequestBody) String() string

type Channel

type Channel struct {
	// 通道名
	Name *string `json:"name,omitempty"`
	// 通道细节描述
	Description *string `json:"description,omitempty"`
	// 通道创建时间
	CreateTime *string `json:"create_time,omitempty"`
	// key:组织名,value:节点名称列表
	Peers map[string][]string `json:"peers,omitempty"`
}

func (Channel) String

func (o Channel) String() string

type ChannelCreateInfo

type ChannelCreateInfo struct {
	// 通道名称
	ChannelName string `json:"channel_name"`
	// 通道描述
	ChannelDescription *string `json:"channel_description,omitempty"`
}

通道信息

func (ChannelCreateInfo) String

func (o ChannelCreateInfo) String() string

type ChannelInfo

type ChannelInfo struct {
	// 通道名
	Name *string `json:"name,omitempty"`
	// 通道中组织名
	OrgNames *[]string `json:"org_names,omitempty"`
	// 通道中组织名的哈希值
	OrgNameHash *[]string `json:"org_name_hash,omitempty"`
	// key:组织名,value:peer节点数组
	Peers map[string][]string `json:"peers,omitempty"`
}

func (ChannelInfo) String

func (o ChannelInfo) String() string

type ChannelInfoV2

type ChannelInfoV2 struct {
	// 通道名
	Name *string `json:"name,omitempty"`
	// 通道中组织名
	OrgNames *[]string `json:"org_names,omitempty"`
	// 通道描述
	Description *string `json:"description,omitempty"`
}

func (ChannelInfoV2) String

func (o ChannelInfoV2) String() string

type ComCce

type ComCce struct {
	Cluster       *Detail `json:"cluster,omitempty"`
	Network       *Detail `json:"network,omitempty"`
	SecurityGroup *Detail `json:"security_group,omitempty"`
}

CCE组件

func (ComCce) String

func (o ComCce) String() string

type CouchDbInfo

type CouchDbInfo struct {
	// couchDB用户名称
	User *string `json:"user,omitempty"`
}

func (CouchDbInfo) String

func (o CouchDbInfo) String() string

type CreateNewBlockchainRequest

type CreateNewBlockchainRequest struct {
	Body *CreateRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateNewBlockchainRequest) String

type CreateNewBlockchainResponse

type CreateNewBlockchainResponse struct {
	// 服务实例ID
	BlockchainId *string `json:"blockchain_id,omitempty"`
	// 服务实例名
	BlockchainName *string `json:"blockchain_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateNewBlockchainResponse) String

type CreateRequestBody

type CreateRequestBody struct {
	// BCS服务名
	Name string `json:"name"`
	// BCS服务版本类型,可选:基础版(1),专业版(4),企业版(2),铂金版(3)
	VersionType *int32 `json:"version_type,omitempty"`
	// Fabric版本,可选:“1.4”,“2.0”
	FabricVersion *string `json:"fabric_version,omitempty"`
	// 区块链类型,可选:联盟链(union),私有链(private)
	BlockchainType *string `json:"blockchain_type,omitempty"`
	// BCS服务的共识策略,可选:(etcdraft)、快速拜占庭容错算法(SFLIC)、测试策略(solo)、Kafka共识(kafka)
	Consensus *string `json:"consensus,omitempty"`
	// BCS服务安全机制,可选:ECDSA(ECDSA),国密算法(sm2)
	SignAlgorithm *string `json:"sign_algorithm,omitempty"`
	// BCS服务所属企业项目ID
	EnterpriseProjectId string `json:"enterprise_project_id"`
	// CCE集群存储卷类型,可选:云硬盘存储卷(evs),文件存储卷(nfs), 极速文件存储卷(efs)
	VolumeType *string `json:"volume_type,omitempty"`
	// 云硬盘存储卷类型,可选:普通I/O(SATA),高I/O(SAS),超高I/O(SSD)
	EvsDiskType *string `json:"evs_disk_type,omitempty"`
	// 节点组织存储容量(GB),基础版至少40GB,专业版和企业版至少100GB,铂金版至少500GB
	OrgDiskSize *int32 `json:"org_disk_size,omitempty"`
	// BCS服务数据库类型,包括文件数据库(goleveldb),NoSQL(couchdb)
	DatabaseType *string `json:"database_type,omitempty"`
	// BCS服务资源、区块链管理密码
	ResourcePassword string `json:"resource_password"`
	// 共识组织节点数
	OrdererNodeNumber *int32 `json:"orderer_node_number,omitempty"`
	// 是否使用集群节点弹性IP
	UseEip *bool `json:"use_eip,omitempty"`
	// 弹性IP带宽
	BandwidthSize *int32 `json:"bandwidth_size,omitempty"`
	// 是否添加可信计算平台
	Tc3Need *bool `json:"tc3_need,omitempty"`
	// 是否添加restful API支持
	RestfulApiSupport *bool `json:"restful_api_support,omitempty"`
	// 集群类型,可选:CCE集群(cce),边缘集群(ief)
	ClusterType *string `json:"cluster_type,omitempty"`
	// 是否创建新集群
	CreateNewCluster bool                             `json:"create_new_cluster"`
	CceClusterInfo   *CreateRequestBodyCceClusterInfo `json:"cce_cluster_info"`
	CceCreateInfo    *CreateRequestBodyCceCreateInfo  `json:"cce_create_info"`
	// IEF集群部署方式,随机部署(0),组织节点绑定(1)
	IefDeployMode *int32 `json:"ief_deploy_mode,omitempty"`
	// IEF集群节点列表
	IefNodesInfo *[]IefNode `json:"ief_nodes_info,omitempty"`
	// 节点组织列表
	PeerOrgs *[]OrgPeer `json:"peer_orgs,omitempty"`
	// 通道列表
	Channels        *[]ChannelInfoV2                  `json:"channels,omitempty"`
	CouchdbInfo     *CreateRequestBodyCouchdbInfo     `json:"couchdb_info,omitempty"`
	TurboInfo       *CreateRequestBodyTurboInfo       `json:"turbo_info,omitempty"`
	BlockInfo       *CreateRequestBodyBlockInfo       `json:"block_info,omitempty"`
	KafkaCreateInfo *CreateRequestBodyKafkaCreateInfo `json:"kafka_create_info,omitempty"`
}

func (CreateRequestBody) String

func (o CreateRequestBody) String() string

type CreateRequestBodyBlockInfo

type CreateRequestBodyBlockInfo struct {
	// 区块产生时间(单位:秒),默认2秒
	BatchTimeout *int32 `json:"batch_timeout,omitempty"`
	// 区块包含交易数量,默认500
	MaxMessageCount *int32 `json:"max_message_count,omitempty"`
	// 区块容量(单位:MB),默认2MB
	PreferredMaxbytes *int32 `json:"preferred_maxbytes,omitempty"`
}

区块生成配置信息

func (CreateRequestBodyBlockInfo) String

type CreateRequestBodyCceClusterInfo

type CreateRequestBodyCceClusterInfo struct {
	// 集群ID
	ClusterId *string `json:"cluster_id,omitempty"`
	// 集群名称
	ClusterName *string `json:"cluster_name,omitempty"`
	// 集群架构类型:X86(VirtualMachine),ARM(ARM64)
	ClusterPlatformType *string `json:"cluster_platform_type,omitempty"`
}

使用已有CCE集群信息

func (CreateRequestBodyCceClusterInfo) String

type CreateRequestBodyCceCreateInfo

type CreateRequestBodyCceCreateInfo struct {
	// 集群节点数
	NodeNum *int32 `json:"node_num,omitempty"`
	// 集群节点规格
	NodeFlavor *string `json:"node_flavor,omitempty"`
	// CCE集群规格
	CceFlavor *string `json:"cce_flavor,omitempty"`
	// 节点初始密码
	InitNodePwd *string `json:"init_node_pwd,omitempty"`
	// 可用区
	Az *string `json:"az,omitempty"`
}

创建新集群信息

func (CreateRequestBodyCceCreateInfo) String

type CreateRequestBodyCouchdbInfo

type CreateRequestBodyCouchdbInfo struct {
	// couchDB用户名
	UserName *string `json:"user_name,omitempty"`
	// couchDB密码
	Password *string `json:"password,omitempty"`
}

couchDB信息

func (CreateRequestBodyCouchdbInfo) String

type CreateRequestBodyKafkaCreateInfo

type CreateRequestBodyKafkaCreateInfo struct {
	// kafka实例规格,可选:mini:基准带宽100MB/s,small:基准带宽300MB/s,middle:基准带宽600MB/s,high:基准带宽1200MB/s
	Spec *string `json:"spec,omitempty"`
	// 存储空间(单位:GB),至多9000,mini版至少300,small至少1200,middle至少2400,high至少4800
	Storage *int32 `json:"storage,omitempty"`
	// kafka实例可用区
	Az *string `json:"az,omitempty"`
}

kafka实例创建信息

func (CreateRequestBodyKafkaCreateInfo) String

type CreateRequestBodyTurboInfo

type CreateRequestBodyTurboInfo struct {
	// 共享方式
	ShareType *string `json:"share_type,omitempty"`
	// 类型
	Type *string `json:"type,omitempty"`
	// 可用区
	AvailableZone *string `json:"available_zone,omitempty"`
	// 规格
	ResourceSpecCode *string `json:"resource_spec_code,omitempty"`
}

极速文件存储卷信息

func (CreateRequestBodyTurboInfo) String

type DeleteBlockchainRequest

type DeleteBlockchainRequest struct {
	BlockchainId    string `json:"blockchain_id"`
	IsDeleteStorage bool   `json:"is_delete_storage"`
	IsDeleteObs     *bool  `json:"is_delete_obs,omitempty"`
}

Request Object

func (DeleteBlockchainRequest) String

func (o DeleteBlockchainRequest) String() string

type DeleteBlockchainResponse

type DeleteBlockchainResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteBlockchainResponse) String

func (o DeleteBlockchainResponse) String() string

type Detail

type Detail struct {
	// 开始时间
	StartTime *string `json:"start_time,omitempty"`
	// 结束时间
	EndTime *string `json:"end_time,omitempty"`
	// 状态
	Status *DetailStatus `json:"status,omitempty"`
	// 细节描述
	Detail *string `json:"detail,omitempty"`
}

组件创建信息

func (Detail) String

func (o Detail) String() string

type DetailStatus

type DetailStatus struct {
	// contains filtered or unexported fields
}

func (DetailStatus) MarshalJSON

func (c DetailStatus) MarshalJSON() ([]byte, error)

func (*DetailStatus) UnmarshalJSON

func (c *DetailStatus) UnmarshalJSON(b []byte) error

type DetailStatusEnum

type DetailStatusEnum struct {
	WAITING   DetailStatus
	DEPLOYING DetailStatus
	FINISHED  DetailStatus
	FAILED    DetailStatus
}

func GetDetailStatusEnum

func GetDetailStatusEnum() DetailStatusEnum

type Dimension

type Dimension struct {
	// 维度名称。
	Name *string `json:"name,omitempty"`
	// 维度取值。
	Value *string `json:"value,omitempty"`
}

指标维度。

func (Dimension) String

func (o Dimension) String() string

type DmsKafkaInfo

type DmsKafkaInfo struct {
	// Kafka连接地址
	Addr *[]string `json:"addr,omitempty"`
	// Kafka模式下,是否开启共识节点老化
	OrderFadeEnable *bool `json:"order_fade_enable,omitempty"`
	// Kafka模式下,开启共识节点后的老化阈值
	OrderFadeCache *int32 `json:"order_fade_cache,omitempty"`
}

func (DmsKafkaInfo) String

func (o DmsKafkaInfo) String() string

type DownloadBlockchainCertRequest

type DownloadBlockchainCertRequest struct {
	BlockchainId string                                `json:"blockchain_id"`
	OrgName      string                                `json:"org_name"`
	CertType     DownloadBlockchainCertRequestCertType `json:"cert_type"`
}

Request Object

func (DownloadBlockchainCertRequest) String

type DownloadBlockchainCertRequestCertType

type DownloadBlockchainCertRequestCertType struct {
	// contains filtered or unexported fields
}

func (DownloadBlockchainCertRequestCertType) MarshalJSON

func (c DownloadBlockchainCertRequestCertType) MarshalJSON() ([]byte, error)

func (*DownloadBlockchainCertRequestCertType) UnmarshalJSON

func (c *DownloadBlockchainCertRequestCertType) UnmarshalJSON(b []byte) error

type DownloadBlockchainCertResponse

type DownloadBlockchainCertResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DownloadBlockchainCertResponse) String

type DownloadBlockchainSdkConfigRequest

type DownloadBlockchainSdkConfigRequest struct {
	BlockchainId string          `json:"blockchain_id"`
	Body         *CfgRequestBody `json:"body,omitempty"`
}

Request Object

func (DownloadBlockchainSdkConfigRequest) String

type DownloadBlockchainSdkConfigResponse

type DownloadBlockchainSdkConfigResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DownloadBlockchainSdkConfigResponse) String

type EntityMetricList

type EntityMetricList struct {
	// 指标对象列表。
	Dimensions *[]Dimension `json:"dimensions,omitempty"`
	// 监控数据列表项目。
	Values *interface{} `json:"values,omitempty"`
}

BCS组织维度监控数据列表结构

func (EntityMetricList) String

func (o EntityMetricList) String() string

type HandleNotificationInvitee

type HandleNotificationInvitee struct {
	// 被邀请方服务实例id
	InviteeBcsId string `json:"invitee_bcs_id"`
	// 被邀请方project id
	InviteeProjectId *string `json:"invitee_project_id,omitempty"`
	// 被邀请方租户id
	InviteeUserId *string `json:"invitee_user_id,omitempty"`
}

func (HandleNotificationInvitee) String

func (o HandleNotificationInvitee) String() string

type HandleNotificationInvitor

type HandleNotificationInvitor struct {
	// 邀请方实例id
	InvitorBcsId *string `json:"invitor_bcs_id,omitempty"`
	// 邀请方project id
	InvitorProjectId *string `json:"invitor_project_id,omitempty"`
	// 邀请方租户名
	InvitorUsername *string `json:"invitor_username,omitempty"`
}

func (HandleNotificationInvitor) String

func (o HandleNotificationInvitor) String() string

type HandleNotificationOrg

type HandleNotificationOrg struct {
	// 加入的组织
	Name *string `json:"name,omitempty"`
}

func (HandleNotificationOrg) String

func (o HandleNotificationOrg) String() string

type HandleNotificationRequest

type HandleNotificationRequest struct {
	Body *HandleNotificationRequestBody `json:"body,omitempty"`
}

Request Object

func (HandleNotificationRequest) String

func (o HandleNotificationRequest) String() string

type HandleNotificationRequestBody

type HandleNotificationRequestBody struct {
	// 邀请目标通道
	ChannelName *string `json:"channel_name,omitempty"`
	// 处理邀请
	Status      *HandleNotificationRequestBodyStatus `json:"status,omitempty"`
	InvitorInfo *HandleNotificationInvitor           `json:"invitor_info,omitempty"`
	InviteeInfo *HandleNotificationInvitee           `json:"invitee_info,omitempty"`
	// 加入联盟的组织
	InvitedOrgs *[]HandleNotificationOrg `json:"invited_orgs,omitempty"`
}

处理联盟邀请body数据

func (HandleNotificationRequestBody) String

type HandleNotificationRequestBodyStatus

type HandleNotificationRequestBodyStatus struct {
	// contains filtered or unexported fields
}

func (HandleNotificationRequestBodyStatus) MarshalJSON

func (c HandleNotificationRequestBodyStatus) MarshalJSON() ([]byte, error)

func (*HandleNotificationRequestBodyStatus) UnmarshalJSON

func (c *HandleNotificationRequestBodyStatus) UnmarshalJSON(b []byte) error

type HandleNotificationRequestBodyStatusEnum

type HandleNotificationRequestBodyStatusEnum struct {
	AGREED HandleNotificationRequestBodyStatus
	REJECT HandleNotificationRequestBodyStatus
}

func GetHandleNotificationRequestBodyStatusEnum

func GetHandleNotificationRequestBodyStatusEnum() HandleNotificationRequestBodyStatusEnum

type HandleNotificationResponse

type HandleNotificationResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (HandleNotificationResponse) String

type IefInfo

type IefInfo struct {
	// BCS服务边缘节点部署模式,分为:随机模式(0),绑定模式(1)
	DeployMode *int32 `json:"deploy_mode,omitempty"`
}

func (IefInfo) String

func (o IefInfo) String() string

type IefNode

type IefNode struct {
	// 节点ID
	Id *string `json:"id,omitempty"`
	// 节点状态
	Status *string `json:"status,omitempty"`
	// 节点公有IP
	PublicIpAddress *string `json:"public_ip_address,omitempty"`
}

func (IefNode) String

func (o IefNode) String() string

type InvitedDomain

type InvitedDomain struct {
	// 被邀请方租户名
	InvitedUsername *string `json:"invited_username,omitempty"`
}

被邀请列表

func (InvitedDomain) String

func (o InvitedDomain) String() string

type InviteeInfo

type InviteeInfo struct {
	// 被邀请用户id
	InviteeId *string `json:"invitee_id,omitempty"`
	// 被邀请租户名称
	InviteeName *int32 `json:"invitee_name,omitempty"`
	// 被邀请的服务名称
	InviteeBcsName *string `json:"invitee_bcs_name,omitempty"`
	// 被邀请的服务id
	InviteeBcsId *string `json:"invitee_bcs_id,omitempty"`
	// 被邀请的项目id
	InviteeProjectId *string `json:"invitee_project_id,omitempty"`
}

被邀请方的信息

func (InviteeInfo) String

func (o InviteeInfo) String() string

type InvitorInfo

type InvitorInfo struct {
	// 邀请方用户id
	InvitorId *string `json:"invitor_id,omitempty"`
	// 邀请方用户名
	InvitorName *string `json:"invitor_name,omitempty"`
	// 邀请方的服务id
	InvitorBcsId *string `json:"invitor_bcs_id,omitempty"`
	// 邀请方的服务名
	InvitorBcsName *string `json:"invitor_bcs_name,omitempty"`
	// 邀请方的共识
	InvitorConsensus *string `json:"invitor_consensus,omitempty"`
	// 邀请方的集群类型
	InvitorClusterType *string `json:"invitor_cluster_type,omitempty"`
	// 邀请方数据库类型
	InvitorDatabaseType *string `json:"invitor_database_type,omitempty"`
	// 邀请方的签名算法
	InvitorSignatureAlgorithm *string `json:"invitor_signature_algorithm,omitempty"`
	// 邀请方的fabric版本
	InvitorFabricVersion *string `json:"invitor_fabric_version,omitempty"`
	// 是否允许order老化
	OrderFadeEnabled *bool `json:"order_fade_enabled,omitempty"`
	// order老化阈值
	OrderFadeCache *int32 `json:"order_fade_cache,omitempty"`
}

邀请者的信息

func (InvitorInfo) String

func (o InvitorInfo) String() string

type ListBcsMetricRequest

type ListBcsMetricRequest struct {
	BlockchainId string                    `json:"blockchain_id"`
	Body         *ListBcsMetricRequestBody `json:"body,omitempty"`
}

Request Object

func (ListBcsMetricRequest) String

func (o ListBcsMetricRequest) String() string

type ListBcsMetricRequestBody

type ListBcsMetricRequestBody struct {
	// 指标列表 取值范围 cpuUsage:CPU使用率 diskUsedRate:磁盘使用率 memUsedRate:物理内存使用率 sendBytesRate:上行Bps recvBytesRate:下行Bps cpuCoreLimit:CPU内核总量 cpuCoreUsed:CPU内核占用 totalMem:物理内存总量 freeMem:可用物理内存 diskCapacity:磁盘空间容量 diskAvailableCapacity:可用磁盘空间 默认值:前5项
	MetricNames *[]string `json:"metric_names,omitempty"`
}

BCS服务监控数据查询请求结构

func (ListBcsMetricRequestBody) String

func (o ListBcsMetricRequestBody) String() string

type ListBcsMetricResponse

type ListBcsMetricResponse struct {
	// 指标对象列表。
	Metrics        *[]MetricItemResultApi `json:"metrics,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListBcsMetricResponse) String

func (o ListBcsMetricResponse) String() string

type ListBlockchainChannelsRequest

type ListBlockchainChannelsRequest struct {
	BlockchainId string `json:"blockchain_id"`
}

Request Object

func (ListBlockchainChannelsRequest) String

type ListBlockchainChannelsResponse

type ListBlockchainChannelsResponse struct {
	// 通道信息列表
	Channels       *[]Channel `json:"channels,omitempty"`
	HttpStatusCode int        `json:"-"`
}

Response Object

func (ListBlockchainChannelsResponse) String

type ListBlockchainsRequest

type ListBlockchainsRequest struct {
}

Request Object

func (ListBlockchainsRequest) String

func (o ListBlockchainsRequest) String() string

type ListBlockchainsResponse

type ListBlockchainsResponse struct {
	// 服务实例简要信息
	Blockchains    *[]BlockchainInfo `json:"blockchains,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ListBlockchainsResponse) String

func (o ListBlockchainsResponse) String() string

type ListEntityMetricRequest

type ListEntityMetricRequest struct {
	BlockchainId string                       `json:"blockchain_id"`
	Body         *ListEntityMetricRequestBody `json:"body,omitempty"`
}

Request Object

func (ListEntityMetricRequest) String

func (o ListEntityMetricRequest) String() string

type ListEntityMetricRequestBody

type ListEntityMetricRequestBody struct {
	// 实体类型,可选值如下 org     # 节点组织 plugin  # 插件 默认为org
	Type string `json:"type"`
	// 具体实体的名称
	EntityName *string `json:"entity_name,omitempty"`
}

BCS组织监控数据列表查询请求结构

func (ListEntityMetricRequestBody) String

type ListEntityMetricResponse

type ListEntityMetricResponse struct {
	// 指标对象列表。
	Metrics        *[]EntityMetricList `json:"metrics,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ListEntityMetricResponse) String

func (o ListEntityMetricResponse) String() string

type ListInstanceMetricRequest

type ListInstanceMetricRequest struct {
	BlockchainId string                         `json:"blockchain_id"`
	Body         *ListInstanceMetricRequestBody `json:"body,omitempty"`
}

Request Object

func (ListInstanceMetricRequest) String

func (o ListInstanceMetricRequest) String() string

type ListInstanceMetricRequestBody

type ListInstanceMetricRequestBody struct {
	// 实体类型,可选值如下 org     # 节点组织 plugin  # 插件 默认为org
	Type string `json:"type"`
	// 所属实体的名称
	EntityName *string `json:"entity_name,omitempty"`
	// 具体实例的名称
	InstanceName *string `json:"instance_name,omitempty"`
}

BCS组织实例监控数据详情查询请求结构

func (ListInstanceMetricRequestBody) String

type ListInstanceMetricResponse

type ListInstanceMetricResponse struct {
	// 指标对象列表。
	Metrics        *[]MetricItemResultApi `json:"metrics,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListInstanceMetricResponse) String

type ListMembersRequest

type ListMembersRequest struct {
}

Request Object

func (ListMembersRequest) String

func (o ListMembersRequest) String() string

type ListMembersResponse

type ListMembersResponse struct {
	// 联盟成员列表
	Members        *[]Member `json:"members,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListMembersResponse) String

func (o ListMembersResponse) String() string

type ListNotificationsRequest

type ListNotificationsRequest struct {
}

Request Object

func (ListNotificationsRequest) String

func (o ListNotificationsRequest) String() string

type ListNotificationsResponse

type ListNotificationsResponse struct {
	// 通知列表
	Notifications  *[]NotificationList `json:"notifications,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ListNotificationsResponse) String

func (o ListNotificationsResponse) String() string

type ListQuotasRequest

type ListQuotasRequest struct {
}

Request Object

func (ListQuotasRequest) String

func (o ListQuotasRequest) String() string

type ListQuotasResponse

type ListQuotasResponse struct {
	// 配额信息
	Resources      *[]Resource `json:"resources,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListQuotasResponse) String

func (o ListQuotasResponse) String() string

type Member

type Member struct {
	// 是否支持可信
	TcsNeed *bool `json:"tcs_need,omitempty"`
	// 通道名称
	ChannelName *string `json:"channel_name,omitempty"`
	// 被邀请的组织
	InvitedOrgs *[]OrganizationV2 `json:"invited_orgs,omitempty"`
	InvitorInfo *MemberInvitor    `json:"invitor_info,omitempty"`
	InviteeInfo *MemberInvitee    `json:"invitee_info,omitempty"`
}

联盟成员

func (Member) String

func (o Member) String() string

type MemberInvitee

type MemberInvitee struct {
	// 被邀请方实例id
	InviteeBcsId *string `json:"invitee_bcs_id,omitempty"`
	// 被邀请方租户id
	InviteeUserId *string `json:"invitee_user_id,omitempty"`
	// 被邀请方租户名
	InviteeUsername *string `json:"invitee_username,omitempty"`
}

联盟成员中的被邀请方

func (MemberInvitee) String

func (o MemberInvitee) String() string

type MemberInvitor

type MemberInvitor struct {
	// 邀请方实例id
	InvitorBcsId *string `json:"invitor_bcs_id,omitempty"`
	// 邀请方实例名称
	InvitorBcsName *string `json:"invitor_bcs_name,omitempty"`
	// 邀请方project id
	InvitorProjectId *string `json:"invitor_project_id,omitempty"`
	// 邀请方租户id
	InvitorUserId *string `json:"invitor_user_id,omitempty"`
	// 邀请方租户名
	InvitorUsername *string `json:"invitor_username,omitempty"`
}

联盟成员中的邀请方

func (MemberInvitor) String

func (o MemberInvitor) String() string

type MetricDataPoints

type MetricDataPoints struct {
	// 时间戳。
	Timestamp *int64 `json:"timestamp,omitempty"`
	// 指标单位。
	Unit *string `json:"unit,omitempty"`
	// 统计方式。
	Statistics *[]StatisticValue `json:"statistics,omitempty"`
}

查询结果要点

func (MetricDataPoints) String

func (o MetricDataPoints) String() string

type MetricDemision

type MetricDemision struct {
	// 命名空间
	Namespace *string `json:"namespace,omitempty"`
	// 指标名称
	MetricName *string `json:"metricName,omitempty"`
	// 维度列表
	Dimensions *[]Dimension `json:"dimensions,omitempty"`
}

指标描述信息

func (MetricDemision) String

func (o MetricDemision) String() string

type MetricItemResultApi

type MetricItemResultApi struct {
	Metric *MetricDemision `json:"metric,omitempty"`
	// 监控数据信息
	DataPoints *[]MetricDataPoints `json:"dataPoints,omitempty"`
}

监控数据信息

func (MetricItemResultApi) String

func (o MetricItemResultApi) String() string

type Node

type Node struct {
	// 节点EIP信息
	IpPort *string `json:"ip_port,omitempty"`
	// 节点所在通道数组
	Channels *[]string `json:"channels,omitempty"`
}

func (Node) String

func (o Node) String() string

type NodeOrgs added in v0.0.65

type NodeOrgs struct {
	// 组织名称
	Name *string `json:"name,omitempty"`
	// 组织目标节点数
	NodeCount *int32 `json:"node_count,omitempty"`
	// pvc名称
	PvcName *string `json:"pvc_name,omitempty"`
}

节点组织

func (NodeOrgs) String added in v0.0.65

func (o NodeOrgs) String() string

type NotificationList

type NotificationList struct {
	// 通道名称
	ChannelName *string `json:"channel_name,omitempty"`
	// 当前状态
	Status *string `json:"status,omitempty"`
	// 更新时间
	UpdatedTime *string `json:"updated_time,omitempty"`
	// 是否开启可信
	Tc3Need     *bool        `json:"tc3_need,omitempty"`
	InvitorInfo *InvitorInfo `json:"invitor_info,omitempty"`
	InviteeInfo *InviteeInfo `json:"invitee_info,omitempty"`
	// 是否删除
	Hide *int32 `json:"hide,omitempty"`
	// 被邀请的组织信息
	InviteeOrgs *[]OrganizationV2 `json:"invitee_orgs,omitempty"`
	// 阅读状态值
	ReadStatus *int32 `json:"read_status,omitempty"`
	// 跨版本进行升级
	CrossVersionUpgrade *string `json:"cross_version_upgrade,omitempty"`
}

func (NotificationList) String

func (o NotificationList) String() string

type ObsInfo

type ObsInfo struct {
	// OBS桶名称
	Name *string `json:"name,omitempty"`
	// OBS桶地址
	Addr *string `json:"addr,omitempty"`
}

OBS桶信息

func (ObsInfo) String

func (o ObsInfo) String() string

type Org

type Org struct {
	// 组织MSP标识
	MspId *string `json:"msp_id,omitempty"`
	// 组织域名
	Domain *string `json:"domain,omitempty"`
	// key:节点名称,value:节点详细信息
	Peers map[string]Node `json:"peers,omitempty"`
}

func (Org) String

func (o Org) String() string

type OrgPeer

type OrgPeer struct {
	// 组织名称
	Name *string `json:"name,omitempty"`
	// 组织节点数
	NodeCount *int32 `json:"node_count,omitempty"`
}

func (OrgPeer) String

func (o OrgPeer) String() string

type OrganizationV2

type OrganizationV2 struct {
	// 组织名称
	Name *string `json:"name,omitempty"`
	// 组织hash
	NameHash *string `json:"name_hash,omitempty"`
	// 组织节点
	NodeCount *string `json:"node_count,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
	// 状态描述
	StatusDetail *string `json:"status_detail,omitempty"`
}

组织信息

func (OrganizationV2) String

func (o OrganizationV2) String() string

type PeerAddress

type PeerAddress struct {
	// 域名地址
	DomainPort *string `json:"domain_port,omitempty"`
	// IP地址
	IpPort *string `json:"ip_port,omitempty"`
}

func (PeerAddress) String

func (o PeerAddress) String() string

type PeerInfo

type PeerInfo struct {
	// 组织名称
	Name *string `json:"name,omitempty"`
	// 节点数量
	NodeCnt *int32 `json:"node_cnt,omitempty"`
	// 节点状态,分为创建中(IsCreating),升级中(IsUpgrading),扩缩容中(Adding/IsScaling),删除中(Isdeleting),正常(Normal),异常(AbNormal),未知(其余值)
	Status *string `json:"status,omitempty"`
	// 节点状态,形式如:1/1,分母是该组织下节点总数,分子是正常节点个数
	StatusDetail *string `json:"status_detail,omitempty"`
	// 节点对应pvc名称
	PvcName *string `json:"pvc_name,omitempty"`
	// Peer节点域名/IP地址
	Address *[]PeerAddress `json:"address,omitempty"`
}

func (PeerInfo) String

func (o PeerInfo) String() string

type Resource

type Resource struct {
	// 资源类型
	Type *string `json:"type,omitempty"`
	// 单位
	Unit *string `json:"unit,omitempty"`
	// 最小值
	Min *int32 `json:"min,omitempty"`
	// 最大值
	Max *int32 `json:"max,omitempty"`
	// 配额
	Quota *int32 `json:"quota,omitempty"`
	// 已使用配额
	Used *int32 `json:"used,omitempty"`
	// 剩余配额
	Free *int32 `json:"free,omitempty"`
}

func (Resource) String

func (o Resource) String() string

type SfsInfo

type SfsInfo struct {
	// BCS服务下的SFS文件系统名称
	PvcName *string `json:"pvc_name,omitempty"`
	// BCS服务网络存储名称
	Name *string `json:"name,omitempty"`
	// BCS服务网络存储地址
	Addr *string `json:"addr,omitempty"`
	// BCS服务网络存储类型
	Type *string `json:"type,omitempty"`
}

func (SfsInfo) String

func (o SfsInfo) String() string

type ShowBlockchainDetailRequest

type ShowBlockchainDetailRequest struct {
	BlockchainId string `json:"blockchain_id"`
}

Request Object

func (ShowBlockchainDetailRequest) String

type ShowBlockchainDetailResponse

type ShowBlockchainDetailResponse struct {
	BasicInfo *BasicInfo `json:"basic_info,omitempty"`
	// 通道信息
	Channels *[]ChannelInfo `json:"channels,omitempty"`
	// peer组织信息
	PeerInfo *[]PeerInfo `json:"peer_info,omitempty"`
	// light_peer组织信息
	LightPeerInfo *[]PeerInfo   `json:"light_peer_info,omitempty"`
	OrdererInfo   *PeerInfo     `json:"orderer_info,omitempty"`
	CouchDbInfo   *CouchDbInfo  `json:"couch_db_info,omitempty"`
	DmsKafkaInfo  *DmsKafkaInfo `json:"dms_kafka_info,omitempty"`
	IefInfo       *IefInfo      `json:"ief_info,omitempty"`
	SfsInfo       *SfsInfo      `json:"sfs_info,omitempty"`
	AgentInfo     *PeerInfo     `json:"agent_info,omitempty"`
	RestapiInfo   *PeerInfo     `json:"restapi_info,omitempty"`
	// 云硬盘存储卷信息
	EvsPvcInfo        map[string]map[string]string `json:"evs_pvc_info,omitempty"`
	Tc3TaskserverInfo *PeerInfo                    `json:"tc3_taskserver_info,omitempty"`
	ObsBucketInfo     *ObsInfo                     `json:"obs_bucket_info,omitempty"`
	HttpStatusCode    int                          `json:"-"`
}

Response Object

func (ShowBlockchainDetailResponse) String

type ShowBlockchainNodesRequest

type ShowBlockchainNodesRequest struct {
	BlockchainId string `json:"blockchain_id"`
}

Request Object

func (ShowBlockchainNodesRequest) String

type ShowBlockchainNodesResponse

type ShowBlockchainNodesResponse struct {
	// key:组织名,value:组织详细信息
	NodeOrgs       map[string]Org `json:"node_orgs,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowBlockchainNodesResponse) String

type ShowBlockchainStatusRequest

type ShowBlockchainStatusRequest struct {
	BlockchainId string `json:"blockchain_id"`
}

Request Object

func (ShowBlockchainStatusRequest) String

type ShowBlockchainStatusResponse

type ShowBlockchainStatusResponse struct {
	Bcs            *Detail `json:"bcs,omitempty"`
	Eip            *Detail `json:"eip,omitempty"`
	Sfs            *Detail `json:"sfs,omitempty"`
	Obs            *Detail `json:"obs,omitempty"`
	Kafka          *Detail `json:"kafka,omitempty"`
	Cce            *ComCce `json:"cce,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowBlockchainStatusResponse) String

type StatisticValue

type StatisticValue struct {
	// 统计方式。
	Statistic *string `json:"statistic,omitempty"`
	// 统计结果。
	Value *float64 `json:"value,omitempty"`
}

统计结果

func (StatisticValue) String

func (o StatisticValue) String() string

type UpdateInstanceRequest

type UpdateInstanceRequest struct {
	BlockchainId string                     `json:"blockchain_id"`
	Body         *UpdateInstanceRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateInstanceRequest) String

func (o UpdateInstanceRequest) String() string

type UpdateInstanceRequestBody added in v0.0.65

type UpdateInstanceRequestBody struct {
	// 添加节点的组织列表
	NodeOrgs *[]NodeOrgs `json:"node_orgs,omitempty"`
}

添加节点和添加组织,添加组织是需要提供pvc_name

func (UpdateInstanceRequestBody) String added in v0.0.65

func (o UpdateInstanceRequestBody) String() string

type UpdateInstanceResponse

type UpdateInstanceResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateInstanceResponse) String

func (o UpdateInstanceResponse) String() string

Source Files

Jump to

Keyboard shortcuts

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