()
| 322 | } |
| 323 | |
| 324 | func (c *Client) ListSnapshots() (ListSnapshotsResponse, error) { |
| 325 | var resp ListSnapshotsResponse |
| 326 | if err := c.doRequest(context.Background(), "GET", "/v1/snapshots/list", nil, &resp); err != nil { |
| 327 | return nil, err |
| 328 | } |
| 329 | return resp, nil |
| 330 | } |
| 331 | |
| 332 | func (c *Client) DeleteSnapshot(snapshotID string) error { |
| 333 | return c.doRequest(context.Background(), "DELETE", fmt.Sprintf("/v1/snapshots/%s", snapshotID), nil, nil) |
no test coverage detected