Documentation ¶
Index ¶
- type DeviceInfoProvider
- type DeviceSelector
- type PciNetDevice
- func (_m *PciNetDevice) GetAPIDevice() *v1beta1.Device
- 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) GetMounts() []*v1beta1.Mount
- func (_m *PciNetDevice) GetNetName() 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) GetVendor() string
- func (_m *PciNetDevice) IsSriovPF() bool
- type ResourceFactory
- func (_m *ResourceFactory) GetInfoProvider(_a0 string) types.DeviceInfoProvider
- func (_m *ResourceFactory) GetRdmaSpec(_a0 string) types.RdmaSpec
- func (_m *ResourceFactory) GetResourcePool(rc *types.ResourceConfig, deviceList []types.PciNetDevice) (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) 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) Probe() bool
- 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 DeviceInfoProvider ¶
DeviceInfoProvider is an autogenerated mock type for the DeviceInfoProvider type
func (*DeviceInfoProvider) GetDeviceSpecs ¶
func (_m *DeviceInfoProvider) GetDeviceSpecs(pciAddr string) []*v1beta1.DeviceSpec
GetDeviceSpecs provides a mock function with given fields: pciAddr
func (*DeviceInfoProvider) GetEnvVal ¶
func (_m *DeviceInfoProvider) GetEnvVal(pciAddr string) string
GetEnvVal provides a mock function with given fields: pciAddr
type DeviceSelector ¶
DeviceSelector is an autogenerated mock type for the DeviceSelector type
func (*DeviceSelector) Filter ¶
func (_m *DeviceSelector) Filter(_a0 []types.PciNetDevice) []types.PciNetDevice
Filter provides a mock function with given fields: _a0
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) 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) 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) 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) 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 ResourceFactory ¶
ResourceFactory is an autogenerated mock type for the ResourceFactory type
func (*ResourceFactory) GetInfoProvider ¶
func (_m *ResourceFactory) GetInfoProvider(_a0 string) types.DeviceInfoProvider
GetInfoProvider provides a mock function with given fields: _a0
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.PciNetDevice) (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) 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) Probe ¶
func (_m *ResourcePool) Probe() bool
Probe provides a mock function with given fields:
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: