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

Method ListInstancesWithIPUpdateCtx

api/client.go:209–215  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

207}
208
209func (c *Client) ListInstancesWithIPUpdateCtx(ctx context.Context) ([]Instance, error) {
210 var raw map[string]Instance
211 if err := c.doRequest(ctx, "GET", "/v1/instances/list?update_ips=true", nil, &raw); err != nil {
212 return nil, err
213 }
214 return sortedInstances(raw), nil
215}
216
217func (c *Client) ListInstancesWithIPUpdate() ([]Instance, error) {
218 return c.ListInstancesWithIPUpdateCtx(context.Background())

Callers 1

Calls 2

doRequestMethod · 0.95
sortedInstancesFunction · 0.85

Tested by

no test coverage detected