Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetBestPlacementScores ¶
func GetBestPlacementScores(regions, instanceTypes []string, capacity int64) ([]*awsEC2.SpotPlacementScore, error)
return sps ordered from max to min by score
Types ¶
type BestSpotBid ¶
type BestSpotBid struct { pulumi.ResourceState Price *SpotPriceGroup }
func BestSpotBidOrder ¶
func BestSpotBidOrder(ctx *pulumi.Context, name string, targetHostID string, opts ...pulumi.ResourceOption) (*BestSpotBid, error)
type SpotPriceGroup ¶
type SpotPriceGroup struct { Region string AvailabilityZone string AVGPrice float64 MaxPrice float64 Score int64 }
func BestSpotPriceInfo ¶
func BestSpotPriceInfo(targetHostID string) (*SpotPriceGroup, error)
func Create ¶
func Create(projectName, backedURL, targetHostID string) (*SpotPriceGroup, error)
type SpotPriceRequest ¶
type SpotPriceResult ¶
type SpotPriceResult struct { Prices []SpotPriceGroup Err error }
Click to show internal directories.
Click to hide internal directories.