ec2pricer

package module
v0.0.0-...-a8f4fc7 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

README

ec2pricer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstancePricing

func GetInstancePricing(config *InstanceAppConfig)

func GetKeyByVal

func GetKeyByVal(input map[string]string, val string, caseInsensitive bool) string

func GetMatchingKey

func GetMatchingKey(input map[string]string, key string, caseInsensitive bool) string

func StringInSlice

func StringInSlice(a string, list []string, caseInsensitive bool) bool

Types

type GetEC2InstancePriceInput

type GetEC2InstancePriceInput struct {
	Location        string
	InstanceType    string
	OperatingSystem string
	Tenancy         string
	PreInstalledSw  string
	Term            string
}

type GetEC2InstancePricingOutput

type GetEC2InstancePricingOutput struct {
	Product        Product
	OnDemandPrices string
	ReservedPrices string
}

type InstanceAppConfig

type InstanceAppConfig struct {
	InstanceType    string
	Location        string
	Tenancy         string
	PreInstalledSw  string
	OperatingSystem string
	Output          string
	Debug           bool
}

type Product

type Product struct {
	ProductFamily string
	SKU           string
	Attributes    struct {
		NetworkPerformance          string
		VCPU                        string
		CapacityStatus              string
		OperatingSystem             string
		PhysicalProcessor           string
		ECU                         string
		PreInstalledSw              string
		ProcessorArchitecture       string
		EnhancedNetworkingSupported string
		Storage                     string
		ClockSpeed                  string
		Tenancy                     string
		LicenseModel                string
		ServiceCode                 string
		CurrentGeneration           string
		DedicatedEbsThroughput      string
		ServiceName                 string
		InstanceType                string
		NormalizationSizeFactor     string
		ProcessorFeatures           string
		Operation                   string
		Memory                      string
		LocationType                string
		InstanceFamily              string
		UsageType                   string
		Location                    string
	}
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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