Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AgentVersion string = "UNSET"
AgentVersion defines the build of the agent along with a short git hash of the point in the repo when the agent as built
Functions ¶
func GetDMIValue ¶
GetDMIValue reads a DMI header value from a Linux Kernel pseudo file
func GetInitrdVersion ¶
GetInitrdVersion reads a file from the system that contains the version of the Rebuild Initrd this agent is running from
func GetKernelVersion ¶
GetKernelVersion queries uname and returns the "Release" field as a string
func HandleError ¶
HandleError provides a simple function to check if a error is empty and if not to log the error and the current state when checking the error. This function is purely to save space in code.
func StringToInt32 ¶
stringToInt32 converts a string into a 32bit integer
func StringToInt64 ¶
stringToInt64 converts a string into a 64bit integer
Types ¶
This section is empty.