plane

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package plane holds pure dual-plane usage projection helpers used by runtime metering and settlement without importing the executor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomerPlaneUsageEvent

func CustomerPlaneUsageEvent(ev lipapi.Event) lipapi.Event

CustomerPlaneUsageEvent projects client-visible usage and strips all provider billable scopes and provider money (design D1/D2, req 1.6). The result is a fresh UsageDelta built from retained scopes: lipapi.Event has no correlation/trace/model identity fields, and provider envelope fields such as RawUsageJSON must not leak onto the customer plane.

func MoneyFromUsageEvent

func MoneyFromUsageEvent(ev lipapi.Event) *metering.MoneyObservation

MoneyFromUsageEvent returns money only when CostPresent is set (req 2.9).

func QuantitiesFromUsageEvent

func QuantitiesFromUsageEvent(ev lipapi.Event) []metering.Quantity

QuantitiesFromUsageEvent maps a usage event to present metering quantities. Explicit UsagePresence wins; unmarked legacy events only emit nonzero counters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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