Documentation ¶
Index ¶
- type AccelDevice
- func (_m *AccelDevice) GetAPIDevice() *v1beta1.Device
- func (_m *AccelDevice) GetDeviceCode() string
- func (_m *AccelDevice) GetDeviceSpecs() []*v1beta1.DeviceSpec
- func (_m *AccelDevice) GetDriver() string
- func (_m *AccelDevice) GetEnvVal() string
- func (_m *AccelDevice) GetMounts() []*v1beta1.Mount
- func (_m *AccelDevice) GetNumaInfo() string
- func (_m *AccelDevice) GetPciAddr() string
- func (_m *AccelDevice) GetPfPciAddr() string
- func (_m *AccelDevice) GetSubClass() string
- func (_m *AccelDevice) GetVFID() int
- func (_m *AccelDevice) GetVendor() string
- func (_m *AccelDevice) IsSriovPF() bool
- type DeviceInfoProvider
- type DeviceProvider
- func (_m *DeviceProvider) AddTargetDevices(_a0 []*ghw.PCIDevice, _a1 int) error
- func (_m *DeviceProvider) GetDevices(_a0 *types.ResourceConfig) []types.PciDevice
- func (_m *DeviceProvider) GetDiscoveredDevices() []*ghw.PCIDevice
- func (_m *DeviceProvider) GetFilteredDevices(_a0 []types.PciDevice, _a1 *types.ResourceConfig) ([]types.PciDevice, error)
- type DeviceSelector
- type LinkWatcher
- type NadUtils
- type PciDevice
- func (_m *PciDevice) GetAPIDevice() *v1beta1.Device
- func (_m *PciDevice) GetDeviceCode() string
- func (_m *PciDevice) GetDeviceSpecs() []*v1beta1.DeviceSpec
- func (_m *PciDevice) GetDriver() string
- func (_m *PciDevice) GetEnvVal() string
- func (_m *PciDevice) GetMounts() []*v1beta1.Mount
- func (_m *PciDevice) GetNumaInfo() string
- func (_m *PciDevice) GetPciAddr() string
- func (_m *PciDevice) GetPfPciAddr() string
- func (_m *PciDevice) GetSubClass() string
- func (_m *PciDevice) GetVFID() int
- func (_m *PciDevice) GetVendor() string
- func (_m *PciDevice) IsSriovPF() bool
- type PciNetDevice
- func (_m *PciNetDevice) GetAPIDevice() *v1beta1.Device
- func (_m *PciNetDevice) GetDDPProfiles() string
- func (_m *PciNetDevice) GetDeviceCode() string
- func (_m *PciNetDevice) GetDeviceSpecs() []*v1beta1.DeviceSpec
- func (_m *PciNetDevice) GetDriver() string
- func (_m *PciNetDevice) GetEnvVal() string
- func (_m *PciNetDevice) GetLinkSpeed() string
- func (_m *PciNetDevice) GetLinkType() string
- func (_m *PciNetDevice) GetMounts() []*v1beta1.Mount
- func (_m *PciNetDevice) GetNetName() string
- func (_m *PciNetDevice) GetNumaInfo() string
- func (_m *PciNetDevice) GetPFName() string
- func (_m *PciNetDevice) GetPciAddr() string
- func (_m *PciNetDevice) GetPfPciAddr() string
- func (_m *PciNetDevice) GetRdmaSpec() types.RdmaSpec
- func (_m *PciNetDevice) GetSubClass() string
- func (_m *PciNetDevice) GetVFID() int
- func (_m *PciNetDevice) GetVendor() string
- func (_m *PciNetDevice) IsSriovPF() bool
- type RdmaSpec
- type ResourceFactory
- func (_m *ResourceFactory) GetDefaultInfoProvider(_a0 string, _a1 string) types.DeviceInfoProvider
- func (_m *ResourceFactory) GetDeviceFilter(_a0 *types.ResourceConfig) (interface{}, error)
- func (_m *ResourceFactory) GetDeviceProvider(_a0 types.DeviceType) types.DeviceProvider
- func (_m *ResourceFactory) GetNadUtils() types.NadUtils
- func (_m *ResourceFactory) GetRdmaSpec(_a0 string) types.RdmaSpec
- func (_m *ResourceFactory) GetResourcePool(rc *types.ResourceConfig, deviceList []types.PciDevice) (types.ResourcePool, error)
- func (_m *ResourceFactory) GetResourceServer(_a0 types.ResourcePool) (types.ResourceServer, error)
- func (_m *ResourceFactory) GetSelector(_a0 string, _a1 []string) (types.DeviceSelector, error)
- type ResourcePool
- func (_m *ResourcePool) CleanDeviceInfoFile(resourceNamePrefix string) error
- func (_m *ResourcePool) GetDeviceSpecs(deviceIDs []string) []*v1beta1.DeviceSpec
- func (_m *ResourcePool) GetDevices() map[string]*v1beta1.Device
- func (_m *ResourcePool) GetEnvs(deviceIDs []string) []string
- func (_m *ResourcePool) GetMounts(deviceIDs []string) []*v1beta1.Mount
- func (_m *ResourcePool) GetResourceName() string
- func (_m *ResourcePool) GetResourcePrefix() string
- func (_m *ResourcePool) Probe() bool
- func (_m *ResourcePool) StoreDeviceInfoFile(resourceNamePrefix string) error
- type ResourceServer
- func (_m *ResourceServer) Allocate(_a0 context.Context, _a1 *v1beta1.AllocateRequest) (*v1beta1.AllocateResponse, error)
- func (_m *ResourceServer) GetDevicePluginOptions(_a0 context.Context, _a1 *v1beta1.Empty) (*v1beta1.DevicePluginOptions, error)
- func (_m *ResourceServer) Init() error
- func (_m *ResourceServer) ListAndWatch(_a0 *v1beta1.Empty, _a1 v1beta1.DevicePlugin_ListAndWatchServer) error
- func (_m *ResourceServer) PreStartContainer(_a0 context.Context, _a1 *v1beta1.PreStartContainerRequest) (*v1beta1.PreStartContainerResponse, error)
- func (_m *ResourceServer) Start() error
- func (_m *ResourceServer) Stop() error
- func (_m *ResourceServer) Watch()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccelDevice ¶
AccelDevice is an autogenerated mock type for the AccelDevice type
func (*AccelDevice) GetAPIDevice ¶
func (_m *AccelDevice) GetAPIDevice() *v1beta1.Device
GetAPIDevice provides a mock function with given fields:
func (*AccelDevice) GetDeviceCode ¶
func (_m *AccelDevice) GetDeviceCode() string
GetDeviceCode provides a mock function with given fields:
func (*AccelDevice) GetDeviceSpecs ¶
func (_m *AccelDevice) GetDeviceSpecs() []*v1beta1.DeviceSpec
GetDeviceSpecs provides a mock function with given fields:
func (*AccelDevice) GetDriver ¶
func (_m *AccelDevice) GetDriver() string
GetDriver provides a mock function with given fields:
func (*AccelDevice) GetEnvVal ¶
func (_m *AccelDevice) GetEnvVal() string
GetEnvVal provides a mock function with given fields:
func (*AccelDevice) GetMounts ¶
func (_m *AccelDevice) GetMounts() []*v1beta1.Mount
GetMounts provides a mock function with given fields:
func (*AccelDevice) GetNumaInfo ¶
func (_m *AccelDevice) GetNumaInfo() string
GetNumaInfo provides a mock function with given fields:
func (*AccelDevice) GetPciAddr ¶
func (_m *AccelDevice) GetPciAddr() string
GetPciAddr provides a mock function with given fields:
func (*AccelDevice) GetPfPciAddr ¶
func (_m *AccelDevice) GetPfPciAddr() string
GetPfPciAddr provides a mock function with given fields:
func (*AccelDevice) GetSubClass ¶
func (_m *AccelDevice) GetSubClass() string
GetSubClass provides a mock function with given fields:
func (*AccelDevice) GetVFID ¶
func (_m *AccelDevice) GetVFID() int
GetVFID provides a mock function with given fields:
func (*AccelDevice) GetVendor ¶
func (_m *AccelDevice) GetVendor() string
GetVendor provides a mock function with given fields:
func (*AccelDevice) IsSriovPF ¶
func (_m *AccelDevice) IsSriovPF() bool
IsSriovPF provides a mock function with given fields:
type DeviceInfoProvider ¶
DeviceInfoProvider is an autogenerated mock type for the DeviceInfoProvider type
func (*DeviceInfoProvider) GetDeviceSpecs ¶
func (_m *DeviceInfoProvider) GetDeviceSpecs() []*v1beta1.DeviceSpec
GetDeviceSpecs provides a mock function with given fields:
func (*DeviceInfoProvider) GetEnvVal ¶
func (_m *DeviceInfoProvider) GetEnvVal() string
GetEnvVal provides a mock function with given fields:
func (*DeviceInfoProvider) GetMounts ¶
func (_m *DeviceInfoProvider) GetMounts() []*v1beta1.Mount
GetMounts provides a mock function with given fields:
type DeviceProvider ¶
DeviceProvider is an autogenerated mock type for the DeviceProvider type
func (*DeviceProvider) AddTargetDevices ¶
func (_m *DeviceProvider) AddTargetDevices(_a0 []*ghw.PCIDevice, _a1 int) error
AddTargetDevices provides a mock function with given fields: _a0, _a1
func (*DeviceProvider) GetDevices ¶
func (_m *DeviceProvider) GetDevices(_a0 *types.ResourceConfig) []types.PciDevice
GetDevices provides a mock function with given fields: _a0
func (*DeviceProvider) GetDiscoveredDevices ¶
func (_m *DeviceProvider) GetDiscoveredDevices() []*ghw.PCIDevice
GetDiscoveredDevices provides a mock function with given fields:
func (*DeviceProvider) GetFilteredDevices ¶
func (_m *DeviceProvider) GetFilteredDevices(_a0 []types.PciDevice, _a1 *types.ResourceConfig) ([]types.PciDevice, error)
GetFilteredDevices provides a mock function with given fields: _a0, _a1
type DeviceSelector ¶
DeviceSelector is an autogenerated mock type for the DeviceSelector type
type LinkWatcher ¶
LinkWatcher is an autogenerated mock type for the LinkWatcher type
func (*LinkWatcher) Subscribe ¶
func (_m *LinkWatcher) Subscribe()
Subscribe provides a mock function with given fields:
type NadUtils ¶
NadUtils is an autogenerated mock type for the NadUtils type
func (*NadUtils) CleanDeviceInfoFile ¶
CleanDeviceInfoFile provides a mock function with given fields: resourceName, deviceID
func (*NadUtils) SaveDeviceInfoFile ¶
func (_m *NadUtils) SaveDeviceInfoFile(resourceName string, deviceID string, devInfo *v1.DeviceInfo) error
SaveDeviceInfoFile provides a mock function with given fields: resourceName, deviceID, devInfo
type PciDevice ¶
PciDevice is an autogenerated mock type for the PciDevice type
func (*PciDevice) GetAPIDevice ¶
GetAPIDevice provides a mock function with given fields:
func (*PciDevice) GetDeviceCode ¶
GetDeviceCode provides a mock function with given fields:
func (*PciDevice) GetDeviceSpecs ¶
func (_m *PciDevice) GetDeviceSpecs() []*v1beta1.DeviceSpec
GetDeviceSpecs provides a mock function with given fields:
func (*PciDevice) GetNumaInfo ¶
GetNumaInfo provides a mock function with given fields:
func (*PciDevice) GetPciAddr ¶
GetPciAddr provides a mock function with given fields:
func (*PciDevice) GetPfPciAddr ¶
GetPfPciAddr provides a mock function with given fields:
func (*PciDevice) GetSubClass ¶
GetSubClass provides a mock function with given fields:
type PciNetDevice ¶
PciNetDevice is an autogenerated mock type for the PciNetDevice type
func (*PciNetDevice) GetAPIDevice ¶
func (_m *PciNetDevice) GetAPIDevice() *v1beta1.Device
GetAPIDevice provides a mock function with given fields:
func (*PciNetDevice) GetDDPProfiles ¶
func (_m *PciNetDevice) GetDDPProfiles() string
GetDDPProfiles provides a mock function with given fields:
func (*PciNetDevice) GetDeviceCode ¶
func (_m *PciNetDevice) GetDeviceCode() string
GetDeviceCode provides a mock function with given fields:
func (*PciNetDevice) GetDeviceSpecs ¶
func (_m *PciNetDevice) GetDeviceSpecs() []*v1beta1.DeviceSpec
GetDeviceSpecs provides a mock function with given fields:
func (*PciNetDevice) GetDriver ¶
func (_m *PciNetDevice) GetDriver() string
GetDriver provides a mock function with given fields:
func (*PciNetDevice) GetEnvVal ¶
func (_m *PciNetDevice) GetEnvVal() string
GetEnvVal provides a mock function with given fields:
func (*PciNetDevice) GetLinkSpeed ¶
func (_m *PciNetDevice) GetLinkSpeed() string
GetLinkSpeed provides a mock function with given fields:
func (*PciNetDevice) GetLinkType ¶
func (_m *PciNetDevice) GetLinkType() string
GetLinkType provides a mock function with given fields:
func (*PciNetDevice) GetMounts ¶
func (_m *PciNetDevice) GetMounts() []*v1beta1.Mount
GetMounts provides a mock function with given fields:
func (*PciNetDevice) GetNetName ¶
func (_m *PciNetDevice) GetNetName() string
GetNetName provides a mock function with given fields:
func (*PciNetDevice) GetNumaInfo ¶
func (_m *PciNetDevice) GetNumaInfo() string
GetNumaInfo provides a mock function with given fields:
func (*PciNetDevice) GetPFName ¶
func (_m *PciNetDevice) GetPFName() string
GetPFName provides a mock function with given fields:
func (*PciNetDevice) GetPciAddr ¶
func (_m *PciNetDevice) GetPciAddr() string
GetPciAddr provides a mock function with given fields:
func (*PciNetDevice) GetPfPciAddr ¶
func (_m *PciNetDevice) GetPfPciAddr() string
GetPfPciAddr provides a mock function with given fields:
func (*PciNetDevice) GetRdmaSpec ¶
func (_m *PciNetDevice) GetRdmaSpec() types.RdmaSpec
GetRdmaSpec provides a mock function with given fields:
func (*PciNetDevice) GetSubClass ¶
func (_m *PciNetDevice) GetSubClass() string
GetSubClass provides a mock function with given fields:
func (*PciNetDevice) GetVFID ¶
func (_m *PciNetDevice) GetVFID() int
GetVFID provides a mock function with given fields:
func (*PciNetDevice) GetVendor ¶
func (_m *PciNetDevice) GetVendor() string
GetVendor provides a mock function with given fields:
func (*PciNetDevice) IsSriovPF ¶
func (_m *PciNetDevice) IsSriovPF() bool
IsSriovPF provides a mock function with given fields:
type RdmaSpec ¶
RdmaSpec is an autogenerated mock type for the RdmaSpec type
func (*RdmaSpec) GetRdmaDeviceSpec ¶
func (_m *RdmaSpec) GetRdmaDeviceSpec() []*v1beta1.DeviceSpec
GetRdmaDeviceSpec provides a mock function with given fields:
type ResourceFactory ¶
ResourceFactory is an autogenerated mock type for the ResourceFactory type
func (*ResourceFactory) GetDefaultInfoProvider ¶
func (_m *ResourceFactory) GetDefaultInfoProvider(_a0 string, _a1 string) types.DeviceInfoProvider
GetDefaultInfoProvider provides a mock function with given fields: _a0, _a1
func (*ResourceFactory) GetDeviceFilter ¶
func (_m *ResourceFactory) GetDeviceFilter(_a0 *types.ResourceConfig) (interface{}, error)
GetDeviceFilter provides a mock function with given fields: _a0
func (*ResourceFactory) GetDeviceProvider ¶
func (_m *ResourceFactory) GetDeviceProvider(_a0 types.DeviceType) types.DeviceProvider
GetDeviceProvider provides a mock function with given fields: _a0
func (*ResourceFactory) GetNadUtils ¶
func (_m *ResourceFactory) GetNadUtils() types.NadUtils
GetNadUtils provides a mock function with given fields:
func (*ResourceFactory) GetRdmaSpec ¶
func (_m *ResourceFactory) GetRdmaSpec(_a0 string) types.RdmaSpec
GetRdmaSpec provides a mock function with given fields: _a0
func (*ResourceFactory) GetResourcePool ¶
func (_m *ResourceFactory) GetResourcePool(rc *types.ResourceConfig, deviceList []types.PciDevice) (types.ResourcePool, error)
GetResourcePool provides a mock function with given fields: rc, deviceList
func (*ResourceFactory) GetResourceServer ¶
func (_m *ResourceFactory) GetResourceServer(_a0 types.ResourcePool) (types.ResourceServer, error)
GetResourceServer provides a mock function with given fields: _a0
func (*ResourceFactory) GetSelector ¶
func (_m *ResourceFactory) GetSelector(_a0 string, _a1 []string) (types.DeviceSelector, error)
GetSelector provides a mock function with given fields: _a0, _a1
type ResourcePool ¶
ResourcePool is an autogenerated mock type for the ResourcePool type
func (*ResourcePool) CleanDeviceInfoFile ¶
func (_m *ResourcePool) CleanDeviceInfoFile(resourceNamePrefix string) error
CleanDeviceInfoFile provides a mock function with given fields: resourceNamePrefix
func (*ResourcePool) GetDeviceSpecs ¶
func (_m *ResourcePool) GetDeviceSpecs(deviceIDs []string) []*v1beta1.DeviceSpec
GetDeviceSpecs provides a mock function with given fields: deviceIDs
func (*ResourcePool) GetDevices ¶
func (_m *ResourcePool) GetDevices() map[string]*v1beta1.Device
GetDevices provides a mock function with given fields:
func (*ResourcePool) GetEnvs ¶
func (_m *ResourcePool) GetEnvs(deviceIDs []string) []string
GetEnvs provides a mock function with given fields: deviceIDs
func (*ResourcePool) GetMounts ¶
func (_m *ResourcePool) GetMounts(deviceIDs []string) []*v1beta1.Mount
GetMounts provides a mock function with given fields: deviceIDs
func (*ResourcePool) GetResourceName ¶
func (_m *ResourcePool) GetResourceName() string
GetResourceName provides a mock function with given fields:
func (*ResourcePool) GetResourcePrefix ¶
func (_m *ResourcePool) GetResourcePrefix() string
GetResourcePrefix provides a mock function with given fields:
func (*ResourcePool) Probe ¶
func (_m *ResourcePool) Probe() bool
Probe provides a mock function with given fields:
func (*ResourcePool) StoreDeviceInfoFile ¶
func (_m *ResourcePool) StoreDeviceInfoFile(resourceNamePrefix string) error
StoreDeviceInfoFile provides a mock function with given fields: resourceNamePrefix
type ResourceServer ¶
ResourceServer is an autogenerated mock type for the ResourceServer type
func (*ResourceServer) Allocate ¶
func (_m *ResourceServer) Allocate(_a0 context.Context, _a1 *v1beta1.AllocateRequest) (*v1beta1.AllocateResponse, error)
Allocate provides a mock function with given fields: _a0, _a1
func (*ResourceServer) GetDevicePluginOptions ¶
func (_m *ResourceServer) GetDevicePluginOptions(_a0 context.Context, _a1 *v1beta1.Empty) (*v1beta1.DevicePluginOptions, error)
GetDevicePluginOptions provides a mock function with given fields: _a0, _a1
func (*ResourceServer) Init ¶
func (_m *ResourceServer) Init() error
Init provides a mock function with given fields:
func (*ResourceServer) ListAndWatch ¶
func (_m *ResourceServer) ListAndWatch(_a0 *v1beta1.Empty, _a1 v1beta1.DevicePlugin_ListAndWatchServer) error
ListAndWatch provides a mock function with given fields: _a0, _a1
func (*ResourceServer) PreStartContainer ¶
func (_m *ResourceServer) PreStartContainer(_a0 context.Context, _a1 *v1beta1.PreStartContainerRequest) (*v1beta1.PreStartContainerResponse, error)
PreStartContainer provides a mock function with given fields: _a0, _a1
func (*ResourceServer) Start ¶
func (_m *ResourceServer) Start() error
Start provides a mock function with given fields:
func (*ResourceServer) Stop ¶
func (_m *ResourceServer) Stop() error
Stop provides a mock function with given fields:
func (*ResourceServer) Watch ¶
func (_m *ResourceServer) Watch()
Watch provides a mock function with given fields: