Documentation ¶
Index ¶
- func FetchUsageData(ctx *config.RunContext, project *schema.Project) (map[string]*schema.UsageData, error)
- func GetPrices(ctx *config.RunContext, c *apiclient.PricingAPIClient, r *schema.Resource) error
- func GetPricesConcurrent(ctx *config.RunContext, c *apiclient.PricingAPIClient, ...) error
- func PopulateActualCosts(ctx *config.RunContext, project *schema.Project) error
- func PopulatePrices(ctx *config.RunContext, project *schema.Project) error
- func UploadCloudResourceIDs(ctx *config.RunContext, project *schema.Project) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchUsageData ¶ added in v0.10.12
func FetchUsageData(ctx *config.RunContext, project *schema.Project) (map[string]*schema.UsageData, error)
FetchUsageData fetches usage estimates derived from cloud provider reported usage from the Infracost Cloud Usage API for each supported resource in the project
func GetPrices ¶
func GetPrices(ctx *config.RunContext, c *apiclient.PricingAPIClient, r *schema.Resource) error
func GetPricesConcurrent ¶ added in v0.7.15
func GetPricesConcurrent(ctx *config.RunContext, c *apiclient.PricingAPIClient, resources []*schema.Resource) error
GetPricesConcurrent gets the prices of all resources concurrently. Concurrency level is calculated using the following formula: max(min(4, numCPU * 4), 16)
func PopulateActualCosts ¶ added in v0.10.12
func PopulateActualCosts(ctx *config.RunContext, project *schema.Project) error
PopulateActualCosts fetches cloud provider reported costs from the Infracost Cloud Usage API and adds corresponding cost components to the project's resources
func PopulatePrices ¶
func PopulatePrices(ctx *config.RunContext, project *schema.Project) error
func UploadCloudResourceIDs ¶ added in v0.10.13
func UploadCloudResourceIDs(ctx *config.RunContext, project *schema.Project) error
UploadCloudResourceIDs sends the project scoped cloud resource ids to the Usage API, so they can be used to provide usage estimates.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.