( ctx context.Context, query ProviderModelListQuery, )
| 37 | type ProviderModelSourceStatusRecord = contract.ModelCatalogSourceStatusPayload |
| 38 | |
| 39 | func (c *unixSocketClient) ListProviderModels( |
| 40 | ctx context.Context, |
| 41 | query ProviderModelListQuery, |
| 42 | ) (ProviderModelListRecord, error) { |
| 43 | path := providerModelsPath(query.ProviderID, "") |
| 44 | var response ProviderModelListRecord |
| 45 | values := providerModelListValues(ProviderModelListQuery{ |
| 46 | SourceID: query.SourceID, |
| 47 | Refresh: query.Refresh, |
| 48 | IncludeStale: query.IncludeStale, |
| 49 | }) |
| 50 | if err := c.doJSON(ctx, http.MethodGet, path, values, nil, &response); err != nil { |
| 51 | return ProviderModelListRecord{}, err |
| 52 | } |
| 53 | return response, nil |
| 54 | } |
| 55 | |
| 56 | func (c *unixSocketClient) RefreshProviderModels( |
| 57 | ctx context.Context, |
nothing calls this directly
no test coverage detected