StorageRange returns the min/max storage for a configuration.
(gpuType string, numGPUs int)
| 170 | |
| 171 | // StorageRange returns the min/max storage for a configuration. |
| 172 | func (s *SpecStore) StorageRange(gpuType string, numGPUs int) (int, int) { |
| 173 | spec := s.Lookup(gpuType, numGPUs) |
| 174 | if spec == nil { |
| 175 | return 100, 1000 |
| 176 | } |
| 177 | return spec.StorageGB.Min, spec.StorageGB.Max |
| 178 | } |
| 179 | |
| 180 | // NormalizeGPUType maps user-friendly GPU names to canonical names, |
| 181 | // validated against available specs. |