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: 7 Imported by: 0

Documentation

Overview

Package billing wraps GCP Cloud Billing for the cloudlist `balance` asset.

GCP doesn't expose a credit balance via API; the closest management-plane signal is the list of billing accounts the caller's principal can see. Each open account corresponds to a paid project bucket — CSPM detectors use this to flag accounts unexpectedly disabled / detached.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Client *api.Client
}

func (*Driver) QueryAccountBalance

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

QueryAccountBalance prints the visible billing accounts via logger. Errors are surfaced as Info to keep cloudlist resilient when the caller credential lacks `billing.accounts.list`.

Jump to

Keyboard shortcuts

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