github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/utils/cri/mockcri/mockinterface.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: go.aporeto.io/enforcerd/trireme-lib/utils/cri (interfaces: ExtendedRuntimeService) 3 4 // Package mockcri is a generated GoMock package. 5 package mockcri 6 7 import ( 8 reflect "reflect" 9 time "time" 10 11 gomock "github.com/golang/mock/gomock" 12 v1alpha2 "k8s.io/cri-api/pkg/apis/runtime/v1alpha2" 13 ) 14 15 // MockExtendedRuntimeService is a mock of ExtendedRuntimeService interface 16 // nolint 17 type MockExtendedRuntimeService struct { 18 ctrl *gomock.Controller 19 recorder *MockExtendedRuntimeServiceMockRecorder 20 } 21 22 // MockExtendedRuntimeServiceMockRecorder is the mock recorder for MockExtendedRuntimeService 23 // nolint 24 type MockExtendedRuntimeServiceMockRecorder struct { 25 mock *MockExtendedRuntimeService 26 } 27 28 // NewMockExtendedRuntimeService creates a new mock instance 29 // nolint 30 func NewMockExtendedRuntimeService(ctrl *gomock.Controller) *MockExtendedRuntimeService { 31 mock := &MockExtendedRuntimeService{ctrl: ctrl} 32 mock.recorder = &MockExtendedRuntimeServiceMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use 37 // nolint 38 func (m *MockExtendedRuntimeService) EXPECT() *MockExtendedRuntimeServiceMockRecorder { 39 return m.recorder 40 } 41 42 // Attach mocks base method 43 // nolint 44 func (m *MockExtendedRuntimeService) Attach(arg0 *v1alpha2.AttachRequest) (*v1alpha2.AttachResponse, error) { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "Attach", arg0) 47 ret0, _ := ret[0].(*v1alpha2.AttachResponse) 48 ret1, _ := ret[1].(error) 49 return ret0, ret1 50 } 51 52 // Attach indicates an expected call of Attach 53 // nolint 54 func (mr *MockExtendedRuntimeServiceMockRecorder) Attach(arg0 interface{}) *gomock.Call { 55 mr.mock.ctrl.T.Helper() 56 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Attach", reflect.TypeOf((*MockExtendedRuntimeService)(nil).Attach), arg0) 57 } 58 59 // ContainerStats mocks base method 60 // nolint 61 func (m *MockExtendedRuntimeService) ContainerStats(arg0 string) (*v1alpha2.ContainerStats, error) { 62 m.ctrl.T.Helper() 63 ret := m.ctrl.Call(m, "ContainerStats", arg0) 64 ret0, _ := ret[0].(*v1alpha2.ContainerStats) 65 ret1, _ := ret[1].(error) 66 return ret0, ret1 67 } 68 69 // ContainerStats indicates an expected call of ContainerStats 70 // nolint 71 func (mr *MockExtendedRuntimeServiceMockRecorder) ContainerStats(arg0 interface{}) *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStats", reflect.TypeOf((*MockExtendedRuntimeService)(nil).ContainerStats), arg0) 74 } 75 76 // ContainerStatus mocks base method 77 // nolint 78 func (m *MockExtendedRuntimeService) ContainerStatus(arg0 string) (*v1alpha2.ContainerStatus, error) { 79 m.ctrl.T.Helper() 80 ret := m.ctrl.Call(m, "ContainerStatus", arg0) 81 ret0, _ := ret[0].(*v1alpha2.ContainerStatus) 82 ret1, _ := ret[1].(error) 83 return ret0, ret1 84 } 85 86 // ContainerStatus indicates an expected call of ContainerStatus 87 // nolint 88 func (mr *MockExtendedRuntimeServiceMockRecorder) ContainerStatus(arg0 interface{}) *gomock.Call { 89 mr.mock.ctrl.T.Helper() 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStatus", reflect.TypeOf((*MockExtendedRuntimeService)(nil).ContainerStatus), arg0) 91 } 92 93 // ContainerStatusVerbose mocks base method 94 // nolint 95 func (m *MockExtendedRuntimeService) ContainerStatusVerbose(arg0 string) (*v1alpha2.ContainerStatus, map[string]string, error) { 96 m.ctrl.T.Helper() 97 ret := m.ctrl.Call(m, "ContainerStatusVerbose", arg0) 98 ret0, _ := ret[0].(*v1alpha2.ContainerStatus) 99 ret1, _ := ret[1].(map[string]string) 100 ret2, _ := ret[2].(error) 101 return ret0, ret1, ret2 102 } 103 104 // ContainerStatusVerbose indicates an expected call of ContainerStatusVerbose 105 // nolint 106 func (mr *MockExtendedRuntimeServiceMockRecorder) ContainerStatusVerbose(arg0 interface{}) *gomock.Call { 107 mr.mock.ctrl.T.Helper() 108 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStatusVerbose", reflect.TypeOf((*MockExtendedRuntimeService)(nil).ContainerStatusVerbose), arg0) 109 } 110 111 // CreateContainer mocks base method 112 // nolint 113 func (m *MockExtendedRuntimeService) CreateContainer(arg0 string, arg1 *v1alpha2.ContainerConfig, arg2 *v1alpha2.PodSandboxConfig) (string, error) { 114 m.ctrl.T.Helper() 115 ret := m.ctrl.Call(m, "CreateContainer", arg0, arg1, arg2) 116 ret0, _ := ret[0].(string) 117 ret1, _ := ret[1].(error) 118 return ret0, ret1 119 } 120 121 // CreateContainer indicates an expected call of CreateContainer 122 // nolint 123 func (mr *MockExtendedRuntimeServiceMockRecorder) CreateContainer(arg0, arg1, arg2 interface{}) *gomock.Call { 124 mr.mock.ctrl.T.Helper() 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateContainer", reflect.TypeOf((*MockExtendedRuntimeService)(nil).CreateContainer), arg0, arg1, arg2) 126 } 127 128 // Exec mocks base method 129 // nolint 130 func (m *MockExtendedRuntimeService) Exec(arg0 *v1alpha2.ExecRequest) (*v1alpha2.ExecResponse, error) { 131 m.ctrl.T.Helper() 132 ret := m.ctrl.Call(m, "Exec", arg0) 133 ret0, _ := ret[0].(*v1alpha2.ExecResponse) 134 ret1, _ := ret[1].(error) 135 return ret0, ret1 136 } 137 138 // Exec indicates an expected call of Exec 139 // nolint 140 func (mr *MockExtendedRuntimeServiceMockRecorder) Exec(arg0 interface{}) *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockExtendedRuntimeService)(nil).Exec), arg0) 143 } 144 145 // ExecSync mocks base method 146 // nolint 147 func (m *MockExtendedRuntimeService) ExecSync(arg0 string, arg1 []string, arg2 time.Duration) ([]byte, []byte, error) { 148 m.ctrl.T.Helper() 149 ret := m.ctrl.Call(m, "ExecSync", arg0, arg1, arg2) 150 ret0, _ := ret[0].([]byte) 151 ret1, _ := ret[1].([]byte) 152 ret2, _ := ret[2].(error) 153 return ret0, ret1, ret2 154 } 155 156 // ExecSync indicates an expected call of ExecSync 157 // nolint 158 func (mr *MockExtendedRuntimeServiceMockRecorder) ExecSync(arg0, arg1, arg2 interface{}) *gomock.Call { 159 mr.mock.ctrl.T.Helper() 160 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecSync", reflect.TypeOf((*MockExtendedRuntimeService)(nil).ExecSync), arg0, arg1, arg2) 161 } 162 163 // ListContainerStats mocks base method 164 // nolint 165 func (m *MockExtendedRuntimeService) ListContainerStats(arg0 *v1alpha2.ContainerStatsFilter) ([]*v1alpha2.ContainerStats, error) { 166 m.ctrl.T.Helper() 167 ret := m.ctrl.Call(m, "ListContainerStats", arg0) 168 ret0, _ := ret[0].([]*v1alpha2.ContainerStats) 169 ret1, _ := ret[1].(error) 170 return ret0, ret1 171 } 172 173 // ListContainerStats indicates an expected call of ListContainerStats 174 // nolint 175 func (mr *MockExtendedRuntimeServiceMockRecorder) ListContainerStats(arg0 interface{}) *gomock.Call { 176 mr.mock.ctrl.T.Helper() 177 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerStats", reflect.TypeOf((*MockExtendedRuntimeService)(nil).ListContainerStats), arg0) 178 } 179 180 // ListContainers mocks base method 181 // nolint 182 func (m *MockExtendedRuntimeService) ListContainers(arg0 *v1alpha2.ContainerFilter) ([]*v1alpha2.Container, error) { 183 m.ctrl.T.Helper() 184 ret := m.ctrl.Call(m, "ListContainers", arg0) 185 ret0, _ := ret[0].([]*v1alpha2.Container) 186 ret1, _ := ret[1].(error) 187 return ret0, ret1 188 } 189 190 // ListContainers indicates an expected call of ListContainers 191 // nolint 192 func (mr *MockExtendedRuntimeServiceMockRecorder) ListContainers(arg0 interface{}) *gomock.Call { 193 mr.mock.ctrl.T.Helper() 194 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainers", reflect.TypeOf((*MockExtendedRuntimeService)(nil).ListContainers), arg0) 195 } 196 197 // ListPodSandbox mocks base method 198 // nolint 199 func (m *MockExtendedRuntimeService) ListPodSandbox(arg0 *v1alpha2.PodSandboxFilter) ([]*v1alpha2.PodSandbox, error) { 200 m.ctrl.T.Helper() 201 ret := m.ctrl.Call(m, "ListPodSandbox", arg0) 202 ret0, _ := ret[0].([]*v1alpha2.PodSandbox) 203 ret1, _ := ret[1].(error) 204 return ret0, ret1 205 } 206 207 // ListPodSandbox indicates an expected call of ListPodSandbox 208 // nolint 209 func (mr *MockExtendedRuntimeServiceMockRecorder) ListPodSandbox(arg0 interface{}) *gomock.Call { 210 mr.mock.ctrl.T.Helper() 211 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPodSandbox", reflect.TypeOf((*MockExtendedRuntimeService)(nil).ListPodSandbox), arg0) 212 } 213 214 // PodSandboxStatus mocks base method 215 // nolint 216 func (m *MockExtendedRuntimeService) PodSandboxStatus(arg0 string) (*v1alpha2.PodSandboxStatus, error) { 217 m.ctrl.T.Helper() 218 ret := m.ctrl.Call(m, "PodSandboxStatus", arg0) 219 ret0, _ := ret[0].(*v1alpha2.PodSandboxStatus) 220 ret1, _ := ret[1].(error) 221 return ret0, ret1 222 } 223 224 // PodSandboxStatus indicates an expected call of PodSandboxStatus 225 // nolint 226 func (mr *MockExtendedRuntimeServiceMockRecorder) PodSandboxStatus(arg0 interface{}) *gomock.Call { 227 mr.mock.ctrl.T.Helper() 228 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodSandboxStatus", reflect.TypeOf((*MockExtendedRuntimeService)(nil).PodSandboxStatus), arg0) 229 } 230 231 // PodSandboxStatusVerbose mocks base method 232 // nolint 233 func (m *MockExtendedRuntimeService) PodSandboxStatusVerbose(arg0 string) (*v1alpha2.PodSandboxStatus, map[string]string, error) { 234 m.ctrl.T.Helper() 235 ret := m.ctrl.Call(m, "PodSandboxStatusVerbose", arg0) 236 ret0, _ := ret[0].(*v1alpha2.PodSandboxStatus) 237 ret1, _ := ret[1].(map[string]string) 238 ret2, _ := ret[2].(error) 239 return ret0, ret1, ret2 240 } 241 242 // PodSandboxStatusVerbose indicates an expected call of PodSandboxStatusVerbose 243 // nolint 244 func (mr *MockExtendedRuntimeServiceMockRecorder) PodSandboxStatusVerbose(arg0 interface{}) *gomock.Call { 245 mr.mock.ctrl.T.Helper() 246 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodSandboxStatusVerbose", reflect.TypeOf((*MockExtendedRuntimeService)(nil).PodSandboxStatusVerbose), arg0) 247 } 248 249 // PortForward mocks base method 250 // nolint 251 func (m *MockExtendedRuntimeService) PortForward(arg0 *v1alpha2.PortForwardRequest) (*v1alpha2.PortForwardResponse, error) { 252 m.ctrl.T.Helper() 253 ret := m.ctrl.Call(m, "PortForward", arg0) 254 ret0, _ := ret[0].(*v1alpha2.PortForwardResponse) 255 ret1, _ := ret[1].(error) 256 return ret0, ret1 257 } 258 259 // PortForward indicates an expected call of PortForward 260 // nolint 261 func (mr *MockExtendedRuntimeServiceMockRecorder) PortForward(arg0 interface{}) *gomock.Call { 262 mr.mock.ctrl.T.Helper() 263 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PortForward", reflect.TypeOf((*MockExtendedRuntimeService)(nil).PortForward), arg0) 264 } 265 266 // RemoveContainer mocks base method 267 // nolint 268 func (m *MockExtendedRuntimeService) RemoveContainer(arg0 string) error { 269 m.ctrl.T.Helper() 270 ret := m.ctrl.Call(m, "RemoveContainer", arg0) 271 ret0, _ := ret[0].(error) 272 return ret0 273 } 274 275 // RemoveContainer indicates an expected call of RemoveContainer 276 // nolint 277 func (mr *MockExtendedRuntimeServiceMockRecorder) RemoveContainer(arg0 interface{}) *gomock.Call { 278 mr.mock.ctrl.T.Helper() 279 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveContainer", reflect.TypeOf((*MockExtendedRuntimeService)(nil).RemoveContainer), arg0) 280 } 281 282 // RemovePodSandbox mocks base method 283 // nolint 284 func (m *MockExtendedRuntimeService) RemovePodSandbox(arg0 string) error { 285 m.ctrl.T.Helper() 286 ret := m.ctrl.Call(m, "RemovePodSandbox", arg0) 287 ret0, _ := ret[0].(error) 288 return ret0 289 } 290 291 // RemovePodSandbox indicates an expected call of RemovePodSandbox 292 // nolint 293 func (mr *MockExtendedRuntimeServiceMockRecorder) RemovePodSandbox(arg0 interface{}) *gomock.Call { 294 mr.mock.ctrl.T.Helper() 295 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePodSandbox", reflect.TypeOf((*MockExtendedRuntimeService)(nil).RemovePodSandbox), arg0) 296 } 297 298 // ReopenContainerLog mocks base method 299 // nolint 300 func (m *MockExtendedRuntimeService) ReopenContainerLog(arg0 string) error { 301 m.ctrl.T.Helper() 302 ret := m.ctrl.Call(m, "ReopenContainerLog", arg0) 303 ret0, _ := ret[0].(error) 304 return ret0 305 } 306 307 // ReopenContainerLog indicates an expected call of ReopenContainerLog 308 // nolint 309 func (mr *MockExtendedRuntimeServiceMockRecorder) ReopenContainerLog(arg0 interface{}) *gomock.Call { 310 mr.mock.ctrl.T.Helper() 311 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReopenContainerLog", reflect.TypeOf((*MockExtendedRuntimeService)(nil).ReopenContainerLog), arg0) 312 } 313 314 // RunPodSandbox mocks base method 315 // nolint 316 func (m *MockExtendedRuntimeService) RunPodSandbox(arg0 *v1alpha2.PodSandboxConfig, arg1 string) (string, error) { 317 m.ctrl.T.Helper() 318 ret := m.ctrl.Call(m, "RunPodSandbox", arg0, arg1) 319 ret0, _ := ret[0].(string) 320 ret1, _ := ret[1].(error) 321 return ret0, ret1 322 } 323 324 // RunPodSandbox indicates an expected call of RunPodSandbox 325 // nolint 326 func (mr *MockExtendedRuntimeServiceMockRecorder) RunPodSandbox(arg0, arg1 interface{}) *gomock.Call { 327 mr.mock.ctrl.T.Helper() 328 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunPodSandbox", reflect.TypeOf((*MockExtendedRuntimeService)(nil).RunPodSandbox), arg0, arg1) 329 } 330 331 // StartContainer mocks base method 332 // nolint 333 func (m *MockExtendedRuntimeService) StartContainer(arg0 string) error { 334 m.ctrl.T.Helper() 335 ret := m.ctrl.Call(m, "StartContainer", arg0) 336 ret0, _ := ret[0].(error) 337 return ret0 338 } 339 340 // StartContainer indicates an expected call of StartContainer 341 // nolint 342 func (mr *MockExtendedRuntimeServiceMockRecorder) StartContainer(arg0 interface{}) *gomock.Call { 343 mr.mock.ctrl.T.Helper() 344 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartContainer", reflect.TypeOf((*MockExtendedRuntimeService)(nil).StartContainer), arg0) 345 } 346 347 // Status mocks base method 348 // nolint 349 func (m *MockExtendedRuntimeService) Status() (*v1alpha2.RuntimeStatus, error) { 350 m.ctrl.T.Helper() 351 ret := m.ctrl.Call(m, "Status") 352 ret0, _ := ret[0].(*v1alpha2.RuntimeStatus) 353 ret1, _ := ret[1].(error) 354 return ret0, ret1 355 } 356 357 // Status indicates an expected call of Status 358 // nolint 359 func (mr *MockExtendedRuntimeServiceMockRecorder) Status() *gomock.Call { 360 mr.mock.ctrl.T.Helper() 361 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockExtendedRuntimeService)(nil).Status)) 362 } 363 364 // StatusVerbose mocks base method 365 // nolint 366 func (m *MockExtendedRuntimeService) StatusVerbose() (*v1alpha2.RuntimeStatus, map[string]string, error) { 367 m.ctrl.T.Helper() 368 ret := m.ctrl.Call(m, "StatusVerbose") 369 ret0, _ := ret[0].(*v1alpha2.RuntimeStatus) 370 ret1, _ := ret[1].(map[string]string) 371 ret2, _ := ret[2].(error) 372 return ret0, ret1, ret2 373 } 374 375 // StatusVerbose indicates an expected call of StatusVerbose 376 // nolint 377 func (mr *MockExtendedRuntimeServiceMockRecorder) StatusVerbose() *gomock.Call { 378 mr.mock.ctrl.T.Helper() 379 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StatusVerbose", reflect.TypeOf((*MockExtendedRuntimeService)(nil).StatusVerbose)) 380 } 381 382 // StopContainer mocks base method 383 // nolint 384 func (m *MockExtendedRuntimeService) StopContainer(arg0 string, arg1 int64) error { 385 m.ctrl.T.Helper() 386 ret := m.ctrl.Call(m, "StopContainer", arg0, arg1) 387 ret0, _ := ret[0].(error) 388 return ret0 389 } 390 391 // StopContainer indicates an expected call of StopContainer 392 // nolint 393 func (mr *MockExtendedRuntimeServiceMockRecorder) StopContainer(arg0, arg1 interface{}) *gomock.Call { 394 mr.mock.ctrl.T.Helper() 395 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopContainer", reflect.TypeOf((*MockExtendedRuntimeService)(nil).StopContainer), arg0, arg1) 396 } 397 398 // StopPodSandbox mocks base method 399 // nolint 400 func (m *MockExtendedRuntimeService) StopPodSandbox(arg0 string) error { 401 m.ctrl.T.Helper() 402 ret := m.ctrl.Call(m, "StopPodSandbox", arg0) 403 ret0, _ := ret[0].(error) 404 return ret0 405 } 406 407 // StopPodSandbox indicates an expected call of StopPodSandbox 408 // nolint 409 func (mr *MockExtendedRuntimeServiceMockRecorder) StopPodSandbox(arg0 interface{}) *gomock.Call { 410 mr.mock.ctrl.T.Helper() 411 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopPodSandbox", reflect.TypeOf((*MockExtendedRuntimeService)(nil).StopPodSandbox), arg0) 412 } 413 414 // UpdateContainerResources mocks base method 415 // nolint 416 func (m *MockExtendedRuntimeService) UpdateContainerResources(arg0 string, arg1 *v1alpha2.LinuxContainerResources) error { 417 m.ctrl.T.Helper() 418 ret := m.ctrl.Call(m, "UpdateContainerResources", arg0, arg1) 419 ret0, _ := ret[0].(error) 420 return ret0 421 } 422 423 // UpdateContainerResources indicates an expected call of UpdateContainerResources 424 // nolint 425 func (mr *MockExtendedRuntimeServiceMockRecorder) UpdateContainerResources(arg0, arg1 interface{}) *gomock.Call { 426 mr.mock.ctrl.T.Helper() 427 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContainerResources", reflect.TypeOf((*MockExtendedRuntimeService)(nil).UpdateContainerResources), arg0, arg1) 428 } 429 430 // UpdateRuntimeConfig mocks base method 431 // nolint 432 func (m *MockExtendedRuntimeService) UpdateRuntimeConfig(arg0 *v1alpha2.RuntimeConfig) error { 433 m.ctrl.T.Helper() 434 ret := m.ctrl.Call(m, "UpdateRuntimeConfig", arg0) 435 ret0, _ := ret[0].(error) 436 return ret0 437 } 438 439 // UpdateRuntimeConfig indicates an expected call of UpdateRuntimeConfig 440 // nolint 441 func (mr *MockExtendedRuntimeServiceMockRecorder) UpdateRuntimeConfig(arg0 interface{}) *gomock.Call { 442 mr.mock.ctrl.T.Helper() 443 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRuntimeConfig", reflect.TypeOf((*MockExtendedRuntimeService)(nil).UpdateRuntimeConfig), arg0) 444 } 445 446 // Version mocks base method 447 // nolint 448 func (m *MockExtendedRuntimeService) Version(arg0 string) (*v1alpha2.VersionResponse, error) { 449 m.ctrl.T.Helper() 450 ret := m.ctrl.Call(m, "Version", arg0) 451 ret0, _ := ret[0].(*v1alpha2.VersionResponse) 452 ret1, _ := ret[1].(error) 453 return ret0, ret1 454 } 455 456 // Version indicates an expected call of Version 457 // nolint 458 func (mr *MockExtendedRuntimeServiceMockRecorder) Version(arg0 interface{}) *gomock.Call { 459 mr.mock.ctrl.T.Helper() 460 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockExtendedRuntimeService)(nil).Version), arg0) 461 }