Skip to content

Commit

Permalink
fix: added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
sarwaan001 committed Dec 30, 2024
1 parent 309cd67 commit 026716e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions es.go
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,9 @@ func (c *Client) SnapshotAllIndices(repository string, snapshot string) error {
return err
}

// Take a snapshot of all indices on the cluster to the given repository with body params
//
// Use case: You want to backup all of the indices on the cluster to the given repository with body params
func (c *Client) SnapshotAllIndicesWithBodyParams(repository string, snapshot string, bodyParams map[string]interface{}) error {
if repository == "" {
return errors.New("empty string for repository is not allowed")
Expand Down

0 comments on commit 026716e

Please sign in to comment.