v3

package
v0.0.69 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DdsClientBuilder

func DdsClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForAddShardingNode

func GenReqDefForAddShardingNode() *def.HttpRequestDef

func GenReqDefForAttachEip

func GenReqDefForAttachEip() *def.HttpRequestDef

func GenReqDefForAttachInternalIp

func GenReqDefForAttachInternalIp() *def.HttpRequestDef

func GenReqDefForBatchTagAction

func GenReqDefForBatchTagAction() *def.HttpRequestDef

func GenReqDefForCancelEip

func GenReqDefForCancelEip() *def.HttpRequestDef

func GenReqDefForCheckPassword

func GenReqDefForCheckPassword() *def.HttpRequestDef

func GenReqDefForCreateDatabaseRole

func GenReqDefForCreateDatabaseRole() *def.HttpRequestDef

func GenReqDefForCreateDatabaseUser

func GenReqDefForCreateDatabaseUser() *def.HttpRequestDef

func GenReqDefForCreateInstance

func GenReqDefForCreateInstance() *def.HttpRequestDef

func GenReqDefForCreateIp

func GenReqDefForCreateIp() *def.HttpRequestDef

func GenReqDefForCreateManualBackup

func GenReqDefForCreateManualBackup() *def.HttpRequestDef

func GenReqDefForDeleteDatabaseRole

func GenReqDefForDeleteDatabaseRole() *def.HttpRequestDef

func GenReqDefForDeleteDatabaseUser

func GenReqDefForDeleteDatabaseUser() *def.HttpRequestDef

func GenReqDefForDeleteInstance

func GenReqDefForDeleteInstance() *def.HttpRequestDef

func GenReqDefForDeleteManualBackup

func GenReqDefForDeleteManualBackup() *def.HttpRequestDef

func GenReqDefForDeleteSession

func GenReqDefForDeleteSession() *def.HttpRequestDef

func GenReqDefForDownloadErrorlog

func GenReqDefForDownloadErrorlog() *def.HttpRequestDef

func GenReqDefForDownloadSlowlog

func GenReqDefForDownloadSlowlog() *def.HttpRequestDef

func GenReqDefForListApiVersion

func GenReqDefForListApiVersion() *def.HttpRequestDef
func GenReqDefForListAuditlogLinks() *def.HttpRequestDef

func GenReqDefForListAuditlogs

func GenReqDefForListAuditlogs() *def.HttpRequestDef

func GenReqDefForListAz2Migrate

func GenReqDefForListAz2Migrate() *def.HttpRequestDef

func GenReqDefForListBackups

func GenReqDefForListBackups() *def.HttpRequestDef

func GenReqDefForListDatabaseRoles

func GenReqDefForListDatabaseRoles() *def.HttpRequestDef

func GenReqDefForListDatabaseUsers

func GenReqDefForListDatabaseUsers() *def.HttpRequestDef

func GenReqDefForListDatastoreVersions

func GenReqDefForListDatastoreVersions() *def.HttpRequestDef

func GenReqDefForListErrorLogs

func GenReqDefForListErrorLogs() *def.HttpRequestDef

func GenReqDefForListFlavorInfos added in v0.0.57

func GenReqDefForListFlavorInfos() *def.HttpRequestDef

func GenReqDefForListFlavors

func GenReqDefForListFlavors() *def.HttpRequestDef

func GenReqDefForListInstanceTags

func GenReqDefForListInstanceTags() *def.HttpRequestDef

func GenReqDefForListInstances

func GenReqDefForListInstances() *def.HttpRequestDef

func GenReqDefForListInstancesByTags

func GenReqDefForListInstancesByTags() *def.HttpRequestDef

func GenReqDefForListProjectTags

func GenReqDefForListProjectTags() *def.HttpRequestDef

func GenReqDefForListRestoreCollections

func GenReqDefForListRestoreCollections() *def.HttpRequestDef

func GenReqDefForListRestoreDatabases

func GenReqDefForListRestoreDatabases() *def.HttpRequestDef

func GenReqDefForListRestoreTimes

