Documentation
¶
Overview ¶
Package source contains inventory collection adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMachineInfoSource ¶
func NewMachineInfoSource(collector MachineInfoCollector) inventory.Source
NewMachineInfoSource wraps the machine inventory collector as an inventory source.
func NewMachineInfoSourceWithAgentConfig ¶
func NewMachineInfoSourceWithAgentConfig(collector MachineInfoCollector, agentConfig *inventory.AgentConfig) inventory.Source
NewMachineInfoSourceWithAgentConfig wraps the machine inventory collector and attaches useful agent configuration that should travel with inventory rather than OTLP telemetry.
Types ¶
type MachineInfoCollector ¶
type MachineInfoCollector interface {
Collect(ctx context.Context) (*machineinfo.MachineInfo, error)
}
MachineInfoCollector is the local machine inventory collector dependency.
Click to show internal directories.
Click to hide internal directories.