Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceData ¶
type InstanceData []jsonInstance
InstanceData is a large data structure containing pricing and specs information about all the EC2 instance types from all AWS regions.
func Data ¶
func Data() (*InstanceData, error)
Data generates the InstanceData object based on data sourced from ec2instances.info. The data is available there as a JSON blob, which is converted into golang source-code by the go-bindata tool and unmarshaled into a golang data structure by this library.
type RegionPrices ¶
type RegionPrices struct { Linux Pricing `json:"linux"` LinuxSQL Pricing `json:"linuxSQL"` LinuxSQLEnterprise Pricing `json:"linuxSQLEnterprise"` LinuxSQLWeb Pricing `json:"linuxSQLWeb"` MSWin Pricing `json:"mswin"` MSWinSQL Pricing `json:"mswinSQL"` MSWinSQLEnterprise Pricing `json:"mswinSQLEnterprise"` MSWinSQLWeb Pricing `json:"mswinSQLWeb"` RHEL Pricing `json:"rhel"` SLES Pricing `json:"sles"` EBSSurcharge float64 `json:"ebs,string"` }
type Reserved ¶
type Reserved struct { StandardNoUpfront1Year float64 `json:"yrTerm1Standard.noUpfront,string"` StandardNoUpfront3Years float64 `json:"yrTerm3Standard.noUpfront,string"` StandardPartiallUpfront1Year float64 `json:"yrTerm1Standard.partialUpfront,string"` StandardPartialUpfront3Years float64 `json:"yrTerm3Standard.partialUpfront,string"` StandardAllUpfront1Year float64 `json:"yrTerm1Standard.allUpfront,string"` StandardAllUpfront3Years float64 `json:"yrTerm3Standard.allUpfront,string"` ConvertibleNoUpfront1Year float64 `json:"yrTerm1Convertible.noUpfront,string"` ConvertibleNoUpfront3Years float64 `json:"yrTerm3Convertible.noUpfront,string"` ConvertiblePartiallUpfront1Year float64 `json:"yrTerm1Convertible.partialUpfront,string"` ConvertiblePartialUpfront3Years float64 `json:"yrTerm3Convertible.partialUpfront,string"` ConvertibleAllUpfront1Year float64 `json:"yrTerm1Convertible.allUpfront,string"` ConvertibleAllUpfront3Years float64 `json:"yrTerm3Convertible.allUpfront,string"` }
Click to show internal directories.
Click to hide internal directories.