Documentation ¶
Index ¶
Constants ¶
View Source
const MONTH_HOURS = 730.0
Variables ¶
View Source
var PricingSchemeLookup = map[string]PricingScheme{ "consumption": Consumption, "reservation1yr": Reservation1Yr, "reservation3yr": Reservation3Yr, }
Functions ¶
func PricePlanFile ¶
Types ¶
type AksCluster ¶
type AksCluster struct {
IsPaid bool
}
func (*AksCluster) GetHourlyPrice ¶
func (A *AksCluster) GetHourlyPrice(context.Context) float64
type PricingScheme ¶
type PricingScheme int
const ( Consumption PricingScheme = iota DevTestConsumption Reservation1Yr Reservation3Yr )
type Response ¶
type Response events.APIGatewayProxyResponse
Response is of type APIGatewayProxyResponse since we're leveraging the AWS Lambda Proxy Request functionality (default behavior)
https://serverless.com/framework/docs/providers/aws/events/apigateway/#lambda-proxy-integration
type VirtualMachine ¶
type VirtualMachine struct { IsWindows bool Size string Location string Count float64 IsSpotEnabled bool IsLowPriority bool PricingScheme PricingScheme }
func (*VirtualMachine) GenerateQuery ¶
func (v *VirtualMachine) GenerateQuery(context.Context) string
func (*VirtualMachine) GetHourlyPrice ¶
func (v *VirtualMachine) GetHourlyPrice(ctx context.Context) float64
Click to show internal directories.
Click to hide internal directories.