Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CacheFileName = "ec2-instance-types.json"
)
Functions ¶
This section is empty.
Types ¶
type Details ¶
type Details struct { ec2types.InstanceTypeInfo OndemandPricePerHour *float64 SpotPrice *float64 }
Details hold all the information on an ec2 instance type
type Provider ¶
type Provider struct { Region string DirectoryPath string FullRefreshTTL time.Duration // contains filtered or unexported fields }
func LoadFromOrNew ¶
func LoadFromOrNew(directoryPath string, region string, ttl time.Duration, ec2Client ec2.DescribeInstanceTypesAPIClient) *Provider
NewProvider creates a new Instance Types provider used to fetch Instance Type information from EC2 and optionally cache
func NewProvider ¶
func NewProvider(directoryPath string, region string, ttl time.Duration, ec2Client ec2.DescribeInstanceTypesAPIClient) *Provider
NewProvider creates a new Instance Types provider used to fetch Instance Type information from EC2
func (*Provider) CacheCount ¶
Click to show internal directories.
Click to hide internal directories.