internal

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(cache bool) error

Check attempts to connect to the elasticsearch instance

func ListIndex

func ListIndex(conn *elasticsearch.Client, indexes []string) (indexData []map[string]string, exitCode int, err error)

ListIndex takes a connection and slice of strings and runs a CatIndicesRequest to return data, an exit code to bubble up, and an error

func PrintHealthInformation

func PrintHealthInformation(healthData []map[string]string)

func PrintListIndexResults

func PrintListIndexResults(indexData []map[string]string)

PrintListIndexResults prints results returned by the ListIndex function

func PrintNodeInformation

func PrintNodeInformation(nodeData []map[string]string)

func PrintPendingTasks

func PrintPendingTasks(pendingData []map[string]string)

func PrintSearchResults

func PrintSearchResults(searchData models.SearchResponse)

PrintSearchResults prints the results of the search command

func PrintSnapshots

func PrintSnapshots(snapData []map[string]string)
func Search(conn *elasticsearch.Client, indexes []string, query string) (searchData models.SearchResponse, exitCode int, err error)

Search takes a connection, slice of strings for indices, and a query string and returns data, an exit code to bubble up, and an error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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