Documentation ¶
Index ¶
- type Client
- func (c *Client) DisableReallocation() error
- func (c *Client) EnableReallocation() error
- func (c *Client) ExcludeNodeFromAllocation(nodeName string) error
- func (c *Client) ListNodes() ([]string, error)
- func (c *Client) ListShardsOnNode(nodeName string) ([]string, error)
- func (c *Client) Shutdown(nodeName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents Elasticsearch API client
func (*Client) DisableReallocation ¶
DisableReallocation enables shard reallocation Modifies cluster.routing.allocation.enable to "none" https://www.elastic.co/guide/en/elasticsearch/reference/1.5/cluster-update-settings.html
func (*Client) EnableReallocation ¶
EnableReallocation enables shard reallocation Modifies cluster.routing.allocation.enable to "all" https://www.elastic.co/guide/en/elasticsearch/reference/1.5/cluster-update-settings.html
func (*Client) ExcludeNodeFromAllocation ¶
ExcludeNodeFromAllocation excludes the given node from shard allocation group https://www.elastic.co/guide/en/elasticsearch/reference/current/allocation-filtering.html
func (*Client) ListShardsOnNode ¶
ListShardsOnNode returns the list of shards on the given node