source

package
v1.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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