Documentation ¶
Index ¶
- func DwsClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForCreateCluster() *def.HttpRequestDef
- func GenReqDefForCreateSnapshot() *def.HttpRequestDef
- func GenReqDefForDeleteCluster() *def.HttpRequestDef
- func GenReqDefForDeleteSnapshot() *def.HttpRequestDef
- func GenReqDefForListClusterDetails() *def.HttpRequestDef
- func GenReqDefForListClusters() *def.HttpRequestDef
- func GenReqDefForListNodeTypes() *def.HttpRequestDef
- func GenReqDefForListSnapshotDetails() *def.HttpRequestDef
- func GenReqDefForListSnapshots() *def.HttpRequestDef
- func GenReqDefForResetPassword() *def.HttpRequestDef
- func GenReqDefForResizeCluster() *def.HttpRequestDef
- func GenReqDefForRestartCluster() *def.HttpRequestDef
- func GenReqDefForRestoreCluster() *def.HttpRequestDef
- type DwsClient
- func (c *DwsClient) CreateCluster(request *model.CreateClusterRequest) (*model.CreateClusterResponse, error)
- func (c *DwsClient) CreateSnapshot(request *model.CreateSnapshotRequest) (*model.CreateSnapshotResponse, error)
- func (c *DwsClient) DeleteCluster(request *model.DeleteClusterRequest) (*model.DeleteClusterResponse, error)
- func (c *DwsClient) DeleteSnapshot(request *model.DeleteSnapshotRequest) (*model.DeleteSnapshotResponse, error)
- func (c *DwsClient) ListClusterDetails(request *model.ListClusterDetailsRequest) (*model.ListClusterDetailsResponse, error)
- func (c *DwsClient) ListClusters(request *model.ListClustersRequest) (*model.ListClustersResponse, error)
- func (c *DwsClient) ListNodeTypes(request *model.ListNodeTypesRequest) (*model.ListNodeTypesResponse, error)
- func (c *DwsClient) ListSnapshotDetails(request *model.ListSnapshotDetailsRequest) (*model.ListSnapshotDetailsResponse, error)
- func (c *DwsClient) ListSnapshots(request *model.ListSnapshotsRequest) (*model.ListSnapshotsResponse, error)
- func (c *DwsClient) ResetPassword(request *model.ResetPasswordRequest) (*model.ResetPasswordResponse, error)
- func (c *DwsClient) ResizeCluster(request *model.ResizeClusterRequest) (*model.ResizeClusterResponse, error)
- func (c *DwsClient) RestartCluster(request *model.RestartClusterRequest) (*model.RestartClusterResponse, error)
- func (c *DwsClient) RestoreCluster(request *model.RestoreClusterRequest) (*model.RestoreClusterResponse, error)
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 ¶
func (c *DwsClient) ListSnapshotDetails(request *model.ListSnapshotDetailsRequest) (*model.ListSnapshotDetailsResponse, error)
该接口用于使用快照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)
该接口用于使用快照恢复集群。
Click to show internal directories.
Click to hide internal directories.