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