vulcanizer

GitHub's ops focused Elasticsearch library

MIT License

Stars
658
Committers
22

Bot releases are visible (Hide)

vulcanizer - Managing snapshots

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)

vulcanizer - Standardize vulcanizer API surface

Published by nickcanz about 6 years ago

Features:

  • Client methods all return a specific struct type and an error.
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