v2

package
v0.1.60 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

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

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

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

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

type RollingRestartInvoker added in v0.0.90

type RollingRestartInvoker struct {
	*invoker.BaseInvoker
}

func (*RollingRestartInvoker) Invoke added in v0.0.90

type StartAutoCreateSnapshotsInvoker added in v0.0.90

type StartAutoCreateSnapshotsInvoker struct {
	*invoker.BaseInvoker
}

func (*StartAutoCreateSnapshotsInvoker) Invoke added in v0.0.90

type StopAutoCreateSnapshotsInvoker added in v0.0.90

type StopAutoCreateSnapshotsInvoker struct {
	*invoker.BaseInvoker
}

func (*StopAutoCreateSnapshotsInvoker) 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