azure

package
v0.0.0-...-c411064 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

func PricePlanFile(ctx context.Context, jsonBlob string, priceType PricingScheme) (float64, []string, []string, error)

Types

type AksCluster

type AksCluster struct {
	IsPaid bool
}

func (*AksCluster) GetHourlyPrice

func (A *AksCluster) GetHourlyPrice(context.Context) float64

type AzureDisk

type AzureDisk struct {
	SizeInGb float64
	Location string
	SkuTier  string
	Count    int
}

func (*AzureDisk) GenerateQuery

func (v *AzureDisk) GenerateQuery(context.Context) string

func (*AzureDisk) GetHourlyPrice

func (v *AzureDisk) GetHourlyPrice(ctx context.Context) float64

type PricingScheme

type PricingScheme int
const (
	Consumption PricingScheme = iota
	DevTestConsumption
	Reservation1Yr
	Reservation3Yr
)

type Response

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

Jump to

Keyboard shortcuts

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