scaleway

package
v0.0.0-...-8b28c38 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 (c *Scaleway) AllNodePricing() (interface{}, error)

func (*Scaleway) ApplyReservedInstancePricing

func (*Scaleway) ApplyReservedInstancePricing(map[string]*models.Node)

func (*Scaleway) ClusterInfo

func (scw *Scaleway) ClusterInfo() (map[string]string, error)

func (*Scaleway) ClusterManagementPricing

func (*Scaleway) ClusterManagementPricing() (string, float64, error)

func (*Scaleway) CombinedDiscountForNode

func (c *Scaleway) CombinedDiscountForNode(instanceType string, isPreemptible bool, defaultDiscount, negotiatedDiscount float64) float64

func (*Scaleway) DownloadPricingData

func (c *Scaleway) DownloadPricingData() error

func (*Scaleway) GetAddresses

func (*Scaleway) GetAddresses() ([]byte, error)

func (*Scaleway) GetConfig

func (scw *Scaleway) GetConfig() (*models.CustomPricing, error)

func (*Scaleway) GetDisks

func (*Scaleway) GetDisks() ([]byte, error)

func (*Scaleway) GetKey

func (c *Scaleway) GetKey(l map[string]string, n *v1.Node) models.Key

func (*Scaleway) GetLocalStorageQuery

func (*Scaleway) GetLocalStorageQuery(window, offset time.Duration, rate bool, used bool) string

func (*Scaleway) GetManagementPlatform

func (scw *Scaleway) GetManagementPlatform() (string, error)

func (*Scaleway) GetOrphanedResources

func (*Scaleway) GetOrphanedResources() ([]models.OrphanedResource, error)

func (*Scaleway) GetPVKey

func (c *Scaleway) GetPVKey(pv *v1.PersistentVolume, parameters map[string]string, defaultRegion string) models.PVKey

func (*Scaleway) LoadBalancerPricing

func (c *Scaleway) LoadBalancerPricing() (*models.LoadBalancer, error)

func (*Scaleway) NetworkPricing

func (c *Scaleway) NetworkPricing() (*models.Network, error)

func (*Scaleway) NodePricing

func (c *Scaleway) NodePricing(key models.Key) (*models.Node, models.PricingMetadata, error)

func (*Scaleway) PVPricing

func (c *Scaleway) PVPricing(pvk models.PVKey) (*models.PV, error)

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) Regions

func (c *Scaleway) Regions() []string

func (*Scaleway) ServiceAccountStatus

func (c *Scaleway) ServiceAccountStatus() *models.ServiceAccountStatus

func (*Scaleway) UpdateConfig

func (c *Scaleway) UpdateConfig(r io.Reader, updateType string) (*models.CustomPricing, error)

func (*Scaleway) UpdateConfigFromConfigMap

func (c *Scaleway) UpdateConfigFromConfigMap(a map[string]string) (*models.CustomPricing, error)

type ScalewayPricing

type ScalewayPricing struct {
	NodesInfos map[string]*instance.ServerType
	PVCost     float64
}

Jump to

Keyboard shortcuts

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