fleet

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bill

type Bill struct {
	Total, Spot, OnDemand USD
}

type Card

type Card struct{ Label, Value, Caption string }

type Chart

type Chart struct {
	Bill Bill
	Em   Emissions
}

Chart draws the two headline numbers as labeled bars with breakdowns.

func (Chart) Render

func (c Chart) Render() Rendered

type Emissions

type Emissions struct {
	Energy KWh
	Total  KgCO2
}

type Hours

type Hours float64 // a duration

type KWh

type KWh float64 // energy

type KgCO2

type KgCO2 float64 // emissions

type KgCO2PerKWh

type KgCO2PerKWh float64 // grid carbon intensity

type Kilowatts

type Kilowatts float64 // power draw

type Markdown

type Markdown string

func (Markdown) Render

func (m Markdown) Render() Rendered

type Readout

type Readout struct{ Cards []Card }

type Rendered

type Rendered struct{ MIME, Data string }

type USD

type USD float64 // dollars

type USDPerHour

type USDPerHour float64 // a price rate

Jump to

Keyboard shortcuts

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