aws

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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