elasticcloud

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcNodeNum

func CalcNodeNum(topologySize *models.TopologySize, zoneCount int32) int

func CalcTopologyNodeNum

func CalcTopologyNodeNum(topology *models.ElasticsearchClusterTopologyElement) int

func NewTopologySize

func NewTopologySize(gib int) *models.TopologySize

func WaitForPlanCompletion

func WaitForPlanCompletion(client *api.API, deploymentID string) error

WaitForPlanCompletion waits for a pending plan to finish.

Types

type Client

type Client interface {
	GetESResourceInfo(ctx context.Context, includePlanHistory bool) (*models.ElasticsearchResourceInfo, error)
	UpdateESHotContentTopologySize(ctx context.Context, topology *models.TopologySize) error
}

func NewClient

func NewClient(ecClient *api.API, deploymentID string) Client

type TopologyID

type TopologyID string
const (
	TopologyIDHotContent   TopologyID = "hot_content"
	TopologyIDWarm         TopologyID = "warm"
	TopologyIDCold         TopologyID = "cold"
	TopologyIDCoordinating TopologyID = "coordinating"
	TopologyIDFrozen       TopologyID = "frozen"
	TopologyIDML           TopologyID = "ml"
	TopologyIDMaster       TopologyID = "master"
)

Jump to

Keyboard shortcuts

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