mirror of
https://github.com/datarhei/core.git
synced 2025-10-13 03:34:05 +08:00
Add /v3/cluster/snapshot endpoint
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user