Documentation ¶
Index ¶
Constants ¶
View Source
const ( InstanceTypesCacheKey = "types" InstanceTypesCacheTTL = 23 * time.Hour // AWS uses 5 min here. TODO: check on why that frequent. Pricing? )
Variables ¶
This section is empty.
Functions ¶
func NewInstanceType ¶
func NewInstanceType(ctx context.Context, sku *skewer.SKU, kc *v1alpha5.KubeletConfiguration, region string, offerings cloudprovider.Offerings) *cloudprovider.InstanceType
Types ¶
type Provider ¶
func NewProvider ¶
func NewProvider(region string, cache *cache.Cache, resourceSkusClient skewer.ResourceClient, pricingProvider *pricing.Provider, offeringsCache *kcache.UnavailableOfferings) *Provider
func (*Provider) List ¶
func (p *Provider) List( ctx context.Context, kc *v1alpha5.KubeletConfiguration) ([]*cloudprovider.InstanceType, error)
List Get all instance type options
Click to show internal directories.
Click to hide internal directories.