Documentation ¶
Index ¶
- type NetlinkManager
- type PciNetDevice
- func (_m *PciNetDevice) GetDeviceID() string
- func (_m *PciNetDevice) GetDriver() string
- func (_m *PciNetDevice) GetIfName() string
- func (_m *PciNetDevice) GetLinkType() string
- func (_m *PciNetDevice) GetPciAddr() string
- func (_m *PciNetDevice) GetRdmaSpec() []*v1beta1.DeviceSpec
- func (_m *PciNetDevice) GetVendor() string
- type RdmaDeviceSpec
- 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) GetPreferredAllocation(_a0 context.Context, _a1 *v1beta1.PreferredAllocationRequest) (*v1beta1.PreferredAllocationResponse, 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) Restart() error
- func (_m *ResourceServer) Start() error
- func (_m *ResourceServer) Stop() error
- func (_m *ResourceServer) UpdateDevices(_a0 []types.PciNetDevice)
- func (_m *ResourceServer) Watch()
- type ResourceServerConnector
- func (_m *ResourceServerConnector) Close(_a0 *grpc.ClientConn)
- func (_m *ResourceServerConnector) CreateServer()
- func (_m *ResourceServerConnector) DeleteServer()
- func (_m *ResourceServerConnector) Dial(_a0 string, _a1 time.Duration) (*grpc.ClientConn, error)
- func (_m *ResourceServerConnector) GetServer() *grpc.Server
- func (_m *ResourceServerConnector) Listen(_a0 string, _a1 string) (net.Listener, error)
- func (_m *ResourceServerConnector) Register(_a0 v1beta1.RegistrationClient, _a1 *v1beta1.RegisterRequest) error
- func (_m *ResourceServerConnector) Serve(_a0 net.Listener)
- func (_m *ResourceServerConnector) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetlinkManager ¶ added in v1.1.0
NetlinkManager is an autogenerated mock type for the NetlinkManager type
func (*NetlinkManager) LinkByName ¶ added in v1.1.0
func (_m *NetlinkManager) LinkByName(_a0 string) (netlink.Link, error)
LinkByName provides a mock function with given fields: _a0
type PciNetDevice ¶ added in v1.1.0
PciNetDevice is an autogenerated mock type for the PciNetDevice type
func (*PciNetDevice) GetDeviceID ¶ added in v1.1.0
func (_m *PciNetDevice) GetDeviceID() string
GetDeviceID provides a mock function with given fields:
func (*PciNetDevice) GetDriver ¶ added in v1.1.0
func (_m *PciNetDevice) GetDriver() string
GetDriver provides a mock function with given fields:
func (*PciNetDevice) GetIfName ¶ added in v1.1.0
func (_m *PciNetDevice) GetIfName() string
GetIfName provides a mock function with given fields:
func (*PciNetDevice) GetLinkType ¶ added in v1.1.0
func (_m *PciNetDevice) GetLinkType() string
GetLinkType provides a mock function with given fields:
func (*PciNetDevice) GetPciAddr ¶ added in v1.1.0
func (_m *PciNetDevice) GetPciAddr() string
GetPciAddr provides a mock function with given fields:
func (*PciNetDevice) GetRdmaSpec ¶ added in v1.1.0
func (_m *PciNetDevice) GetRdmaSpec() []*v1beta1.DeviceSpec
GetRdmaSpec provides a mock function with given fields:
func (*PciNetDevice) GetVendor ¶ added in v1.1.0
func (_m *PciNetDevice) GetVendor() string
GetVendor provides a mock function with given fields:
type RdmaDeviceSpec ¶
RdmaDeviceSpec is an autogenerated mock type for the RdmaDeviceSpec type
func (*RdmaDeviceSpec) Get ¶
func (_m *RdmaDeviceSpec) Get(_a0 string) []*v1beta1.DeviceSpec
Get provides a mock function with given fields: _a0
func (*RdmaDeviceSpec) VerifyRdmaSpec ¶ added in v1.1.0
func (_m *RdmaDeviceSpec) VerifyRdmaSpec(_a0 []*v1beta1.DeviceSpec) error
VerifyRdmaSpec provides a mock function with given fields: _a0
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) GetPreferredAllocation ¶ added in v1.4.0
func (_m *ResourceServer) GetPreferredAllocation( _a0 context.Context, _a1 *v1beta1.PreferredAllocationRequest) (*v1beta1.PreferredAllocationResponse, error)
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) Restart ¶
func (_m *ResourceServer) Restart() error
Restart provides a mock function with given fields:
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) UpdateDevices ¶ added in v1.1.0
func (_m *ResourceServer) UpdateDevices(_a0 []types.PciNetDevice)
UpdateDevices provides a mock function with given fields: _a0
func (*ResourceServer) Watch ¶
func (_m *ResourceServer) Watch()
Watch provides a mock function with given fields:
type ResourceServerConnector ¶
ResourceServerConnector is an autogenerated mock type for the ResourceServerConnector type
func (*ResourceServerConnector) Close ¶
func (_m *ResourceServerConnector) Close(_a0 *grpc.ClientConn)
Close provides a mock function with given fields: _a0
func (*ResourceServerConnector) CreateServer ¶
func (_m *ResourceServerConnector) CreateServer()
CreateServer provides a mock function with given fields:
func (*ResourceServerConnector) DeleteServer ¶
func (_m *ResourceServerConnector) DeleteServer()
DeleteServer provides a mock function with given fields:
func (*ResourceServerConnector) Dial ¶
func (_m *ResourceServerConnector) Dial(_a0 string, _a1 time.Duration) (*grpc.ClientConn, error)
Dial provides a mock function with given fields: _a0, _a1
func (*ResourceServerConnector) GetServer ¶
func (_m *ResourceServerConnector) GetServer() *grpc.Server
GetServer provides a mock function with given fields:
func (*ResourceServerConnector) Listen ¶
Listen provides a mock function with given fields: _a0, _a1
func (*ResourceServerConnector) Register ¶
func (_m *ResourceServerConnector) Register(_a0 v1beta1.RegistrationClient, _a1 *v1beta1.RegisterRequest) error
Register provides a mock function with given fields: _a0, _a1
func (*ResourceServerConnector) Serve ¶
func (_m *ResourceServerConnector) Serve(_a0 net.Listener)
Serve provides a mock function with given fields: _a0
func (*ResourceServerConnector) Stop ¶
func (_m *ResourceServerConnector) Stop()
Stop provides a mock function with given fields: