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

Method GetAvailability

api/client.go:359–365  ·  view source on GitHub ↗

GetAvailability retrieves per-spec GPU availability from the API.

()

Source from the content-addressed store, hash-verified

357
358// GetAvailability retrieves per-spec GPU availability from the API.
359func (c *Client) GetAvailability() (*GPUAvailabilityResponse, error) {
360 var result GPUAvailabilityResponse
361 if err := c.doRequest(context.Background(), "GET", "/v2/status", nil, &result); err != nil {
362 return nil, err
363 }
364 return &result, nil
365}

Callers 1

FetchSpecStoreFunction · 0.80

Calls 1

doRequestMethod · 0.95

Tested by

no test coverage detected