spot

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(mCtx *mc.Context) (err error)

Destroy the stack

func Exist

func Exist(mCtx *mc.Context) bool

Check if spot option stack was created on the backed url

func NewBestSpotOption

func NewBestSpotOption(ctx *pulumi.Context, mCtx *mc.Context, name string,
	args *data.SpotInfoArgs, opts ...pulumi.ResourceOption) (*spot.SpotResults, error)

Types

type SpotStackArgs added in v0.9.6

type SpotStackArgs struct {
	Prefix             string
	ProductDescription string
	InstaceTypes       []string
	AMIName            string
	AMIArch            string
	Spot               *spotTypes.SpotArgs
}

type SpotStackResult added in v0.9.6

type SpotStackResult struct {
	Region           string
	AvailabilityZone string
	InstanceType     []string
	Price            float64
	Score            int64
}

func Create added in v0.9.6

func Create(mCtx *mc.Context, args *SpotStackArgs) (*SpotStackResult, 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

Jump to

Keyboard shortcuts

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