lifecycle

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Overview

Package lifecycle provides lifecycle data collection functionality for FODC agent.

Index

Constants

View Source
const (
	// DefaultReportDir is the default directory for lifecycle report files.
	DefaultReportDir = "/tmp/lifecycle-reports"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector collects lifecycle data from local files.

func NewCollector

func NewCollector(log *logger.Logger, grpcAddr, reportDir string, cacheTTL time.Duration) *Collector

NewCollector creates a new lifecycle data collector.

func (*Collector) Collect

func (c *Collector) Collect(ctx context.Context) (*fodcv1.LifecycleData, error)

Collect collects lifecycle data from local files. Data is cached for cacheTTL duration; after expiry the next call refreshes the cache.

Jump to

Keyboard shortcuts

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