mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Update mock for ModifyVolume controller function support
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
This commit is contained in:
parent
d8458293d2
commit
35d358b53d
@ -169,6 +169,21 @@ func (mr *MockControllerServerMockRecorder) ControllerGetVolume(arg0, arg1 any)
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerGetVolume", reflect.TypeOf((*MockControllerServer)(nil).ControllerGetVolume), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerGetVolume", reflect.TypeOf((*MockControllerServer)(nil).ControllerGetVolume), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ControllerModifyVolume mocks base method.
|
||||||
|
func (m *MockControllerServer) ControllerModifyVolume(arg0 context.Context, arg1 *csi.ControllerModifyVolumeRequest) (*csi.ControllerModifyVolumeResponse, error) {
|
||||||
|
m.ctrl.T.Helper()
|
||||||
|
ret := m.ctrl.Call(m, "ControllerModifyVolume", arg0, arg1)
|
||||||
|
ret0, _ := ret[0].(*csi.ControllerModifyVolumeResponse)
|
||||||
|
ret1, _ := ret[1].(error)
|
||||||
|
return ret0, ret1
|
||||||
|
}
|
||||||
|
|
||||||
|
// ControllerModifyVolume indicates an expected call of ControllerModifyVolume.
|
||||||
|
func (mr *MockControllerServerMockRecorder) ControllerModifyVolume(arg0, arg1 any) *gomock.Call {
|
||||||
|
mr.mock.ctrl.T.Helper()
|
||||||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerModifyVolume", reflect.TypeOf((*MockControllerServer)(nil).ControllerModifyVolume), arg0, arg1)
|
||||||
|
}
|
||||||
|
|
||||||
// ControllerPublishVolume mocks base method.
|
// ControllerPublishVolume mocks base method.
|
||||||
func (m *MockControllerServer) ControllerPublishVolume(arg0 context.Context, arg1 *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error) {
|
func (m *MockControllerServer) ControllerPublishVolume(arg0 context.Context, arg1 *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
@ -319,14 +334,6 @@ func (mr *MockControllerServerMockRecorder) ValidateVolumeCapabilities(arg0, arg
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateVolumeCapabilities", reflect.TypeOf((*MockControllerServer)(nil).ValidateVolumeCapabilities), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateVolumeCapabilities", reflect.TypeOf((*MockControllerServer)(nil).ValidateVolumeCapabilities), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MockControllerServer) ControllerModifyVolume(arg0 context.Context, arg1 *csi.ControllerModifyVolumeRequest) (*csi.ControllerModifyVolumeResponse, error) {
|
|
||||||
m.ctrl.T.Helper()
|
|
||||||
ret := m.ctrl.Call(m, "ModifyVolume", arg0, arg1)
|
|
||||||
ret0, _ := ret[0].(*csi.ControllerModifyVolumeResponse)
|
|
||||||
ret1, _ := ret[1].(error)
|
|
||||||
return ret0, ret1
|
|
||||||
}
|
|
||||||
|
|
||||||
// MockNodeServer is a mock of NodeServer interface.
|
// MockNodeServer is a mock of NodeServer interface.
|
||||||
type MockNodeServer struct {
|
type MockNodeServer struct {
|
||||||
ctrl *gomock.Controller
|
ctrl *gomock.Controller
|
||||||
|
Loading…
Reference in New Issue
Block a user