instance

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceKey = "cloudmeta2/aws/instance" // us-east-1/linux/general/instance.json
	RegionKey   = "cloudmeta2/aws/region.json"
)

Variables

View Source
var FactoryCmd = &cobra.Command{
	Use:   "instance",
	Short: "Generate instance data",
	Long:  `Generate instance data`,
	RunE: func(cmd *cobra.Command, args []string) error {
		return instanceFactory()
	},
}

Functions

func FetchSpotPrice added in v0.1.11

func FetchSpotPrice(conn *connections.Connections, input *SpotPriceHistoryInput) ([]*ec2.SpotPrice, error)

Types

type InstUtil

type InstUtil struct {
	Conn *connections.Connections
}

func (*InstUtil) FetchInstance

func (o *InstUtil) FetchInstance(region *cloudmeta.RegionInfo, os string, family string) ([]*cloudmeta.InstInfo, error)

type InstanceProduct

type InstanceProduct struct {
	ClockSpeed             string `json:"clockSpeed"`
	CurrentGeneration      string `json:"currentGeneration"`
	DedicatedEbsThroughput string `json:"dedicatedEbsThroughput"`
	InstanceFamily         string `json:"instanceFamily"`
	InstanceType           string `json:"instanceType"`
	Memory                 string `json:"memory"`
	NetworkPerformance     string `json:"networkPerformance"`
	OperatingSystem        string `json:"operatingSystem"`
	PhysicalProcessor      string `json:"physicalProcessor"`
	ProcessorArchitecture  string `json:"processorArchitecture"`
	Storage                string `json:"storage"`
	Vcpu                   string `json:"vcpu"`
}

type SpotPriceHistoryInput added in v0.1.11

type SpotPriceHistoryInput struct {
	InstanceTypeList     []*string
	AvailabilityZoneList []*string
	Duration             time.Duration `validate:"required"`
}

Jump to

Keyboard shortcuts

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