Documentation
¶
Overview ¶
Package ledger provides anonymous usage tracking for foundryctl commands.
Index ¶
Constants ¶
View Source
const ( EventGauge = "gauge" EventForge = "forge" EventCast = "cast" EventCatalog = "catalog" )
Event names for foundryctl commands.
View Source
const ( PropPlatform = "platform" PropMode = "mode" PropFlavor = "flavor" PropPatchesConfigured = "patches_configured" PropPatchCount = "patch_count" PropInfrastructureEnabled = "infrastructure_enabled" PropMetaStoreKind = "metastore_kind" PropTelemetryStoreKind = "telemetry_store_kind" PropTelemetryKeeperKind = "telemetry_keeper_kind" PropSuccess = "success" PropError = "error" )
Property keys for casting details.
Variables ¶
This section is empty.
Functions ¶
func CastingProperties ¶
CastingProperties extracts trackable properties from a Casting config.
Types ¶
type Config ¶
Config holds ledger configuration.
type Ledger ¶
type Ledger interface {
// Track records a single foundryctl event with the given properties.
Track(ctx context.Context, event string, properties map[string]any)
// Close flushes any pending events and releases resources.
Close() error
}
Ledger is the interface for tracking CLI usage events.
Click to show internal directories.
Click to hide internal directories.