aws

package
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL