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 ¶
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.
Click to show internal directories.
Click to hide internal directories.