isHourlyUnit returns true when the unit string represents time-based pricing.
(unit string)
| 101 | |
| 102 | // isHourlyUnit returns true when the unit string represents time-based pricing. |
| 103 | func isHourlyUnit(unit string) bool { |
| 104 | return hourlyUnits[strings.ToLower(strings.TrimSpace(unit))] |
| 105 | } |
| 106 | |
| 107 | // ModelSelector specifies which pricing model to use for a resource. |
| 108 | // All fields are case-insensitive. Empty fields are treated as wildcards. |
no outgoing calls
no test coverage detected