v2

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BcsClientBuilder

func BcsClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForBatchAddPeersToChannel

func GenReqDefForBatchAddPeersToChannel() *def.HttpRequestDef

func GenReqDefForBatchCreateChannels

func GenReqDefForBatchCreateChannels() *def.HttpRequestDef

func GenReqDefForBatchInviteMembersToChannel

func GenReqDefForBatchInviteMembersToChannel() *def.HttpRequestDef

func GenReqDefForBatchRemoveOrgsFromChannel added in v0.0.65

func GenReqDefForBatchRemoveOrgsFromChannel() *def.HttpRequestDef

func GenReqDefForCreateBlockchainCertByUserName added in v0.0.69

func GenReqDefForCreateBlockchainCertByUserName() *def.HttpRequestDef

func GenReqDefForCreateNewBlockchain

func GenReqDefForCreateNewBlockchain() *def.HttpRequestDef

func GenReqDefForDeleteBlockchain

func GenReqDefForDeleteBlockchain() *def.HttpRequestDef

func GenReqDefForDeleteMemberInvite added in v0.0.69

func GenReqDefForDeleteMemberInvite() *def.HttpRequestDef

func GenReqDefForDownloadBlockchainCert

func GenReqDefForDownloadBlockchainCert() *def.HttpRequestDef

func GenReqDefForDownloadBlockchainSdkConfig

func GenReqDefForDownloadBlockchainSdkConfig() *def.HttpRequestDef

func GenReqDefForFreezeCert added in v0.0.69

func GenReqDefForFreezeCert() *def.HttpRequestDef

func GenReqDefForHandleNotification

func GenReqDefForHandleNotification() *def.HttpRequestDef

func GenReqDefForListBcsMetric

func GenReqDefForListBcsMetric() *def.HttpRequestDef

func GenReqDefForListBlockchainChannels

func GenReqDefForListBlockchainChannels() *def.HttpRequestDef

func GenReqDefForListBlockchains

func GenReqDefForListBlockchains() *def.HttpRequestDef

func GenReqDefForListEntityMetric

func GenReqDefForListEntityMetric() *def.HttpRequestDef

func GenReqDefForListInstanceMetric

func GenReqDefForListInstanceMetric() *def.HttpRequestDef

func GenReqDefForListMembers

func GenReqDefForListMembers() *def.HttpRequestDef

func GenReqDefForListNotifications

func GenReqDefForListNotifications() *def.HttpRequestDef

func GenReqDefForListOpRecord

func GenReqDefForListOpRecord() *def.HttpRequestDef

func GenReqDefForListQuotas

func GenReqDefForListQuotas() *def.HttpRequestDef

func GenReqDefForShowBlockchainDetail

func GenReqDefForShowBlockchainDetail() *def.HttpRequestDef

func GenReqDefForShowBlockchainFlavors added in v0.0.67

func GenReqDefForShowBlockchainFlavors() *def.HttpRequestDef

func GenReqDefForShowBlockchainNodes

func GenReqDefForShowBlockchainNodes() *def.HttpRequestDef

func GenReqDefForShowBlockchainStatus

func GenReqDefForShowBlockchainStatus() *def.HttpRequestDef

func GenReqDefForUnfreezeCert added in v0.0.69

func GenReqDefForUnfreezeCert() *def.HttpRequestDef

func GenReqDefForUpdateInstance

func GenReqDefForUpdateInstance() *def.HttpRequestDef

Types

type BcsClient

type BcsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewBcsClient

func NewBcsClient(hcClient *http_client.HcHttpClient) *BcsClient

func (*BcsClient) BatchAddPeersToChannel

peer节点加入通道,目前仅支持往一个通道中加入peer

func (*BcsClient) BatchCreateChannels

创建通道

func (*BcsClient) BatchInviteMembersToChannel

批量邀请联盟成员加入通道,此操作会向被邀请方发出邀请通知

func (*BcsClient) BatchRemoveOrgsFromChannel added in v0.0.65

该接口用于BCS组织退出某通道。

func (*BcsClient) CreateBlockchainCertByUserName added in v0.0.69

通过用户名生成指定服务实例组织用户证书

