Documentation ¶
Index ¶
- type Elastic
- func (e *Elastic) CheckHealth(kubeconfigPath string) bool
- func (e *Elastic) CheckIndicesHealth(kubeconfigPath string) bool
- func (e *Elastic) CheckIngress() bool
- func (e *Elastic) CheckTLSSecret() bool
- func (e *Elastic) Connect() bool
- func (e *Elastic) GetVmiHTTPClient(kubeconfigPath string) (*retryablehttp.Client, error)
- func (e *Elastic) ListIndices() []string
- func (e *Elastic) PodsRunning() bool
- type ElasticVersion
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 ¶
GetElastic gets Elastic representing the elasticsearch cluster with the binding name
func (*Elastic) CheckHealth ¶ added in v1.1.0
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
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 ¶
CheckIngress checks the Elasticsearch Ingress
func (*Elastic) CheckTLSSecret ¶
CheckTLSSecret checks the Elasticsearch secret
func (*Elastic) GetVmiHTTPClient ¶ added in v1.3.0
func (*Elastic) ListIndices ¶
ListIndices lists elasticsearch indices
func (*Elastic) PodsRunning ¶
PodsRunning checks if all elasticsearch required pods are running
type ElasticVersion ¶ added in v1.1.0
type ElasticVersion struct { Number string `json:"number"` Distribution string `json:"distribution"` }
ElasticVersion contains information about the version of Elasticsearch instance