v2

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 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 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 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)

该接口用于创建集群

func (*DwsClient) CreateSnapshot

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

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

func (*DwsClient) DeleteCluster

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

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

func (*DwsClient) DeleteSnapshot

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

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

func (*DwsClient) ListClusterDetails

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

该接口用于查询集群详情

func (*DwsClient) ListClusters

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

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

func (*DwsClient) ListNodeTypes

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

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

func (*DwsClient) ListSnapshotDetails

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

func (*DwsClient) ListSnapshots

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

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

func (*DwsClient) ResetPassword

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

func (*DwsClient) ResizeCluster

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

此接口用于扩容集群调整集群大小。

func (*DwsClient) RestartCluster

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

此接口用于重启集群。

func (*DwsClient) RestoreCluster

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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