MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / ModelSelector

Struct ModelSelector

internal/estimate/estimator.go:109–113  ·  view source on GitHub ↗

ModelSelector specifies which pricing model to use for a resource. All fields are case-insensitive. Empty fields are treated as wildcards.

Source from the content-addressed store, hash-verified

107// ModelSelector specifies which pricing model to use for a resource.
108// All fields are case-insensitive. Empty fields are treated as wildcards.
109type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected