Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HTMLTemplate = `` /* 6262-byte string literal not displayed */
Functions ¶
Types ¶
type CostComponent ¶ added in v0.7.4
type CostComponent struct { Name string `json:"name"` Unit string `json:"unit"` HourlyQuantity *decimal.Decimal `json:"hourlyQuantity"` MonthlyQuantity *decimal.Decimal `json:"monthlyQuantity"` Price decimal.Decimal `json:"price"` HourlyCost *decimal.Decimal `json:"hourlyCost"` MonthlyCost *decimal.Decimal `json:"monthlyCost"` }
type ReportInput ¶ added in v0.7.8
type Resource ¶ added in v0.7.4
type Resource struct { Name string `json:"name"` Tags map[string]string `json:"tags,omitempty"` Metadata map[string]string `json:"metadata"` HourlyCost *decimal.Decimal `json:"hourlyCost"` MonthlyCost *decimal.Decimal `json:"monthlyCost"` CostComponents []CostComponent `json:"costComponents,omitempty"` SubResources []Resource `json:"subresources,omitempty"` }
type ResourceSummary ¶ added in v0.7.8
type ResourceSummary struct { SupportedCounts *map[string]int `json:"supportedCounts,omitempty"` UnsupportedCounts *map[string]int `json:"unsupportedCounts,omitempty"` TotalSupported *int `json:"totalSupported,omitempty"` TotalUnsupported *int `json:"totalUnsupported,omitempty"` TotalNoPrice *int `json:"totalNoPrice,omitempty"` Total *int `json:"total,omitempty"` }
func BuildResourceSummary ¶ added in v0.7.8
func BuildResourceSummary(resources []*schema.Resource, opts ResourceSummaryOptions) *ResourceSummary
type ResourceSummaryOptions ¶ added in v0.7.8
type Root ¶ added in v0.7.4
type Root struct { Resources []Resource `json:"resources"` TotalHourlyCost *decimal.Decimal `json:"totalHourlyCost"` TotalMonthlyCost *decimal.Decimal `json:"totalMonthlyCost"` TimeGenerated time.Time `json:"timeGenerated"` ResourceSummary *ResourceSummary `json:"resourceSummary"` }
func Combine ¶ added in v0.7.4
func Combine(inputs []ReportInput, opts Options) Root
func ToOutputFormat ¶ added in v0.7.4
Click to show internal directories.
Click to hide internal directories.