Documentation
¶
Index ¶
- type Provider
- func (s *Provider) GetFabricInterfaces(ctx context.Context, provider string) (*hardware.FabricInterfaceSet, error)
- func (s *Provider) GetNetDevClass(dev string) (hardware.NetDevClass, error)
- func (s *Provider) GetNetDevState(iface string) (hardware.NetDevState, error)
- func (s *Provider) GetTopology(ctx context.Context) (*hardware.Topology, error)
- func (s *Provider) IsIOMMUEnabled() (bool, error)
- func (s *Provider) IsTHPEnabled() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
SysfsProvider provides system information from sysfs.
func NewProvider ¶
NewProvider creates a new SysfsProvider.
func (*Provider) GetFabricInterfaces ¶
func (s *Provider) GetFabricInterfaces(ctx context.Context, provider string) (*hardware.FabricInterfaceSet, error)
GetFabricInterfaces harvests fabric interfaces from sysfs.
func (*Provider) GetNetDevClass ¶
func (s *Provider) GetNetDevClass(dev string) (hardware.NetDevClass, error)
GetNetDevClass fetches the network device class for the given network interface.
func (*Provider) GetNetDevState ¶
func (s *Provider) GetNetDevState(iface string) (hardware.NetDevState, error)
GetNetDevState fetches the state of a network interface.
func (*Provider) GetTopology ¶
GetTopology builds a topology from the contents of sysfs.
func (*Provider) IsIOMMUEnabled ¶
IsIOMMUEnabled checks whether IOMMU is enabled by interrogating files in sysfs and implements the IOMMUDetector interface on sysfs provider.
func (*Provider) IsTHPEnabled ¶
IsTHPEnabled checks whether transparent hugepages is enabled by interrogating sysfs and implements the THPDetector interface on sysfs provider.