Add /v3/cluster/snapshot endpoint

This commit is contained in:
Ingo Oppermann
2023-06-27 15:11:31 +02:00
parent dd128ac99b
commit 89379b2acd
10 changed files with 110 additions and 13 deletions

View File

@@ -249,8 +249,8 @@ func (c *APIClient) UnsetKV(origin string, key string) error {
return err
}
func (c *APIClient) Snapshot() (io.ReadCloser, error) {
return c.stream(http.MethodGet, "/v1/snapshot", "", nil, "")
func (c *APIClient) Snapshot(origin string) (io.ReadCloser, error) {
return c.stream(http.MethodGet, "/v1/snapshot", "", nil, origin)
}
func (c *APIClient) IsReady(origin string) error {