Documentation
¶
Overview ¶
Package configstreamconsumer implements a component that consumes config streams from the core agent.
team: agent-configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component interface {
IsActive() bool
}
Component is the config stream consumer. IsActive is true once the initial snapshot has been applied to the global config builder.
type Option ¶
type Option func(*Params)
Option mutates Params.
func WithReadyTimeout ¶
WithReadyTimeout overrides the default first-snapshot timeout.
type Params ¶
type Params struct {
// ClientName identifies this remote agent (e.g. "system-probe"). Required.
ClientName string
// CLIConfigPath is the binary's resolved -config / --cfgpath (file or dir).
CLIConfigPath string
// ReadyTimeout caps NewComponent's wait for the first snapshot. Defaults to 60s.
ReadyTimeout time.Duration
}
Params for the configstreamconsumer component.
Click to show internal directories.
Click to hide internal directories.