elasticsearch: kubedb.dev/elasticsearch/pkg/util/es Index | Files

package es

import "kubedb.dev/elasticsearch/pkg/util/es"

Index

Package Files

api.go es_client_v5.go es_client_v6.go

Constants

const (
    KeyAdminUserName = "ADMIN_USERNAME"
    KeyAdminPassword = "ADMIN_PASSWORD"
)

type ESClient Uses

type ESClient interface {
    CreateIndex(count int) error
    CountIndex() (int, error)
    GetIndexNames() ([]string, error)
    GetAllNodesInfo() ([]NodeInfo, error)
    GetElasticsearchSummary(indexName string) (*api.ElasticsearchSummary, error)
    Stop()
}

func GetElasticClient Uses

func GetElasticClient(kc kubernetes.Interface, extClient cs.Interface, db *api.Elasticsearch, url string) (ESClient, error)

type ESClientV5 Uses

type ESClientV5 struct {
    // contains filtered or unexported fields
}

func (*ESClientV5) CountIndex Uses

func (c *ESClientV5) CountIndex() (int, error)

func (*ESClientV5) CreateIndex Uses

func (c *ESClientV5) CreateIndex(count int) error

func (*ESClientV5) GetAllNodesInfo Uses

func (c *ESClientV5) GetAllNodesInfo() ([]NodeInfo, error)

func (*ESClientV5) GetElasticsearchSummary Uses

func (c *ESClientV5) GetElasticsearchSummary(indexName string) (*api.ElasticsearchSummary, error)

func (*ESClientV5) GetIndexNames Uses

func (c *ESClientV5) GetIndexNames() ([]string, error)

func (*ESClientV5) Stop Uses

func (c *ESClientV5) Stop()

type ESClientV6 Uses

type ESClientV6 struct {
    // contains filtered or unexported fields
}

func (*ESClientV6) CountIndex Uses

func (c *ESClientV6) CountIndex() (int, error)

func (*ESClientV6) CreateIndex Uses

func (c *ESClientV6) CreateIndex(count int) error

func (*ESClientV6) GetAllNodesInfo Uses

func (c *ESClientV6) GetAllNodesInfo() ([]NodeInfo, error)

func (*ESClientV6) GetElasticsearchSummary Uses

func (c *ESClientV6) GetElasticsearchSummary(indexName string) (*api.ElasticsearchSummary, error)

func (*ESClientV6) GetIndexNames Uses

func (c *ESClientV6) GetIndexNames() ([]string, error)

func (*ESClientV6) Stop Uses

func (c *ESClientV6) Stop()

type NodeInfo Uses

type NodeInfo struct {
    Name     string   `json:"name,omitempty"`
    Roles    []string `json:"roles,omitempty"`
    Settings *Setting `json:"settings,omitempty"`
}

type NodeSetting Uses

type NodeSetting struct {
    Name   string `json:"name,omitempty"`
    Data   string `json:"data,omitempty"`
    Ingest string `json:"ingest,omitempty"`
    Master string `json:"master,omitempty"`
}

type PathSetting Uses

type PathSetting struct {
    Data []string `json:"data,omitempty"`
    Logs string   `json:"logs,omitempty"`
    Home string   `json:"home,omitempty"`
}

type Setting Uses

type Setting struct {
    Node *NodeSetting `json:"node,omitempty"`
    Path *PathSetting `json:"path,omitempty"`
}

Package es imports 14 packages (graph) and is imported by 4 packages. Updated 2019-07-24. Refresh now. Tools for package owners.