MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / ListSnapshots

Method ListSnapshots

api/client.go:324–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

322}
323
324func (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
332func (c *Client) DeleteSnapshot(snapshotID string) error {
333 return c.doRequest(context.Background(), "DELETE", fmt.Sprintf("/v1/snapshots/%s", snapshotID), nil, nil)

Callers 5

fetchSnapshotsCmdFunction · 0.80
fetchCreateSnapshotsCmdFunction · 0.80
runSnapshotListFunction · 0.80
runCreateFunction · 0.80
runSnapshotDeleteFunction · 0.80

Calls 1

doRequestMethod · 0.95

Tested by

no test coverage detected