github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/pkg/host/store/mock/mock_store.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: store.go 3 4 // Package mock_store is a generated GoMock package. 5 package mock_store 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 v1 "github.com/k8snetworkplumbingwg/sriov-network-operator/api/v1" 12 ) 13 14 // MockManagerInterface is a mock of ManagerInterface interface. 15 type MockManagerInterface struct { 16 ctrl *gomock.Controller 17 recorder *MockManagerInterfaceMockRecorder 18 } 19 20 // MockManagerInterfaceMockRecorder is the mock recorder for MockManagerInterface. 21 type MockManagerInterfaceMockRecorder struct { 22 mock *MockManagerInterface 23 } 24 25 // NewMockManagerInterface creates a new mock instance. 26 func NewMockManagerInterface(ctrl *gomock.Controller) *MockManagerInterface { 27 mock := &MockManagerInterface{ctrl: ctrl} 28 mock.recorder = &MockManagerInterfaceMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockManagerInterface) EXPECT() *MockManagerInterfaceMockRecorder { 34 return m.recorder 35 } 36 37 // ClearPCIAddressFolder mocks base method. 38 func (m *MockManagerInterface) ClearPCIAddressFolder() error { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "ClearPCIAddressFolder") 41 ret0, _ := ret[0].(error) 42 return ret0 43 } 44 45 // ClearPCIAddressFolder indicates an expected call of ClearPCIAddressFolder. 46 func (mr *MockManagerInterfaceMockRecorder) ClearPCIAddressFolder() *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearPCIAddressFolder", reflect.TypeOf((*MockManagerInterface)(nil).ClearPCIAddressFolder)) 49 } 50 51 // GetCheckPointNodeState mocks base method. 52 func (m *MockManagerInterface) GetCheckPointNodeState() (*v1.SriovNetworkNodeState, error) { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "GetCheckPointNodeState") 55 ret0, _ := ret[0].(*v1.SriovNetworkNodeState) 56 ret1, _ := ret[1].(error) 57 return ret0, ret1 58 } 59 60 // GetCheckPointNodeState indicates an expected call of GetCheckPointNodeState. 61 func (mr *MockManagerInterfaceMockRecorder) GetCheckPointNodeState() *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCheckPointNodeState", reflect.TypeOf((*MockManagerInterface)(nil).GetCheckPointNodeState)) 64 } 65 66 // LoadPfsStatus mocks base method. 67 func (m *MockManagerInterface) LoadPfsStatus(pciAddress string) (*v1.Interface, bool, error) { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "LoadPfsStatus", pciAddress) 70 ret0, _ := ret[0].(*v1.Interface) 71 ret1, _ := ret[1].(bool) 72 ret2, _ := ret[2].(error) 73 return ret0, ret1, ret2 74 } 75 76 // LoadPfsStatus indicates an expected call of LoadPfsStatus. 77 func (mr *MockManagerInterfaceMockRecorder) LoadPfsStatus(pciAddress interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadPfsStatus", reflect.TypeOf((*MockManagerInterface)(nil).LoadPfsStatus), pciAddress) 80 } 81 82 // SaveLastPfAppliedStatus mocks base method. 83 func (m *MockManagerInterface) SaveLastPfAppliedStatus(PfInfo *v1.Interface) error { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "SaveLastPfAppliedStatus", PfInfo) 86 ret0, _ := ret[0].(error) 87 return ret0 88 } 89 90 // SaveLastPfAppliedStatus indicates an expected call of SaveLastPfAppliedStatus. 91 func (mr *MockManagerInterfaceMockRecorder) SaveLastPfAppliedStatus(PfInfo interface{}) *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveLastPfAppliedStatus", reflect.TypeOf((*MockManagerInterface)(nil).SaveLastPfAppliedStatus), PfInfo) 94 } 95 96 // WriteCheckpointFile mocks base method. 97 func (m *MockManagerInterface) WriteCheckpointFile(arg0 *v1.SriovNetworkNodeState) error { 98 m.ctrl.T.Helper() 99 ret := m.ctrl.Call(m, "WriteCheckpointFile", arg0) 100 ret0, _ := ret[0].(error) 101 return ret0 102 } 103 104 // WriteCheckpointFile indicates an expected call of WriteCheckpointFile. 105 func (mr *MockManagerInterfaceMockRecorder) WriteCheckpointFile(arg0 interface{}) *gomock.Call { 106 mr.mock.ctrl.T.Helper() 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteCheckpointFile", reflect.TypeOf((*MockManagerInterface)(nil).WriteCheckpointFile), arg0) 108 }