Bot releases are visible (Hide)
Published by nickcanz almost 6 years ago
This release adds two new functions around managing snapshots and repositories.
func (c *Client) DeleteSnapshot(repository string, snapshot string) error
func (c *Client) VerifyRepository(repository string) (bool, error)
Published by nickcanz about 6 years ago
Features:
type Client
func NewClient(host string, port int) *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