github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/controller/mockcontroller/mocktrireme.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: controller/interfaces.go 3 4 // Package mockcontroller is a generated GoMock package. 5 package mockcontroller 6 7 import ( 8 context "context" 9 reflect "reflect" 10 time "time" 11 12 gomock "github.com/golang/mock/gomock" 13 packettracing "go.aporeto.io/enforcerd/trireme-lib/controller/pkg/packettracing" 14 secrets "go.aporeto.io/enforcerd/trireme-lib/controller/pkg/secrets" 15 runtime "go.aporeto.io/enforcerd/trireme-lib/controller/runtime" 16 policy "go.aporeto.io/enforcerd/trireme-lib/policy" 17 ) 18 19 // MockTriremeController is a mock of TriremeController interface 20 // nolint 21 type MockTriremeController struct { 22 ctrl *gomock.Controller 23 recorder *MockTriremeControllerMockRecorder 24 } 25 26 // MockTriremeControllerMockRecorder is the mock recorder for MockTriremeController 27 // nolint 28 type MockTriremeControllerMockRecorder struct { 29 mock *MockTriremeController 30 } 31 32 // NewMockTriremeController creates a new mock instance 33 // nolint 34 func NewMockTriremeController(ctrl *gomock.Controller) *MockTriremeController { 35 mock := &MockTriremeController{ctrl: ctrl} 36 mock.recorder = &MockTriremeControllerMockRecorder{mock} 37 return mock 38 } 39 40 // EXPECT returns an object that allows the caller to indicate expected use 41 // nolint 42 func (m *MockTriremeController) EXPECT() *MockTriremeControllerMockRecorder { 43 return m.recorder 44 } 45 46 // Run mocks base method 47 // nolint 48 func (m *MockTriremeController) Run(ctx context.Context) error { 49 m.ctrl.T.Helper() 50 ret := m.ctrl.Call(m, "Run", ctx) 51 ret0, _ := ret[0].(error) 52 return ret0 53 } 54 55 // Run indicates an expected call of Run 56 // nolint 57 func (mr *MockTriremeControllerMockRecorder) Run(ctx interface{}) *gomock.Call { 58 mr.mock.ctrl.T.Helper() 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockTriremeController)(nil).Run), ctx) 60 } 61 62 // CleanUp mocks base method 63 // nolint 64 func (m *MockTriremeController) CleanUp() error { 65 m.ctrl.T.Helper() 66 ret := m.ctrl.Call(m, "CleanUp") 67 ret0, _ := ret[0].(error) 68 return ret0 69 } 70 71 // CleanUp indicates an expected call of CleanUp 72 // nolint 73 func (mr *MockTriremeControllerMockRecorder) CleanUp() *gomock.Call { 74 mr.mock.ctrl.T.Helper() 75 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanUp", reflect.TypeOf((*MockTriremeController)(nil).CleanUp)) 76 } 77 78 // Enforce mocks base method 79 // nolint 80 func (m *MockTriremeController) Enforce(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime) error { 81 m.ctrl.T.Helper() 82 ret := m.ctrl.Call(m, "Enforce", ctx, puID, policy, runtime) 83 ret0, _ := ret[0].(error) 84 return ret0 85 } 86 87 // Enforce indicates an expected call of Enforce 88 // nolint 89 func (mr *MockTriremeControllerMockRecorder) Enforce(ctx, puID, policy, runtime interface{}) *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enforce", reflect.TypeOf((*MockTriremeController)(nil).Enforce), ctx, puID, policy, runtime) 92 } 93 94 // UnEnforce mocks base method 95 // nolint 96 func (m *MockTriremeController) UnEnforce(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime) error { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "UnEnforce", ctx, puID, policy, runtime) 99 ret0, _ := ret[0].(error) 100 return ret0 101 } 102 103 // UnEnforce indicates an expected call of UnEnforce 104 // nolint 105 func (mr *MockTriremeControllerMockRecorder) UnEnforce(ctx, puID, policy, runtime interface{}) *gomock.Call { 106 mr.mock.ctrl.T.Helper() 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnEnforce", reflect.TypeOf((*MockTriremeController)(nil).UnEnforce), ctx, puID, policy, runtime) 108 } 109 110 // UpdatePolicy mocks base method 111 // nolint 112 func (m *MockTriremeController) UpdatePolicy(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime) error { 113 m.ctrl.T.Helper() 114 ret := m.ctrl.Call(m, "UpdatePolicy", ctx, puID, policy, runtime) 115 ret0, _ := ret[0].(error) 116 return ret0 117 } 118 119 // UpdatePolicy indicates an expected call of UpdatePolicy 120 // nolint 121 func (mr *MockTriremeControllerMockRecorder) UpdatePolicy(ctx, puID, policy, runtime interface{}) *gomock.Call { 122 mr.mock.ctrl.T.Helper() 123 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePolicy", reflect.TypeOf((*MockTriremeController)(nil).UpdatePolicy), ctx, puID, policy, runtime) 124 } 125 126 // UpdateSecrets mocks base method 127 // nolint 128 func (m *MockTriremeController) UpdateSecrets(secrets secrets.Secrets) error { 129 m.ctrl.T.Helper() 130 ret := m.ctrl.Call(m, "UpdateSecrets", secrets) 131 ret0, _ := ret[0].(error) 132 return ret0 133 } 134 135 // UpdateSecrets indicates an expected call of UpdateSecrets 136 // nolint 137 func (mr *MockTriremeControllerMockRecorder) UpdateSecrets(secrets interface{}) *gomock.Call { 138 mr.mock.ctrl.T.Helper() 139 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSecrets", reflect.TypeOf((*MockTriremeController)(nil).UpdateSecrets), secrets) 140 } 141 142 // UpdateConfiguration mocks base method 143 // nolint 144 func (m *MockTriremeController) UpdateConfiguration(cfg *runtime.Configuration) error { 145 m.ctrl.T.Helper() 146 ret := m.ctrl.Call(m, "UpdateConfiguration", cfg) 147 ret0, _ := ret[0].(error) 148 return ret0 149 } 150 151 // UpdateConfiguration indicates an expected call of UpdateConfiguration 152 // nolint 153 func (mr *MockTriremeControllerMockRecorder) UpdateConfiguration(cfg interface{}) *gomock.Call { 154 mr.mock.ctrl.T.Helper() 155 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConfiguration", reflect.TypeOf((*MockTriremeController)(nil).UpdateConfiguration), cfg) 156 } 157 158 // EnableDatapathPacketTracing mocks base method 159 // nolint 160 func (m *MockTriremeController) EnableDatapathPacketTracing(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime, direction packettracing.TracingDirection, interval time.Duration) error { 161 m.ctrl.T.Helper() 162 ret := m.ctrl.Call(m, "EnableDatapathPacketTracing", ctx, puID, policy, runtime, direction, interval) 163 ret0, _ := ret[0].(error) 164 return ret0 165 } 166 167 // EnableDatapathPacketTracing indicates an expected call of EnableDatapathPacketTracing 168 // nolint 169 func (mr *MockTriremeControllerMockRecorder) EnableDatapathPacketTracing(ctx, puID, policy, runtime, direction, interval interface{}) *gomock.Call { 170 mr.mock.ctrl.T.Helper() 171 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableDatapathPacketTracing", reflect.TypeOf((*MockTriremeController)(nil).EnableDatapathPacketTracing), ctx, puID, policy, runtime, direction, interval) 172 } 173 174 // EnableIPTablesPacketTracing mocks base method 175 // nolint 176 func (m *MockTriremeController) EnableIPTablesPacketTracing(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime, interval time.Duration) error { 177 m.ctrl.T.Helper() 178 ret := m.ctrl.Call(m, "EnableIPTablesPacketTracing", ctx, puID, policy, runtime, interval) 179 ret0, _ := ret[0].(error) 180 return ret0 181 } 182 183 // EnableIPTablesPacketTracing indicates an expected call of EnableIPTablesPacketTracing 184 // nolint 185 func (mr *MockTriremeControllerMockRecorder) EnableIPTablesPacketTracing(ctx, puID, policy, runtime, interval interface{}) *gomock.Call { 186 mr.mock.ctrl.T.Helper() 187 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableIPTablesPacketTracing", reflect.TypeOf((*MockTriremeController)(nil).EnableIPTablesPacketTracing), ctx, puID, policy, runtime, interval) 188 } 189 190 // Ping mocks base method 191 // nolint 192 func (m *MockTriremeController) Ping(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime, pingConfig *policy.PingConfig) error { 193 m.ctrl.T.Helper() 194 ret := m.ctrl.Call(m, "Ping", ctx, puID, policy, runtime, pingConfig) 195 ret0, _ := ret[0].(error) 196 return ret0 197 } 198 199 // Ping indicates an expected call of Ping 200 // nolint 201 func (mr *MockTriremeControllerMockRecorder) Ping(ctx, puID, policy, runtime, pingConfig interface{}) *gomock.Call { 202 mr.mock.ctrl.T.Helper() 203 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockTriremeController)(nil).Ping), ctx, puID, policy, runtime, pingConfig) 204 } 205 206 // DebugCollect mocks base method 207 // nolint 208 func (m *MockTriremeController) DebugCollect(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime, debugConfig *policy.DebugConfig) error { 209 m.ctrl.T.Helper() 210 ret := m.ctrl.Call(m, "DebugCollect", ctx, puID, policy, runtime, debugConfig) 211 ret0, _ := ret[0].(error) 212 return ret0 213 } 214 215 // DebugCollect indicates an expected call of DebugCollect 216 // nolint 217 func (mr *MockTriremeControllerMockRecorder) DebugCollect(ctx, puID, policy, runtime, debugConfig interface{}) *gomock.Call { 218 mr.mock.ctrl.T.Helper() 219 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DebugCollect", reflect.TypeOf((*MockTriremeController)(nil).DebugCollect), ctx, puID, policy, runtime, debugConfig) 220 } 221 222 // MockDebugInfo is a mock of DebugInfo interface 223 // nolint 224 type MockDebugInfo struct { 225 ctrl *gomock.Controller 226 recorder *MockDebugInfoMockRecorder 227 } 228 229 // MockDebugInfoMockRecorder is the mock recorder for MockDebugInfo 230 // nolint 231 type MockDebugInfoMockRecorder struct { 232 mock *MockDebugInfo 233 } 234 235 // NewMockDebugInfo creates a new mock instance 236 // nolint 237 func NewMockDebugInfo(ctrl *gomock.Controller) *MockDebugInfo { 238 mock := &MockDebugInfo{ctrl: ctrl} 239 mock.recorder = &MockDebugInfoMockRecorder{mock} 240 return mock 241 } 242 243 // EXPECT returns an object that allows the caller to indicate expected use 244 // nolint 245 func (m *MockDebugInfo) EXPECT() *MockDebugInfoMockRecorder { 246 return m.recorder 247 } 248 249 // EnableDatapathPacketTracing mocks base method 250 // nolint 251 func (m *MockDebugInfo) EnableDatapathPacketTracing(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime, direction packettracing.TracingDirection, interval time.Duration) error { 252 m.ctrl.T.Helper() 253 ret := m.ctrl.Call(m, "EnableDatapathPacketTracing", ctx, puID, policy, runtime, direction, interval) 254 ret0, _ := ret[0].(error) 255 return ret0 256 } 257 258 // EnableDatapathPacketTracing indicates an expected call of EnableDatapathPacketTracing 259 // nolint 260 func (mr *MockDebugInfoMockRecorder) EnableDatapathPacketTracing(ctx, puID, policy, runtime, direction, interval interface{}) *gomock.Call { 261 mr.mock.ctrl.T.Helper() 262 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableDatapathPacketTracing", reflect.TypeOf((*MockDebugInfo)(nil).EnableDatapathPacketTracing), ctx, puID, policy, runtime, direction, interval) 263 } 264 265 // EnableIPTablesPacketTracing mocks base method 266 // nolint 267 func (m *MockDebugInfo) EnableIPTablesPacketTracing(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime, interval time.Duration) error { 268 m.ctrl.T.Helper() 269 ret := m.ctrl.Call(m, "EnableIPTablesPacketTracing", ctx, puID, policy, runtime, interval) 270 ret0, _ := ret[0].(error) 271 return ret0 272 } 273 274 // EnableIPTablesPacketTracing indicates an expected call of EnableIPTablesPacketTracing 275 // nolint 276 func (mr *MockDebugInfoMockRecorder) EnableIPTablesPacketTracing(ctx, puID, policy, runtime, interval interface{}) *gomock.Call { 277 mr.mock.ctrl.T.Helper() 278 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableIPTablesPacketTracing", reflect.TypeOf((*MockDebugInfo)(nil).EnableIPTablesPacketTracing), ctx, puID, policy, runtime, interval) 279 } 280 281 // Ping mocks base method 282 // nolint 283 func (m *MockDebugInfo) Ping(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime, pingConfig *policy.PingConfig) error { 284 m.ctrl.T.Helper() 285 ret := m.ctrl.Call(m, "Ping", ctx, puID, policy, runtime, pingConfig) 286 ret0, _ := ret[0].(error) 287 return ret0 288 } 289 290 // Ping indicates an expected call of Ping 291 // nolint 292 func (mr *MockDebugInfoMockRecorder) Ping(ctx, puID, policy, runtime, pingConfig interface{}) *gomock.Call { 293 mr.mock.ctrl.T.Helper() 294 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockDebugInfo)(nil).Ping), ctx, puID, policy, runtime, pingConfig) 295 } 296 297 // DebugCollect mocks base method 298 // nolint 299 func (m *MockDebugInfo) DebugCollect(ctx context.Context, puID string, policy *policy.PUPolicy, runtime *policy.PURuntime, debugConfig *policy.DebugConfig) error { 300 m.ctrl.T.Helper() 301 ret := m.ctrl.Call(m, "DebugCollect", ctx, puID, policy, runtime, debugConfig) 302 ret0, _ := ret[0].(error) 303 return ret0 304 } 305 306 // DebugCollect indicates an expected call of DebugCollect 307 // nolint 308 func (mr *MockDebugInfoMockRecorder) DebugCollect(ctx, puID, policy, runtime, debugConfig interface{}) *gomock.Call { 309 mr.mock.ctrl.T.Helper() 310 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DebugCollect", reflect.TypeOf((*MockDebugInfo)(nil).DebugCollect), ctx, puID, policy, runtime, debugConfig) 311 }