common

package
v1.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
	DistroIdKey      = "distroId"

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

Variables

This section is empty.

Functions

func IsRuntimeKey added in v1.4.0

func IsRuntimeKey(key string) bool

IsRuntimeKey reports whether the key is supplied by a runtime collector.

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