apis

package
v0.1.0 Latest Latest
Warning

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

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

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 RegionTypeKey struct {
	Region       string
	InstanceType string
}

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

Jump to

Keyboard shortcuts

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