(ctx context.Context)
| 207 | } |
| 208 | |
| 209 | func (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 | |
| 217 | func (c *Client) ListInstancesWithIPUpdate() ([]Instance, error) { |
| 218 | return c.ListInstancesWithIPUpdateCtx(context.Background()) |
no test coverage detected