describes

package
v0.0.0-...-e5b194c Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeAllIndices

func DescribeAllIndices(config elasticsearch.Config) (table.Writer, error)

func DescribeAllShards

func DescribeAllShards(config elasticsearch.Config) (table.Writer, error)

Types

type Index

type Index struct {
	DocsCount    string `json:"docs.count"`
	DocsDeleted  string `json:"docs.deleted"`
	Health       string `json:"health"`
	Index        string `json:"index"`
	Pri          string `json:"pri"`
	PriStoreSize string `json:"pri.store.size"`
	Rep          string `json:"rep"`
	Status       string `json:"status"`
	StoreSize    string `json:"store.size"`
	Uuid         string `json:"uuid"`
	Shards       []Shard
}

type IndexShards

type IndexShards struct {
	Index    string
	ShardsNo []string           // []shard no
	Shards   map[string][]Shard // map[shard no][]Shard
}

type IndicesOverview

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

func NewIndicesOverview

func NewIndicesOverview(config elasticsearch.Config) (*IndicesOverview, error)

func (*IndicesOverview) All

func (io *IndicesOverview) All() (table.Writer, error)

func (*IndicesOverview) CatIndices

func (o *IndicesOverview) CatIndices() ([]Index, error)

func (*IndicesOverview) CatShards

func (o *IndicesOverview) CatShards() ([]Shard, error)

type IndicesShards

type IndicesShards []IndexShards

type Shard

type Shard struct {
	Index  string `json:"index"`
	Shard  string `json:"shard"`
	Prirep string `json:"prirep"`
	State  string `json:"state"`
	Docs   string `json:"docs"`
	Store  string `json:"store"`
	Ip     string `json:"ip"`
	Node   string `json:"node"`
}

type ShardsOverview

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

func NewShardsOverview

func NewShardsOverview(config elasticsearch.Config) (*ShardsOverview, error)

func (*ShardsOverview) All

func (so *ShardsOverview) All() (table.Writer, error)

func (*ShardsOverview) CatIndices

func (o *ShardsOverview) CatIndices() ([]Index, error)

func (*ShardsOverview) CatShards

func (o *ShardsOverview) CatShards() ([]Shard, error)

Jump to

Keyboard shortcuts

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