azure

package
v0.0.0-...-87ee8e0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzurePrice

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

func New

func New() *AzurePrice

func (*AzurePrice) Resolve

func (a *AzurePrice) Resolve(jobsCh <-chan models.AzurePriceResolverOpts, resultCh chan<- AzurePriceItems, done <-chan struct{})

type AzurePriceItem

type AzurePriceItem struct {
	// Azure data center where the resource is deployed
	Location string `json:"location" validate:"required"`

	// The currency in which rates are defined.
	CurrencyCode string `json:"currencyCode" validate:"required"`

	// SKU name registered in Azure. E.g. Standard_B2ms
	ArmSkuName string `json:"armSkuName" validate:"required"`

	ProductName string `json:"productName" validate:"required"`

	// Prices per hour without discount
	RetailPrice float32 `json:"retailPrice" validate:"required"`

	// Pay-as-you-go, one year or three years
	ReservationTerm string `json:"reservationTerm"`
}

See docs: https://learn.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices#api-property-details

type AzurePriceItems

type AzurePriceItems struct {
	Items []AzurePriceItem
	Err   error
}

type AzurePriceResolver

type AzurePriceResolver interface {
	Resolve(jobsCh <-chan models.AzurePriceResolverOpts, resultCh chan<- AzurePriceItems, done <-chan struct{})
}

Jump to

Keyboard shortcuts

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