v1

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DdmClientBuilder

func DdmClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForCreateDatabase

func GenReqDefForCreateDatabase() *def.HttpRequestDef

func GenReqDefForCreateInstance

func GenReqDefForCreateInstance() *def.HttpRequestDef

func GenReqDefForCreateUsers

func GenReqDefForCreateUsers() *def.HttpRequestDef

func GenReqDefForDeleteDatabase

func GenReqDefForDeleteDatabase() *def.HttpRequestDef

func GenReqDefForDeleteInstance

func GenReqDefForDeleteInstance() *def.HttpRequestDef

func GenReqDefForDeleteUser

func GenReqDefForDeleteUser() *def.HttpRequestDef

func GenReqDefForExpandInstanceNodes

func GenReqDefForExpandInstanceNodes() *def.HttpRequestDef

func GenReqDefForListAvailableRdsList

func GenReqDefForListAvailableRdsList() *def.HttpRequestDef

func GenReqDefForListDatabases

func GenReqDefForListDatabases() *def.HttpRequestDef

func GenReqDefForListEngines

func GenReqDefForListEngines() *def.HttpRequestDef

func GenReqDefForListFlavors

func GenReqDefForListFlavors() *def.HttpRequestDef

func GenReqDefForListInstances

func GenReqDefForListInstances() *def.HttpRequestDef

func GenReqDefForListNodes

func GenReqDefForListNodes() *def.HttpRequestDef

func GenReqDefForListReadWriteRatio

func GenReqDefForListReadWriteRatio() *def.HttpRequestDef

func GenReqDefForListSlowLog

func GenReqDefForListSlowLog() *def.HttpRequestDef

func GenReqDefForListUsers

func GenReqDefForListUsers() *def.HttpRequestDef

func GenReqDefForRebuildConfig

func GenReqDefForRebuildConfig() *def.HttpRequestDef

func GenReqDefForResetUserPassword

func GenReqDefForResetUserPassword() *def.HttpRequestDef

func GenReqDefForRestartInstance

func GenReqDefForRestartInstance() *def.HttpRequestDef

func GenReqDefForShowDatabase

func GenReqDefForShowDatabase() *def.HttpRequestDef

func GenReqDefForShowInstance

func GenReqDefForShowInstance() *def.HttpRequestDef

func GenReqDefForShowInstanceParam

func GenReqDefForShowInstanceParam() *def.HttpRequestDef

func GenReqDefForShowNode

func GenReqDefForShowNode() *def.HttpRequestDef

func GenReqDefForShrinkInstanceNodes

func GenReqDefForShrinkInstanceNodes() *def.HttpRequestDef

func GenReqDefForUpdateDatabaseInfo

func GenReqDefForUpdateDatabaseInfo() *def.HttpRequestDef

func GenReqDefForUpdateInstanceName

func GenReqDefForUpdateInstanceName() *def.HttpRequestDef

func GenReqDefForUpdateInstanceParam

func GenReqDefForUpdateInstanceParam() *def.HttpRequestDef

func GenReqDefForUpdateInstanceSecurityGroup

func GenReqDefForUpdateInstanceSecurityGroup() *def.HttpRequestDef

func GenReqDefForUpdateReadAndWriteStrategy

func GenReqDefForUpdateReadAndWriteStrategy() *def.HttpRequestDef

func GenReqDefForUpdateUser

func GenReqDefForUpdateUser() *def.HttpRequestDef

Types

type DdmClient

type DdmClient struct {
	HcClient *http_client.HcHttpClient
}

func NewDdmClient

func NewDdmClient(hcClient *http_client.HcHttpClient) *DdmClient

func (*DdmClient) CreateDatabase

func (c *DdmClient) CreateDatabase(request *model.CreateDatabaseRequest) (*model.CreateDatabaseResponse, error)

创建DDM逻辑库。

func (*DdmClient) CreateInstance

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

创建一个DDM实例。 DDM运行于虚拟私有云。申请DDM实例前,需保证有可用的虚拟私有云,并且已配置好子网与安全组。

func (*DdmClient) CreateUsers

func (c *DdmClient) CreateUsers(request *model.CreateUsersRequest) (*model.CreateUsersResponse, error)

DDM帐号用于连接和管理逻辑库。一个DDM实例最多能创建100个DDM帐号,一个DDM帐号可以关联多个逻辑库。

func (*DdmClient) DeleteDatabase

func (c *DdmClient) DeleteDatabase(request *model.DeleteDatabaseRequest) (*model.DeleteDatabaseResponse, error)

