Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpotOptionInfo ¶
type SpotOptionInfo struct {
Region string
AvailabilityZone string
AVGPrice float64
MaxPrice float64
Score int32
InstanceType string
}
func BestSpotOptionInfo ¶
func BestSpotOptionInfo(productDescription string, instaceTypes []string, amiName, amiArch string) (*SpotOptionInfo, error)
This function checks worlwide which is the best place at any point in time to spin a spot machine it basically cross the information for spot prices and placement scores the target machine is defined through the inputs for the funtion: * productType to be executed within the machine * instanceTypes types of machines able to execute the workload * amiName ensures the ami is available on the spot option the output is the information realted to the best spot option for the target machine
type SpotOptionResult ¶
type SpotOptionResult struct {
Prices []SpotOptionInfo
Err error
}
Click to show internal directories.
Click to hide internal directories.