spotprice

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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
}

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

Jump to

Keyboard shortcuts

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