ModelSelector specifies which pricing model to use for a resource. All fields are case-insensitive. Empty fields are treated as wildcards.
| 107 | // ModelSelector specifies which pricing model to use for a resource. |
| 108 | // All fields are case-insensitive. Empty fields are treated as wildcards. |
| 109 | type ModelSelector struct { |
| 110 | Model string // e.g. "Reserved", "ComputeSavingsPlans", "spot" |
| 111 | PurchaseOption string // e.g. "standard", "No Upfront" — optional |
| 112 | Term string // e.g. "1yr", "3yr" — optional |
| 113 | } |
| 114 | |
| 115 | // termToHours converts a term string to the number of hours in that term. |
| 116 | // Returns 0 for unknown terms. |
nothing calls this directly
no outgoing calls
no test coverage detected