Documentation ¶
Index ¶
- func CssClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForCreateCluster() *def.HttpRequestDef
- func GenReqDefForRestartCluster() *def.HttpRequestDef
- func GenReqDefForRollingRestart() *def.HttpRequestDef
- func GenReqDefForStartAutoCreateSnapshots() *def.HttpRequestDef
- func GenReqDefForStopAutoCreateSnapshots() *def.HttpRequestDef
- type CreateClusterInvoker
- type CssClient
- func (c *CssClient) CreateCluster(request *model.CreateClusterRequest) (*model.CreateClusterResponse, error)
- func (c *CssClient) CreateClusterInvoker(request *model.CreateClusterRequest) *CreateClusterInvoker
- func (c *CssClient) RestartCluster(request *model.RestartClusterRequest) (*model.RestartClusterResponse, error)
- func (c *CssClient) RestartClusterInvoker(request *model.RestartClusterRequest) *RestartClusterInvoker
- func (c *CssClient) RollingRestart(request *model.RollingRestartRequest) (*model.RollingRestartResponse, error)
- func (c *CssClient) RollingRestartInvoker(request *model.RollingRestartRequest) *RollingRestartInvoker
- func (c *CssClient) StartAutoCreateSnapshots(request *model.StartAutoCreateSnapshotsRequest) (*model.StartAutoCreateSnapshotsResponse, error)
- func (c *CssClient) StartAutoCreateSnapshotsInvoker(request *model.StartAutoCreateSnapshotsRequest) *StartAutoCreateSnapshotsInvoker
- func (c *CssClient) StopAutoCreateSnapshots(request *model.StopAutoCreateSnapshotsRequest) (*model.StopAutoCreateSnapshotsResponse, error)
- func (c *CssClient) StopAutoCreateSnapshotsInvoker(request *model.StopAutoCreateSnapshotsRequest) *StopAutoCreateSnapshotsInvoker
- type RestartClusterInvoker
- type RollingRestartInvoker
- type StartAutoCreateSnapshotsInvoker
- type StopAutoCreateSnapshotsInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CssClientBuilder ¶
func CssClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForCreateCluster ¶
func GenReqDefForCreateCluster() *def.HttpRequestDef
func GenReqDefForRestartCluster ¶
func GenReqDefForRestartCluster() *def.HttpRequestDef
func GenReqDefForRollingRestart ¶
func GenReqDefForRollingRestart() *def.HttpRequestDef
func GenReqDefForStartAutoCreateSnapshots ¶
func GenReqDefForStartAutoCreateSnapshots() *def.HttpRequestDef
func GenReqDefForStopAutoCreateSnapshots ¶
func GenReqDefForStopAutoCreateSnapshots() *def.HttpRequestDef
Types ¶
type CreateClusterInvoker ¶ added in v0.0.90
type CreateClusterInvoker struct {
*invoker.BaseInvoker
}
func (*CreateClusterInvoker) Invoke ¶ added in v0.0.90
func (i *CreateClusterInvoker) Invoke() (*model.CreateClusterResponse, error)
type CssClient ¶
type CssClient struct {
HcClient *http_client.HcHttpClient
}
func NewCssClient ¶
func NewCssClient(hcClient *http_client.HcHttpClient) *CssClient
func (*CssClient) CreateCluster ¶
func (c *CssClient) CreateCluster(request *model.CreateClusterRequest) (*model.CreateClusterResponse, error)
CreateCluster 创建集群V2
该接口用于创建拥有多种不同节点类型(ess,ess-cold,ess-client,ess-master)组合的集群。
Please refer to HUAWEI cloud API Explorer for details.
func (*CssClient) CreateClusterInvoker ¶ added in v0.0.90
func (c *CssClient) CreateClusterInvoker(request *model.CreateClusterRequest) *CreateClusterInvoker
CreateClusterInvoker 创建集群V2
func (*CssClient) RestartCluster ¶
func (c *CssClient) RestartCluster(request *model.RestartClusterRequest) (*model.RestartClusterResponse, error)
RestartCluster 重启集群V2
该接口可以用于重启当前集群拥有的全部节点类型,或部分节点类型组合的节点。
Please refer to HUAWEI cloud API Explorer for details.
func (*CssClient) RestartClusterInvoker ¶ added in v0.0.90
func (c *CssClient) RestartClusterInvoker(request *model.RestartClusterRequest) *RestartClusterInvoker
RestartClusterInvoker 重启集群V2
func (*CssClient) RollingRestart ¶
func (c *CssClient) RollingRestart(request *model.RollingRestartRequest) (*model.RollingRestartResponse, error)
RollingRestart 滚动重启
该接口会一个一个重启节点,在索引数量比较多的情况下耗时较长
>仅当集群的节点数量(含Master节点、Client节点和冷数据节点)大于3时,才支持滚动重启
Please refer to HUAWEI cloud API Explorer for details.
func (*CssClient) RollingRestartInvoker ¶ added in v0.0.90
func (c *CssClient) RollingRestartInvoker(request *model.RollingRestartRequest) *RollingRestartInvoker
RollingRestartInvoker 滚动重启
func (*CssClient) StartAutoCreateSnapshots ¶
func (c *CssClient) StartAutoCreateSnapshots(request *model.StartAutoCreateSnapshotsRequest) (*model.StartAutoCreateSnapshotsResponse, error)
StartAutoCreateSnapshots 开启自动创建快照功能
该接口用于打开自动备份功能
Please refer to HUAWEI cloud API Explorer for details.
func (*CssClient) StartAutoCreateSnapshotsInvoker ¶ added in v0.0.90
func (c *CssClient) StartAutoCreateSnapshotsInvoker(request *model.StartAutoCreateSnapshotsRequest) *StartAutoCreateSnapshotsInvoker
StartAutoCreateSnapshotsInvoker 开启自动创建快照功能
func (*CssClient) StopAutoCreateSnapshots ¶
func (c *CssClient) StopAutoCreateSnapshots(request *model.StopAutoCreateSnapshotsRequest) (*model.StopAutoCreateSnapshotsResponse, error)
StopAutoCreateSnapshots 关闭自动创建快照功能
该接口用于关闭自动备份功能。
Please refer to HUAWEI cloud API Explorer for details.
func (*CssClient) StopAutoCreateSnapshotsInvoker ¶ added in v0.0.90
func (c *CssClient) StopAutoCreateSnapshotsInvoker(request *model.StopAutoCreateSnapshotsRequest) *StopAutoCreateSnapshotsInvoker
StopAutoCreateSnapshotsInvoker 关闭自动创建快照功能
type RestartClusterInvoker ¶ added in v0.0.90
type RestartClusterInvoker struct {
*invoker.BaseInvoker
}
func (*RestartClusterInvoker) Invoke ¶ added in v0.0.90
func (i *RestartClusterInvoker) Invoke() (*model.RestartClusterResponse, error)
type RollingRestartInvoker ¶ added in v0.0.90
type RollingRestartInvoker struct {
*invoker.BaseInvoker
}
func (*RollingRestartInvoker) Invoke ¶ added in v0.0.90
func (i *RollingRestartInvoker) Invoke() (*model.RollingRestartResponse, error)
type StartAutoCreateSnapshotsInvoker ¶ added in v0.0.90
type StartAutoCreateSnapshotsInvoker struct {
*invoker.BaseInvoker
}
func (*StartAutoCreateSnapshotsInvoker) Invoke ¶ added in v0.0.90
func (i *StartAutoCreateSnapshotsInvoker) Invoke() (*model.StartAutoCreateSnapshotsResponse, error)
type StopAutoCreateSnapshotsInvoker ¶ added in v0.0.90
type StopAutoCreateSnapshotsInvoker struct {
*invoker.BaseInvoker
}
func (*StopAutoCreateSnapshotsInvoker) Invoke ¶ added in v0.0.90
func (i *StopAutoCreateSnapshotsInvoker) Invoke() (*model.StopAutoCreateSnapshotsResponse, error)