Documentation
¶
Index ¶
- type CostManagementStore
- func (cm *CostManagementStore) Close() error
- func (cm *CostManagementStore) DeleteSubscriptionBillingPeriod(subscriptionId string, billingPeriod string) error
- func (cm *CostManagementStore) GenerateSummaryByResourceGroup(months int) ([]model.ResourceGroupSummary, error)
- func (cm *CostManagementStore) GetAllBillingPeriods(months int) ([]string, error)
- func (cm *CostManagementStore) GetCollectionSummary() ([]model.CollectionSummary, error)
- func (cm *CostManagementStore) GetSubscriptionBillingPeriods(subscriptionId string) ([]string, error)
- func (cm *CostManagementStore) ListCollectedSubscriptions() ([]model.Subscription, error)
- func (cm *CostManagementStore) SaveCosts(costs []model.ResourceGroupCost, currentResourceGroups []model.ResourceGroup) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CostManagementStore ¶
type CostManagementStore struct {
// contains filtered or unexported fields
}
func NewCostManagementStore ¶
func NewCostManagementStore(dbPath string, truncate bool) (*CostManagementStore, error)
NewCostManagementStore creates a new instance of CostManagementStore and initializes the SQLite database.
func (*CostManagementStore) Close ¶
func (cm *CostManagementStore) Close() error
Close closes the database connection. If an error occurs while closing the connection, the error is returned.
func (*CostManagementStore) DeleteSubscriptionBillingPeriod ¶
func (cm *CostManagementStore) DeleteSubscriptionBillingPeriod(subscriptionId string, billingPeriod string) error
func (*CostManagementStore) GenerateSummaryByResourceGroup ¶
func (cm *CostManagementStore) GenerateSummaryByResourceGroup(months int) ([]model.ResourceGroupSummary, error)
func (*CostManagementStore) GetAllBillingPeriods ¶
func (cm *CostManagementStore) GetAllBillingPeriods(months int) ([]string, error)
func (*CostManagementStore) GetCollectionSummary ¶ added in v0.0.6
func (cm *CostManagementStore) GetCollectionSummary() ([]model.CollectionSummary, error)
func (*CostManagementStore) GetSubscriptionBillingPeriods ¶
func (cm *CostManagementStore) GetSubscriptionBillingPeriods(subscriptionId string) ([]string, error)
func (*CostManagementStore) ListCollectedSubscriptions ¶ added in v0.0.6
func (cm *CostManagementStore) ListCollectedSubscriptions() ([]model.Subscription, error)
func (*CostManagementStore) SaveCosts ¶
func (cm *CostManagementStore) SaveCosts(costs []model.ResourceGroupCost, currentResourceGroups []model.ResourceGroup) error
Click to show internal directories.
Click to hide internal directories.