common

package
v1.2.0-main Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Info key constants for system information collection
	ArchitectureKey = "architecture"
	HostnameKey     = "hostname"
	KernelKey       = "kernel"

	// CPU info keys
	CPUCoresKey      = "cpuCores"
	CPUProcessorsKey = "cpuProcessors"
	CPUModelKey      = "cpuModel"

	// GPU info keys
	GPUKey = "gpu"

	// Memory info keys
	MemoryTotalKbKey = "memoryTotalKb"

	// Network info keys
	NetInterfaceDefaultKey = "netInterfaceDefault"
	NetIPDefaultKey        = "netIpDefault"
	NetMACDefaultKey       = "netMacDefault"

	// BIOS info keys
	BIOSVendorKey  = "biosVendor"
	BIOSVersionKey = "biosVersion"

	// System info keys
	ProductNameKey   = "productName"
	ProductUUIDKey   = "productUuid"
	ProductSerialKey = "productSerial"

	// Distribution info keys
	DistroNameKey    = "distroName"
	DistroVersionKey = "distroVersion"

	// Identity / security (runtime/conditional collectors)
	ManagementCertNotAfterKey = "managementCertNotAfter"
	ManagementCertSerialKey   = "managementCertSerial"
	TPMVendorInfoKey          = "tpmVendorInfo"
)

Variables

This section is empty.

Functions

func BuiltInKeys

func BuiltInKeys() []string

BuiltInKeys returns the list of built-in system-info keys.

func IsBuiltInKey

func IsBuiltInKey(key string) bool

IsBuiltInKey reports whether the key corresponds to a built-in collector.

func IsKnownKey

func IsKnownKey(key string) bool

IsKnownKey reports whether the key is supported by the agent.

func RuntimeKeys

func RuntimeKeys() []string

RuntimeKeys returns the list of runtime / conditional system-info keys.

Types

type KeySet

type KeySet map[string]struct{}

KeySet represents a set of system-info keys.

func (KeySet) Has

func (s KeySet) Has(k string) bool

Has reports whether the given system-info key exists in the set.

func (KeySet) Strings

func (s KeySet) Strings() []string

Strings returns the keys as a sorted []string.

Jump to

Keyboard shortcuts

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