Documentation ¶
Index ¶
- Constants
- func NewDeviceSelector(devices []string) types.DeviceSelector
- func NewDriverSelector(drivers []string) types.DeviceSelector
- func NewIfNameSelector(ifNames []string) types.DeviceSelector
- func NewLinkTypeSelector(linkTypes []string) types.DeviceSelector
- func NewPciNetDevice(dev *ghw.PCIDevice, rds types.RdmaDeviceSpec, nLink types.NetlinkManager) (types.PciNetDevice, error)
- func NewRdmaDeviceSpec(rdmaDevs []string) types.RdmaDeviceSpec
- func NewResourceManager(configFile string, useCdi bool) types.ResourceManager
- func NewSignalNotifier(sigs ...os.Signal) types.SignalNotifier
- func NewVendorSelector(vendors []string) types.DeviceSelector
Constants ¶
View Source
const (
// General constants
DefaultConfigFilePath = "/k8s-rdma-shared-dev-plugin/config.json"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeviceSelector ¶ added in v1.1.0
func NewDeviceSelector(devices []string) types.DeviceSelector
NewDeviceSelector returns a DeviceSelector interface for device id list
func NewDriverSelector ¶ added in v1.1.0
func NewDriverSelector(drivers []string) types.DeviceSelector
NewDriverSelector returns a DeviceSelector interface for driver list
func NewIfNameSelector ¶ added in v1.1.0
func NewIfNameSelector(ifNames []string) types.DeviceSelector
NewIfNameSelector returns a DeviceSelector interface for ifName list
func NewLinkTypeSelector ¶ added in v1.1.0
func NewLinkTypeSelector(linkTypes []string) types.DeviceSelector
NewLinkTypeSelector returns a interface for netDev list
func NewPciNetDevice ¶ added in v1.1.0
func NewPciNetDevice(dev *ghw.PCIDevice, rds types.RdmaDeviceSpec, nLink types.NetlinkManager) (types.PciNetDevice, error)
NewPciNetDevice returns an instance of PciNetDevice interface
func NewRdmaDeviceSpec ¶ added in v1.1.0
func NewRdmaDeviceSpec(rdmaDevs []string) types.RdmaDeviceSpec
func NewResourceManager ¶
func NewResourceManager(configFile string, useCdi bool) types.ResourceManager
func NewSignalNotifier ¶
func NewSignalNotifier(sigs ...os.Signal) types.SignalNotifier
NewSignalNotifier return signals notifier
func NewVendorSelector ¶ added in v1.1.0
func NewVendorSelector(vendors []string) types.DeviceSelector
NewVendorSelector returns a DeviceSelector interface for vendor list
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.