Documentation ¶
Index ¶
- func CbrClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForAddMember() *def.HttpRequestDef
- func GenReqDefForAddVaultResource() *def.HttpRequestDef
- func GenReqDefForAssociateVaultPolicy() *def.HttpRequestDef
- func GenReqDefForBatchCreateAndDeleteVaultTags() *def.HttpRequestDef
- func GenReqDefForCopyBackup() *def.HttpRequestDef
- func GenReqDefForCopyCheckpoint() *def.HttpRequestDef
- func GenReqDefForCreateCheckpoint() *def.HttpRequestDef
- func GenReqDefForCreatePolicy() *def.HttpRequestDef
- func GenReqDefForCreateVault() *def.HttpRequestDef
- func GenReqDefForCreateVaultTags() *def.HttpRequestDef
- func GenReqDefForDeleteBackup() *def.HttpRequestDef
- func GenReqDefForDeleteMember() *def.HttpRequestDef
- func GenReqDefForDeletePolicy() *def.HttpRequestDef
- func GenReqDefForDeleteVault() *def.HttpRequestDef
- func GenReqDefForDeleteVaultTag() *def.HttpRequestDef
- func GenReqDefForDisassociateVaultPolicy() *def.HttpRequestDef
- func GenReqDefForImportBackup() *def.HttpRequestDef
- func GenReqDefForListBackups() *def.HttpRequestDef
- func GenReqDefForListOpLogs() *def.HttpRequestDef
- func GenReqDefForListPolicies() *def.HttpRequestDef
- func GenReqDefForListProtectable() *def.HttpRequestDef
- func GenReqDefForListVault() *def.HttpRequestDef
- func GenReqDefForMigrateVaultResource() *def.HttpRequestDef
- func GenReqDefForRemoveVaultResource() *def.HttpRequestDef
- func GenReqDefForRestoreBackup() *def.HttpRequestDef
- func GenReqDefForShowBackup() *def.HttpRequestDef
- func GenReqDefForShowCheckpoint() *def.HttpRequestDef
- func GenReqDefForShowMemberDetail() *def.HttpRequestDef
- func GenReqDefForShowMembersDetail() *def.HttpRequestDef
- func GenReqDefForShowOpLog() *def.HttpRequestDef
- func GenReqDefForShowPolicy() *def.HttpRequestDef
- func GenReqDefForShowProtectable() *def.HttpRequestDef
- func GenReqDefForShowReplicationCapabilities() *def.HttpRequestDef
- func GenReqDefForShowVault() *def.HttpRequestDef
- func GenReqDefForShowVaultProjectTag() *def.HttpRequestDef
- func GenReqDefForShowVaultResourceInstances() *def.HttpRequestDef
- func GenReqDefForShowVaultTag() *def.HttpRequestDef
- func GenReqDefForUpdateMemberStatus() *def.HttpRequestDef
- func GenReqDefForUpdatePolicy() *def.HttpRequestDef
- func GenReqDefForUpdateVault() *def.HttpRequestDef
- type CbrClient
- func (c *CbrClient) AddMember(request *model.AddMemberRequest) (*model.AddMemberResponse, error)
- func (c *CbrClient) AddVaultResource(request *model.AddVaultResourceRequest) (*model.AddVaultResourceResponse, error)
- func (c *CbrClient) AssociateVaultPolicy(request *model.AssociateVaultPolicyRequest) (*model.AssociateVaultPolicyResponse, error)
- func (c *CbrClient) BatchCreateAndDeleteVaultTags(request *model.BatchCreateAndDeleteVaultTagsRequest) (*model.BatchCreateAndDeleteVaultTagsResponse, error)
- func (c *CbrClient) CopyBackup(request *model.CopyBackupRequest) (*model.CopyBackupResponse, error)
- func (c *CbrClient) CopyCheckpoint(request *model.CopyCheckpointRequest) (*model.CopyCheckpointResponse, error)
- func (c *CbrClient) CreateCheckpoint(request *model.CreateCheckpointRequest) (*model.CreateCheckpointResponse, error)
- func (c *CbrClient) CreatePolicy(request *model.CreatePolicyRequest) (*model.CreatePolicyResponse, error)
- func (c *CbrClient) CreateVault(request *model.CreateVaultRequest) (*model.CreateVaultResponse, error)
- func (c *CbrClient) CreateVaultTags(request *model.CreateVaultTagsRequest) (*model.CreateVaultTagsResponse, error)
- func (c *CbrClient) DeleteBackup(request *model.DeleteBackupRequest) (*model.DeleteBackupResponse, error)
- func (c *CbrClient) DeleteMember(request *model.DeleteMemberRequest) (*model.DeleteMemberResponse, error)
- func (c *CbrClient) DeletePolicy(request *model.DeletePolicyRequest) (*model.DeletePolicyResponse, error)
- func (c *CbrClient) DeleteVault(request *model.DeleteVaultRequest) (*model.DeleteVaultResponse, error)
- func (c *CbrClient) DeleteVaultTag(request *model.DeleteVaultTagRequest) (*model.DeleteVaultTagResponse, error)
- func (c *CbrClient) DisassociateVaultPolicy(request *model.DisassociateVaultPolicyRequest) (*model.DisassociateVaultPolicyResponse, error)
- func (c *CbrClient) ImportBackup(request *model.ImportBackupRequest) (*model.ImportBackupResponse, error)
- func (c *CbrClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error)
- func (c *CbrClient) ListOpLogs(request *model.ListOpLogsRequest) (*model.ListOpLogsResponse, error)
- func (c *CbrClient) ListPolicies(request *model.ListPoliciesRequest) (*model.ListPoliciesResponse, error)
- func (c *CbrClient) ListProtectable(request *model.ListProtectableRequest) (*model.ListProtectableResponse, error)
- func (c *CbrClient) ListVault(request *model.ListVaultRequest) (*model.ListVaultResponse, error)
- func (c *CbrClient) MigrateVaultResource(request *model.MigrateVaultResourceRequest) (*model.MigrateVaultResourceResponse, error)
- func (c *CbrClient) RemoveVaultResource(request *model.RemoveVaultResourceRequest) (*model.RemoveVaultResourceResponse, error)
- func (c *CbrClient) RestoreBackup(request *model.RestoreBackupRequest) (*model.RestoreBackupResponse, error)
- func (c *CbrClient) ShowBackup(request *model.ShowBackupRequest) (*model.ShowBackupResponse, error)
- func (c *CbrClient) ShowCheckpoint(request *model.ShowCheckpointRequest) (*model.ShowCheckpointResponse, error)
- func (c *CbrClient) ShowMemberDetail(request *model.ShowMemberDetailRequest) (*model.ShowMemberDetailResponse, error)
- func (c *CbrClient) ShowMembersDetail(request *model.ShowMembersDetailRequest) (*model.ShowMembersDetailResponse, error)
- func (c *CbrClient) ShowOpLog(request *model.ShowOpLogRequest) (*model.ShowOpLogResponse, error)
- func (c *CbrClient) ShowPolicy(request *model.ShowPolicyRequest) (*model.ShowPolicyResponse, error)
- func (c *CbrClient) ShowProtectable(request *model.ShowProtectableRequest) (*model.ShowProtectableResponse, error)
- func (c *CbrClient) ShowReplicationCapabilities(request *model.ShowReplicationCapabilitiesRequest) (*model.ShowReplicationCapabilitiesResponse, error)
- func (c *CbrClient) ShowVault(request *model.ShowVaultRequest) (*model.ShowVaultResponse, error)
- func (c *CbrClient) ShowVaultProjectTag(request *model.ShowVaultProjectTagRequest) (*model.ShowVaultProjectTagResponse, error)
- func (c *CbrClient) ShowVaultResourceInstances(request *model.ShowVaultResourceInstancesRequest) (*model.ShowVaultResourceInstancesResponse, error)
- func (c *CbrClient) ShowVaultTag(request *model.ShowVaultTagRequest) (*model.ShowVaultTagResponse, error)
- func (c *CbrClient) UpdateMemberStatus(request *model.UpdateMemberStatusRequest) (*model.UpdateMemberStatusResponse, error)
- func (c *CbrClient) UpdatePolicy(request *model.UpdatePolicyRequest) (*model.UpdatePolicyResponse, error)
- func (c *CbrClient) UpdateVault(request *model.UpdateVaultRequest) (*model.UpdateVaultResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CbrClientBuilder ¶
func CbrClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForAddMember ¶
func GenReqDefForAddMember() *def.HttpRequestDef
func GenReqDefForAddVaultResource ¶
func GenReqDefForAddVaultResource() *def.HttpRequestDef
func GenReqDefForAssociateVaultPolicy ¶
func GenReqDefForAssociateVaultPolicy() *def.HttpRequestDef
func GenReqDefForBatchCreateAndDeleteVaultTags ¶
func GenReqDefForBatchCreateAndDeleteVaultTags() *def.HttpRequestDef
func GenReqDefForCopyBackup ¶
func GenReqDefForCopyBackup() *def.HttpRequestDef
func GenReqDefForCopyCheckpoint ¶
func GenReqDefForCopyCheckpoint() *def.HttpRequestDef
func GenReqDefForCreateCheckpoint ¶
func GenReqDefForCreateCheckpoint() *def.HttpRequestDef
func GenReqDefForCreatePolicy ¶
func GenReqDefForCreatePolicy() *def.HttpRequestDef
func GenReqDefForCreateVault ¶
func GenReqDefForCreateVault() *def.HttpRequestDef
func GenReqDefForCreateVaultTags ¶
func GenReqDefForCreateVaultTags() *def.HttpRequestDef
func GenReqDefForDeleteBackup ¶
func GenReqDefForDeleteBackup() *def.HttpRequestDef
func GenReqDefForDeleteMember ¶
func GenReqDefForDeleteMember() *def.HttpRequestDef
func GenReqDefForDeletePolicy ¶
func GenReqDefForDeletePolicy() *def.HttpRequestDef
func GenReqDefForDeleteVault ¶
func GenReqDefForDeleteVault() *def.HttpRequestDef
func GenReqDefForDeleteVaultTag ¶
func GenReqDefForDeleteVaultTag() *def.HttpRequestDef
func GenReqDefForDisassociateVaultPolicy ¶
func GenReqDefForDisassociateVaultPolicy() *def.HttpRequestDef
func GenReqDefForImportBackup ¶
func GenReqDefForImportBackup() *def.HttpRequestDef
func GenReqDefForListBackups ¶
func GenReqDefForListBackups() *def.HttpRequestDef
func GenReqDefForListOpLogs ¶
func GenReqDefForListOpLogs() *def.HttpRequestDef
func GenReqDefForListPolicies ¶
func GenReqDefForListPolicies() *def.HttpRequestDef
func GenReqDefForListProtectable ¶
func GenReqDefForListProtectable() *def.HttpRequestDef
func GenReqDefForListVault ¶
func GenReqDefForListVault() *def.HttpRequestDef
func GenReqDefForMigrateVaultResource ¶
func GenReqDefForMigrateVaultResource() *def.HttpRequestDef
func GenReqDefForRemoveVaultResource ¶
func GenReqDefForRemoveVaultResource() *def.HttpRequestDef
func GenReqDefForRestoreBackup ¶
func GenReqDefForRestoreBackup() *def.HttpRequestDef
func GenReqDefForShowBackup ¶
func GenReqDefForShowBackup() *def.HttpRequestDef
func GenReqDefForShowCheckpoint ¶
func GenReqDefForShowCheckpoint() *def.HttpRequestDef
func GenReqDefForShowMemberDetail ¶
func GenReqDefForShowMemberDetail() *def.HttpRequestDef
func GenReqDefForShowMembersDetail ¶
func GenReqDefForShowMembersDetail() *def.HttpRequestDef
func GenReqDefForShowOpLog ¶
func GenReqDefForShowOpLog() *def.HttpRequestDef
func GenReqDefForShowPolicy ¶
func GenReqDefForShowPolicy() *def.HttpRequestDef
func GenReqDefForShowProtectable ¶
func GenReqDefForShowProtectable() *def.HttpRequestDef
func GenReqDefForShowReplicationCapabilities ¶
func GenReqDefForShowReplicationCapabilities() *def.HttpRequestDef
func GenReqDefForShowVault ¶
func GenReqDefForShowVault() *def.HttpRequestDef
func GenReqDefForShowVaultProjectTag ¶
func GenReqDefForShowVaultProjectTag() *def.HttpRequestDef
func GenReqDefForShowVaultResourceInstances ¶
func GenReqDefForShowVaultResourceInstances() *def.HttpRequestDef
func GenReqDefForShowVaultTag ¶
func GenReqDefForShowVaultTag() *def.HttpRequestDef
func GenReqDefForUpdateMemberStatus ¶
func GenReqDefForUpdateMemberStatus() *def.HttpRequestDef
func GenReqDefForUpdatePolicy ¶
func GenReqDefForUpdatePolicy() *def.HttpRequestDef
func GenReqDefForUpdateVault ¶
func GenReqDefForUpdateVault() *def.HttpRequestDef
Types ¶
type CbrClient ¶
type CbrClient struct {
HcClient *http_client.HcHttpClient
}
func NewCbrClient ¶
func NewCbrClient(hcClient *http_client.HcHttpClient) *CbrClient
func (*CbrClient) AddMember ¶
func (c *CbrClient) AddMember(request *model.AddMemberRequest) (*model.AddMemberResponse, error)
添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
func (*CbrClient) AddVaultResource ¶
func (c *CbrClient) AddVaultResource(request *model.AddVaultResourceRequest) (*model.AddVaultResourceResponse, error)
存储库添加资源
func (*CbrClient) AssociateVaultPolicy ¶
func (c *CbrClient) AssociateVaultPolicy(request *model.AssociateVaultPolicyRequest) (*model.AssociateVaultPolicyResponse, error)
存储库设置策略
func (*CbrClient) BatchCreateAndDeleteVaultTags ¶
func (c *CbrClient) BatchCreateAndDeleteVaultTags(request *model.BatchCreateAndDeleteVaultTagsRequest) (*model.BatchCreateAndDeleteVaultTagsResponse, error)
为指定实例批量添加或删除标签 标签管理服务需要使用该接口批量管理实例的标签。 一个资源上最多有10个标签。 此接口为幂等接口: 创建时如果请求体中存在重复key则报错。 创建时,不允许重复key,如果数据库存在就覆盖。 删除时,允许重复key。 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。key长度127个字符,value为255个字符。删除时tags结构体不能缺失,key不能为空,或者空字符串。
func (*CbrClient) CopyBackup ¶
func (c *CbrClient) CopyBackup(request *model.CopyBackupRequest) (*model.CopyBackupResponse, error)
跨区域复制备份。
func (*CbrClient) CopyCheckpoint ¶
func (c *CbrClient) CopyCheckpoint(request *model.CopyCheckpointRequest) (*model.CopyCheckpointResponse, error)
执行复制
func (*CbrClient) CreateCheckpoint ¶
func (c *CbrClient) CreateCheckpoint(request *model.CreateCheckpointRequest) (*model.CreateCheckpointResponse, error)
对存储库执行备份,生成备份还原点
func (*CbrClient) CreatePolicy ¶
func (c *CbrClient) CreatePolicy(request *model.CreatePolicyRequest) (*model.CreatePolicyResponse, error)
创建策略,策略分为备份策略和复制策略。
func (*CbrClient) CreateVault ¶
func (c *CbrClient) CreateVault(request *model.CreateVaultRequest) (*model.CreateVaultResponse, error)
创建存储库
func (*CbrClient) CreateVaultTags ¶
func (c *CbrClient) CreateVaultTags(request *model.CreateVaultTagsRequest) (*model.CreateVaultTagsResponse, error)
一个资源上最多有10个标签。 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
func (*CbrClient) DeleteBackup ¶
func (c *CbrClient) DeleteBackup(request *model.DeleteBackupRequest) (*model.DeleteBackupResponse, error)
删除单个备份。
func (*CbrClient) DeleteMember ¶
func (c *CbrClient) DeleteMember(request *model.DeleteMemberRequest) (*model.DeleteMemberResponse, error)
删除指定的备份共享成员
func (*CbrClient) DeletePolicy ¶
func (c *CbrClient) DeletePolicy(request *model.DeletePolicyRequest) (*model.DeletePolicyResponse, error)
删除策略
func (*CbrClient) DeleteVault ¶
func (c *CbrClient) DeleteVault(request *model.DeleteVaultRequest) (*model.DeleteVaultResponse, error)
删除存储库。若删除储存库,将一并删除存储库中的所有备份。
func (*CbrClient) DeleteVaultTag ¶
func (c *CbrClient) DeleteVaultTag(request *model.DeleteVaultTagRequest) (*model.DeleteVaultTagResponse, error)
幂等接口:删除时,如果删除的标签不存在,返回404。Key不能为空或者空字符串。
func (*CbrClient) DisassociateVaultPolicy ¶
func (c *CbrClient) DisassociateVaultPolicy(request *model.DisassociateVaultPolicyRequest) (*model.DisassociateVaultPolicyResponse, error)
存储库解除策略
func (*CbrClient) ImportBackup ¶
func (c *CbrClient) ImportBackup(request *model.ImportBackupRequest) (*model.ImportBackupResponse, error)
同步备份副本
func (*CbrClient) ListBackups ¶
func (c *CbrClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error)
查询所有副本
func (*CbrClient) ListOpLogs ¶
func (c *CbrClient) ListOpLogs(request *model.ListOpLogsRequest) (*model.ListOpLogsResponse, error)
查询任务列表
func (*CbrClient) ListPolicies ¶
func (c *CbrClient) ListPolicies(request *model.ListPoliciesRequest) (*model.ListPoliciesResponse, error)
查询策略列表
func (*CbrClient) ListProtectable ¶
func (c *CbrClient) ListProtectable(request *model.ListProtectableRequest) (*model.ListProtectableResponse, error)
查询可保护性资源列表
func (*CbrClient) ListVault ¶
func (c *CbrClient) ListVault(request *model.ListVaultRequest) (*model.ListVaultResponse, error)
查询存储库列表
func (*CbrClient) MigrateVaultResource ¶
func (c *CbrClient) MigrateVaultResource(request *model.MigrateVaultResourceRequest) (*model.MigrateVaultResourceResponse, error)
支持资源迁移到另一个存储库,不删除备份。
func (*CbrClient) RemoveVaultResource ¶
func (c *CbrClient) RemoveVaultResource(request *model.RemoveVaultResourceRequest) (*model.RemoveVaultResourceResponse, error)
移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
func (*CbrClient) RestoreBackup ¶
func (c *CbrClient) RestoreBackup(request *model.RestoreBackupRequest) (*model.RestoreBackupResponse, error)
恢复备份数据
func (*CbrClient) ShowBackup ¶
func (c *CbrClient) ShowBackup(request *model.ShowBackupRequest) (*model.ShowBackupResponse, error)
根据指定id查询单个副本。
func (*CbrClient) ShowCheckpoint ¶
func (c *CbrClient) ShowCheckpoint(request *model.ShowCheckpointRequest) (*model.ShowCheckpointResponse, error)
根据还原点ID查询指定还原点
func (*CbrClient) ShowMemberDetail ¶
func (c *CbrClient) ShowMemberDetail(request *model.ShowMemberDetailRequest) (*model.ShowMemberDetailResponse, error)
获取备份成员的详情
func (*CbrClient) ShowMembersDetail ¶
func (c *CbrClient) ShowMembersDetail(request *model.ShowMembersDetailRequest) (*model.ShowMembersDetailResponse, error)
获取备份共享成员的列表信息
func (*CbrClient) ShowOpLog ¶
func (c *CbrClient) ShowOpLog(request *model.ShowOpLogRequest) (*model.ShowOpLogResponse, error)
根据指定任务ID查询任务
func (*CbrClient) ShowPolicy ¶
func (c *CbrClient) ShowPolicy(request *model.ShowPolicyRequest) (*model.ShowPolicyResponse, error)
查询单个策略
func (*CbrClient) ShowProtectable ¶
func (c *CbrClient) ShowProtectable(request *model.ShowProtectableRequest) (*model.ShowProtectableResponse, error)
根据ID查询可保护性资源
func (*CbrClient) ShowReplicationCapabilities ¶
func (c *CbrClient) ShowReplicationCapabilities(request *model.ShowReplicationCapabilitiesRequest) (*model.ShowReplicationCapabilitiesResponse, error)
查询本区域的复制能力
func (*CbrClient) ShowVault ¶
func (c *CbrClient) ShowVault(request *model.ShowVaultRequest) (*model.ShowVaultResponse, error)
根据ID查询指定存储库
func (*CbrClient) ShowVaultProjectTag ¶
func (c *CbrClient) ShowVaultProjectTag(request *model.ShowVaultProjectTagRequest) (*model.ShowVaultProjectTagResponse, error)
查询租户在指定Region和实例类型的所有标签集合 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能
func (*CbrClient) ShowVaultResourceInstances ¶
func (c *CbrClient) ShowVaultResourceInstances(request *model.ShowVaultResourceInstancesRequest) (*model.ShowVaultResourceInstancesResponse, error)
使用标签过滤实例 标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力
func (*CbrClient) ShowVaultTag ¶
func (c *CbrClient) ShowVaultTag(request *model.ShowVaultTagRequest) (*model.ShowVaultTagResponse, error)
查询指定实例的标签信息 标签管理服务需要使用该接口查询指定实例的全部标签数据
func (*CbrClient) UpdateMemberStatus ¶
func (c *CbrClient) UpdateMemberStatus(request *model.UpdateMemberStatusRequest) (*model.UpdateMemberStatusResponse, error)
更新备份共享成员的状态,需要接收方执行此API。
func (*CbrClient) UpdatePolicy ¶
func (c *CbrClient) UpdatePolicy(request *model.UpdatePolicyRequest) (*model.UpdatePolicyResponse, error)
修改策略
func (*CbrClient) UpdateVault ¶
func (c *CbrClient) UpdateVault(request *model.UpdateVaultRequest) (*model.UpdateVaultResponse, error)
根据存储库ID修改存储库