spot

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy() (err error)

Destroy the stack

func Exist

func Exist() bool

Check if spot option stack was created on the backed url

func NewBestSpotOption

func NewBestSpotOption(ctx *pulumi.Context, name string,
	productDescription string, instaceTypes []string,
	amiName, amiArch string, opts ...pulumi.ResourceOption) (*spotOptionInfo, error)

Types

type SpotOptionRequest

type SpotOptionRequest struct {
	Prefix             string
	ProductDescription string
	InstaceTypes       []string
	AMIName            string
	AMIArch            string
}

func (SpotOptionRequest) Create

func (r SpotOptionRequest) Create() (*SpotOptionResult, error)

So create will check if stack with state already exists, if that is the case it will pick info from its outputs If stack does not exists it will create it

type SpotOptionResult

type SpotOptionResult struct {
	Region           string
	AvailabilityZone string
	AVGPrice         float64
	MaxPrice         float64
	Score            int64
}

Jump to

Keyboard shortcuts

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