elkluster

package
v0.0.0-...-54e1649 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkAction

func BulkAction(ctx context.Context, client *elastic.Client, bulkbody string)

func ClusterInfo

func ClusterInfo(ctx context.Context, client *elastic.Client)

func CreateIndex

func CreateIndex(ctx context.Context, client *elastic.Client, index string, indexbody string) (bool, error)

func CreateRepo

func CreateRepo(ctx context.Context, client *elastic.Client,
	reponame string, repotype string, repolocation string) bool

func ElgoSearch

func ElgoSearch(ctx context.Context, client *elastic.Client, indexname, sfield, svalue string, maxreturns int)

func IndexDoc

func IndexDoc(ctx context.Context, client *elastic.Client, index string,
	doctype string, indexbody string) (*elastic.IndexResponse, error)

func IndexExists

func IndexExists(ctx context.Context, client *elastic.Client, index string) bool

func InnitiateClient

func InnitiateClient(ctx context.Context, url string) *elastic.Client

func ListIndexes

func ListIndexes(ctx context.Context, client *elastic.Client) ([]string, error)

func RemoveIndex

func RemoveIndex(ctx context.Context, client *elastic.Client, index string) (bool, error)

func RemoveRepo

func RemoveRepo(ctx context.Context, client *elastic.Client, reponame string) bool

func SnapCreate

func SnapCreate(ctx context.Context, client *elastic.Client,
	reponame string, snapname string, snapindex string) *bool

func SnapDelete

func SnapDelete(ctx context.Context, client *elastic.Client,
	reponame string, snapname string) bool

func SnapRestore

func SnapRestore(ctx context.Context, client *elastic.Client,
	reponame string, snapname string, snapindex string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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