lifecycle

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 16 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 returns lifecycle data, serving the cache when fresh. A transient InspectAll failure is propagated to the caller (the cache is left untouched so the next call retries) so that callers can distinguish a real failure from a healthy liaison that happens to have zero groups.

Jump to

Keyboard shortcuts

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