client

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsClient

type EsClient struct {
	core.JDCloudClient
}

func NewEsClient

func NewEsClient(credential *core.Credential) *EsClient

func (*EsClient) CreateInstance

func (c *EsClient) CreateInstance(request *es.CreateInstanceRequest) (*es.CreateInstanceResponse, error)

创建一个指定配置的es实例

func (*EsClient) DeleteInstance

func (c *EsClient) DeleteInstance(request *es.DeleteInstanceRequest) (*es.DeleteInstanceResponse, error)
删除按配置计费或包年包月已到期的es实例,包年包月未到期不可删除。

状态为创建中和变配中的不可删除。

func (*EsClient) DescribeInstance

func (c *EsClient) DescribeInstance(request *es.DescribeInstanceRequest) (*es.DescribeInstanceResponse, error)

查询es实例的详细信息

func (*EsClient) DescribeInstances

func (c *EsClient) DescribeInstances(request *es.DescribeInstancesRequest) (*es.DescribeInstancesResponse, error)

查询es实例列表

func (*EsClient) DisableDicts

func (c *EsClient) DisableDicts(request *es.DisableDictsRequest) (*es.DisableDictsResponse, error)

关闭自定义字典。同时清除用户已上传的字典

func (*EsClient) DisableLogger

func (c *EsClient) DisableLogger()

func (*EsClient) ModifyInstanceSpec

func (c *EsClient) ModifyInstanceSpec(request *es.ModifyInstanceSpecRequest) (*es.ModifyInstanceSpecResponse, error)
变更es实例的配置,实例为running状态才可变更配置,每次只能变更一种且不可与原来的相同。

实例配置(cpu核数、内存、磁盘容量、节点数量)目前只允许变大

func (*EsClient) SetConfig

func (c *EsClient) SetConfig(config *core.Config)

func (*EsClient) SetLogger

func (c *EsClient) SetLogger(logger core.Logger)

Jump to

Keyboard shortcuts

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