Documentation ¶
Index ¶
- Constants
- type Scaleway
- func (c *Scaleway) AllNodePricing() (interface{}, error)
- func (*Scaleway) ApplyReservedInstancePricing(map[string]*models.Node)
- func (scw *Scaleway) ClusterInfo() (map[string]string, error)
- func (*Scaleway) ClusterManagementPricing() (string, float64, error)
- func (c *Scaleway) CombinedDiscountForNode(instanceType string, isPreemptible bool, ...) float64
- func (c *Scaleway) DownloadPricingData() error
- func (*Scaleway) GetAddresses() ([]byte, error)
- func (scw *Scaleway) GetConfig() (*models.CustomPricing, error)
- func (*Scaleway) GetDisks() ([]byte, error)
- func (c *Scaleway) GetKey(l map[string]string, n *v1.Node) models.Key
- func (*Scaleway) GetLocalStorageQuery(window, offset time.Duration, rate bool, used bool) string
- func (scw *Scaleway) GetManagementPlatform() (string, error)
- func (*Scaleway) GetOrphanedResources() ([]models.OrphanedResource, error)
- func (c *Scaleway) GetPVKey(pv *v1.PersistentVolume, parameters map[string]string, defaultRegion string) models.PVKey
- func (c *Scaleway) LoadBalancerPricing() (*models.LoadBalancer, error)
- func (c *Scaleway) NetworkPricing() (*models.Network, error)
- func (c *Scaleway) NodePricing(key models.Key) (*models.Node, models.PricingMetadata, error)
- func (c *Scaleway) PVPricing(pvk models.PVKey) (*models.PV, error)
- func (c *Scaleway) PricingSourceStatus() map[string]*models.PricingSource
- func (c *Scaleway) PricingSourceSummary() interface{}
- func (c *Scaleway) Regions() []string
- func (c *Scaleway) ServiceAccountStatus() *models.ServiceAccountStatus
- func (c *Scaleway) UpdateConfig(r io.Reader, updateType string) (*models.CustomPricing, error)
- func (c *Scaleway) UpdateConfigFromConfigMap(a map[string]string) (*models.CustomPricing, error)
- type ScalewayPricing
Constants ¶
View Source
const (
InstanceAPIPricing = "Instance API Pricing"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scaleway ¶
type Scaleway struct { Clientset clustercache.ClusterCache Config models.ProviderConfig Pricing map[string]*ScalewayPricing ClusterRegion string ClusterAccountID string DownloadPricingDataLock sync.RWMutex }
func (*Scaleway) AllNodePricing ¶
func (*Scaleway) ApplyReservedInstancePricing ¶
func (*Scaleway) ClusterManagementPricing ¶
func (*Scaleway) CombinedDiscountForNode ¶
func (*Scaleway) DownloadPricingData ¶
func (*Scaleway) GetAddresses ¶
func (*Scaleway) GetLocalStorageQuery ¶
func (*Scaleway) GetManagementPlatform ¶
func (*Scaleway) GetOrphanedResources ¶
func (*Scaleway) GetOrphanedResources() ([]models.OrphanedResource, error)
func (*Scaleway) LoadBalancerPricing ¶
func (c *Scaleway) LoadBalancerPricing() (*models.LoadBalancer, error)
func (*Scaleway) NodePricing ¶
func (*Scaleway) PricingSourceStatus ¶
func (c *Scaleway) PricingSourceStatus() map[string]*models.PricingSource
func (*Scaleway) PricingSourceSummary ¶
func (c *Scaleway) PricingSourceSummary() interface{}
PricingSourceSummary returns the pricing source summary for the provider. The summary represents what was _parsed_ from the pricing source, not everything that was _available_ in the pricing source.
func (*Scaleway) ServiceAccountStatus ¶
func (c *Scaleway) ServiceAccountStatus() *models.ServiceAccountStatus
func (*Scaleway) UpdateConfig ¶
func (*Scaleway) UpdateConfigFromConfigMap ¶
type ScalewayPricing ¶
Click to show internal directories.
Click to hide internal directories.