Skip to content

v0.5.0 release

Compare
Choose a tag to compare
@nickcanz nickcanz released this 23 May 18:46
d9417a6

Breaking changes

  • GetIndices() renamed to GetAllIndices()
    • New function GetIndices(string) - returns a subset of indices matching the string

New features

  • Several functions to work with aliases

    • GetAliases(string) - returns a subset of indices matching the string
    • GetAllAliases() - return all the aliases on the cluster
    • ModifyAliases([]AliasAction) - add/update/delete aliases
  • Several functions to work with shards

    • GetShards([]string) - returns shards that exist on the given nodes, empty array returns all shards
    • GetShardOverlap([]string) - provide a list of node names and returns a map containing information to determine if all copies of a shard exist on those nodes
    • GetShardRecovery([]string, bool) - returns information about recovering shards
  • New functions to operate on indices

    • OpenIndex(string) - opens the index with the given index name
    • CloseIndex(string) - closes the index with the given index name
  • New client configuration options

    • user
    • password
    • protocol
    • path
    • skip TLS verification
  • Added Elasticsearch version to the Node struct as Version

Bug fixes

  • Two functions on the Snapshot struct to deal with in progress snapshots "ending" at 1970-01-01
    • func (s *Snapshot) GetDuration()
    • func (s *Snapshot) GetEndTime()

Misc

  • Added Go 1.12 to Travis testing