billing

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package billing wraps Azure Cost Management for the cloudlist `balance` asset. Azure has no native "credit balance" endpoint either; we surface the current month-to-date Cost (the closest equivalent across tenants) per the PLAN.md decision.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Client          *azapi.Client
	SubscriptionIDs []string
}

func (*Driver) QueryAccountBalance

func (d *Driver) QueryAccountBalance(ctx context.Context)

QueryAccountBalance reports current-month spend for each subscription via logger. Errors are surfaced as Info to keep cloudlist resilient when the caller credential lacks `Microsoft.CostManagement/query/action`.

Jump to

Keyboard shortcuts

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