Documentation
¶
Overview ¶
Package mock_resourcereservation is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) RemovePodGpuGroupsConnection(ctx context.Context, pod *v1.Pod) error
- func (m *MockInterface) ReserveGpuDevice(ctx context.Context, pod *v1.Pod, nodeName, gpuGroup string) (string, error)
- func (m *MockInterface) Sync(ctx context.Context) error
- func (m *MockInterface) SyncForGpuGroup(ctx context.Context, gpuGroup string) error
- func (m *MockInterface) SyncForNode(ctx context.Context, nodeName string) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) RemovePodGpuGroupsConnection(ctx, pod any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ReserveGpuDevice(ctx, pod, nodeName, gpuGroup any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Sync(ctx any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SyncForGpuGroup(ctx, gpuGroup any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SyncForNode(ctx, nodeName any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) RemovePodGpuGroupsConnection ¶ added in v0.9.12
RemovePodGpuGroupsConnection mocks base method.
func (*MockInterface) ReserveGpuDevice ¶
func (m *MockInterface) ReserveGpuDevice(ctx context.Context, pod *v1.Pod, nodeName, gpuGroup string) (string, error)
ReserveGpuDevice mocks base method.
func (*MockInterface) Sync ¶
func (m *MockInterface) Sync(ctx context.Context) error
Sync mocks base method.
func (*MockInterface) SyncForGpuGroup ¶
func (m *MockInterface) SyncForGpuGroup(ctx context.Context, gpuGroup string) error
SyncForGpuGroup mocks base method.
func (*MockInterface) SyncForNode ¶
func (m *MockInterface) SyncForNode(ctx context.Context, nodeName string) error
SyncForNode mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) RemovePodGpuGroupsConnection ¶ added in v0.9.12
func (mr *MockInterfaceMockRecorder) RemovePodGpuGroupsConnection(ctx, pod any) *gomock.Call
RemovePodGpuGroupsConnection indicates an expected call of RemovePodGpuGroupsConnection.
func (*MockInterfaceMockRecorder) ReserveGpuDevice ¶
func (mr *MockInterfaceMockRecorder) ReserveGpuDevice(ctx, pod, nodeName, gpuGroup any) *gomock.Call
ReserveGpuDevice indicates an expected call of ReserveGpuDevice.
func (*MockInterfaceMockRecorder) Sync ¶
func (mr *MockInterfaceMockRecorder) Sync(ctx any) *gomock.Call
Sync indicates an expected call of Sync.
func (*MockInterfaceMockRecorder) SyncForGpuGroup ¶
func (mr *MockInterfaceMockRecorder) SyncForGpuGroup(ctx, gpuGroup any) *gomock.Call
SyncForGpuGroup indicates an expected call of SyncForGpuGroup.
func (*MockInterfaceMockRecorder) SyncForNode ¶
func (mr *MockInterfaceMockRecorder) SyncForNode(ctx, nodeName any) *gomock.Call
SyncForNode indicates an expected call of SyncForNode.