Documentation ¶
Index ¶
- func BcsClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForBatchAddPeersToChannel() *def.HttpRequestDef
- func GenReqDefForBatchCreateChannels() *def.HttpRequestDef
- func GenReqDefForBatchInviteMembersToChannel() *def.HttpRequestDef
- func GenReqDefForBatchRemoveOrgsFromChannel() *def.HttpRequestDef
- func GenReqDefForCreateBlockchainCertByUserName() *def.HttpRequestDef
- func GenReqDefForCreateNewBlockchain() *def.HttpRequestDef
- func GenReqDefForDeleteBlockchain() *def.HttpRequestDef
- func GenReqDefForDeleteMemberInvite() *def.HttpRequestDef
- func GenReqDefForDownloadBlockchainCert() *def.HttpRequestDef
- func GenReqDefForDownloadBlockchainSdkConfig() *def.HttpRequestDef
- func GenReqDefForFreezeCert() *def.HttpRequestDef
- func GenReqDefForHandleNotification() *def.HttpRequestDef
- func GenReqDefForListBcsMetric() *def.HttpRequestDef
- func GenReqDefForListBlockchainChannels() *def.HttpRequestDef
- func GenReqDefForListBlockchains() *def.HttpRequestDef
- func GenReqDefForListEntityMetric() *def.HttpRequestDef
- func GenReqDefForListInstanceMetric() *def.HttpRequestDef
- func GenReqDefForListMembers() *def.HttpRequestDef
- func GenReqDefForListNotifications() *def.HttpRequestDef
- func GenReqDefForListOpRecord() *def.HttpRequestDef
- func GenReqDefForListQuotas() *def.HttpRequestDef
- func GenReqDefForShowBlockchainDetail() *def.HttpRequestDef
- func GenReqDefForShowBlockchainFlavors() *def.HttpRequestDef
- func GenReqDefForShowBlockchainNodes() *def.HttpRequestDef
- func GenReqDefForShowBlockchainStatus() *def.HttpRequestDef
- func GenReqDefForUnfreezeCert() *def.HttpRequestDef
- func GenReqDefForUpdateInstance() *def.HttpRequestDef
- type BcsClient
- func (c *BcsClient) BatchAddPeersToChannel(request *model.BatchAddPeersToChannelRequest) (*model.BatchAddPeersToChannelResponse, error)
- func (c *BcsClient) BatchCreateChannels(request *model.BatchCreateChannelsRequest) (*model.BatchCreateChannelsResponse, error)
- func (c *BcsClient) BatchInviteMembersToChannel(request *model.BatchInviteMembersToChannelRequest) (*model.BatchInviteMembersToChannelResponse, error)
- func (c *BcsClient) BatchRemoveOrgsFromChannel(request *model.BatchRemoveOrgsFromChannelRequest) (*model.BatchRemoveOrgsFromChannelResponse, error)
- func (c *BcsClient) CreateBlockchainCertByUserName(request *model.CreateBlockchainCertByUserNameRequest) (*model.CreateBlockchainCertByUserNameResponse, error)
- func (c *BcsClient) CreateNewBlockchain(request *model.CreateNewBlockchainRequest) (*model.CreateNewBlockchainResponse, error)
- func (c *BcsClient) DeleteBlockchain(request *model.DeleteBlockchainRequest) (*model.DeleteBlockchainResponse, error)
- func (c *BcsClient) DeleteMemberInvite(request *model.DeleteMemberInviteRequest) (*model.DeleteMemberInviteResponse, error)
- func (c *BcsClient) DownloadBlockchainCert(request *model.DownloadBlockchainCertRequest) (*model.DownloadBlockchainCertResponse, error)
- func (c *BcsClient) DownloadBlockchainSdkConfig(request *model.DownloadBlockchainSdkConfigRequest) (*model.DownloadBlockchainSdkConfigResponse, error)
- func (c *BcsClient) FreezeCert(request *model.FreezeCertRequest) (*model.FreezeCertResponse, error)
- func (c *BcsClient) HandleNotification(request *model.HandleNotificationRequest) (*model.HandleNotificationResponse, error)
- func (c *BcsClient) ListBcsMetric(request *model.ListBcsMetricRequest) (*model.ListBcsMetricResponse, error)
- func (c *BcsClient) ListBlockchainChannels(request *model.ListBlockchainChannelsRequest) (*model.ListBlockchainChannelsResponse, error)
- func (c *BcsClient) ListBlockchains(request *model.ListBlockchainsRequest) (*model.ListBlockchainsResponse, error)
- func (c *BcsClient) ListEntityMetric(request *model.ListEntityMetricRequest) (*model.ListEntityMetricResponse, error)
- func (c *BcsClient) ListInstanceMetric(request *model.ListInstanceMetricRequest) (*model.ListInstanceMetricResponse, error)
- func (c *BcsClient) ListMembers(request *model.ListMembersRequest) (*model.ListMembersResponse, error)
- func (c *BcsClient) ListNotifications(request *model.ListNotificationsRequest) (*model.ListNotificationsResponse, error)
- func (c *BcsClient) ListOpRecord(request *model.ListOpRecordRequest) (*model.ListOpRecordResponse, error)
- func (c *BcsClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
- func (c *BcsClient) ShowBlockchainDetail(request *model.ShowBlockchainDetailRequest) (*model.ShowBlockchainDetailResponse, error)
- func (c *BcsClient) ShowBlockchainFlavors(request *model.ShowBlockchainFlavorsRequest) (*model.ShowBlockchainFlavorsResponse, error)
- func (c *BcsClient) ShowBlockchainNodes(request *model.ShowBlockchainNodesRequest) (*model.ShowBlockchainNodesResponse, error)
- func (c *BcsClient) ShowBlockchainStatus(request *model.ShowBlockchainStatusRequest) (*model.ShowBlockchainStatusResponse, error)
- func (c *BcsClient) UnfreezeCert(request *model.UnfreezeCertRequest) (*model.UnfreezeCertResponse, error)
- func (c *BcsClient) UpdateInstance(request *model.UpdateInstanceRequest) (*model.UpdateInstanceResponse, error)
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 ¶
func (c *BcsClient) BatchAddPeersToChannel(request *model.BatchAddPeersToChannelRequest) (*model.BatchAddPeersToChannelResponse, error)
peer节点加入通道,目前仅支持往一个通道中加入peer
func (*BcsClient) BatchCreateChannels ¶
func (c *BcsClient) BatchCreateChannels(request *model.BatchCreateChannelsRequest) (*model.BatchCreateChannelsResponse, error)
创建通道
func (*BcsClient) BatchInviteMembersToChannel ¶
func (c *BcsClient) BatchInviteMembersToChannel(request *model.BatchInviteMembersToChannelRequest) (*model.BatchInviteMembersToChannelResponse, error)
批量邀请联盟成员加入通道,此操作会向被邀请方发出邀请通知
func (*BcsClient) BatchRemoveOrgsFromChannel ¶ added in v0.0.65
func (c *BcsClient) BatchRemoveOrgsFromChannel(request *model.BatchRemoveOrgsFromChannelRequest) (*model.BatchRemoveOrgsFromChannelResponse, error)
该接口用于BCS组织退出某通道。
func (*BcsClient) CreateBlockchainCertByUserName ¶ added in v0.0.69
func (c *BcsClient) CreateBlockchainCertByUserName(request *model.CreateBlockchainCertByUserNameRequest) (*model.CreateBlockchainCertByUserNameResponse, error)
通过用户名生成指定服务实例组织用户证书
func (*BcsClient) CreateNewBlockchain ¶
func (c *BcsClient) CreateNewBlockchain(request *model.CreateNewBlockchainRequest) (*model.CreateNewBlockchainResponse, error)
创建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 (c *BcsClient) DownloadBlockchainCert(request *model.DownloadBlockchainCertRequest) (*model.DownloadBlockchainCertResponse, error)
下载指定服务实例相关证书
func (*BcsClient) DownloadBlockchainSdkConfig ¶
func (c *BcsClient) DownloadBlockchainSdkConfig(request *model.DownloadBlockchainSdkConfigRequest) (*model.DownloadBlockchainSdkConfigResponse, error)
下载指定服务实例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 (c *BcsClient) ListBlockchainChannels(request *model.ListBlockchainChannelsRequest) (*model.ListBlockchainChannelsResponse, error)
查询指定服务实例通道信息
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 (c *BcsClient) ShowBlockchainDetail(request *model.ShowBlockchainDetailRequest) (*model.ShowBlockchainDetailResponse, error)
查询指定服务实例详细信息
func (*BcsClient) ShowBlockchainFlavors ¶ added in v0.0.67
func (c *BcsClient) ShowBlockchainFlavors(request *model.ShowBlockchainFlavorsRequest) (*model.ShowBlockchainFlavorsResponse, error)
查询服务联盟链规格信息
func (*BcsClient) ShowBlockchainNodes ¶
func (c *BcsClient) ShowBlockchainNodes(request *model.ShowBlockchainNodesRequest) (*model.ShowBlockchainNodesResponse, error)
查询指定服务实例节点信息
func (*BcsClient) ShowBlockchainStatus ¶
func (c *BcsClient) ShowBlockchainStatus(request *model.ShowBlockchainStatusRequest) (*model.ShowBlockchainStatusResponse, error)
查询指定服务实例创建状态
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位的字符
Click to show internal directories.
Click to hide internal directories.