func GenReqDefForListRestoreTimes() *def.HttpRequestDef

func GenReqDefForListSessions

func GenReqDefForListSessions() *def.HttpRequestDef

func GenReqDefForListSlowLogs

func GenReqDefForListSlowLogs() *def.HttpRequestDef

func GenReqDefForListStorageType

func GenReqDefForListStorageType() *def.HttpRequestDef

func GenReqDefForMigrateAz

func GenReqDefForMigrateAz() *def.HttpRequestDef

func GenReqDefForResetPassword

func GenReqDefForResetPassword() *def.HttpRequestDef

func GenReqDefForResizeInstance

func GenReqDefForResizeInstance() *def.HttpRequestDef

func GenReqDefForResizeInstanceVolume

func GenReqDefForResizeInstanceVolume() *def.HttpRequestDef

func GenReqDefForRestartInstance

func GenReqDefForRestartInstance() *def.HttpRequestDef

func GenReqDefForRestoreInstance

func GenReqDefForRestoreInstance() *def.HttpRequestDef

func GenReqDefForRestoreInstanceFromCollection

func GenReqDefForRestoreInstanceFromCollection() *def.HttpRequestDef

func GenReqDefForRestoreNewInstance

func GenReqDefForRestoreNewInstance() *def.HttpRequestDef

func GenReqDefForSetAuditlogPolicy

func GenReqDefForSetAuditlogPolicy() *def.HttpRequestDef

func GenReqDefForSetBackupPolicy

func GenReqDefForSetBackupPolicy() *def.HttpRequestDef

func GenReqDefForSetBalancerSwitch

func GenReqDefForSetBalancerSwitch() *def.HttpRequestDef

func GenReqDefForSetBalancerWindow

func GenReqDefForSetBalancerWindow() *def.HttpRequestDef

func GenReqDefForShowApiVersion

func GenReqDefForShowApiVersion() *def.HttpRequestDef

func GenReqDefForShowAuditlogPolicy

func GenReqDefForShowAuditlogPolicy() *def.HttpRequestDef
func GenReqDefForShowBackupDownloadLink() *def.HttpRequestDef

func GenReqDefForShowBackupPolicy

func GenReqDefForShowBackupPolicy() *def.HttpRequestDef

func GenReqDefForShowConnectionStatistics

func GenReqDefForShowConnectionStatistics() *def.HttpRequestDef

func GenReqDefForShowJobDetail added in v0.0.57

func GenReqDefForShowJobDetail() *def.HttpRequestDef

func GenReqDefForShowQuotas added in v0.0.46

func GenReqDefForShowQuotas() *def.HttpRequestDef

func GenReqDefForShowShardingBalancer

func GenReqDefForShowShardingBalancer() *def.HttpRequestDef

func GenReqDefForSwitchSlowlogDesensitization added in v0.0.57

func GenReqDefForSwitchSlowlogDesensitization() *def.HttpRequestDef

func GenReqDefForSwitchSsl

func GenReqDefForSwitchSsl() *def.HttpRequestDef

func GenReqDefForSwitchoverReplicaSet

func GenReqDefForSwitchoverReplicaSet() *def.HttpRequestDef

func GenReqDefForUpdateClientNetwork added in v0.0.53

func GenReqDefForUpdateClientNetwork() *def.HttpRequestDef

func GenReqDefForUpdateInstanceName

func GenReqDefForUpdateInstanceName() *def.HttpRequestDef

func GenReqDefForUpdateInstancePort

func GenReqDefForUpdateInstancePort() *def.HttpRequestDef

func GenReqDefForUpdateInstanceRemark added in v0.0.57

func GenReqDefForUpdateInstanceRemark() *def.HttpRequestDef

func GenReqDefForUpdateSecurityGroup

func GenReqDefForUpdateSecurityGroup() *def.HttpRequestDef

Types

type DdsClient

type DdsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewDdsClient

func NewDdsClient(hcClient *http_client.HcHttpClient) *DdsClient

func (*DdsClient) AddShardingNode

