Documentation ¶
Index ¶
- func DdsClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForAddShardingNode() *def.HttpRequestDef
- func GenReqDefForAttachEip() *def.HttpRequestDef
- func GenReqDefForAttachInternalIp() *def.HttpRequestDef
- func GenReqDefForBatchTagAction() *def.HttpRequestDef
- func GenReqDefForCancelEip() *def.HttpRequestDef
- func GenReqDefForCreateDatabaseRole() *def.HttpRequestDef
- func GenReqDefForCreateDatabaseUser() *def.HttpRequestDef
- func GenReqDefForCreateInstance() *def.HttpRequestDef
- func GenReqDefForCreateManualBackup() *def.HttpRequestDef
- func GenReqDefForDeleteInstance() *def.HttpRequestDef
- func GenReqDefForDeleteManualBackup() *def.HttpRequestDef
- func GenReqDefForDownloadSlowlog() *def.HttpRequestDef
- func GenReqDefForListBackups() *def.HttpRequestDef
- func GenReqDefForListDatabaseRoles() *def.HttpRequestDef
- func GenReqDefForListDatabaseUsers() *def.HttpRequestDef
- func GenReqDefForListDatastoreVersions() *def.HttpRequestDef
- func GenReqDefForListFlavors() *def.HttpRequestDef
- func GenReqDefForListInstanceTags() *def.HttpRequestDef
- func GenReqDefForListInstances() *def.HttpRequestDef
- func GenReqDefForListInstancesByTags() *def.HttpRequestDef
- func GenReqDefForListProjectTags() *def.HttpRequestDef
- func GenReqDefForListSlowLogs() *def.HttpRequestDef
- func GenReqDefForListStorageType() *def.HttpRequestDef
- func GenReqDefForResetPassword() *def.HttpRequestDef
- func GenReqDefForResizeInstance() *def.HttpRequestDef
- func GenReqDefForResizeInstanceVolume() *def.HttpRequestDef
- func GenReqDefForRestartInstance() *def.HttpRequestDef
- func GenReqDefForSetBackupPolicy() *def.HttpRequestDef
- func GenReqDefForShowBackupDownloadLink() *def.HttpRequestDef
- func GenReqDefForShowBackupPolicy() *def.HttpRequestDef
- func GenReqDefForSwitchSsl() *def.HttpRequestDef
- func GenReqDefForSwitchoverReplicaSet() *def.HttpRequestDef
- func GenReqDefForUpdateInstanceName() *def.HttpRequestDef
- func GenReqDefForUpdateInstancePort() *def.HttpRequestDef
- func GenReqDefForUpdateSecurityGroup() *def.HttpRequestDef
- type DdsClient
- func (c *DdsClient) AddShardingNode(request *model.AddShardingNodeRequest) (*model.AddShardingNodeResponse, error)
- func (c *DdsClient) AttachEip(request *model.AttachEipRequest) (*model.AttachEipResponse, error)
- func (c *DdsClient) AttachInternalIp(request *model.AttachInternalIpRequest) (*model.AttachInternalIpResponse, error)
- func (c *DdsClient) BatchTagAction(request *model.BatchTagActionRequest) (*model.BatchTagActionResponse, error)
- func (c *DdsClient) CancelEip(request *model.CancelEipRequest) (*model.CancelEipResponse, error)
- func (c *DdsClient) CreateDatabaseRole(request *model.CreateDatabaseRoleRequest) (*model.CreateDatabaseRoleResponse, error)
- func (c *DdsClient) CreateDatabaseUser(request *model.CreateDatabaseUserRequest) (*model.CreateDatabaseUserResponse, error)
- func (c *DdsClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error)
- func (c *DdsClient) CreateManualBackup(request *model.CreateManualBackupRequest) (*model.CreateManualBackupResponse, error)
- func (c *DdsClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error)
- func (c *DdsClient) DeleteManualBackup(request *model.DeleteManualBackupRequest) (*model.DeleteManualBackupResponse, error)
- func (c *DdsClient) DownloadSlowlog(request *model.DownloadSlowlogRequest) (*model.DownloadSlowlogResponse, error)
- func (c *DdsClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error)
- func (c *DdsClient) ListDatabaseRoles(request *model.ListDatabaseRolesRequest) (*model.ListDatabaseRolesResponse, error)
- func (c *DdsClient) ListDatabaseUsers(request *model.ListDatabaseUsersRequest) (*model.ListDatabaseUsersResponse, error)
- func (c *DdsClient) ListDatastoreVersions(request *model.ListDatastoreVersionsRequest) (*model.ListDatastoreVersionsResponse, error)
- func (c *DdsClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error)
- func (c *DdsClient) ListInstanceTags(request *model.ListInstanceTagsRequest) (*model.ListInstanceTagsResponse, error)
- func (c *DdsClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error)
- func (c *DdsClient) ListInstancesByTags(request *model.ListInstancesByTagsRequest) (*model.ListInstancesByTagsResponse, error)
- func (c *DdsClient) ListProjectTags(request *model.ListProjectTagsRequest) (*model.ListProjectTagsResponse, error)
- func (c *DdsClient) ListSlowLogs(request *model.ListSlowLogsRequest) (*model.ListSlowLogsResponse, error)
- func (c *DdsClient) ListStorageType(request *model.ListStorageTypeRequest) (*model.ListStorageTypeResponse, error)
- func (c *DdsClient) ResetPassword(request *model.ResetPasswordRequest) (*model.ResetPasswordResponse, error)
- func (c *DdsClient) ResizeInstance(request *model.ResizeInstanceRequest) (*model.ResizeInstanceResponse, error)
- func (c *DdsClient) ResizeInstanceVolume(request *model.ResizeInstanceVolumeRequest) (*model.ResizeInstanceVolumeResponse, error)
- func (c *DdsClient) RestartInstance(request *model.RestartInstanceRequest) (*model.RestartInstanceResponse, error)
- func (c *DdsClient) SetBackupPolicy(request *model.SetBackupPolicyRequest) (*model.SetBackupPolicyResponse, error)
- func (c *DdsClient) ShowBackupDownloadLink(request *model.ShowBackupDownloadLinkRequest) (*model.ShowBackupDownloadLinkResponse, error)
- func (c *DdsClient) ShowBackupPolicy(request *model.ShowBackupPolicyRequest) (*model.ShowBackupPolicyResponse, error)
- func (c *DdsClient) SwitchSsl(request *model.SwitchSslRequest) (*model.SwitchSslResponse, error)
- func (c *DdsClient) SwitchoverReplicaSet(request *model.SwitchoverReplicaSetRequest) (*model.SwitchoverReplicaSetResponse, error)
- func (c *DdsClient) UpdateInstanceName(request *model.UpdateInstanceNameRequest) (*model.UpdateInstanceNameResponse, error)
- func (c *DdsClient) UpdateInstancePort(request *model.UpdateInstancePortRequest) (*model.UpdateInstancePortResponse, error)
- func (c *DdsClient) UpdateSecurityGroup(request *model.UpdateSecurityGroupRequest) (*model.UpdateSecurityGroupResponse, error)
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 GenReqDefForCreateDatabaseRole ¶
func GenReqDefForCreateDatabaseRole() *def.HttpRequestDef
func GenReqDefForCreateDatabaseUser ¶
func GenReqDefForCreateDatabaseUser() *def.HttpRequestDef
func GenReqDefForCreateInstance ¶
func GenReqDefForCreateInstance() *def.HttpRequestDef
func GenReqDefForCreateManualBackup ¶
func GenReqDefForCreateManualBackup() *def.HttpRequestDef
func GenReqDefForDeleteInstance ¶
func GenReqDefForDeleteInstance() *def.HttpRequestDef
func GenReqDefForDeleteManualBackup ¶
func GenReqDefForDeleteManualBackup() *def.HttpRequestDef
func GenReqDefForDownloadSlowlog ¶
func GenReqDefForDownloadSlowlog() *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 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 GenReqDefForListSlowLogs ¶
func GenReqDefForListSlowLogs() *def.HttpRequestDef
func GenReqDefForListStorageType ¶
func GenReqDefForListStorageType() *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 GenReqDefForSetBackupPolicy ¶
func GenReqDefForSetBackupPolicy() *def.HttpRequestDef
func GenReqDefForShowBackupDownloadLink ¶
func GenReqDefForShowBackupDownloadLink() *def.HttpRequestDef
func GenReqDefForShowBackupPolicy ¶
func GenReqDefForShowBackupPolicy() *def.HttpRequestDef
func GenReqDefForSwitchSsl ¶
func GenReqDefForSwitchSsl() *def.HttpRequestDef
func GenReqDefForSwitchoverReplicaSet ¶
func GenReqDefForSwitchoverReplicaSet() *def.HttpRequestDef
func GenReqDefForUpdateInstanceName ¶
func GenReqDefForUpdateInstanceName() *def.HttpRequestDef
func GenReqDefForUpdateInstancePort ¶
func GenReqDefForUpdateInstancePort() *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)
修改实例内网IP
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) 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) CreateManualBackup ¶
func (c *DdsClient) CreateManualBackup(request *model.CreateManualBackupRequest) (*model.CreateManualBackupResponse, 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) DownloadSlowlog ¶
func (c *DdsClient) DownloadSlowlog(request *model.DownloadSlowlogRequest) (*model.DownloadSlowlogResponse, 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 (c *DdsClient) ListDatastoreVersions(request *model.ListDatastoreVersionsRequest) (*model.ListDatastoreVersionsResponse, 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 (c *DdsClient) ListInstancesByTags(request *model.ListInstancesByTagsRequest) (*model.ListInstancesByTagsResponse, error)
根据标签查询指定的数据库实例。
func (*DdsClient) ListProjectTags ¶
func (c *DdsClient) ListProjectTags(request *model.ListProjectTagsRequest) (*model.ListProjectTagsResponse, error)
查询指定project ID下实例的所有标签集合。
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) 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 (c *DdsClient) ResizeInstanceVolume(request *model.ResizeInstanceVolumeRequest) (*model.ResizeInstanceVolumeResponse, error)
扩容实例相关的存储容量大小。
func (*DdsClient) RestartInstance ¶
func (c *DdsClient) RestartInstance(request *model.RestartInstanceRequest) (*model.RestartInstanceResponse, error)
重启实例的数据库服务。
func (*DdsClient) SetBackupPolicy ¶
func (c *DdsClient) SetBackupPolicy(request *model.SetBackupPolicyRequest) (*model.SetBackupPolicyResponse, error)
设置自动备份策略。
func (*DdsClient) ShowBackupDownloadLink ¶
func (c *DdsClient) ShowBackupDownloadLink(request *model.ShowBackupDownloadLinkRequest) (*model.ShowBackupDownloadLinkResponse, error)
获取备份下载链接。
func (*DdsClient) ShowBackupPolicy ¶
func (c *DdsClient) ShowBackupPolicy(request *model.ShowBackupPolicyRequest) (*model.ShowBackupPolicyResponse, error)
查询自动备份策略。
func (*DdsClient) SwitchSsl ¶
func (c *DdsClient) SwitchSsl(request *model.SwitchSslRequest) (*model.SwitchSslResponse, error)
切换mongodb实例的SSL开关
func (*DdsClient) SwitchoverReplicaSet ¶
func (c *DdsClient) SwitchoverReplicaSet(request *model.SwitchoverReplicaSetRequest) (*model.SwitchoverReplicaSetResponse, error)
副本集主备倒换
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) UpdateSecurityGroup ¶
func (c *DdsClient) UpdateSecurityGroup(request *model.UpdateSecurityGroupRequest) (*model.UpdateSecurityGroupResponse, error)
修改实例的安全组
Click to show internal directories.
Click to hide internal directories.