cloud_pricing

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudPricing

type CloudPricing struct {
	Compute                 map[Region]map[InstanceType]*InstancePricing              `json:"compute"`
	ManagedDB               map[Region]map[Engine]map[InstanceType]*DBInstancePricing `json:"managed_db"`
	ManagedCache            map[Region]map[Engine]map[InstanceType]*InstancePricing   `json:"managed_cache"`
	InternetEgress          map[Region]map[StartUsageAmountGB]float64                 `json:"internet_egress"`
	IntraRegionDataTransfer map[Region]DataTransferPricing                            `json:"inter_region_data_transfer"`
}

type DBDeploymentOption added in v0.17.6

type DBDeploymentOption string

type DBInstancePricing added in v0.17.6

type DBInstancePricing struct {
	SingleAz *InstancePricing `json:"single_az"`
	MultiAz  *InstancePricing `json:"multi_az"`
}

type DataTransferPricing added in v1.4.1

type DataTransferPricing struct {
	IngressPerGB float64 `json:"ingress_per_gb"`
	EgressPerGB  float64 `json:"egress_per_gb"`
}

type Engine added in v0.17.6

type Engine string

type InstancePricing

type InstancePricing struct {
	OnDemand float32 `json:"on_demand"`
	Spot     float32 `json:"spot"`
}

type InstanceType added in v0.17.6

type InstanceType string

type Manager

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

func NewManager

func NewManager(dataDir string) (*Manager, error)

func (*Manager) GetDataTransferPrice added in v1.4.1

func (mgr *Manager) GetDataTransferPrice(node *model.Node) *model.DataTransferPrice

func (*Manager) GetNodePrice

func (mgr *Manager) GetNodePrice(node *model.Node) *model.NodePrice

type Model

type Model struct {
	AWS   *CloudPricing `json:"aws"`
	GCP   *CloudPricing `json:"gcp"`
	Azure *CloudPricing `json:"azure"`
	// contains filtered or unexported fields
}

type PurchaseOption added in v0.17.6

type PurchaseOption string

type Region added in v0.17.6

type Region string

type StartUsageAmountGB added in v1.4.1

type StartUsageAmountGB int64

Jump to

Keyboard shortcuts

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