Documentation
¶
Index ¶
- Constants
- type IntelDetector
- type MarvellDetector
- func (d *MarvellDetector) GetVendorName() string
- func (pi *MarvellDetector) IsDPU(pci ghw.PCIDevice) (bool, error)
- func (pi *MarvellDetector) IsDpuPlatform() (bool, error)
- func (pi *MarvellDetector) VspPlugin(dpuMode bool, vspImages map[string]string, client client.Client) (*plugin.GrpcPlugin, error)
- type PlatformInfo
- func (pi *PlatformInfo) GetPcieDevFilter() (string, string, string, error)
- func (pi *PlatformInfo) Getvendorname() (string, error)
- func (pi *PlatformInfo) IsDpu() (bool, error)
- func (pi *PlatformInfo) NewVspPlugin(dpuMode bool, vspImages map[string]string, client client.Client) (*plugin.GrpcPlugin, error)
- type PlatformInfoProvider
- type VendorDetector
Constants ¶
View Source
const ( MrvlVendorID string = "177d" MrvlDPUdeviceID string = "a0f7" MrvlHostDeviceID string = "b900" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntelDetector ¶
type IntelDetector struct {
Name string
}
func NewIntelDetector ¶
func NewIntelDetector() *IntelDetector
func (*IntelDetector) GetVendorName ¶
func (d *IntelDetector) GetVendorName() string
func (*IntelDetector) IsDpuPlatform ¶
func (pi *IntelDetector) IsDpuPlatform() (bool, error)
type MarvellDetector ¶
type MarvellDetector struct {
Name string
}
func NewMarvellDetector ¶
func NewMarvellDetector() *MarvellDetector
func (*MarvellDetector) GetVendorName ¶
func (d *MarvellDetector) GetVendorName() string
GetVendorName returns the name of the vendor
func (*MarvellDetector) IsDPU ¶
func (pi *MarvellDetector) IsDPU(pci ghw.PCIDevice) (bool, error)
IsDPU checks if the PCI device Attached to the host is a Marvell DPU It returns true if device has Marvell DPU
func (*MarvellDetector) IsDpuPlatform ¶
func (pi *MarvellDetector) IsDpuPlatform() (bool, error)
IsDpuPlatform checks if the platform is a Marvell DPU
type PlatformInfo ¶
type PlatformInfo struct {
Detectors []VendorDetector
}
func NewPlatformInfo ¶
func NewPlatformInfo() *PlatformInfo
func (*PlatformInfo) GetPcieDevFilter ¶
func (pi *PlatformInfo) GetPcieDevFilter() (string, string, string, error)
func (*PlatformInfo) Getvendorname ¶
func (pi *PlatformInfo) Getvendorname() (string, error)
func (*PlatformInfo) IsDpu ¶
func (pi *PlatformInfo) IsDpu() (bool, error)
func (*PlatformInfo) NewVspPlugin ¶
func (pi *PlatformInfo) NewVspPlugin(dpuMode bool, vspImages map[string]string, client client.Client) (*plugin.GrpcPlugin, error)
type PlatformInfoProvider ¶
type PlatformInfoProvider interface { }
Click to show internal directories.
Click to hide internal directories.