Skip to content

v0.3.0 Release

Compare
Choose a tag to compare
@nickcanz nickcanz released this 19 Dec 15:09
2f638f3

This release expands what you can do in regards to snapshots and repositories.

Breaking changes

  • GetHealth API return type changed from []ClusterHealth to ClusterHealth - The array was a holdover from using the _cat API and didn't make logical sense as there is only one cluster health.

New APIs

  • New struct Repository
  • New struct IndexHealth, similar to the ClusterHealth struct, but scoped to an index
  • New API func (c *Client) GetRepositories() ([]Repository, error)
    • List the snapshot repositories that are configured on the cluster
  • New API func (c *Client) SnapshotAllIndices(repository string, snapshot string) error
    • Take a snapshot of all indices on the cluster
  • New API func (c *Client) SnapshotIndices(repository string, snapshot string, indices []string) error
    • Take a snapshot of specific indices on the cluster
  • New API func (c *Client) RestoreSnapshotIndices(repository string, snapshot string, indices []string, restoredIndexPrefix string) error
    • Restore specific indices of the named snapshot to the cluster

Changes

  • Jdk added to Node struct - contains the Jdk version of the node
  • ClusterHealth has two new fields
    • UnhealthIndices []IndexHealth - contains indices that are non-green status
    • HealthyIndices []IndexHealth - contains indices that are green status