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

Method ListInstances

api/client.go:221–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219}
220
221func (c *Client) ListInstances() ([]Instance, error) {
222 var raw map[string]Instance
223 if err := c.doRequest(context.Background(), "GET", "/v1/instances/list", nil, &raw); err != nil {
224 return nil, err
225 }
226 return sortedInstances(raw), nil
227}
228
229func (c *Client) AddSSHKeyCtx(ctx context.Context, instanceID string) (*AddSSHKeyResponse, error) {
230 var resp AddSSHKeyResponse

Calls 2

doRequestMethod · 0.95
sortedInstancesFunction · 0.85