carbon

package
v1.120.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RelateCarbonAssets

func RelateCarbonAssets(as *opencost.AssetSet) (map[string]CarbonRow, error)

RelateCarbonAssets returns an estimated CO2e value for each asset in the set. The returned value is in metric tonnes of CO2e, consistent with the units of the embedded lookup table (tonnes CO2e per hour of asset runtime).

Types

type CarbonRow

type CarbonRow struct {
	Co2e float64 `json:"co2e"`
}

Jump to

Keyboard shortcuts

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