删除指定的逻辑库,释放该逻辑库的所有资源。

func (*DdmClient) DeleteInstance

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

删除指定的DDM实例,释放该实例的所有资源。

func (*DdmClient) DeleteUser

func (c *DdmClient) DeleteUser(request *model.DeleteUserRequest) (*model.DeleteUserResponse, error)

删除指定的DDM实例帐号,如果帐号关联了逻辑库,则对应的关联关系也会删除。

func (*DdmClient) ExpandInstanceNodes

对指定的DDM实例的节点个数进行扩容。

func (*DdmClient) ListAvailableRdsList

查询创建逻辑库可选取的数据库实例列表。

func (*DdmClient) ListDatabases

func (c *DdmClient) ListDatabases(request *model.ListDatabasesRequest) (*model.ListDatabasesResponse, error)

查询DDM逻辑库列表。

func (*DdmClient) ListEngines

func (c *DdmClient) ListEngines(request *model.ListEnginesRequest) (*model.ListEnginesResponse, error)

查询DDM引擎信息详情。

func (*DdmClient) ListFlavors

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

查询DDM可用区规格信息详情。

func (*DdmClient) ListInstances

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

查询DDM实例列表。

func (*DdmClient) ListNodes

func (c *DdmClient) ListNodes(request *model.ListNodesRequest) (*model.ListNodesResponse, error)

查询DDM实例节点列表。

func (*DdmClient) ListReadWriteRatio

func (c *DdmClient) ListReadWriteRatio(request *model.ListReadWriteRatioRequest) (*model.ListReadWriteRatioResponse, error)

查询指定时间段内在DDM实例的读写次数。

func (*DdmClient) ListSlowLog

func (c *DdmClient) ListSlowLog(request *model.ListSlowLogRequest) (*model.ListSlowLogResponse, error)

查询指定时间段内在DDM实例上执行过的慢sql相关信息。

func (*DdmClient) ListUsers

func (c *DdmClient) ListUsers(request *model.ListUsersRequest) (*model.ListUsersResponse, error)

查询DDM帐号列表。

func (*DdmClient) RebuildConfig

func (c *DdmClient) RebuildConfig(request *model.RebuildConfigRequest) (*model.RebuildConfigResponse, error)

DDM实例跨region容灾场景下,针对目标DDM实例实现表数据reload,使数据同步。

func (*DdmClient) ResetUserPassword

func (c *DdmClient) ResetUserPassword(request *model.ResetUserPasswordRequest) (*model.ResetUserPasswordResponse, error)

重置现有DDM帐号的密码。

func (*DdmClient) RestartInstance

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

重启指定的DDM实例。

func (*DdmClient) ShowDatabase

func (c *DdmClient) ShowDatabase(request *model.ShowDatabaseRequest) (*model.ShowDatabaseResponse, error)

查询指定逻辑库的详细信息。

func (*DdmClient) ShowInstance

func (c *DdmClient) ShowInstance(request *model.ShowInstanceRequest) (*model.ShowInstanceResponse, error)

查询指定DDM实例的详细信息。

func (*DdmClient) ShowInstanceParam

func (c *DdmClient) ShowInstanceParam(request *model.ShowInstanceParamRequest) (*model.ShowInstanceParamResponse, error)

查询DDM指定实例的参数详情。

func (*DdmClient) ShowNode

func (c *DdmClient) ShowNode(request *model.ShowNodeRequest) (*model.ShowNodeResponse, error)

查询DDM实例节点详情。

func (*DdmClient) ShrinkInstanceNodes

对指定的DDM实例的节点个数进行缩容。

func (*DdmClient) UpdateDatabaseInfo

func (c *DdmClient) UpdateDatabaseInfo(request *model.UpdateDatabaseInfoRequest) (*model.UpdateDatabaseInfoResponse, error)

同步当前DDM实例已关的所有数据库实例配置信息。

func (*DdmClient) UpdateInstanceName

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

修改DDM实例名称。

func (*DdmClient) UpdateInstanceParam

修改DDM实例参数。

func (*DdmClient) UpdateInstanceSecurityGroup

修改DDM实例安全组。

func (*DdmClient) UpdateReadAndWriteStrategy

修改DDM已关联的数据库实例的读策略。

func (*DdmClient) UpdateUser

func (c *DdmClient) UpdateUser(request *model.UpdateUserRequest) (*model.UpdateUserResponse, error)

修改现有DDM帐号的权限或者与逻辑库的管理关系。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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