v2

package
v0.0.94 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DwsClientBuilder

func DwsClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForCreateCluster

func GenReqDefForCreateCluster() *def.HttpRequestDef

func GenReqDefForCreateSnapshot

func GenReqDefForCreateSnapshot() *def.HttpRequestDef

func GenReqDefForDeleteCluster

func GenReqDefForDeleteCluster() *def.HttpRequestDef

func GenReqDefForDeleteSnapshot

func GenReqDefForDeleteSnapshot() *def.HttpRequestDef

func GenReqDefForListClusterDetails

func GenReqDefForListClusterDetails() *def.HttpRequestDef

func GenReqDefForListClusters

func GenReqDefForListClusters() *def.HttpRequestDef

func GenReqDefForListNodeTypes

func GenReqDefForListNodeTypes() *def.HttpRequestDef

func GenReqDefForListSnapshotDetails

func GenReqDefForListSnapshotDetails() *def.HttpRequestDef

func GenReqDefForListSnapshots

func GenReqDefForListSnapshots() *def.HttpRequestDef

func GenReqDefForResetPassword

func GenReqDefForResetPassword() *def.HttpRequestDef

func GenReqDefForResizeCluster

func GenReqDefForResizeCluster() *def.HttpRequestDef

func GenReqDefForRestartCluster

func GenReqDefForRestartCluster() *def.HttpRequestDef

func GenReqDefForRestoreCluster

func GenReqDefForRestoreCluster() *def.HttpRequestDef

Types

type CreateClusterInvoker added in v0.0.90

type CreateClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateClusterInvoker) Invoke added in v0.0.90

type CreateSnapshotInvoker added in v0.0.90

type CreateSnapshotInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateSnapshotInvoker) Invoke added in v0.0.90

type DeleteClusterInvoker added in v0.0.90

type DeleteClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteClusterInvoker) Invoke added in v0.0.90

type DeleteSnapshotInvoker added in v0.0.90

type DeleteSnapshotInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteSnapshotInvoker) Invoke added in v0.0.90

type DwsClient

type DwsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewDwsClient

func NewDwsClient(hcClient *http_client.HcHttpClient) *DwsClient

func (*DwsClient) CreateCluster

func (c *DwsClient) CreateCluster(request *model.CreateClusterRequest) (*model.CreateClusterResponse, error)

CreateCluster 创建集群

该接口用于创建集群。 集群必须要运行在VPC之内,创建集群前,您需要先创建VPC,并获取VPC和子网的id。 该接口为异步接口,创建集群需要10~15分钟。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) CreateClusterInvoker added in v0.0.90

func (c *DwsClient) CreateClusterInvoker(request *model.CreateClusterRequest) *CreateClusterInvoker

CreateClusterInvoker 创建集群

func (*DwsClient) CreateSnapshot

func (c *DwsClient) CreateSnapshot(request *model.CreateSnapshotRequest) (*model.CreateSnapshotResponse, error)

CreateSnapshot 创建快照

该接口用于为指定集群创建快照。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) CreateSnapshotInvoker added in v0.0.90

func (c *DwsClient) CreateSnapshotInvoker(request *model.CreateSnapshotRequest) *CreateSnapshotInvoker

CreateSnapshotInvoker 创建快照

func (*DwsClient) DeleteCluster

func (c *DwsClient) DeleteCluster(request *model.DeleteClusterRequest) (*model.DeleteClusterResponse, error)

DeleteCluster 删除集群

此接口用于删除集群。集群删除后将释放此集群的所有资源,包括客户数据。为了安全起见,请在删除集群前为这个集群创建快照。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) DeleteClusterInvoker added in v0.0.90

func (c *DwsClient) DeleteClusterInvoker(request *model.DeleteClusterRequest) *DeleteClusterInvoker

DeleteClusterInvoker 删除集群

func (*DwsClient) DeleteSnapshot

func (c *DwsClient) DeleteSnapshot(request *model.DeleteSnapshotRequest) (*model.DeleteSnapshotResponse, error)

DeleteSnapshot 删除快照

该接口用于删除一个指定手动快照。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) DeleteSnapshotInvoker added in v0.0.90

func (c *DwsClient) DeleteSnapshotInvoker(request *model.DeleteSnapshotRequest) *DeleteSnapshotInvoker

DeleteSnapshotInvoker 删除快照

func (*DwsClient) ListClusterDetails

func (c *DwsClient) ListClusterDetails(request *model.ListClusterDetailsRequest) (*model.ListClusterDetailsResponse, error)

ListClusterDetails 查询集群详情

该接口用于查询集群详情。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListClusterDetailsInvoker added in v0.0.90

func (c *DwsClient) ListClusterDetailsInvoker(request *model.ListClusterDetailsRequest) *ListClusterDetailsInvoker

ListClusterDetailsInvoker 查询集群详情

func (*DwsClient) ListClusters

