Documentation
¶
Index ¶
- Variables
- func FileExists(fileLocation string) bool
- type AzurePriceAPI
- type AzurePrices
- func (ap *AzurePrices) FileExists() bool
- func (ap *AzurePrices) GeneratePrices(filename string)
- func (ap *AzurePrices) ReadAzurePrices(dateStr string) error
- func (ap *AzurePrices) SetFile(filePath string)
- func (ap *AzurePrices) WritePriceHeader(w io.Writer, prices AzurePrices)
- func (ap *AzurePrices) WritePriceOutput(w io.Writer, prices AzurePrices)
- type BillingCSV
- type Config
- type PriceItem
- type RestClient
Constants ¶
This section is empty.
Variables ¶
View Source
var AggregateResourceGroup aggregateResourceGroup
############################################################### Aggregates popuplated during the read of the billing CSV ###############################################################
View Source
var ManagedDiskLookup managedDiskLookup
View Source
var MeterLookup priceMeter
View Source
var PlatformMapLookup platformMapLookup
View Source
var ReportingCategoryLookup reportingCategoryLookup
View Source
var SummaryCategoryLookup summaryCategoryLookup
View Source
var VmSizeLookup vmLookup
Functions ¶
func FileExists ¶
Types ¶
type AzurePriceAPI ¶
type AzurePriceAPI struct { CurrencyCode string TierMinimumUnits float64 ReservationTerm string RetailPrice float64 UnitPrice float64 ArmRegionName string Location string EffectiveStartDate string MeterId string MeterName string ProductId string SkuId string ProductName string SkuName string ServiceName string ServiceId string ServiceFamily string UnitOfMeasure string ItemType string `json:"type"` IsPrimaryMeterRegion bool ArmSkuName string }
type AzurePrices ¶
type AzurePrices struct { CustomerBillingCurrencyEntityId string CustomerEntityType string Items []AzurePriceAPI NextPageLink string Count int // contains filtered or unexported fields }
func (*AzurePrices) FileExists ¶
func (ap *AzurePrices) FileExists() bool
func (*AzurePrices) GeneratePrices ¶
func (ap *AzurePrices) GeneratePrices(filename string)
func (*AzurePrices) ReadAzurePrices ¶
func (ap *AzurePrices) ReadAzurePrices(dateStr string) error
func (*AzurePrices) SetFile ¶
func (ap *AzurePrices) SetFile(filePath string)
func (*AzurePrices) WritePriceHeader ¶
func (ap *AzurePrices) WritePriceHeader(w io.Writer, prices AzurePrices)
func (*AzurePrices) WritePriceOutput ¶
func (ap *AzurePrices) WritePriceOutput(w io.Writer, prices AzurePrices)
type BillingCSV ¶
type BillingCSV struct {
// contains filtered or unexported fields
}
func (*BillingCSV) ProcessFile ¶
func (bcsv *BillingCSV) ProcessFile() error
func (*BillingCSV) SetFile ¶
func (bcsv *BillingCSV) SetFile(filePath string)
type Config ¶
type Config struct { WorkingDirectory string `json:"workingDirectory"` BillingCSVFile string `json:"billingCSVFile"` OutputAzurePricesCSVFile string `json:"outputAzurePricesCSVFile"` BillingCSVMaxDate string `json:"billingCSVMaxDate"` NumDaysInMonth string `json:"numDaysInMonth"` LookupDirectory string `json:"lookupDirectory"` OutputAggregateRGCsvFile string `json:"outputAggregateRGCsvFile"` }
var ConfigMap Config
func (*Config) LoadConfiguration ¶
type PriceItem ¶
type PriceItem struct { MeterId string MeterName string ProductName string SkuName string ArmSkuName string ServiceFamily string ServiceName string Location string UnitOfMeasure string ItemType string ReservationTerm string EffectiveStartDate string TierMinimumUnits float64 UnitPrice float64 RetailPrice float64 }
type RestClient ¶
type RestClient struct {
// contains filtered or unexported fields
}
RestClient is exported
Source Files
¶
- AzurePrices.go
- AzurePrices_model.go
- BillingCSV.go
- BillingCSV_model.go
- Config.go
- PriceItem.go
- PriceItem_model.go
- aggregateResourceGroup.go
- aggregateResourceGroup_model.go
- azurePriceAPI.go
- azurePriceAPI_model.go
- billingLine.go
- billingLine_model.go
- filesystem_interface.go
- globals.go
- managedDiskLookup.go
- managedDiskLookupItem.go
- managedDiskLookupItem_model.go
- managedDiskLookup_model.go
- platformMapLookup.go
- platformMapLookupItem.go
- platformMapLookupItem_model.go
- platformMapLookup_model.go
- priceMeter.go
- priceMeterItem.go
- priceMeterItem_model.go
- priceMeter_model.go
- reportingCategoryLookup.go
- reportingCategoryLookupItem.go
- reportingCategoryLookupItem_model.go
- reportingCategoryLookup_model.go
- restClient.go
- restDefaults.go
- summaryCategoryLookup.go
- summaryCategoryLookupItem.go
- summaryCategoryLookupItem_model.go
- summaryCategoryLookup_model.go
- utils.go
- vmLookup.go
- vmLookupItem.go
- vmLookupItem_model.go
- vmLookup_model.go
Click to show internal directories.
Click to hide internal directories.