func (*BcsClient) CreateNewBlockchain

创建BCS服务实例,只支持按需创建

func (*BcsClient) DeleteBlockchain

func (c *BcsClient) DeleteBlockchain(request *model.DeleteBlockchainRequest) (*model.DeleteBlockchainResponse, error)

删除bcs实例。包周期实例不支持

func (*BcsClient) DeleteMemberInvite added in v0.0.69

func (c *BcsClient) DeleteMemberInvite(request *model.DeleteMemberInviteRequest) (*model.DeleteMemberInviteResponse, error)

可通过此接口批量取消邀请或删除对已退出或拒绝加入或解散的成员邀请信息

func (*BcsClient) DownloadBlockchainCert

下载指定服务实例相关证书

func (*BcsClient) DownloadBlockchainSdkConfig

下载指定服务实例SDK配置文件

func (*BcsClient) FreezeCert added in v0.0.69

func (c *BcsClient) FreezeCert(request *model.FreezeCertRequest) (*model.FreezeCertResponse, error)

冻结指定服务实例组织用户证书,冻结后需等待半分钟到一分钟左右生效

func (*BcsClient) HandleNotification

func (c *BcsClient) HandleNotification(request *model.HandleNotificationRequest) (*model.HandleNotificationResponse, error)

处理联盟邀请

func (*BcsClient) ListBcsMetric

func (c *BcsClient) ListBcsMetric(request *model.ListBcsMetricRequest) (*model.ListBcsMetricResponse, error)

该接口用于查询BCS服务的监控数据,可以指定相应的指标名称。[目前不支持IEF节点](tag:hasief)

func (*BcsClient) ListBlockchainChannels

查询指定服务实例通道信息

func (*BcsClient) ListBlockchains

func (c *BcsClient) ListBlockchains(request *model.ListBlockchainsRequest) (*model.ListBlockchainsResponse, error)

查询当前项目下所有服务实例的简要信息

func (*BcsClient) ListEntityMetric

func (c *BcsClient) ListEntityMetric(request *model.ListEntityMetricRequest) (*model.ListEntityMetricResponse, error)

该接口用于查询BCS组织的监控数据列表。

func (*BcsClient) ListInstanceMetric

func (c *BcsClient) ListInstanceMetric(request *model.ListInstanceMetricRequest) (*model.ListInstanceMetricResponse, error)

该接口用于BCS组织实例监控数据详情。

func (*BcsClient) ListMembers

func (c *BcsClient) ListMembers(request *model.ListMembersRequest) (*model.ListMembersResponse, error)

获取联盟成员列表

func (*BcsClient) ListNotifications

func (c *BcsClient) ListNotifications(request *model.ListNotificationsRequest) (*model.ListNotificationsResponse, error)

获取全部通知

func (*BcsClient) ListOpRecord

func (c *BcsClient) ListOpRecord(request *model.ListOpRecordRequest) (*model.ListOpRecordResponse, error)

查询异步操作结果

func (*BcsClient) ListQuotas

func (c *BcsClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)

查询当前项目下BCS服务所有资源的配额信息

func (*BcsClient) ShowBlockchainDetail

查询指定服务实例详细信息

func (*BcsClient) ShowBlockchainFlavors added in v0.0.67

查询服务联盟链规格信息

func (*BcsClient) ShowBlockchainNodes

查询指定服务实例节点信息

func (*BcsClient) ShowBlockchainStatus

查询指定服务实例创建状态

func (*BcsClient) UnfreezeCert added in v0.0.69

func (c *BcsClient) UnfreezeCert(request *model.UnfreezeCertRequest) (*model.UnfreezeCertResponse, error)

解冻指定服务实例组织用户证书,解冻后需等待半分钟到一分钟左右生效

func (*BcsClient) UpdateInstance

func (c *BcsClient) UpdateInstance(request *model.UpdateInstanceRequest) (*model.UpdateInstanceResponse, error)

修改实例的节点、组织,目前仅支持添加、删除节点(IEF模式不支持添加、删除节点),添加、删除组织,共4种类型,每次操作只可以操作一种类型。此接口不支持包周期模式; 注意注册IEF节点时,IEF节点名称长度应该为4-24位的字符

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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