NewSpecStore creates a SpecStore from API-fetched specs.
(specs map[string]api.GpuSpecConfig)
| 17 | |
| 18 | // NewSpecStore creates a SpecStore from API-fetched specs. |
| 19 | func NewSpecStore(specs map[string]api.GpuSpecConfig) *SpecStore { |
| 20 | return &SpecStore{specs: specs} |
| 21 | } |
| 22 | |
| 23 | // NewSpecStoreWithAvailability creates a SpecStore with optional per-spec availability. |
| 24 | func NewSpecStoreWithAvailability(specs map[string]api.GpuSpecConfig, availability map[string]string) *SpecStore { |
no outgoing calls