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"` }
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{})
}
Click to show internal directories.
Click to hide internal directories.