Documentation
¶
Index ¶
- type Client
- func (c *Client) DrainServer(serverToDrain string) (ExcludeSettings, error)
- func (c *Client) FillAll() (ExcludeSettings, error)
- func (c *Client) FillOneServer(serverToFill string) (ExcludeSettings, error)
- func (c *Client) GetClusterExcludeSettings() (ExcludeSettings, error)
- func (c *Client) GetHealth() ([]ClusterHealth, error)
- func (c *Client) GetIndices() ([]Index, error)
- func (c *Client) GetNodes() ([]Node, error)
- func (c *Client) GetSettings() (ClusterSettings, error)
- func (c *Client) GetSnapshotStatus(repository string, snapshot string) (Snapshot, error)
- func (c *Client) GetSnapshots(repository string) ([]Snapshot, error)
- func (c *Client) SetAllocation(allocation string) (string, error)
- func (c *Client) SetSetting(setting string, value string) (string, string, error)
- type ClusterHealth
- type ClusterSetting
- type ClusterSettings
- type ExcludeSettings
- type Index
- type Node
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) DrainServer ¶
func (c *Client) DrainServer(serverToDrain string) (ExcludeSettings, error)
func (*Client) FillAll ¶
func (c *Client) FillAll() (ExcludeSettings, error)
func (*Client) FillOneServer ¶
func (c *Client) FillOneServer(serverToFill string) (ExcludeSettings, error)
func (*Client) GetClusterExcludeSettings ¶
func (c *Client) GetClusterExcludeSettings() (ExcludeSettings, error)
Get current cluster settings for exclusion
func (*Client) GetHealth ¶
func (c *Client) GetHealth() ([]ClusterHealth, error)
func (*Client) GetIndices ¶
func (*Client) GetSettings ¶
func (c *Client) GetSettings() (ClusterSettings, error)
func (*Client) GetSnapshotStatus ¶
type ClusterHealth ¶ added in v0.1.0
type ClusterSetting ¶ added in v0.1.0
type ClusterSetting struct {
Setting, Value string
}
type ClusterSettings ¶ added in v0.1.0
type ClusterSettings struct {
PersistentSettings []ClusterSetting
TransientSettings []ClusterSetting
}
type ExcludeSettings ¶
type ExcludeSettings struct {
Ips, Hosts, Names []string
}
type Snapshot ¶ added in v0.1.0
type Snapshot struct {
State string `json:"state"`
Name string `json:"snapshot"`
StartTime time.Time `json:"start_time,string"`
EndTime time.Time `json:"end_time,string"`
DurationMillis int `json:"duration_in_millis"`
Indices []string `json:"indices"`
Shards struct {
Total int `json:"total"`
Failed int `json:"failed"`
Successful int `json:"successful"`
} `json:"shards"`
Failures []struct {
Index string `json:"index"`
ShardID int `json:"shard_id"`
Reason string `json:"reason"`
NodeID string `json:"node_id"`
Status string `json:"status"`
} `json:"failures"`
}
Click to show internal directories.
Click to hide internal directories.