Documentation
¶
Overview ¶
Package mock_gpu is a generated GoMock package.
Index ¶
- type MockGPUManager
- func (m *MockGPUManager) EXPECT() *MockGPUManagerMockRecorder
- func (m *MockGPUManager) GetDevices() []types.PlatformDevice
- func (m *MockGPUManager) GetDriverVersion() string
- func (m *MockGPUManager) GetGPUIDsUnsafe() []string
- func (m *MockGPUManager) GetGPUMemoryMiBUnsafe() map[string]uint64
- func (m *MockGPUManager) GetHasVGPU() bool
- func (m *MockGPUManager) GetMpsControlBinaryPresent() bool
- func (m *MockGPUManager) GetMpsServiceEnabled() bool
- func (m *MockGPUManager) Initialize() error
- func (m *MockGPUManager) SetDevices()
- func (m *MockGPUManager) SetDriverVersion(arg0 string)
- func (m *MockGPUManager) SetGPUIDs(arg0 []string)
- type MockGPUManagerMockRecorder
- func (mr *MockGPUManagerMockRecorder) GetDevices() *gomock.Call
- func (mr *MockGPUManagerMockRecorder) GetDriverVersion() *gomock.Call
- func (mr *MockGPUManagerMockRecorder) GetGPUIDsUnsafe() *gomock.Call
- func (mr *MockGPUManagerMockRecorder) GetGPUMemoryMiBUnsafe() *gomock.Call
- func (mr *MockGPUManagerMockRecorder) GetHasVGPU() *gomock.Call
- func (mr *MockGPUManagerMockRecorder) GetMpsControlBinaryPresent() *gomock.Call
- func (mr *MockGPUManagerMockRecorder) GetMpsServiceEnabled() *gomock.Call
- func (mr *MockGPUManagerMockRecorder) Initialize() *gomock.Call
- func (mr *MockGPUManagerMockRecorder) SetDevices() *gomock.Call
- func (mr *MockGPUManagerMockRecorder) SetDriverVersion(arg0 interface{}) *gomock.Call
- func (mr *MockGPUManagerMockRecorder) SetGPUIDs(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGPUManager ¶
type MockGPUManager struct {
// contains filtered or unexported fields
}
MockGPUManager is a mock of GPUManager interface.
func NewMockGPUManager ¶
func NewMockGPUManager(ctrl *gomock.Controller) *MockGPUManager
NewMockGPUManager creates a new mock instance.
func (*MockGPUManager) EXPECT ¶
func (m *MockGPUManager) EXPECT() *MockGPUManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGPUManager) GetDevices ¶
func (m *MockGPUManager) GetDevices() []types.PlatformDevice
GetDevices mocks base method.
func (*MockGPUManager) GetDriverVersion ¶
func (m *MockGPUManager) GetDriverVersion() string
GetDriverVersion mocks base method.
func (*MockGPUManager) GetGPUIDsUnsafe ¶
func (m *MockGPUManager) GetGPUIDsUnsafe() []string
GetGPUIDsUnsafe mocks base method.
func (*MockGPUManager) GetGPUMemoryMiBUnsafe ¶
func (m *MockGPUManager) GetGPUMemoryMiBUnsafe() map[string]uint64
GetGPUMemoryMiBUnsafe mocks base method.
func (*MockGPUManager) GetHasVGPU ¶
func (m *MockGPUManager) GetHasVGPU() bool
GetHasVGPU mocks base method.
func (*MockGPUManager) GetMpsControlBinaryPresent ¶
func (m *MockGPUManager) GetMpsControlBinaryPresent() bool
GetMpsControlBinaryPresent mocks base method.
func (*MockGPUManager) GetMpsServiceEnabled ¶
func (m *MockGPUManager) GetMpsServiceEnabled() bool
GetMpsServiceEnabled mocks base method.
func (*MockGPUManager) Initialize ¶
func (m *MockGPUManager) Initialize() error
Initialize mocks base method.
func (*MockGPUManager) SetDevices ¶
func (m *MockGPUManager) SetDevices()
SetDevices mocks base method.
func (*MockGPUManager) SetDriverVersion ¶
func (m *MockGPUManager) SetDriverVersion(arg0 string)
SetDriverVersion mocks base method.
func (*MockGPUManager) SetGPUIDs ¶
func (m *MockGPUManager) SetGPUIDs(arg0 []string)
SetGPUIDs mocks base method.
type MockGPUManagerMockRecorder ¶
type MockGPUManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockGPUManagerMockRecorder is the mock recorder for MockGPUManager.
func (*MockGPUManagerMockRecorder) GetDevices ¶
func (mr *MockGPUManagerMockRecorder) GetDevices() *gomock.Call
GetDevices indicates an expected call of GetDevices.
func (*MockGPUManagerMockRecorder) GetDriverVersion ¶
func (mr *MockGPUManagerMockRecorder) GetDriverVersion() *gomock.Call
GetDriverVersion indicates an expected call of GetDriverVersion.
func (*MockGPUManagerMockRecorder) GetGPUIDsUnsafe ¶
func (mr *MockGPUManagerMockRecorder) GetGPUIDsUnsafe() *gomock.Call
GetGPUIDsUnsafe indicates an expected call of GetGPUIDsUnsafe.
func (*MockGPUManagerMockRecorder) GetGPUMemoryMiBUnsafe ¶
func (mr *MockGPUManagerMockRecorder) GetGPUMemoryMiBUnsafe() *gomock.Call
GetGPUMemoryMiBUnsafe indicates an expected call of GetGPUMemoryMiBUnsafe.
func (*MockGPUManagerMockRecorder) GetHasVGPU ¶
func (mr *MockGPUManagerMockRecorder) GetHasVGPU() *gomock.Call
GetHasVGPU indicates an expected call of GetHasVGPU.
func (*MockGPUManagerMockRecorder) GetMpsControlBinaryPresent ¶
func (mr *MockGPUManagerMockRecorder) GetMpsControlBinaryPresent() *gomock.Call
GetMpsControlBinaryPresent indicates an expected call of GetMpsControlBinaryPresent.
func (*MockGPUManagerMockRecorder) GetMpsServiceEnabled ¶
func (mr *MockGPUManagerMockRecorder) GetMpsServiceEnabled() *gomock.Call
GetMpsServiceEnabled indicates an expected call of GetMpsServiceEnabled.
func (*MockGPUManagerMockRecorder) Initialize ¶
func (mr *MockGPUManagerMockRecorder) Initialize() *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockGPUManagerMockRecorder) SetDevices ¶
func (mr *MockGPUManagerMockRecorder) SetDevices() *gomock.Call
SetDevices indicates an expected call of SetDevices.
func (*MockGPUManagerMockRecorder) SetDriverVersion ¶
func (mr *MockGPUManagerMockRecorder) SetDriverVersion(arg0 interface{}) *gomock.Call
SetDriverVersion indicates an expected call of SetDriverVersion.
func (*MockGPUManagerMockRecorder) SetGPUIDs ¶
func (mr *MockGPUManagerMockRecorder) SetGPUIDs(arg0 interface{}) *gomock.Call
SetGPUIDs indicates an expected call of SetGPUIDs.