Versions in this module Expand all Collapse all v0 v0.2.2 Jan 15, 2025 Changes in this version + func GPU(p *PCI) bool + func GetDevice(vendor uint16, device uint16) (v Vendor, d Device, ok bool) + func IsSecureBoot() (bool, error) + func PCIBridge(p *PCI) bool + type Capacity struct + CRU uint64 + HRU uint64 + MRU uint64 + SRU uint64 + type Device struct + ID uint16 + Name string + Subdevices []Subdevice + type Disks struct + Aggregator string + Devices []smartctl.Info + Environment string + Tool string + type Filter func(pci *PCI) bool + func Not(f Filter) Filter + type PCI struct + Class uint32 + Device uint16 + Slot string + SubsystemDevice uint16 + SubsystemVendor uint16 + Vendor uint16 + func IoMMUGroup(pci PCI, filter ...Filter) ([]PCI, error) + func ListPCI(filter ...Filter) ([]PCI, error) + func (p *PCI) Flag(name string) (uint64, error) + func (p *PCI) GetDevice() (Vendor, Device, bool) + func (p *PCI) GetSubdevice() (Subdevice, bool) + func (p *PCI) ShortID() string + func (p PCI) String() string + type ResourceOracle struct + func NewResourceOracle(s *stubs.StorageModuleStub) *ResourceOracle + func (r *ResourceOracle) DMI() (*dmi.DMI, error) + func (r *ResourceOracle) Disks() (d Disks, err error) + func (r *ResourceOracle) GPUs() ([]PCI, error) + func (r *ResourceOracle) GetHypervisor() (string, error) + func (r *ResourceOracle) Total() (c gridtypes.Capacity, err error) + func (r *ResourceOracle) Uptime() (uint64, error) + type Subdevice struct + Name string + SubsystemDeviceID uint16 + SubsystemVendorID uint16 + func GetSubdevice(vendor uint16, device uint16, subsystemVendorID uint16, ...) (Subdevice, bool) + type Vendor struct + Devices map[uint16]Device + ID uint16 + Name string + func GetVendor(vendor uint16) (Vendor, bool)