func (c *DdsClient) AddShardingNode(request *model.AddShardingNodeRequest) (*model.AddShardingNodeResponse, error)

扩容指定集群实例的节点数量。

func (*DdsClient) AttachEip

func (c *DdsClient) AttachEip(request *model.AttachEipRequest) (*model.AttachEipResponse, error)

为实例下的节点绑定弹性公网IP。

func (*DdsClient) AttachInternalIp

func (c *DdsClient) AttachInternalIp(request *model.AttachInternalIpRequest) (*model.AttachInternalIpResponse, error)

修改实例的内网地址

func (*DdsClient) BatchTagAction

func (c *DdsClient) BatchTagAction(request *model.BatchTagActionRequest) (*model.BatchTagActionResponse, error)

批量添加或删除指定实例的标签。

func (*DdsClient) CancelEip

func (c *DdsClient) CancelEip(request *model.CancelEipRequest) (*model.CancelEipResponse, error)

解绑实例下节点已经绑定的弹性公网IP。

func (*DdsClient) CheckPassword

func (c *DdsClient) CheckPassword(request *model.CheckPasswordRequest) (*model.CheckPasswordResponse, error)

检查数据库密码。

func (*DdsClient) CreateDatabaseRole

func (c *DdsClient) CreateDatabaseRole(request *model.CreateDatabaseRoleRequest) (*model.CreateDatabaseRoleResponse, error)

创建数据库角色。

func (*DdsClient) CreateDatabaseUser

func (c *DdsClient) CreateDatabaseUser(request *model.CreateDatabaseUserRequest) (*model.CreateDatabaseUserResponse, error)

创建数据库用户。

func (*DdsClient) CreateInstance

func (c *DdsClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error)

创建文档数据库实例,包括集群实例、副本集实例、以及单节点实例。

func (*DdsClient) CreateIp

func (c *DdsClient) CreateIp(request *model.CreateIpRequest) (*model.CreateIpResponse, error)

打开集群的Shard/Config IP开关

func (*DdsClient) CreateManualBackup

func (c *DdsClient) CreateManualBackup(request *model.CreateManualBackupRequest) (*model.CreateManualBackupResponse, error)

创建数据库实例的手动备份。

func (*DdsClient) DeleteDatabaseRole

func (c *DdsClient) DeleteDatabaseRole(request *model.DeleteDatabaseRoleRequest) (*model.DeleteDatabaseRoleResponse, error)

删除数据库角色。

func (*DdsClient) DeleteDatabaseUser

func (c *DdsClient) DeleteDatabaseUser(request *model.DeleteDatabaseUserRequest) (*model.DeleteDatabaseUserResponse, error)

删除数据库用户。

func (*DdsClient) DeleteInstance

func (c *DdsClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error)

删除数据库实例。

func (*DdsClient) DeleteManualBackup

func (c *DdsClient) DeleteManualBackup(request *model.DeleteManualBackupRequest) (*model.DeleteManualBackupResponse, error)

删除数据库实例的手动备份。

func (*DdsClient) DeleteSession

func (c *DdsClient) DeleteSession(request *model.DeleteSessionRequest) (*model.DeleteSessionResponse, error)

终结实例节点会话。

func (*DdsClient) DownloadErrorlog

func (c *DdsClient) DownloadErrorlog(request *model.DownloadErrorlogRequest) (*model.DownloadErrorlogResponse, error)

获取错误日志下载链接。

func (*DdsClient) DownloadSlowlog

func (c *DdsClient) DownloadSlowlog(request *model.DownloadSlowlogRequest) (*model.DownloadSlowlogResponse, error)

获取慢日志下载链接。

func (*DdsClient) ListApiVersion

func (c *DdsClient) ListApiVersion(request *model.ListApiVersionRequest) (*model.ListApiVersionResponse, error)

查询当前支持的API版本信息列表。

func (c *DdsClient) ListAuditlogLinks(request *model.ListAuditlogLinksRequest) (*model.ListAuditlogLinksResponse, error)

获取审计日志下载链接。

func (*DdsClient) ListAuditlogs