func (c *DwsClient) ListClusters(request *model.ListClustersRequest) (*model.ListClustersResponse, error)

ListClusters 查询集群列表

该接口用于查询并显示集群列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListClustersInvoker added in v0.0.90

func (c *DwsClient) ListClustersInvoker(request *model.ListClustersRequest) *ListClustersInvoker

ListClustersInvoker 查询集群列表

func (*DwsClient) ListNodeTypes

func (c *DwsClient) ListNodeTypes(request *model.ListNodeTypesRequest) (*model.ListNodeTypesResponse, error)

ListNodeTypes 查询节点类型

该接口用于查询所有GaussDB(DWS)服务支持的节点类型。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListNodeTypesInvoker added in v0.0.90

func (c *DwsClient) ListNodeTypesInvoker(request *model.ListNodeTypesRequest) *ListNodeTypesInvoker

ListNodeTypesInvoker 查询节点类型

func (*DwsClient) ListSnapshotDetails

ListSnapshotDetails 查询快照详情

该接口用于使用快照ID查询快照详情。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListSnapshotDetailsInvoker added in v0.0.90

func (c *DwsClient) ListSnapshotDetailsInvoker(request *model.ListSnapshotDetailsRequest) *ListSnapshotDetailsInvoker

ListSnapshotDetailsInvoker 查询快照详情

func (*DwsClient) ListSnapshots

func (c *DwsClient) ListSnapshots(request *model.ListSnapshotsRequest) (*model.ListSnapshotsResponse, error)

ListSnapshots 查询快照列表

该接口用于查询快照列表。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListSnapshotsInvoker added in v0.0.90

func (c *DwsClient) ListSnapshotsInvoker(request *model.ListSnapshotsRequest) *ListSnapshotsInvoker

ListSnapshotsInvoker 查询快照列表

func (*DwsClient) ResetPassword

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

ResetPassword 重置密码

此接口用于重置集群管理员密码。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ResetPasswordInvoker added in v0.0.90

func (c *DwsClient) ResetPasswordInvoker(request *model.ResetPasswordRequest) *ResetPasswordInvoker

ResetPasswordInvoker 重置密码

func (*DwsClient) ResizeCluster

func (c *DwsClient) ResizeCluster(request *model.ResizeClusterRequest) (*model.ResizeClusterResponse, error)

ResizeCluster 扩容集群调整集群大小

此接口用于扩容集群。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ResizeClusterInvoker added in v0.0.90

func (c *DwsClient) ResizeClusterInvoker(request *model.ResizeClusterRequest) *ResizeClusterInvoker

ResizeClusterInvoker 扩容集群调整集群大小

func (*DwsClient) RestartCluster

func (c *DwsClient) RestartCluster(request *model.RestartClusterRequest) (*model.RestartClusterResponse, error)

RestartCluster 重启集群

此接口用于重启集群。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) RestartClusterInvoker added in v0.0.90

func (c *DwsClient) RestartClusterInvoker(request *model.RestartClusterRequest) *RestartClusterInvoker

RestartClusterInvoker 重启集群

func (*DwsClient) RestoreCluster

func (c *DwsClient) RestoreCluster(request *model.RestoreClusterRequest) (*model.RestoreClusterResponse, error)

RestoreCluster 恢复集群

该接口用于使用快照恢复集群。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) RestoreClusterInvoker added in v0.0.90

func (c *DwsClient) RestoreClusterInvoker(request *model.RestoreClusterRequest) *RestoreClusterInvoker

RestoreClusterInvoker 恢复集群

type ListClusterDetailsInvoker added in v0.0.90

type ListClusterDetailsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListClusterDetailsInvoker) Invoke added in v0.0.90

type ListClustersInvoker added in v0.0.90

type ListClustersInvoker struct {
	*invoker.BaseInvoker
}

func (*ListClustersInvoker) Invoke added in v0.0.90

type ListNodeTypesInvoker added in v0.0.90

type ListNodeTypesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListNodeTypesInvoker) Invoke added in v0.0.90

type ListSnapshotDetailsInvoker added in v0.0.90

type ListSnapshotDetailsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListSnapshotDetailsInvoker) Invoke added in v0.0.90

type ListSnapshotsInvoker added in v0.0.90

type ListSnapshotsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListSnapshotsInvoker) Invoke added in v0.0.90

type ResetPasswordInvoker added in v0.0.90

type ResetPasswordInvoker struct {
	*invoker.BaseInvoker
}

func (*ResetPasswordInvoker) Invoke added in v0.0.90

type ResizeClusterInvoker added in v0.0.90

type ResizeClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*ResizeClusterInvoker) Invoke added in v0.0.90

type RestartClusterInvoker added in v0.0.90

type RestartClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*RestartClusterInvoker) Invoke added in v0.0.90

type RestoreClusterInvoker added in v0.0.90

type RestoreClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*RestoreClusterInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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