Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 026716e

Browse files
committed
fix: added docstring
1 parent 309cd67 commit 026716e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

es.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,9 @@ func (c *Client) SnapshotAllIndices(repository string, snapshot string) error {
11741174
return err
11751175
}
11761176

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

0 commit comments

Comments
 (0)