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

Method CreateSnapshot

api/client.go:316–322  ·  view source on GitHub ↗
(req CreateSnapshotRequest)

Source from the content-addressed store, hash-verified

314}
315
316func (c *Client) CreateSnapshot(req CreateSnapshotRequest) (*CreateSnapshotResponse, error) {
317 var resp CreateSnapshotResponse
318 if err := c.doRequest(context.Background(), "POST", "/v1/snapshots/create", req, &resp); err != nil {
319 return nil, err
320 }
321 return &resp, nil
322}
323
324func (c *Client) ListSnapshots() (ListSnapshotsResponse, error) {
325 var resp ListSnapshotsResponse

Callers 2

createSnapshotCmdFunction · 0.80
runSnapshotCreateFunction · 0.80

Calls 1

doRequestMethod · 0.95

Tested by

no test coverage detected