machineinformer

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CPUPhysicalPackageID is a physical package id of cpu#. Typically corresponds to a physical socket number,
	// but the actual value is architecture and platform dependent.
	CPUPhysicalPackageID = "physical_package_id"
	// CPUCoreID is the CPU core ID of cpu#. Typically it is the hardware platform's identifier
	// (rather than the kernel's). The actual value is architecture and platform dependent.
	CPUCoreID = "core_id"

	//HugePagesNrFile name of nr_hugepages file in sysfs
	HugePagesNrFile = "nr_hugepages"
)

Variables

This section is empty.

Functions

func Get

func Get(root string) (*infov1.MachineInfo, error)

func GetRaw

func GetRaw(root string) (*infov1.MachineInfo, error)

func NewRealSysFs

func NewRealSysFs(root string) sysfs.SysFs

func NewRelocatableSysFs

func NewRelocatableSysFs(root string) sysfs.SysFs

Types

type Handle added in v0.0.7

type Handle struct {
	RootDirectory string
	RawOutput     bool
	Out           io.Writer
}

func (*Handle) Run added in v0.0.7

func (handle *Handle) Run()

Jump to

Keyboard shortcuts

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