Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BestSpotChoiceRequest ¶
type BestSpotChoiceRequest struct { VMTypes []string OSType string EvictioRateTolerance EvictionRate }
type BestSpotChoiceResponse ¶
type BestSpotChoiceResponse struct { VMType string `json:"skuName"` Location string `json:"location"` Price float64 `json:"latestSpotPriceUSD"` }
func GetBestSpotChoice ¶
func GetBestSpotChoice(r BestSpotChoiceRequest) (*BestSpotChoiceResponse, error)
This function will return the best spot option
type EvictionRate ¶ added in v0.6.5
type EvictionRate int
const ( Lowest EvictionRate = iota Low Medium High Highest DefaultEvictionRate = Lowest )
func ParseEvictionRate ¶ added in v0.6.5
func ParseEvictionRate(str string) (EvictionRate, bool)
Get eviction rate parsing its name
Click to show internal directories.
Click to hide internal directories.