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

Function isHourlyUnit

internal/estimate/estimator.go:103–105  ·  view source on GitHub ↗

isHourlyUnit returns true when the unit string represents time-based pricing.

(unit string)

Source from the content-addressed store, hash-verified

101
102// isHourlyUnit returns true when the unit string represents time-based pricing.
103func 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.

Callers 2

buildPriceEntriesFunction · 0.85
detectUsageBasedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected