Documentation ¶
Index ¶
Constants ¶
View Source
const ( AWSPriceClientContextKey = "aws" AlibabaCloudClientContextKey = "alibabacloud" AWSGlobalAKEnv = "AWS_GLOBAL_ACCESS_KEY" AWSGlobalSKEnv = "AWS_GLOBAL_SECRET_KEY" AWSCNAKEnv = "AWS_CN_ACCESS_KEY" AWSCNSKEnv = "AWS_CN_SECRET_KEY" AlibabaCloudAKSKPoolEnv = "ALIBABACLOUD_AKSK_POOL" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSEC2Billing ¶
type AWSEC2Billing struct {
Rate float64 `json:"rate"`
}
type AWSEC2SPPaymentOption ¶
type AWSEC2SPPaymentOption string
const ( AWSEC2SPPaymentOptionAllUpfront AWSEC2SPPaymentOption = "all" AWSEC2SPPaymentOptionPartialUpfront AWSEC2SPPaymentOption = "partial" AWSEC2SPPaymentOptionNoUpfront AWSEC2SPPaymentOption = "no" )
type InstanceTypePrice ¶
type InstanceTypePrice struct { Arch string `json:"arch"` VCPU float64 `json:"vcpu"` Memory float64 `json:"memory"` GPU float64 `json:"gpu"` Zones []string `json:"zones"` OnDemandPricePerHour float64 `json:"onDemandPricePerHour"` // AWSEC2Billing represents the cost of saving plan billing // key is {savings plan type}/{term length}/{payment option} AWSEC2Billing map[string]AWSEC2Billing `json:"awsEC2Billing,omitempty"` // SpotPricePerHour represents the smallest spot price per hour in different zones SpotPricePerHour map[string]float64 `json:"spotPricePerHour,omitempty"` }
func (*InstanceTypePrice) DeepCopy ¶
func (i *InstanceTypePrice) DeepCopy() *InstanceTypePrice
type RegionTypeKey ¶
type RegionalInstancePrice ¶
type RegionalInstancePrice struct { InstanceTypePrices map[string]*InstanceTypePrice `json:"instanceTypePrices"` // TODO: delete this field when all the customer upgrades the components InstanceTypeEC2Price map[string]*InstanceTypePrice `json:"instanceTypeEC2Price"` }
func (*RegionalInstancePrice) DeepCopy ¶
func (r *RegionalInstancePrice) DeepCopy() *RegionalInstancePrice
Click to show internal directories.
Click to hide internal directories.