vmi

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: UPL-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elastic

type Elastic struct {
	ClusterName string         `json:"cluster_name"`
	EsVersion   ElasticVersion `json:"version"`
	// contains filtered or unexported fields
}

Elastic contains information about the Elasticsearch instance

func GetElastic

func GetElastic(binding string) *Elastic

GetElastic gets Elastic representing the elasticsearch cluster with the binding name

func (*Elastic) CheckHealth added in v1.1.0

func (e *Elastic) CheckHealth() bool

CheckHealth checks the health status of Elasticsearch cluster Returns true if the health status is green otherwise false

func (*Elastic) CheckIndicesHealth added in v1.1.0

func (e *Elastic) CheckIndicesHealth() bool

CheckIndicesHealth checks the health status of indices in a cluster Returns true if the health status of all the indices is green otherwise false

func (*Elastic) CheckIngress

func (e *Elastic) CheckIngress() bool

CheckIngress checks the Elasticsearch Ingress

func (*Elastic) CheckTLSSecret

func (e *Elastic) CheckTLSSecret() bool

CheckTLSSecret checks the Elasticsearch secret

func (*Elastic) Connect

func (e *Elastic) Connect() bool

Connect checks if the elasticsearch cluster can be connected

func (*Elastic) ListIndices

func (e *Elastic) ListIndices() []string

ListIndices lists elasticsearch indices

func (*Elastic) PodsRunning

func (e *Elastic) PodsRunning() bool

PodsRunning checks if all elasticsearch required pods are running

type ElasticVersion added in v1.1.0

type ElasticVersion struct {
	Number      string `json:"number"`
	BuildFlavor string `json:"build_flavor"`
}

ElasticVersion contains information about the version of Elasticsearch instance

Jump to

Keyboard shortcuts

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