func (c *DdsClient) ListAuditlogs(request *model.ListAuditlogsRequest) (*model.ListAuditlogsResponse, error)

获取审计日志列表。

func (*DdsClient) ListAz2Migrate

func (c *DdsClient) ListAz2Migrate(request *model.ListAz2MigrateRequest) (*model.ListAz2MigrateResponse, error)

查询实例可迁移到的可用区。

func (*DdsClient) ListBackups

func (c *DdsClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error)

根据指定条件查询备份列表。

func (*DdsClient) ListDatabaseRoles

func (c *DdsClient) ListDatabaseRoles(request *model.ListDatabaseRolesRequest) (*model.ListDatabaseRolesResponse, error)

查询数据库角色列表。

func (*DdsClient) ListDatabaseUsers

func (c *DdsClient) ListDatabaseUsers(request *model.ListDatabaseUsersRequest) (*model.ListDatabaseUsersResponse, error)

查询数据库用户列表。

func (*DdsClient) ListDatastoreVersions

查询指定实例类型的数据库版本信息。

func (*DdsClient) ListErrorLogs

func (c *DdsClient) ListErrorLogs(request *model.ListErrorLogsRequest) (*model.ListErrorLogsResponse, error)

查询数据库错误信息。

func (*DdsClient) ListFlavorInfos added in v0.0.57

func (c *DdsClient) ListFlavorInfos(request *model.ListFlavorInfosRequest) (*model.ListFlavorInfosResponse, error)

查询指定条件下的实例规格信息。

func (*DdsClient) ListFlavors

func (c *DdsClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error)

查询指定条件下的所有实例规格信息。

func (*DdsClient) ListInstanceTags

func (c *DdsClient) ListInstanceTags(request *model.ListInstanceTagsRequest) (*model.ListInstanceTagsResponse, error)

查询指定实例的标签信息。

func (*DdsClient) ListInstances

func (c *DdsClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error)

根据指定条件查询实例列表。

func (*DdsClient) ListInstancesByTags

根据标签查询指定的数据库实例。

func (*DdsClient) ListProjectTags

func (c *DdsClient) ListProjectTags(request *model.ListProjectTagsRequest) (*model.ListProjectTagsResponse, error)

查询指定project ID下实例的所有标签集合。

func (*DdsClient) ListRestoreCollections

获取可恢复的数据库集合列表。

func (*DdsClient) ListRestoreDatabases

获取可恢复的数据库列表。

func (*DdsClient) ListRestoreTimes

func (c *DdsClient) ListRestoreTimes(request *model.ListRestoreTimesRequest) (*model.ListRestoreTimesResponse, error)

查询实例的可恢复时间段。

func (*DdsClient) ListSessions

func (c *DdsClient) ListSessions(request *model.ListSessionsRequest) (*model.ListSessionsResponse, error)

查询实例节点会话。

func (*DdsClient) ListSlowLogs

func (c *DdsClient) ListSlowLogs(request *model.ListSlowLogsRequest) (*model.ListSlowLogsResponse, error)

查询数据库慢日志信息。

func (*DdsClient) ListStorageType

func (c *DdsClient) ListStorageType(request *model.ListStorageTypeRequest) (*model.ListStorageTypeResponse, error)

查询当前区域下的数据库磁盘类型。

func (*DdsClient) MigrateAz

func (c *DdsClient) MigrateAz(request *model.MigrateAzRequest) (*model.MigrateAzResponse, error)

实例可用区迁移。

func (*DdsClient) ResetPassword

func (c *DdsClient) ResetPassword(request *model.ResetPasswordRequest) (*model.ResetPasswordResponse, error)

修改数据库用户密码。

func (*DdsClient) ResizeInstance

func (c *DdsClient) ResizeInstance(request *model.ResizeInstanceRequest) (*model.ResizeInstanceResponse, error)

变更实例的规格。

func (*DdsClient) ResizeInstanceVolume

扩容实例相关的存储容量大小。

func (*DdsClient) RestartInstance

func (c *DdsClient) RestartInstance(request *model.RestartInstanceRequest) (*model.RestartInstanceResponse, error)

