basic

package module
v0.0.0-...-2f1af7f Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultClusterPricePerHour float64 = 0.10
View Source
const DefaultNetworkCrossRegionEgressPricePerGiB float64 = 0.01
View Source
const DefaultNetworkCrossZoneEgressPricePerGiB float64 = 0.01
View Source
const DefaultNetworkInternetEgressPricePerGiB float64 = 0.143
View Source
const DefaultNetworkLocalEgressPricePerGiB float64 = 0.0
View Source
const DefaultNetworkNATGatewayEgressPricePerGiB float64 = 0.045
View Source
const DefaultNetworkNATGatewayIngressPricePerGiB float64 = 0.045
View Source
const DefaultNodePricePerGPUHour float64 = 0.95
View Source
const DefaultNodePricePerLocalDiskGiBHour float64 = 0.00005479452

This was originally set to double that of persistent volume, and it is unclear exactly why. In order to match the legacy pipeline, it is now set to the same as persistent volume pricing const DefaultNodePricePerLocalDiskGiBHour float64 = 0.0001096

View Source
const DefaultNodePricePerRAMGiBHour float64 = 0.004237
View Source
const DefaultNodePricePerVCPUHour float64 = 0.031611
View Source
const DefaultPersistentVolumePricePerGiBHour float64 = 0.00005479452
View Source
const DefaultServicePricePerHour float64 = 0.025
View Source
const DefaultSpotNodePricePerGPUHour float64 = 0.308
View Source
const DefaultSpotNodePricePerRAMGiBHour float64 = 0.000892
View Source
const DefaultSpotNodePricePerVCPUHour float64 = 0.006655
View Source
const SourceKind = "basic"
View Source
const SourceName = "basic"

Variables

This section is empty.

Functions

func DefaultBasicPricingStore

func DefaultBasicPricingStore(ctx context.Context) (pricing.PricingStore, error)

func GetDefaultClusterPricing

func GetDefaultClusterPricing() []*pricing.ClusterPricing

func GetDefaultNetworkPricing

func GetDefaultNetworkPricing() []*pricing.NetworkPricing

func GetDefaultNodePricing

func GetDefaultNodePricing() []*pricing.NodePricing

func GetDefaultPersistentVolumePricing

func GetDefaultPersistentVolumePricing() []*pricing.PersistentVolumePricing

func GetDefaultPricingSet

func GetDefaultPricingSet() *pricing.PricingSet

func GetDefaultServicePricing

func GetDefaultServicePricing() []*pricing.ServicePricing

Types

type PricingModule

type PricingModule struct {
	// contains filtered or unexported fields
}

func NewBasicPricingModule

func NewBasicPricingModule(store pricing.PricingStore) (*PricingModule, error)

func (*PricingModule) Checksum

func (pm *PricingModule) Checksum(ctx context.Context) (string, error)

func (*PricingModule) GetPricingSet

func (pm *PricingModule) GetPricingSet(ctx context.Context) (*pricing.PricingSet, error)

func (*PricingModule) NewClusterPricingReader

func (pm *PricingModule) NewClusterPricingReader(ctx context.Context) (reader.Reader[*pricing.ClusterPricing], error)

func (*PricingModule) NewNetworkPricingReader

func (pm *PricingModule) NewNetworkPricingReader(ctx context.Context) (reader.Reader[*pricing.NetworkPricing], error)

func (*PricingModule) NewNodePricingReader

func (pm *PricingModule) NewNodePricingReader(ctx context.Context) (reader.Reader[*pricing.NodePricing], error)

func (*PricingModule) NewPersistentVolumePricingReader

func (pm *PricingModule) NewPersistentVolumePricingReader(ctx context.Context) (reader.Reader[*pricing.PersistentVolumePricing], error)

func (*PricingModule) NewServicePricingReader

func (pm *PricingModule) NewServicePricingReader(ctx context.Context) (reader.Reader[*pricing.ServicePricing], error)

func (*PricingModule) SetClusterPricePerHour

func (pm *PricingModule) SetClusterPricePerHour(ctx context.Context, price float64) error

func (*PricingModule) SetNetworkCrossRegionEgressPricePerGiB

func (pm *PricingModule) SetNetworkCrossRegionEgressPricePerGiB(ctx context.Context, price float64) error

func (*PricingModule) SetNetworkCrossZoneEgressPricePerGiB

func (pm *PricingModule) SetNetworkCrossZoneEgressPricePerGiB(ctx context.Context, price float64) error

func (*PricingModule) SetNetworkInternetEgressPricePerGiB

func (pm *PricingModule) SetNetworkInternetEgressPricePerGiB(ctx context.Context, price float64) error

func (*PricingModule) SetNetworkLocalEgressPricePerGiB

func (pm *PricingModule) SetNetworkLocalEgressPricePerGiB(ctx context.Context, price float64) error

func (*PricingModule) SetNetworkNATGatewayEgressPricePerGiB

func (pm *PricingModule) SetNetworkNATGatewayEgressPricePerGiB(ctx context.Context, price float64) error

func (*PricingModule) SetNetworkNATGatewayIngressPricePerGiB

func (pm *PricingModule) SetNetworkNATGatewayIngressPricePerGiB(ctx context.Context, price float64) error

func (*PricingModule) SetNodePricePerCPUCoreHour

func (pm *PricingModule) SetNodePricePerCPUCoreHour(ctx context.Context, price float64) error

func (*PricingModule) SetNodePricePerGPUHour

func (pm *PricingModule) SetNodePricePerGPUHour(ctx context.Context, price float64) error

func (*PricingModule) SetNodePricePerLocalDiskGiBHour

func (pm *PricingModule) SetNodePricePerLocalDiskGiBHour(ctx context.Context, price float64) error

func (*PricingModule) SetNodePricePerRAMGiBHour

func (pm *PricingModule) SetNodePricePerRAMGiBHour(ctx context.Context, price float64) error

func (*PricingModule) SetPersistentVolumePricePerStorageGiBHour

func (pm *PricingModule) SetPersistentVolumePricePerStorageGiBHour(ctx context.Context, price float64) error

func (*PricingModule) SetServicePricePerHour

func (pm *PricingModule) SetServicePricePerHour(ctx context.Context, price float64) error

func (*PricingModule) SourceKind

func (pm *PricingModule) SourceKind() string

func (*PricingModule) SourceName

func (pm *PricingModule) SourceName() string

Jump to

Keyboard shortcuts

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