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节点加入通道,目前仅支持往一个通道中加入peer
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) BatchCreateChannels ¶
func (c *BcsClient) BatchCreateChannels(request *model.BatchCreateChannelsRequest) (*model.BatchCreateChannelsResponse, error)
创建通道
创建通道
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) BatchInviteMembersToChannel ¶
func (c *BcsClient) BatchInviteMembersToChannel(request *model.BatchInviteMembersToChannelRequest) (*model.BatchInviteMembersToChannelResponse, error)
邀请联盟成员
批量邀请联盟成员加入通道,此操作会向被邀请方发出邀请通知
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) BatchRemoveOrgsFromChannel ¶ added in v0.0.65
func (c *BcsClient) BatchRemoveOrgsFromChannel(request *model.BatchRemoveOrgsFromChannelRequest) (*model.BatchRemoveOrgsFromChannelResponse, error)
BCS组织退出某通道
该接口用于BCS组织退出某通道。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) CreateBlockchainCertByUserName ¶ added in v0.0.69
func (c *BcsClient) CreateBlockchainCertByUserName(request *model.CreateBlockchainCertByUserNameRequest) (*model.CreateBlockchainCertByUserNameResponse, error)
生成用户证书
通过用户名生成指定服务实例组织用户证书
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) CreateNewBlockchain ¶
func (c *BcsClient) CreateNewBlockchain(request *model.CreateNewBlockchainRequest) (*model.CreateNewBlockchainResponse, error)
创建服务实例
创建BCS服务实例,只支持按需创建
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) DeleteBlockchain ¶
func (c *BcsClient) DeleteBlockchain(request *model.DeleteBlockchainRequest) (*model.DeleteBlockchainResponse, error)
删除服务实例
删除bcs实例。包周期实例不支持
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) DeleteMemberInvite ¶ added in v0.0.69
func (c *BcsClient) DeleteMemberInvite(request *model.DeleteMemberInviteRequest) (*model.DeleteMemberInviteResponse, error)
删除邀请成员信息
可通过此接口批量取消邀请或删除对已退出或拒绝加入或解散的成员邀请信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) DownloadBlockchainCert ¶
func (c *BcsClient) DownloadBlockchainCert(request *model.DownloadBlockchainCertRequest) (*model.DownloadBlockchainCertResponse, error)
下载证书
下载指定服务实例相关证书
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) DownloadBlockchainSdkConfig ¶
func (c *BcsClient) DownloadBlockchainSdkConfig(request *model.DownloadBlockchainSdkConfigRequest) (*model.DownloadBlockchainSdkConfigResponse, error)
下载SDK配置
下载指定服务实例SDK配置文件
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) FreezeCert ¶ added in v0.0.69
func (c *BcsClient) FreezeCert(request *model.FreezeCertRequest) (*model.FreezeCertResponse, error)
冻结用户证书
冻结指定服务实例组织用户证书,冻结后需等待半分钟到一分钟左右生效
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) HandleNotification ¶
func (c *BcsClient) HandleNotification(request *model.HandleNotificationRequest) (*model.HandleNotificationResponse, error)
处理联盟邀请
处理联盟邀请
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ListBcsMetric ¶
func (c *BcsClient) ListBcsMetric(request *model.ListBcsMetricRequest) (*model.ListBcsMetricResponse, error)
查询BCS服务实例监控数据
该接口用于查询BCS服务的监控数据,可以指定相应的指标名称。[目前不支持IEF节点](tag:hasief)
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ListBlockchainChannels ¶
func (c *BcsClient) ListBlockchainChannels(request *model.ListBlockchainChannelsRequest) (*model.ListBlockchainChannelsResponse, error)
查询通道信息
查询指定服务实例通道信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ListBlockchains ¶
func (c *BcsClient) ListBlockchains(request *model.ListBlockchainsRequest) (*model.ListBlockchainsResponse, error)
查询服务实例列表
查询当前项目下所有服务实例的简要信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ListEntityMetric ¶
func (c *BcsClient) ListEntityMetric(request *model.ListEntityMetricRequest) (*model.ListEntityMetricResponse, error)
查询BCS组织监控数据列表
该接口用于查询BCS组织的监控数据列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ListInstanceMetric ¶
func (c *BcsClient) ListInstanceMetric(request *model.ListInstanceMetricRequest) (*model.ListInstanceMetricResponse, error)
查询BCS组织实例监控数据详情
该接口用于BCS组织实例监控数据详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ListMembers ¶
func (c *BcsClient) ListMembers(request *model.ListMembersRequest) (*model.ListMembersResponse, error)
获取联盟成员列表
获取联盟成员列表
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ListNotifications ¶
func (c *BcsClient) ListNotifications(request *model.ListNotificationsRequest) (*model.ListNotificationsResponse, error)
获取全部通知
获取全部通知
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ListOpRecord ¶
func (c *BcsClient) ListOpRecord(request *model.ListOpRecordRequest) (*model.ListOpRecordResponse, error)
查询异步操作结果
查询异步操作结果
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ListQuotas ¶
func (c *BcsClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
查询配额
查询当前项目下BCS服务所有资源的配额信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ShowBlockchainDetail ¶
func (c *BcsClient) ShowBlockchainDetail(request *model.ShowBlockchainDetailRequest) (*model.ShowBlockchainDetailResponse, error)
查询实例信息
查询指定服务实例详细信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ShowBlockchainFlavors ¶ added in v0.0.67
func (c *BcsClient) ShowBlockchainFlavors(request *model.ShowBlockchainFlavorsRequest) (*model.ShowBlockchainFlavorsResponse, error)
查询规格
查询服务联盟链规格信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ShowBlockchainNodes ¶
func (c *BcsClient) ShowBlockchainNodes(request *model.ShowBlockchainNodesRequest) (*model.ShowBlockchainNodesResponse, error)
查询节点信息
查询指定服务实例节点信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) ShowBlockchainStatus ¶
func (c *BcsClient) ShowBlockchainStatus(request *model.ShowBlockchainStatusRequest) (*model.ShowBlockchainStatusResponse, error)
查询创建状态
查询指定服务实例创建状态
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) UnfreezeCert ¶ added in v0.0.69
func (c *BcsClient) UnfreezeCert(request *model.UnfreezeCertRequest) (*model.UnfreezeCertResponse, error)
解冻用户证书
解冻指定服务实例组织用户证书,解冻后需等待半分钟到一分钟左右生效
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*BcsClient) UpdateInstance ¶
func (c *BcsClient) UpdateInstance(request *model.UpdateInstanceRequest) (*model.UpdateInstanceResponse, error)
修改服务实例
修改实例的节点、组织,目前仅支持添加、删除节点(IEF模式不支持添加、删除节点),添加、删除组织,共4种类型,每次操作只可以操作一种类型。此接口不支持包周期模式; 注意注册IEF节点时,IEF节点名称长度应该为4-24位的字符
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.