github.com/jayanthvn/pure-gobpf@v0.0.0-20230623131354-8d1d959d9e0b/pkg/ebpf_maps/mocks/ebpf_mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/jayanthvn/pure-gobpf/pkg/ebpf_maps (interfaces: BpfMapAPIs) 3 4 // Package mock_ebpf_maps is a generated GoMock package. 5 package mock_ebpf_maps 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ebpf_maps "github.com/jayanthvn/pure-gobpf/pkg/ebpf_maps" 12 ) 13 14 // MockBpfMapAPIs is a mock of BpfMapAPIs interface. 15 type MockBpfMapAPIs struct { 16 ctrl *gomock.Controller 17 recorder *MockBpfMapAPIsMockRecorder 18 } 19 20 // MockBpfMapAPIsMockRecorder is the mock recorder for MockBpfMapAPIs. 21 type MockBpfMapAPIsMockRecorder struct { 22 mock *MockBpfMapAPIs 23 } 24 25 // NewMockBpfMapAPIs creates a new mock instance. 26 func NewMockBpfMapAPIs(ctrl *gomock.Controller) *MockBpfMapAPIs { 27 mock := &MockBpfMapAPIs{ctrl: ctrl} 28 mock.recorder = &MockBpfMapAPIsMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockBpfMapAPIs) EXPECT() *MockBpfMapAPIsMockRecorder { 34 return m.recorder 35 } 36 37 // BpfGetMapFromPinPath mocks base method. 38 func (m *MockBpfMapAPIs) BpfGetMapFromPinPath(arg0 string) (ebpf_maps.BpfMapInfo, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "BpfGetMapFromPinPath", arg0) 41 ret0, _ := ret[0].(ebpf_maps.BpfMapInfo) 42 ret1, _ := ret[1].(error) 43 return ret0, ret1 44 } 45 46 // BpfGetMapFromPinPath indicates an expected call of BpfGetMapFromPinPath. 47 func (mr *MockBpfMapAPIsMockRecorder) BpfGetMapFromPinPath(arg0 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BpfGetMapFromPinPath", reflect.TypeOf((*MockBpfMapAPIs)(nil).BpfGetMapFromPinPath), arg0) 50 } 51 52 // BulkDeleteMapEntry mocks base method. 53 func (m *MockBpfMapAPIs) BulkDeleteMapEntry(arg0 map[uintptr]uintptr) error { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "BulkDeleteMapEntry", arg0) 56 ret0, _ := ret[0].(error) 57 return ret0 58 } 59 60 // BulkDeleteMapEntry indicates an expected call of BulkDeleteMapEntry. 61 func (mr *MockBpfMapAPIsMockRecorder) BulkDeleteMapEntry(arg0 interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkDeleteMapEntry", reflect.TypeOf((*MockBpfMapAPIs)(nil).BulkDeleteMapEntry), arg0) 64 } 65 66 // BulkRefreshMapEntries mocks base method. 67 func (m *MockBpfMapAPIs) BulkRefreshMapEntries(arg0 map[string]uintptr) error { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "BulkRefreshMapEntries", arg0) 70 ret0, _ := ret[0].(error) 71 return ret0 72 } 73 74 // BulkRefreshMapEntries indicates an expected call of BulkRefreshMapEntries. 75 func (mr *MockBpfMapAPIsMockRecorder) BulkRefreshMapEntries(arg0 interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkRefreshMapEntries", reflect.TypeOf((*MockBpfMapAPIs)(nil).BulkRefreshMapEntries), arg0) 78 } 79 80 // BulkUpdateMapEntry mocks base method. 81 func (m *MockBpfMapAPIs) BulkUpdateMapEntry(arg0 map[uintptr]uintptr) error { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "BulkUpdateMapEntry", arg0) 84 ret0, _ := ret[0].(error) 85 return ret0 86 } 87 88 // BulkUpdateMapEntry indicates an expected call of BulkUpdateMapEntry. 89 func (mr *MockBpfMapAPIsMockRecorder) BulkUpdateMapEntry(arg0 interface{}) *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkUpdateMapEntry", reflect.TypeOf((*MockBpfMapAPIs)(nil).BulkUpdateMapEntry), arg0) 92 } 93 94 // CreateMap mocks base method. 95 func (m *MockBpfMapAPIs) CreateMap(arg0 ebpf_maps.BpfMapData) (ebpf_maps.BPFMap, error) { 96 m.ctrl.T.Helper() 97 ret := m.ctrl.Call(m, "CreateMap", arg0) 98 ret0, _ := ret[0].(ebpf_maps.BPFMap) 99 ret1, _ := ret[1].(error) 100 return ret0, ret1 101 } 102 103 // CreateMap indicates an expected call of CreateMap. 104 func (mr *MockBpfMapAPIsMockRecorder) CreateMap(arg0 interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMap", reflect.TypeOf((*MockBpfMapAPIs)(nil).CreateMap), arg0) 107 } 108 109 // CreateMapEntry mocks base method. 110 func (m *MockBpfMapAPIs) CreateMapEntry(arg0, arg1 uintptr) error { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "CreateMapEntry", arg0, arg1) 113 ret0, _ := ret[0].(error) 114 return ret0 115 } 116 117 // CreateMapEntry indicates an expected call of CreateMapEntry. 118 func (mr *MockBpfMapAPIsMockRecorder) CreateMapEntry(arg0, arg1 interface{}) *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMapEntry", reflect.TypeOf((*MockBpfMapAPIs)(nil).CreateMapEntry), arg0, arg1) 121 } 122 123 // CreateUpdateMap mocks base method. 124 func (m *MockBpfMapAPIs) CreateUpdateMap(arg0, arg1 uintptr, arg2 uint64) error { 125 m.ctrl.T.Helper() 126 ret := m.ctrl.Call(m, "CreateUpdateMap", arg0, arg1, arg2) 127 ret0, _ := ret[0].(error) 128 return ret0 129 } 130 131 // CreateUpdateMap indicates an expected call of CreateUpdateMap. 132 func (mr *MockBpfMapAPIsMockRecorder) CreateUpdateMap(arg0, arg1, arg2 interface{}) *gomock.Call { 133 mr.mock.ctrl.T.Helper() 134 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUpdateMap", reflect.TypeOf((*MockBpfMapAPIs)(nil).CreateUpdateMap), arg0, arg1, arg2) 135 } 136 137 // DeleteMapEntry mocks base method. 138 func (m *MockBpfMapAPIs) DeleteMapEntry(arg0 uintptr) error { 139 m.ctrl.T.Helper() 140 ret := m.ctrl.Call(m, "DeleteMapEntry", arg0) 141 ret0, _ := ret[0].(error) 142 return ret0 143 } 144 145 // DeleteMapEntry indicates an expected call of DeleteMapEntry. 146 func (mr *MockBpfMapAPIsMockRecorder) DeleteMapEntry(arg0 interface{}) *gomock.Call { 147 mr.mock.ctrl.T.Helper() 148 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMapEntry", reflect.TypeOf((*MockBpfMapAPIs)(nil).DeleteMapEntry), arg0) 149 } 150 151 // GetFirstMapEntry mocks base method. 152 func (m *MockBpfMapAPIs) GetFirstMapEntry(arg0 uintptr) error { 153 m.ctrl.T.Helper() 154 ret := m.ctrl.Call(m, "GetFirstMapEntry", arg0) 155 ret0, _ := ret[0].(error) 156 return ret0 157 } 158 159 // GetFirstMapEntry indicates an expected call of GetFirstMapEntry. 160 func (mr *MockBpfMapAPIsMockRecorder) GetFirstMapEntry(arg0 interface{}) *gomock.Call { 161 mr.mock.ctrl.T.Helper() 162 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirstMapEntry", reflect.TypeOf((*MockBpfMapAPIs)(nil).GetFirstMapEntry), arg0) 163 } 164 165 // GetMapEntry mocks base method. 166 func (m *MockBpfMapAPIs) GetMapEntry(arg0, arg1 uintptr) error { 167 m.ctrl.T.Helper() 168 ret := m.ctrl.Call(m, "GetMapEntry", arg0, arg1) 169 ret0, _ := ret[0].(error) 170 return ret0 171 } 172 173 // GetMapEntry indicates an expected call of GetMapEntry. 174 func (mr *MockBpfMapAPIsMockRecorder) GetMapEntry(arg0, arg1 interface{}) *gomock.Call { 175 mr.mock.ctrl.T.Helper() 176 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMapEntry", reflect.TypeOf((*MockBpfMapAPIs)(nil).GetMapEntry), arg0, arg1) 177 } 178 179 // GetNextMapEntry mocks base method. 180 func (m *MockBpfMapAPIs) GetNextMapEntry(arg0, arg1 uintptr) error { 181 m.ctrl.T.Helper() 182 ret := m.ctrl.Call(m, "GetNextMapEntry", arg0, arg1) 183 ret0, _ := ret[0].(error) 184 return ret0 185 } 186 187 // GetNextMapEntry indicates an expected call of GetNextMapEntry. 188 func (mr *MockBpfMapAPIsMockRecorder) GetNextMapEntry(arg0, arg1 interface{}) *gomock.Call { 189 mr.mock.ctrl.T.Helper() 190 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNextMapEntry", reflect.TypeOf((*MockBpfMapAPIs)(nil).GetNextMapEntry), arg0, arg1) 191 } 192 193 // PinMap mocks base method. 194 func (m *MockBpfMapAPIs) PinMap(arg0 string) error { 195 m.ctrl.T.Helper() 196 ret := m.ctrl.Call(m, "PinMap", arg0) 197 ret0, _ := ret[0].(error) 198 return ret0 199 } 200 201 // PinMap indicates an expected call of PinMap. 202 func (mr *MockBpfMapAPIsMockRecorder) PinMap(arg0 interface{}) *gomock.Call { 203 mr.mock.ctrl.T.Helper() 204 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PinMap", reflect.TypeOf((*MockBpfMapAPIs)(nil).PinMap), arg0) 205 } 206 207 // UnPinMap mocks base method. 208 func (m *MockBpfMapAPIs) UnPinMap(arg0 string) error { 209 m.ctrl.T.Helper() 210 ret := m.ctrl.Call(m, "UnPinMap", arg0) 211 ret0, _ := ret[0].(error) 212 return ret0 213 } 214 215 // UnPinMap indicates an expected call of UnPinMap. 216 func (mr *MockBpfMapAPIsMockRecorder) UnPinMap(arg0 interface{}) *gomock.Call { 217 mr.mock.ctrl.T.Helper() 218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnPinMap", reflect.TypeOf((*MockBpfMapAPIs)(nil).UnPinMap), arg0) 219 } 220 221 // UpdateMapEntry mocks base method. 222 func (m *MockBpfMapAPIs) UpdateMapEntry(arg0, arg1 uintptr) error { 223 m.ctrl.T.Helper() 224 ret := m.ctrl.Call(m, "UpdateMapEntry", arg0, arg1) 225 ret0, _ := ret[0].(error) 226 return ret0 227 } 228 229 // UpdateMapEntry indicates an expected call of UpdateMapEntry. 230 func (mr *MockBpfMapAPIsMockRecorder) UpdateMapEntry(arg0, arg1 interface{}) *gomock.Call { 231 mr.mock.ctrl.T.Helper() 232 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMapEntry", reflect.TypeOf((*MockBpfMapAPIs)(nil).UpdateMapEntry), arg0, arg1) 233 }