sqlite

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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() ([]model.ResourceGroupSummary, error)

func (*CostManagementStore) GetAllBillingPeriods

func (cm *CostManagementStore) GetAllBillingPeriods() ([]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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL