Documentation ¶
Index ¶
- Constants
- func GetFipsInfo() (bool, bool, error)
- func GetMachineMemoryCapacity() (uint64, error)
- func GetMilliNumCores() (int, error)
- func GetOsName() string
- func GetVersionCodeName() string
- func IsCPUOnline(cpuID int) bool
- func NewNetworkingAspect(cfg *api.NodeConfig) *networkingAspect
- type SystemAspect
Constants ¶
View Source
const ( UbuntuOsName = "ubuntu" RhelOsName = "rhel" AmazonOsName = "amzn" UbuntuResolvConfPath = "/run/systemd/resolve/resolv.conf" )
Variables ¶
This section is empty.
Functions ¶
func GetFipsInfo ¶
Returns whether FIPS module is both installed an enabled on the system
ipsInstalled, fipsEnabled, err := getFipsInfo()
func GetMachineMemoryCapacity ¶
GetMachineMemoryCapacity returns the machine's total memory from /proc/meminfo. Returns the total memory capacity as number of bytes.
func GetMilliNumCores ¶
GetMilliNumCores this is a striped version of GetNodesInfo that only get information for NumCores https://github.com/google/cadvisor/blob/master/utils/sysinfo/sysinfo.go#L203
func GetOsName ¶
func GetOsName() string
GetOsName reads the /etc/os-release file and returns the os name
func GetVersionCodeName ¶
func GetVersionCodeName() string
func IsCPUOnline ¶
func NewNetworkingAspect ¶
func NewNetworkingAspect(cfg *api.NodeConfig) *networkingAspect
NewNetworkingAspect constructs new networkingAspect.
Types ¶
type SystemAspect ¶
func NewLocalDiskAspect ¶
func NewLocalDiskAspect(cfg *api.NodeConfig) SystemAspect
func NewPortsAspect ¶
func NewPortsAspect(cfg *api.NodeConfig, logger *zap.Logger) SystemAspect
func NewSwapAspect ¶
func NewSwapAspect(cfg *api.NodeConfig, logger *zap.Logger) SystemAspect
func NewSysctlAspect ¶
func NewSysctlAspect(cfg *api.NodeConfig) SystemAspect
Click to show internal directories.
Click to hide internal directories.