重启实例的数据库服务。

func (*DdsClient) RestoreInstance

func (c *DdsClient) RestoreInstance(request *model.RestoreInstanceRequest) (*model.RestoreInstanceResponse, error)

恢复到当前实例。

func (*DdsClient) RestoreInstanceFromCollection

库表级时间点恢复。

func (*DdsClient) RestoreNewInstance

func (c *DdsClient) RestoreNewInstance(request *model.RestoreNewInstanceRequest) (*model.RestoreNewInstanceResponse, error)

根据备份恢复新实例。

func (*DdsClient) SetAuditlogPolicy

func (c *DdsClient) SetAuditlogPolicy(request *model.SetAuditlogPolicyRequest) (*model.SetAuditlogPolicyResponse, error)

设置审计日志策略。

func (*DdsClient) SetBackupPolicy

func (c *DdsClient) SetBackupPolicy(request *model.SetBackupPolicyRequest) (*model.SetBackupPolicyResponse, error)

设置自动备份策略。

func (*DdsClient) SetBalancerSwitch

func (c *DdsClient) SetBalancerSwitch(request *model.SetBalancerSwitchRequest) (*model.SetBalancerSwitchResponse, error)

设置集群均衡开关。

func (*DdsClient) SetBalancerWindow

func (c *DdsClient) SetBalancerWindow(request *model.SetBalancerWindowRequest) (*model.SetBalancerWindowResponse, error)

设置集群均衡活动时间窗。

func (*DdsClient) ShowApiVersion

func (c *DdsClient) ShowApiVersion(request *model.ShowApiVersionRequest) (*model.ShowApiVersionResponse, error)

查询指定API版本信息。

func (*DdsClient) ShowAuditlogPolicy

func (c *DdsClient) ShowAuditlogPolicy(request *model.ShowAuditlogPolicyRequest) (*model.ShowAuditlogPolicyResponse, error)

查询审计日志策略。

获取备份下载链接。

func (*DdsClient) ShowBackupPolicy

func (c *DdsClient) ShowBackupPolicy(request *model.ShowBackupPolicyRequest) (*model.ShowBackupPolicyResponse, error)

查询自动备份策略。

func (*DdsClient) ShowConnectionStatistics

查询客户端IP访问至DDS数据库实例的连接数统计信息。

func (*DdsClient) ShowJobDetail added in v0.0.57

func (c *DdsClient) ShowJobDetail(request *model.ShowJobDetailRequest) (*model.ShowJobDetailResponse, error)

获取DDS任务中心指定ID的任务信息。

func (*DdsClient) ShowQuotas added in v0.0.46

func (c *DdsClient) ShowQuotas(request *model.ShowQuotasRequest) (*model.ShowQuotasResponse, error)

查询单租户在DDS服务下的资源配额,包括单节点实例配额、副本集实例配额、集群实例配额等。

func (*DdsClient) ShowShardingBalancer

查询集群均衡设置。

func (*DdsClient) SwitchSlowlogDesensitization added in v0.0.57

设置实例的慢日志明文开关。

func (*DdsClient) SwitchSsl

func (c *DdsClient) SwitchSsl(request *model.SwitchSslRequest) (*model.SwitchSslResponse, error)

切换实例的SSL开关

func (*DdsClient) SwitchoverReplicaSet

切换副本集实例下的主备节点

func (*DdsClient) UpdateClientNetwork added in v0.0.53

副本集跨网段访问配置。

func (*DdsClient) UpdateInstanceName

func (c *DdsClient) UpdateInstanceName(request *model.UpdateInstanceNameRequest) (*model.UpdateInstanceNameResponse, error)

修改实例名称

func (*DdsClient) UpdateInstancePort

func (c *DdsClient) UpdateInstancePort(request *model.UpdateInstancePortRequest) (*model.UpdateInstancePortResponse, error)

修改数据库实例的端口。

func (*DdsClient) UpdateInstanceRemark added in v0.0.57

修改实例备注。

func (*DdsClient) UpdateSecurityGroup

变更实例关联的安全组

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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