github.com/rancher/types@v0.0.0-20220328215343-4370ff10ecd5/apis/management.cattle.io/v3/fakes/zz_generated_pod_security_policy_template_project_binding_mock.go (about) 1 // Code generated by moq; DO NOT EDIT. 2 // github.com/matryer/moq 3 4 package fakes 5 6 import ( 7 context "context" 8 sync "sync" 9 time "time" 10 11 controller "github.com/rancher/norman/controller" 12 objectclient "github.com/rancher/norman/objectclient" 13 v3 "github.com/rancher/types/apis/management.cattle.io/v3" 14 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 15 labels "k8s.io/apimachinery/pkg/labels" 16 watch "k8s.io/apimachinery/pkg/watch" 17 cache "k8s.io/client-go/tools/cache" 18 ) 19 20 var ( 21 lockPodSecurityPolicyTemplateProjectBindingListerMockGet sync.RWMutex 22 lockPodSecurityPolicyTemplateProjectBindingListerMockList sync.RWMutex 23 ) 24 25 // Ensure, that PodSecurityPolicyTemplateProjectBindingListerMock does implement PodSecurityPolicyTemplateProjectBindingLister. 26 // If this is not the case, regenerate this file with moq. 27 var _ v3.PodSecurityPolicyTemplateProjectBindingLister = &PodSecurityPolicyTemplateProjectBindingListerMock{} 28 29 // PodSecurityPolicyTemplateProjectBindingListerMock is a mock implementation of PodSecurityPolicyTemplateProjectBindingLister. 30 // 31 // func TestSomethingThatUsesPodSecurityPolicyTemplateProjectBindingLister(t *testing.T) { 32 // 33 // // make and configure a mocked PodSecurityPolicyTemplateProjectBindingLister 34 // mockedPodSecurityPolicyTemplateProjectBindingLister := &PodSecurityPolicyTemplateProjectBindingListerMock{ 35 // GetFunc: func(namespace string, name string) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 36 // panic("mock out the Get method") 37 // }, 38 // ListFunc: func(namespace string, selector labels.Selector) ([]*v3.PodSecurityPolicyTemplateProjectBinding, error) { 39 // panic("mock out the List method") 40 // }, 41 // } 42 // 43 // // use mockedPodSecurityPolicyTemplateProjectBindingLister in code that requires PodSecurityPolicyTemplateProjectBindingLister 44 // // and then make assertions. 45 // 46 // } 47 type PodSecurityPolicyTemplateProjectBindingListerMock struct { 48 // GetFunc mocks the Get method. 49 GetFunc func(namespace string, name string) (*v3.PodSecurityPolicyTemplateProjectBinding, error) 50 51 // ListFunc mocks the List method. 52 ListFunc func(namespace string, selector labels.Selector) ([]*v3.PodSecurityPolicyTemplateProjectBinding, error) 53 54 // calls tracks calls to the methods. 55 calls struct { 56 // Get holds details about calls to the Get method. 57 Get []struct { 58 // Namespace is the namespace argument value. 59 Namespace string 60 // Name is the name argument value. 61 Name string 62 } 63 // List holds details about calls to the List method. 64 List []struct { 65 // Namespace is the namespace argument value. 66 Namespace string 67 // Selector is the selector argument value. 68 Selector labels.Selector 69 } 70 } 71 } 72 73 // Get calls GetFunc. 74 func (mock *PodSecurityPolicyTemplateProjectBindingListerMock) Get(namespace string, name string) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 75 if mock.GetFunc == nil { 76 panic("PodSecurityPolicyTemplateProjectBindingListerMock.GetFunc: method is nil but PodSecurityPolicyTemplateProjectBindingLister.Get was just called") 77 } 78 callInfo := struct { 79 Namespace string 80 Name string 81 }{ 82 Namespace: namespace, 83 Name: name, 84 } 85 lockPodSecurityPolicyTemplateProjectBindingListerMockGet.Lock() 86 mock.calls.Get = append(mock.calls.Get, callInfo) 87 lockPodSecurityPolicyTemplateProjectBindingListerMockGet.Unlock() 88 return mock.GetFunc(namespace, name) 89 } 90 91 // GetCalls gets all the calls that were made to Get. 92 // Check the length with: 93 // len(mockedPodSecurityPolicyTemplateProjectBindingLister.GetCalls()) 94 func (mock *PodSecurityPolicyTemplateProjectBindingListerMock) GetCalls() []struct { 95 Namespace string 96 Name string 97 } { 98 var calls []struct { 99 Namespace string 100 Name string 101 } 102 lockPodSecurityPolicyTemplateProjectBindingListerMockGet.RLock() 103 calls = mock.calls.Get 104 lockPodSecurityPolicyTemplateProjectBindingListerMockGet.RUnlock() 105 return calls 106 } 107 108 // List calls ListFunc. 109 func (mock *PodSecurityPolicyTemplateProjectBindingListerMock) List(namespace string, selector labels.Selector) ([]*v3.PodSecurityPolicyTemplateProjectBinding, error) { 110 if mock.ListFunc == nil { 111 panic("PodSecurityPolicyTemplateProjectBindingListerMock.ListFunc: method is nil but PodSecurityPolicyTemplateProjectBindingLister.List was just called") 112 } 113 callInfo := struct { 114 Namespace string 115 Selector labels.Selector 116 }{ 117 Namespace: namespace, 118 Selector: selector, 119 } 120 lockPodSecurityPolicyTemplateProjectBindingListerMockList.Lock() 121 mock.calls.List = append(mock.calls.List, callInfo) 122 lockPodSecurityPolicyTemplateProjectBindingListerMockList.Unlock() 123 return mock.ListFunc(namespace, selector) 124 } 125 126 // ListCalls gets all the calls that were made to List. 127 // Check the length with: 128 // len(mockedPodSecurityPolicyTemplateProjectBindingLister.ListCalls()) 129 func (mock *PodSecurityPolicyTemplateProjectBindingListerMock) ListCalls() []struct { 130 Namespace string 131 Selector labels.Selector 132 } { 133 var calls []struct { 134 Namespace string 135 Selector labels.Selector 136 } 137 lockPodSecurityPolicyTemplateProjectBindingListerMockList.RLock() 138 calls = mock.calls.List 139 lockPodSecurityPolicyTemplateProjectBindingListerMockList.RUnlock() 140 return calls 141 } 142 143 var ( 144 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedFeatureHandler sync.RWMutex 145 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedHandler sync.RWMutex 146 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddFeatureHandler sync.RWMutex 147 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddHandler sync.RWMutex 148 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueue sync.RWMutex 149 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueueAfter sync.RWMutex 150 lockPodSecurityPolicyTemplateProjectBindingControllerMockGeneric sync.RWMutex 151 lockPodSecurityPolicyTemplateProjectBindingControllerMockInformer sync.RWMutex 152 lockPodSecurityPolicyTemplateProjectBindingControllerMockLister sync.RWMutex 153 lockPodSecurityPolicyTemplateProjectBindingControllerMockStart sync.RWMutex 154 lockPodSecurityPolicyTemplateProjectBindingControllerMockSync sync.RWMutex 155 ) 156 157 // Ensure, that PodSecurityPolicyTemplateProjectBindingControllerMock does implement PodSecurityPolicyTemplateProjectBindingController. 158 // If this is not the case, regenerate this file with moq. 159 var _ v3.PodSecurityPolicyTemplateProjectBindingController = &PodSecurityPolicyTemplateProjectBindingControllerMock{} 160 161 // PodSecurityPolicyTemplateProjectBindingControllerMock is a mock implementation of PodSecurityPolicyTemplateProjectBindingController. 162 // 163 // func TestSomethingThatUsesPodSecurityPolicyTemplateProjectBindingController(t *testing.T) { 164 // 165 // // make and configure a mocked PodSecurityPolicyTemplateProjectBindingController 166 // mockedPodSecurityPolicyTemplateProjectBindingController := &PodSecurityPolicyTemplateProjectBindingControllerMock{ 167 // AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 168 // panic("mock out the AddClusterScopedFeatureHandler method") 169 // }, 170 // AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 171 // panic("mock out the AddClusterScopedHandler method") 172 // }, 173 // AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 174 // panic("mock out the AddFeatureHandler method") 175 // }, 176 // AddHandlerFunc: func(ctx context.Context, name string, handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 177 // panic("mock out the AddHandler method") 178 // }, 179 // EnqueueFunc: func(namespace string, name string) { 180 // panic("mock out the Enqueue method") 181 // }, 182 // EnqueueAfterFunc: func(namespace string, name string, after time.Duration) { 183 // panic("mock out the EnqueueAfter method") 184 // }, 185 // GenericFunc: func() controller.GenericController { 186 // panic("mock out the Generic method") 187 // }, 188 // InformerFunc: func() cache.SharedIndexInformer { 189 // panic("mock out the Informer method") 190 // }, 191 // ListerFunc: func() v3.PodSecurityPolicyTemplateProjectBindingLister { 192 // panic("mock out the Lister method") 193 // }, 194 // StartFunc: func(ctx context.Context, threadiness int) error { 195 // panic("mock out the Start method") 196 // }, 197 // SyncFunc: func(ctx context.Context) error { 198 // panic("mock out the Sync method") 199 // }, 200 // } 201 // 202 // // use mockedPodSecurityPolicyTemplateProjectBindingController in code that requires PodSecurityPolicyTemplateProjectBindingController 203 // // and then make assertions. 204 // 205 // } 206 type PodSecurityPolicyTemplateProjectBindingControllerMock struct { 207 // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. 208 AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) 209 210 // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. 211 AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) 212 213 // AddFeatureHandlerFunc mocks the AddFeatureHandler method. 214 AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) 215 216 // AddHandlerFunc mocks the AddHandler method. 217 AddHandlerFunc func(ctx context.Context, name string, handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) 218 219 // EnqueueFunc mocks the Enqueue method. 220 EnqueueFunc func(namespace string, name string) 221 222 // EnqueueAfterFunc mocks the EnqueueAfter method. 223 EnqueueAfterFunc func(namespace string, name string, after time.Duration) 224 225 // GenericFunc mocks the Generic method. 226 GenericFunc func() controller.GenericController 227 228 // InformerFunc mocks the Informer method. 229 InformerFunc func() cache.SharedIndexInformer 230 231 // ListerFunc mocks the Lister method. 232 ListerFunc func() v3.PodSecurityPolicyTemplateProjectBindingLister 233 234 // StartFunc mocks the Start method. 235 StartFunc func(ctx context.Context, threadiness int) error 236 237 // SyncFunc mocks the Sync method. 238 SyncFunc func(ctx context.Context) error 239 240 // calls tracks calls to the methods. 241 calls struct { 242 // AddClusterScopedFeatureHandler holds details about calls to the AddClusterScopedFeatureHandler method. 243 AddClusterScopedFeatureHandler []struct { 244 // Ctx is the ctx argument value. 245 Ctx context.Context 246 // Enabled is the enabled argument value. 247 Enabled func() bool 248 // Name is the name argument value. 249 Name string 250 // ClusterName is the clusterName argument value. 251 ClusterName string 252 // Handler is the handler argument value. 253 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 254 } 255 // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. 256 AddClusterScopedHandler []struct { 257 // Ctx is the ctx argument value. 258 Ctx context.Context 259 // Name is the name argument value. 260 Name string 261 // ClusterName is the clusterName argument value. 262 ClusterName string 263 // Handler is the handler argument value. 264 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 265 } 266 // AddFeatureHandler holds details about calls to the AddFeatureHandler method. 267 AddFeatureHandler []struct { 268 // Ctx is the ctx argument value. 269 Ctx context.Context 270 // Enabled is the enabled argument value. 271 Enabled func() bool 272 // Name is the name argument value. 273 Name string 274 // Sync is the sync argument value. 275 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 276 } 277 // AddHandler holds details about calls to the AddHandler method. 278 AddHandler []struct { 279 // Ctx is the ctx argument value. 280 Ctx context.Context 281 // Name is the name argument value. 282 Name string 283 // Handler is the handler argument value. 284 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 285 } 286 // Enqueue holds details about calls to the Enqueue method. 287 Enqueue []struct { 288 // Namespace is the namespace argument value. 289 Namespace string 290 // Name is the name argument value. 291 Name string 292 } 293 // EnqueueAfter holds details about calls to the EnqueueAfter method. 294 EnqueueAfter []struct { 295 // Namespace is the namespace argument value. 296 Namespace string 297 // Name is the name argument value. 298 Name string 299 // After is the after argument value. 300 After time.Duration 301 } 302 // Generic holds details about calls to the Generic method. 303 Generic []struct { 304 } 305 // Informer holds details about calls to the Informer method. 306 Informer []struct { 307 } 308 // Lister holds details about calls to the Lister method. 309 Lister []struct { 310 } 311 // Start holds details about calls to the Start method. 312 Start []struct { 313 // Ctx is the ctx argument value. 314 Ctx context.Context 315 // Threadiness is the threadiness argument value. 316 Threadiness int 317 } 318 // Sync holds details about calls to the Sync method. 319 Sync []struct { 320 // Ctx is the ctx argument value. 321 Ctx context.Context 322 } 323 } 324 } 325 326 // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. 327 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 328 if mock.AddClusterScopedFeatureHandlerFunc == nil { 329 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.AddClusterScopedFeatureHandlerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.AddClusterScopedFeatureHandler was just called") 330 } 331 callInfo := struct { 332 Ctx context.Context 333 Enabled func() bool 334 Name string 335 ClusterName string 336 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 337 }{ 338 Ctx: ctx, 339 Enabled: enabled, 340 Name: name, 341 ClusterName: clusterName, 342 Handler: handler, 343 } 344 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedFeatureHandler.Lock() 345 mock.calls.AddClusterScopedFeatureHandler = append(mock.calls.AddClusterScopedFeatureHandler, callInfo) 346 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedFeatureHandler.Unlock() 347 mock.AddClusterScopedFeatureHandlerFunc(ctx, enabled, name, clusterName, handler) 348 } 349 350 // AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. 351 // Check the length with: 352 // len(mockedPodSecurityPolicyTemplateProjectBindingController.AddClusterScopedFeatureHandlerCalls()) 353 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) AddClusterScopedFeatureHandlerCalls() []struct { 354 Ctx context.Context 355 Enabled func() bool 356 Name string 357 ClusterName string 358 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 359 } { 360 var calls []struct { 361 Ctx context.Context 362 Enabled func() bool 363 Name string 364 ClusterName string 365 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 366 } 367 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedFeatureHandler.RLock() 368 calls = mock.calls.AddClusterScopedFeatureHandler 369 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedFeatureHandler.RUnlock() 370 return calls 371 } 372 373 // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. 374 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 375 if mock.AddClusterScopedHandlerFunc == nil { 376 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.AddClusterScopedHandlerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.AddClusterScopedHandler was just called") 377 } 378 callInfo := struct { 379 Ctx context.Context 380 Name string 381 ClusterName string 382 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 383 }{ 384 Ctx: ctx, 385 Name: name, 386 ClusterName: clusterName, 387 Handler: handler, 388 } 389 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedHandler.Lock() 390 mock.calls.AddClusterScopedHandler = append(mock.calls.AddClusterScopedHandler, callInfo) 391 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedHandler.Unlock() 392 mock.AddClusterScopedHandlerFunc(ctx, name, clusterName, handler) 393 } 394 395 // AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. 396 // Check the length with: 397 // len(mockedPodSecurityPolicyTemplateProjectBindingController.AddClusterScopedHandlerCalls()) 398 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) AddClusterScopedHandlerCalls() []struct { 399 Ctx context.Context 400 Name string 401 ClusterName string 402 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 403 } { 404 var calls []struct { 405 Ctx context.Context 406 Name string 407 ClusterName string 408 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 409 } 410 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedHandler.RLock() 411 calls = mock.calls.AddClusterScopedHandler 412 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddClusterScopedHandler.RUnlock() 413 return calls 414 } 415 416 // AddFeatureHandler calls AddFeatureHandlerFunc. 417 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 418 if mock.AddFeatureHandlerFunc == nil { 419 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.AddFeatureHandlerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.AddFeatureHandler was just called") 420 } 421 callInfo := struct { 422 Ctx context.Context 423 Enabled func() bool 424 Name string 425 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 426 }{ 427 Ctx: ctx, 428 Enabled: enabled, 429 Name: name, 430 Sync: sync, 431 } 432 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddFeatureHandler.Lock() 433 mock.calls.AddFeatureHandler = append(mock.calls.AddFeatureHandler, callInfo) 434 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddFeatureHandler.Unlock() 435 mock.AddFeatureHandlerFunc(ctx, enabled, name, sync) 436 } 437 438 // AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. 439 // Check the length with: 440 // len(mockedPodSecurityPolicyTemplateProjectBindingController.AddFeatureHandlerCalls()) 441 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) AddFeatureHandlerCalls() []struct { 442 Ctx context.Context 443 Enabled func() bool 444 Name string 445 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 446 } { 447 var calls []struct { 448 Ctx context.Context 449 Enabled func() bool 450 Name string 451 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 452 } 453 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddFeatureHandler.RLock() 454 calls = mock.calls.AddFeatureHandler 455 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddFeatureHandler.RUnlock() 456 return calls 457 } 458 459 // AddHandler calls AddHandlerFunc. 460 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) AddHandler(ctx context.Context, name string, handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 461 if mock.AddHandlerFunc == nil { 462 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.AddHandlerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.AddHandler was just called") 463 } 464 callInfo := struct { 465 Ctx context.Context 466 Name string 467 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 468 }{ 469 Ctx: ctx, 470 Name: name, 471 Handler: handler, 472 } 473 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddHandler.Lock() 474 mock.calls.AddHandler = append(mock.calls.AddHandler, callInfo) 475 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddHandler.Unlock() 476 mock.AddHandlerFunc(ctx, name, handler) 477 } 478 479 // AddHandlerCalls gets all the calls that were made to AddHandler. 480 // Check the length with: 481 // len(mockedPodSecurityPolicyTemplateProjectBindingController.AddHandlerCalls()) 482 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) AddHandlerCalls() []struct { 483 Ctx context.Context 484 Name string 485 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 486 } { 487 var calls []struct { 488 Ctx context.Context 489 Name string 490 Handler v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 491 } 492 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddHandler.RLock() 493 calls = mock.calls.AddHandler 494 lockPodSecurityPolicyTemplateProjectBindingControllerMockAddHandler.RUnlock() 495 return calls 496 } 497 498 // Enqueue calls EnqueueFunc. 499 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) Enqueue(namespace string, name string) { 500 if mock.EnqueueFunc == nil { 501 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.EnqueueFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.Enqueue was just called") 502 } 503 callInfo := struct { 504 Namespace string 505 Name string 506 }{ 507 Namespace: namespace, 508 Name: name, 509 } 510 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueue.Lock() 511 mock.calls.Enqueue = append(mock.calls.Enqueue, callInfo) 512 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueue.Unlock() 513 mock.EnqueueFunc(namespace, name) 514 } 515 516 // EnqueueCalls gets all the calls that were made to Enqueue. 517 // Check the length with: 518 // len(mockedPodSecurityPolicyTemplateProjectBindingController.EnqueueCalls()) 519 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) EnqueueCalls() []struct { 520 Namespace string 521 Name string 522 } { 523 var calls []struct { 524 Namespace string 525 Name string 526 } 527 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueue.RLock() 528 calls = mock.calls.Enqueue 529 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueue.RUnlock() 530 return calls 531 } 532 533 // EnqueueAfter calls EnqueueAfterFunc. 534 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) EnqueueAfter(namespace string, name string, after time.Duration) { 535 if mock.EnqueueAfterFunc == nil { 536 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.EnqueueAfterFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.EnqueueAfter was just called") 537 } 538 callInfo := struct { 539 Namespace string 540 Name string 541 After time.Duration 542 }{ 543 Namespace: namespace, 544 Name: name, 545 After: after, 546 } 547 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueueAfter.Lock() 548 mock.calls.EnqueueAfter = append(mock.calls.EnqueueAfter, callInfo) 549 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueueAfter.Unlock() 550 mock.EnqueueAfterFunc(namespace, name, after) 551 } 552 553 // EnqueueAfterCalls gets all the calls that were made to EnqueueAfter. 554 // Check the length with: 555 // len(mockedPodSecurityPolicyTemplateProjectBindingController.EnqueueAfterCalls()) 556 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) EnqueueAfterCalls() []struct { 557 Namespace string 558 Name string 559 After time.Duration 560 } { 561 var calls []struct { 562 Namespace string 563 Name string 564 After time.Duration 565 } 566 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueueAfter.RLock() 567 calls = mock.calls.EnqueueAfter 568 lockPodSecurityPolicyTemplateProjectBindingControllerMockEnqueueAfter.RUnlock() 569 return calls 570 } 571 572 // Generic calls GenericFunc. 573 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) Generic() controller.GenericController { 574 if mock.GenericFunc == nil { 575 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.GenericFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.Generic was just called") 576 } 577 callInfo := struct { 578 }{} 579 lockPodSecurityPolicyTemplateProjectBindingControllerMockGeneric.Lock() 580 mock.calls.Generic = append(mock.calls.Generic, callInfo) 581 lockPodSecurityPolicyTemplateProjectBindingControllerMockGeneric.Unlock() 582 return mock.GenericFunc() 583 } 584 585 // GenericCalls gets all the calls that were made to Generic. 586 // Check the length with: 587 // len(mockedPodSecurityPolicyTemplateProjectBindingController.GenericCalls()) 588 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) GenericCalls() []struct { 589 } { 590 var calls []struct { 591 } 592 lockPodSecurityPolicyTemplateProjectBindingControllerMockGeneric.RLock() 593 calls = mock.calls.Generic 594 lockPodSecurityPolicyTemplateProjectBindingControllerMockGeneric.RUnlock() 595 return calls 596 } 597 598 // Informer calls InformerFunc. 599 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) Informer() cache.SharedIndexInformer { 600 if mock.InformerFunc == nil { 601 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.InformerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.Informer was just called") 602 } 603 callInfo := struct { 604 }{} 605 lockPodSecurityPolicyTemplateProjectBindingControllerMockInformer.Lock() 606 mock.calls.Informer = append(mock.calls.Informer, callInfo) 607 lockPodSecurityPolicyTemplateProjectBindingControllerMockInformer.Unlock() 608 return mock.InformerFunc() 609 } 610 611 // InformerCalls gets all the calls that were made to Informer. 612 // Check the length with: 613 // len(mockedPodSecurityPolicyTemplateProjectBindingController.InformerCalls()) 614 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) InformerCalls() []struct { 615 } { 616 var calls []struct { 617 } 618 lockPodSecurityPolicyTemplateProjectBindingControllerMockInformer.RLock() 619 calls = mock.calls.Informer 620 lockPodSecurityPolicyTemplateProjectBindingControllerMockInformer.RUnlock() 621 return calls 622 } 623 624 // Lister calls ListerFunc. 625 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) Lister() v3.PodSecurityPolicyTemplateProjectBindingLister { 626 if mock.ListerFunc == nil { 627 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.ListerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.Lister was just called") 628 } 629 callInfo := struct { 630 }{} 631 lockPodSecurityPolicyTemplateProjectBindingControllerMockLister.Lock() 632 mock.calls.Lister = append(mock.calls.Lister, callInfo) 633 lockPodSecurityPolicyTemplateProjectBindingControllerMockLister.Unlock() 634 return mock.ListerFunc() 635 } 636 637 // ListerCalls gets all the calls that were made to Lister. 638 // Check the length with: 639 // len(mockedPodSecurityPolicyTemplateProjectBindingController.ListerCalls()) 640 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) ListerCalls() []struct { 641 } { 642 var calls []struct { 643 } 644 lockPodSecurityPolicyTemplateProjectBindingControllerMockLister.RLock() 645 calls = mock.calls.Lister 646 lockPodSecurityPolicyTemplateProjectBindingControllerMockLister.RUnlock() 647 return calls 648 } 649 650 // Start calls StartFunc. 651 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) Start(ctx context.Context, threadiness int) error { 652 if mock.StartFunc == nil { 653 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.StartFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.Start was just called") 654 } 655 callInfo := struct { 656 Ctx context.Context 657 Threadiness int 658 }{ 659 Ctx: ctx, 660 Threadiness: threadiness, 661 } 662 lockPodSecurityPolicyTemplateProjectBindingControllerMockStart.Lock() 663 mock.calls.Start = append(mock.calls.Start, callInfo) 664 lockPodSecurityPolicyTemplateProjectBindingControllerMockStart.Unlock() 665 return mock.StartFunc(ctx, threadiness) 666 } 667 668 // StartCalls gets all the calls that were made to Start. 669 // Check the length with: 670 // len(mockedPodSecurityPolicyTemplateProjectBindingController.StartCalls()) 671 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) StartCalls() []struct { 672 Ctx context.Context 673 Threadiness int 674 } { 675 var calls []struct { 676 Ctx context.Context 677 Threadiness int 678 } 679 lockPodSecurityPolicyTemplateProjectBindingControllerMockStart.RLock() 680 calls = mock.calls.Start 681 lockPodSecurityPolicyTemplateProjectBindingControllerMockStart.RUnlock() 682 return calls 683 } 684 685 // Sync calls SyncFunc. 686 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) Sync(ctx context.Context) error { 687 if mock.SyncFunc == nil { 688 panic("PodSecurityPolicyTemplateProjectBindingControllerMock.SyncFunc: method is nil but PodSecurityPolicyTemplateProjectBindingController.Sync was just called") 689 } 690 callInfo := struct { 691 Ctx context.Context 692 }{ 693 Ctx: ctx, 694 } 695 lockPodSecurityPolicyTemplateProjectBindingControllerMockSync.Lock() 696 mock.calls.Sync = append(mock.calls.Sync, callInfo) 697 lockPodSecurityPolicyTemplateProjectBindingControllerMockSync.Unlock() 698 return mock.SyncFunc(ctx) 699 } 700 701 // SyncCalls gets all the calls that were made to Sync. 702 // Check the length with: 703 // len(mockedPodSecurityPolicyTemplateProjectBindingController.SyncCalls()) 704 func (mock *PodSecurityPolicyTemplateProjectBindingControllerMock) SyncCalls() []struct { 705 Ctx context.Context 706 } { 707 var calls []struct { 708 Ctx context.Context 709 } 710 lockPodSecurityPolicyTemplateProjectBindingControllerMockSync.RLock() 711 calls = mock.calls.Sync 712 lockPodSecurityPolicyTemplateProjectBindingControllerMockSync.RUnlock() 713 return calls 714 } 715 716 var ( 717 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureHandler sync.RWMutex 718 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureLifecycle sync.RWMutex 719 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedHandler sync.RWMutex 720 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedLifecycle sync.RWMutex 721 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureHandler sync.RWMutex 722 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureLifecycle sync.RWMutex 723 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddHandler sync.RWMutex 724 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddLifecycle sync.RWMutex 725 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockController sync.RWMutex 726 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockCreate sync.RWMutex 727 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDelete sync.RWMutex 728 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteCollection sync.RWMutex 729 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteNamespaced sync.RWMutex 730 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGet sync.RWMutex 731 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGetNamespaced sync.RWMutex 732 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockList sync.RWMutex 733 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced sync.RWMutex 734 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockObjectClient sync.RWMutex 735 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockUpdate sync.RWMutex 736 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockWatch sync.RWMutex 737 ) 738 739 // Ensure, that PodSecurityPolicyTemplateProjectBindingInterfaceMock does implement PodSecurityPolicyTemplateProjectBindingInterface. 740 // If this is not the case, regenerate this file with moq. 741 var _ v3.PodSecurityPolicyTemplateProjectBindingInterface = &PodSecurityPolicyTemplateProjectBindingInterfaceMock{} 742 743 // PodSecurityPolicyTemplateProjectBindingInterfaceMock is a mock implementation of PodSecurityPolicyTemplateProjectBindingInterface. 744 // 745 // func TestSomethingThatUsesPodSecurityPolicyTemplateProjectBindingInterface(t *testing.T) { 746 // 747 // // make and configure a mocked PodSecurityPolicyTemplateProjectBindingInterface 748 // mockedPodSecurityPolicyTemplateProjectBindingInterface := &PodSecurityPolicyTemplateProjectBindingInterfaceMock{ 749 // AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 750 // panic("mock out the AddClusterScopedFeatureHandler method") 751 // }, 752 // AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) { 753 // panic("mock out the AddClusterScopedFeatureLifecycle method") 754 // }, 755 // AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 756 // panic("mock out the AddClusterScopedHandler method") 757 // }, 758 // AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) { 759 // panic("mock out the AddClusterScopedLifecycle method") 760 // }, 761 // AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 762 // panic("mock out the AddFeatureHandler method") 763 // }, 764 // AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) { 765 // panic("mock out the AddFeatureLifecycle method") 766 // }, 767 // AddHandlerFunc: func(ctx context.Context, name string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 768 // panic("mock out the AddHandler method") 769 // }, 770 // AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) { 771 // panic("mock out the AddLifecycle method") 772 // }, 773 // ControllerFunc: func() v3.PodSecurityPolicyTemplateProjectBindingController { 774 // panic("mock out the Controller method") 775 // }, 776 // CreateFunc: func(in1 *v3.PodSecurityPolicyTemplateProjectBinding) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 777 // panic("mock out the Create method") 778 // }, 779 // DeleteFunc: func(name string, options *v1.DeleteOptions) error { 780 // panic("mock out the Delete method") 781 // }, 782 // DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { 783 // panic("mock out the DeleteCollection method") 784 // }, 785 // DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { 786 // panic("mock out the DeleteNamespaced method") 787 // }, 788 // GetFunc: func(name string, opts v1.GetOptions) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 789 // panic("mock out the Get method") 790 // }, 791 // GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 792 // panic("mock out the GetNamespaced method") 793 // }, 794 // ListFunc: func(opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) { 795 // panic("mock out the List method") 796 // }, 797 // ListNamespacedFunc: func(namespace string, opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) { 798 // panic("mock out the ListNamespaced method") 799 // }, 800 // ObjectClientFunc: func() *objectclient.ObjectClient { 801 // panic("mock out the ObjectClient method") 802 // }, 803 // UpdateFunc: func(in1 *v3.PodSecurityPolicyTemplateProjectBinding) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 804 // panic("mock out the Update method") 805 // }, 806 // WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { 807 // panic("mock out the Watch method") 808 // }, 809 // } 810 // 811 // // use mockedPodSecurityPolicyTemplateProjectBindingInterface in code that requires PodSecurityPolicyTemplateProjectBindingInterface 812 // // and then make assertions. 813 // 814 // } 815 type PodSecurityPolicyTemplateProjectBindingInterfaceMock struct { 816 // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. 817 AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) 818 819 // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. 820 AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) 821 822 // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. 823 AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) 824 825 // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. 826 AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) 827 828 // AddFeatureHandlerFunc mocks the AddFeatureHandler method. 829 AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) 830 831 // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. 832 AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) 833 834 // AddHandlerFunc mocks the AddHandler method. 835 AddHandlerFunc func(ctx context.Context, name string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) 836 837 // AddLifecycleFunc mocks the AddLifecycle method. 838 AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) 839 840 // ControllerFunc mocks the Controller method. 841 ControllerFunc func() v3.PodSecurityPolicyTemplateProjectBindingController 842 843 // CreateFunc mocks the Create method. 844 CreateFunc func(in1 *v3.PodSecurityPolicyTemplateProjectBinding) (*v3.PodSecurityPolicyTemplateProjectBinding, error) 845 846 // DeleteFunc mocks the Delete method. 847 DeleteFunc func(name string, options *v1.DeleteOptions) error 848 849 // DeleteCollectionFunc mocks the DeleteCollection method. 850 DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error 851 852 // DeleteNamespacedFunc mocks the DeleteNamespaced method. 853 DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error 854 855 // GetFunc mocks the Get method. 856 GetFunc func(name string, opts v1.GetOptions) (*v3.PodSecurityPolicyTemplateProjectBinding, error) 857 858 // GetNamespacedFunc mocks the GetNamespaced method. 859 GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.PodSecurityPolicyTemplateProjectBinding, error) 860 861 // ListFunc mocks the List method. 862 ListFunc func(opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) 863 864 // ListNamespacedFunc mocks the ListNamespaced method. 865 ListNamespacedFunc func(namespace string, opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) 866 867 // ObjectClientFunc mocks the ObjectClient method. 868 ObjectClientFunc func() *objectclient.ObjectClient 869 870 // UpdateFunc mocks the Update method. 871 UpdateFunc func(in1 *v3.PodSecurityPolicyTemplateProjectBinding) (*v3.PodSecurityPolicyTemplateProjectBinding, error) 872 873 // WatchFunc mocks the Watch method. 874 WatchFunc func(opts v1.ListOptions) (watch.Interface, error) 875 876 // calls tracks calls to the methods. 877 calls struct { 878 // AddClusterScopedFeatureHandler holds details about calls to the AddClusterScopedFeatureHandler method. 879 AddClusterScopedFeatureHandler []struct { 880 // Ctx is the ctx argument value. 881 Ctx context.Context 882 // Enabled is the enabled argument value. 883 Enabled func() bool 884 // Name is the name argument value. 885 Name string 886 // ClusterName is the clusterName argument value. 887 ClusterName string 888 // Sync is the sync argument value. 889 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 890 } 891 // AddClusterScopedFeatureLifecycle holds details about calls to the AddClusterScopedFeatureLifecycle method. 892 AddClusterScopedFeatureLifecycle []struct { 893 // Ctx is the ctx argument value. 894 Ctx context.Context 895 // Enabled is the enabled argument value. 896 Enabled func() bool 897 // Name is the name argument value. 898 Name string 899 // ClusterName is the clusterName argument value. 900 ClusterName string 901 // Lifecycle is the lifecycle argument value. 902 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 903 } 904 // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. 905 AddClusterScopedHandler []struct { 906 // Ctx is the ctx argument value. 907 Ctx context.Context 908 // Name is the name argument value. 909 Name string 910 // ClusterName is the clusterName argument value. 911 ClusterName string 912 // Sync is the sync argument value. 913 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 914 } 915 // AddClusterScopedLifecycle holds details about calls to the AddClusterScopedLifecycle method. 916 AddClusterScopedLifecycle []struct { 917 // Ctx is the ctx argument value. 918 Ctx context.Context 919 // Name is the name argument value. 920 Name string 921 // ClusterName is the clusterName argument value. 922 ClusterName string 923 // Lifecycle is the lifecycle argument value. 924 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 925 } 926 // AddFeatureHandler holds details about calls to the AddFeatureHandler method. 927 AddFeatureHandler []struct { 928 // Ctx is the ctx argument value. 929 Ctx context.Context 930 // Enabled is the enabled argument value. 931 Enabled func() bool 932 // Name is the name argument value. 933 Name string 934 // Sync is the sync argument value. 935 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 936 } 937 // AddFeatureLifecycle holds details about calls to the AddFeatureLifecycle method. 938 AddFeatureLifecycle []struct { 939 // Ctx is the ctx argument value. 940 Ctx context.Context 941 // Enabled is the enabled argument value. 942 Enabled func() bool 943 // Name is the name argument value. 944 Name string 945 // Lifecycle is the lifecycle argument value. 946 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 947 } 948 // AddHandler holds details about calls to the AddHandler method. 949 AddHandler []struct { 950 // Ctx is the ctx argument value. 951 Ctx context.Context 952 // Name is the name argument value. 953 Name string 954 // Sync is the sync argument value. 955 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 956 } 957 // AddLifecycle holds details about calls to the AddLifecycle method. 958 AddLifecycle []struct { 959 // Ctx is the ctx argument value. 960 Ctx context.Context 961 // Name is the name argument value. 962 Name string 963 // Lifecycle is the lifecycle argument value. 964 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 965 } 966 // Controller holds details about calls to the Controller method. 967 Controller []struct { 968 } 969 // Create holds details about calls to the Create method. 970 Create []struct { 971 // In1 is the in1 argument value. 972 In1 *v3.PodSecurityPolicyTemplateProjectBinding 973 } 974 // Delete holds details about calls to the Delete method. 975 Delete []struct { 976 // Name is the name argument value. 977 Name string 978 // Options is the options argument value. 979 Options *v1.DeleteOptions 980 } 981 // DeleteCollection holds details about calls to the DeleteCollection method. 982 DeleteCollection []struct { 983 // DeleteOpts is the deleteOpts argument value. 984 DeleteOpts *v1.DeleteOptions 985 // ListOpts is the listOpts argument value. 986 ListOpts v1.ListOptions 987 } 988 // DeleteNamespaced holds details about calls to the DeleteNamespaced method. 989 DeleteNamespaced []struct { 990 // Namespace is the namespace argument value. 991 Namespace string 992 // Name is the name argument value. 993 Name string 994 // Options is the options argument value. 995 Options *v1.DeleteOptions 996 } 997 // Get holds details about calls to the Get method. 998 Get []struct { 999 // Name is the name argument value. 1000 Name string 1001 // Opts is the opts argument value. 1002 Opts v1.GetOptions 1003 } 1004 // GetNamespaced holds details about calls to the GetNamespaced method. 1005 GetNamespaced []struct { 1006 // Namespace is the namespace argument value. 1007 Namespace string 1008 // Name is the name argument value. 1009 Name string 1010 // Opts is the opts argument value. 1011 Opts v1.GetOptions 1012 } 1013 // List holds details about calls to the List method. 1014 List []struct { 1015 // Opts is the opts argument value. 1016 Opts v1.ListOptions 1017 } 1018 // ListNamespaced holds details about calls to the ListNamespaced method. 1019 ListNamespaced []struct { 1020 // Namespace is the namespace argument value. 1021 Namespace string 1022 // Opts is the opts argument value. 1023 Opts v1.ListOptions 1024 } 1025 // ObjectClient holds details about calls to the ObjectClient method. 1026 ObjectClient []struct { 1027 } 1028 // Update holds details about calls to the Update method. 1029 Update []struct { 1030 // In1 is the in1 argument value. 1031 In1 *v3.PodSecurityPolicyTemplateProjectBinding 1032 } 1033 // Watch holds details about calls to the Watch method. 1034 Watch []struct { 1035 // Opts is the opts argument value. 1036 Opts v1.ListOptions 1037 } 1038 } 1039 } 1040 1041 // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. 1042 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 1043 if mock.AddClusterScopedFeatureHandlerFunc == nil { 1044 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.AddClusterScopedFeatureHandlerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.AddClusterScopedFeatureHandler was just called") 1045 } 1046 callInfo := struct { 1047 Ctx context.Context 1048 Enabled func() bool 1049 Name string 1050 ClusterName string 1051 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1052 }{ 1053 Ctx: ctx, 1054 Enabled: enabled, 1055 Name: name, 1056 ClusterName: clusterName, 1057 Sync: sync, 1058 } 1059 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureHandler.Lock() 1060 mock.calls.AddClusterScopedFeatureHandler = append(mock.calls.AddClusterScopedFeatureHandler, callInfo) 1061 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureHandler.Unlock() 1062 mock.AddClusterScopedFeatureHandlerFunc(ctx, enabled, name, clusterName, sync) 1063 } 1064 1065 // AddClusterScopedFeatureHandlerCalls gets all the calls that were made to AddClusterScopedFeatureHandler. 1066 // Check the length with: 1067 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.AddClusterScopedFeatureHandlerCalls()) 1068 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddClusterScopedFeatureHandlerCalls() []struct { 1069 Ctx context.Context 1070 Enabled func() bool 1071 Name string 1072 ClusterName string 1073 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1074 } { 1075 var calls []struct { 1076 Ctx context.Context 1077 Enabled func() bool 1078 Name string 1079 ClusterName string 1080 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1081 } 1082 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureHandler.RLock() 1083 calls = mock.calls.AddClusterScopedFeatureHandler 1084 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureHandler.RUnlock() 1085 return calls 1086 } 1087 1088 // AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc. 1089 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) { 1090 if mock.AddClusterScopedFeatureLifecycleFunc == nil { 1091 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.AddClusterScopedFeatureLifecycleFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.AddClusterScopedFeatureLifecycle was just called") 1092 } 1093 callInfo := struct { 1094 Ctx context.Context 1095 Enabled func() bool 1096 Name string 1097 ClusterName string 1098 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1099 }{ 1100 Ctx: ctx, 1101 Enabled: enabled, 1102 Name: name, 1103 ClusterName: clusterName, 1104 Lifecycle: lifecycle, 1105 } 1106 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureLifecycle.Lock() 1107 mock.calls.AddClusterScopedFeatureLifecycle = append(mock.calls.AddClusterScopedFeatureLifecycle, callInfo) 1108 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureLifecycle.Unlock() 1109 mock.AddClusterScopedFeatureLifecycleFunc(ctx, enabled, name, clusterName, lifecycle) 1110 } 1111 1112 // AddClusterScopedFeatureLifecycleCalls gets all the calls that were made to AddClusterScopedFeatureLifecycle. 1113 // Check the length with: 1114 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.AddClusterScopedFeatureLifecycleCalls()) 1115 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []struct { 1116 Ctx context.Context 1117 Enabled func() bool 1118 Name string 1119 ClusterName string 1120 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1121 } { 1122 var calls []struct { 1123 Ctx context.Context 1124 Enabled func() bool 1125 Name string 1126 ClusterName string 1127 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1128 } 1129 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureLifecycle.RLock() 1130 calls = mock.calls.AddClusterScopedFeatureLifecycle 1131 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedFeatureLifecycle.RUnlock() 1132 return calls 1133 } 1134 1135 // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. 1136 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 1137 if mock.AddClusterScopedHandlerFunc == nil { 1138 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.AddClusterScopedHandlerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.AddClusterScopedHandler was just called") 1139 } 1140 callInfo := struct { 1141 Ctx context.Context 1142 Name string 1143 ClusterName string 1144 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1145 }{ 1146 Ctx: ctx, 1147 Name: name, 1148 ClusterName: clusterName, 1149 Sync: sync, 1150 } 1151 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedHandler.Lock() 1152 mock.calls.AddClusterScopedHandler = append(mock.calls.AddClusterScopedHandler, callInfo) 1153 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedHandler.Unlock() 1154 mock.AddClusterScopedHandlerFunc(ctx, name, clusterName, sync) 1155 } 1156 1157 // AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. 1158 // Check the length with: 1159 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.AddClusterScopedHandlerCalls()) 1160 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddClusterScopedHandlerCalls() []struct { 1161 Ctx context.Context 1162 Name string 1163 ClusterName string 1164 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1165 } { 1166 var calls []struct { 1167 Ctx context.Context 1168 Name string 1169 ClusterName string 1170 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1171 } 1172 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedHandler.RLock() 1173 calls = mock.calls.AddClusterScopedHandler 1174 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedHandler.RUnlock() 1175 return calls 1176 } 1177 1178 // AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc. 1179 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) { 1180 if mock.AddClusterScopedLifecycleFunc == nil { 1181 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.AddClusterScopedLifecycleFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.AddClusterScopedLifecycle was just called") 1182 } 1183 callInfo := struct { 1184 Ctx context.Context 1185 Name string 1186 ClusterName string 1187 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1188 }{ 1189 Ctx: ctx, 1190 Name: name, 1191 ClusterName: clusterName, 1192 Lifecycle: lifecycle, 1193 } 1194 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedLifecycle.Lock() 1195 mock.calls.AddClusterScopedLifecycle = append(mock.calls.AddClusterScopedLifecycle, callInfo) 1196 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedLifecycle.Unlock() 1197 mock.AddClusterScopedLifecycleFunc(ctx, name, clusterName, lifecycle) 1198 } 1199 1200 // AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. 1201 // Check the length with: 1202 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.AddClusterScopedLifecycleCalls()) 1203 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddClusterScopedLifecycleCalls() []struct { 1204 Ctx context.Context 1205 Name string 1206 ClusterName string 1207 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1208 } { 1209 var calls []struct { 1210 Ctx context.Context 1211 Name string 1212 ClusterName string 1213 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1214 } 1215 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedLifecycle.RLock() 1216 calls = mock.calls.AddClusterScopedLifecycle 1217 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddClusterScopedLifecycle.RUnlock() 1218 return calls 1219 } 1220 1221 // AddFeatureHandler calls AddFeatureHandlerFunc. 1222 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 1223 if mock.AddFeatureHandlerFunc == nil { 1224 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.AddFeatureHandlerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.AddFeatureHandler was just called") 1225 } 1226 callInfo := struct { 1227 Ctx context.Context 1228 Enabled func() bool 1229 Name string 1230 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1231 }{ 1232 Ctx: ctx, 1233 Enabled: enabled, 1234 Name: name, 1235 Sync: sync, 1236 } 1237 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureHandler.Lock() 1238 mock.calls.AddFeatureHandler = append(mock.calls.AddFeatureHandler, callInfo) 1239 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureHandler.Unlock() 1240 mock.AddFeatureHandlerFunc(ctx, enabled, name, sync) 1241 } 1242 1243 // AddFeatureHandlerCalls gets all the calls that were made to AddFeatureHandler. 1244 // Check the length with: 1245 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.AddFeatureHandlerCalls()) 1246 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddFeatureHandlerCalls() []struct { 1247 Ctx context.Context 1248 Enabled func() bool 1249 Name string 1250 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1251 } { 1252 var calls []struct { 1253 Ctx context.Context 1254 Enabled func() bool 1255 Name string 1256 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1257 } 1258 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureHandler.RLock() 1259 calls = mock.calls.AddFeatureHandler 1260 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureHandler.RUnlock() 1261 return calls 1262 } 1263 1264 // AddFeatureLifecycle calls AddFeatureLifecycleFunc. 1265 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) { 1266 if mock.AddFeatureLifecycleFunc == nil { 1267 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.AddFeatureLifecycleFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.AddFeatureLifecycle was just called") 1268 } 1269 callInfo := struct { 1270 Ctx context.Context 1271 Enabled func() bool 1272 Name string 1273 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1274 }{ 1275 Ctx: ctx, 1276 Enabled: enabled, 1277 Name: name, 1278 Lifecycle: lifecycle, 1279 } 1280 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureLifecycle.Lock() 1281 mock.calls.AddFeatureLifecycle = append(mock.calls.AddFeatureLifecycle, callInfo) 1282 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureLifecycle.Unlock() 1283 mock.AddFeatureLifecycleFunc(ctx, enabled, name, lifecycle) 1284 } 1285 1286 // AddFeatureLifecycleCalls gets all the calls that were made to AddFeatureLifecycle. 1287 // Check the length with: 1288 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.AddFeatureLifecycleCalls()) 1289 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddFeatureLifecycleCalls() []struct { 1290 Ctx context.Context 1291 Enabled func() bool 1292 Name string 1293 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1294 } { 1295 var calls []struct { 1296 Ctx context.Context 1297 Enabled func() bool 1298 Name string 1299 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1300 } 1301 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureLifecycle.RLock() 1302 calls = mock.calls.AddFeatureLifecycle 1303 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddFeatureLifecycle.RUnlock() 1304 return calls 1305 } 1306 1307 // AddHandler calls AddHandlerFunc. 1308 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc) { 1309 if mock.AddHandlerFunc == nil { 1310 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.AddHandlerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.AddHandler was just called") 1311 } 1312 callInfo := struct { 1313 Ctx context.Context 1314 Name string 1315 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1316 }{ 1317 Ctx: ctx, 1318 Name: name, 1319 Sync: sync, 1320 } 1321 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddHandler.Lock() 1322 mock.calls.AddHandler = append(mock.calls.AddHandler, callInfo) 1323 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddHandler.Unlock() 1324 mock.AddHandlerFunc(ctx, name, sync) 1325 } 1326 1327 // AddHandlerCalls gets all the calls that were made to AddHandler. 1328 // Check the length with: 1329 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.AddHandlerCalls()) 1330 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddHandlerCalls() []struct { 1331 Ctx context.Context 1332 Name string 1333 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1334 } { 1335 var calls []struct { 1336 Ctx context.Context 1337 Name string 1338 Sync v3.PodSecurityPolicyTemplateProjectBindingHandlerFunc 1339 } 1340 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddHandler.RLock() 1341 calls = mock.calls.AddHandler 1342 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddHandler.RUnlock() 1343 return calls 1344 } 1345 1346 // AddLifecycle calls AddLifecycleFunc. 1347 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle) { 1348 if mock.AddLifecycleFunc == nil { 1349 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.AddLifecycleFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.AddLifecycle was just called") 1350 } 1351 callInfo := struct { 1352 Ctx context.Context 1353 Name string 1354 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1355 }{ 1356 Ctx: ctx, 1357 Name: name, 1358 Lifecycle: lifecycle, 1359 } 1360 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddLifecycle.Lock() 1361 mock.calls.AddLifecycle = append(mock.calls.AddLifecycle, callInfo) 1362 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddLifecycle.Unlock() 1363 mock.AddLifecycleFunc(ctx, name, lifecycle) 1364 } 1365 1366 // AddLifecycleCalls gets all the calls that were made to AddLifecycle. 1367 // Check the length with: 1368 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.AddLifecycleCalls()) 1369 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) AddLifecycleCalls() []struct { 1370 Ctx context.Context 1371 Name string 1372 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1373 } { 1374 var calls []struct { 1375 Ctx context.Context 1376 Name string 1377 Lifecycle v3.PodSecurityPolicyTemplateProjectBindingLifecycle 1378 } 1379 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddLifecycle.RLock() 1380 calls = mock.calls.AddLifecycle 1381 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockAddLifecycle.RUnlock() 1382 return calls 1383 } 1384 1385 // Controller calls ControllerFunc. 1386 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) Controller() v3.PodSecurityPolicyTemplateProjectBindingController { 1387 if mock.ControllerFunc == nil { 1388 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.ControllerFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.Controller was just called") 1389 } 1390 callInfo := struct { 1391 }{} 1392 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockController.Lock() 1393 mock.calls.Controller = append(mock.calls.Controller, callInfo) 1394 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockController.Unlock() 1395 return mock.ControllerFunc() 1396 } 1397 1398 // ControllerCalls gets all the calls that were made to Controller. 1399 // Check the length with: 1400 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.ControllerCalls()) 1401 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ControllerCalls() []struct { 1402 } { 1403 var calls []struct { 1404 } 1405 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockController.RLock() 1406 calls = mock.calls.Controller 1407 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockController.RUnlock() 1408 return calls 1409 } 1410 1411 // Create calls CreateFunc. 1412 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) Create(in1 *v3.PodSecurityPolicyTemplateProjectBinding) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 1413 if mock.CreateFunc == nil { 1414 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.CreateFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.Create was just called") 1415 } 1416 callInfo := struct { 1417 In1 *v3.PodSecurityPolicyTemplateProjectBinding 1418 }{ 1419 In1: in1, 1420 } 1421 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockCreate.Lock() 1422 mock.calls.Create = append(mock.calls.Create, callInfo) 1423 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockCreate.Unlock() 1424 return mock.CreateFunc(in1) 1425 } 1426 1427 // CreateCalls gets all the calls that were made to Create. 1428 // Check the length with: 1429 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.CreateCalls()) 1430 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) CreateCalls() []struct { 1431 In1 *v3.PodSecurityPolicyTemplateProjectBinding 1432 } { 1433 var calls []struct { 1434 In1 *v3.PodSecurityPolicyTemplateProjectBinding 1435 } 1436 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockCreate.RLock() 1437 calls = mock.calls.Create 1438 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockCreate.RUnlock() 1439 return calls 1440 } 1441 1442 // Delete calls DeleteFunc. 1443 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) Delete(name string, options *v1.DeleteOptions) error { 1444 if mock.DeleteFunc == nil { 1445 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.DeleteFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.Delete was just called") 1446 } 1447 callInfo := struct { 1448 Name string 1449 Options *v1.DeleteOptions 1450 }{ 1451 Name: name, 1452 Options: options, 1453 } 1454 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDelete.Lock() 1455 mock.calls.Delete = append(mock.calls.Delete, callInfo) 1456 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDelete.Unlock() 1457 return mock.DeleteFunc(name, options) 1458 } 1459 1460 // DeleteCalls gets all the calls that were made to Delete. 1461 // Check the length with: 1462 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.DeleteCalls()) 1463 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) DeleteCalls() []struct { 1464 Name string 1465 Options *v1.DeleteOptions 1466 } { 1467 var calls []struct { 1468 Name string 1469 Options *v1.DeleteOptions 1470 } 1471 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDelete.RLock() 1472 calls = mock.calls.Delete 1473 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDelete.RUnlock() 1474 return calls 1475 } 1476 1477 // DeleteCollection calls DeleteCollectionFunc. 1478 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { 1479 if mock.DeleteCollectionFunc == nil { 1480 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.DeleteCollectionFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.DeleteCollection was just called") 1481 } 1482 callInfo := struct { 1483 DeleteOpts *v1.DeleteOptions 1484 ListOpts v1.ListOptions 1485 }{ 1486 DeleteOpts: deleteOpts, 1487 ListOpts: listOpts, 1488 } 1489 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteCollection.Lock() 1490 mock.calls.DeleteCollection = append(mock.calls.DeleteCollection, callInfo) 1491 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteCollection.Unlock() 1492 return mock.DeleteCollectionFunc(deleteOpts, listOpts) 1493 } 1494 1495 // DeleteCollectionCalls gets all the calls that were made to DeleteCollection. 1496 // Check the length with: 1497 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.DeleteCollectionCalls()) 1498 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) DeleteCollectionCalls() []struct { 1499 DeleteOpts *v1.DeleteOptions 1500 ListOpts v1.ListOptions 1501 } { 1502 var calls []struct { 1503 DeleteOpts *v1.DeleteOptions 1504 ListOpts v1.ListOptions 1505 } 1506 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteCollection.RLock() 1507 calls = mock.calls.DeleteCollection 1508 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteCollection.RUnlock() 1509 return calls 1510 } 1511 1512 // DeleteNamespaced calls DeleteNamespacedFunc. 1513 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error { 1514 if mock.DeleteNamespacedFunc == nil { 1515 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.DeleteNamespacedFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.DeleteNamespaced was just called") 1516 } 1517 callInfo := struct { 1518 Namespace string 1519 Name string 1520 Options *v1.DeleteOptions 1521 }{ 1522 Namespace: namespace, 1523 Name: name, 1524 Options: options, 1525 } 1526 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteNamespaced.Lock() 1527 mock.calls.DeleteNamespaced = append(mock.calls.DeleteNamespaced, callInfo) 1528 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteNamespaced.Unlock() 1529 return mock.DeleteNamespacedFunc(namespace, name, options) 1530 } 1531 1532 // DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. 1533 // Check the length with: 1534 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.DeleteNamespacedCalls()) 1535 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) DeleteNamespacedCalls() []struct { 1536 Namespace string 1537 Name string 1538 Options *v1.DeleteOptions 1539 } { 1540 var calls []struct { 1541 Namespace string 1542 Name string 1543 Options *v1.DeleteOptions 1544 } 1545 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteNamespaced.RLock() 1546 calls = mock.calls.DeleteNamespaced 1547 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockDeleteNamespaced.RUnlock() 1548 return calls 1549 } 1550 1551 // Get calls GetFunc. 1552 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 1553 if mock.GetFunc == nil { 1554 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.GetFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.Get was just called") 1555 } 1556 callInfo := struct { 1557 Name string 1558 Opts v1.GetOptions 1559 }{ 1560 Name: name, 1561 Opts: opts, 1562 } 1563 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGet.Lock() 1564 mock.calls.Get = append(mock.calls.Get, callInfo) 1565 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGet.Unlock() 1566 return mock.GetFunc(name, opts) 1567 } 1568 1569 // GetCalls gets all the calls that were made to Get. 1570 // Check the length with: 1571 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.GetCalls()) 1572 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) GetCalls() []struct { 1573 Name string 1574 Opts v1.GetOptions 1575 } { 1576 var calls []struct { 1577 Name string 1578 Opts v1.GetOptions 1579 } 1580 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGet.RLock() 1581 calls = mock.calls.Get 1582 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGet.RUnlock() 1583 return calls 1584 } 1585 1586 // GetNamespaced calls GetNamespacedFunc. 1587 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 1588 if mock.GetNamespacedFunc == nil { 1589 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.GetNamespacedFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.GetNamespaced was just called") 1590 } 1591 callInfo := struct { 1592 Namespace string 1593 Name string 1594 Opts v1.GetOptions 1595 }{ 1596 Namespace: namespace, 1597 Name: name, 1598 Opts: opts, 1599 } 1600 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGetNamespaced.Lock() 1601 mock.calls.GetNamespaced = append(mock.calls.GetNamespaced, callInfo) 1602 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGetNamespaced.Unlock() 1603 return mock.GetNamespacedFunc(namespace, name, opts) 1604 } 1605 1606 // GetNamespacedCalls gets all the calls that were made to GetNamespaced. 1607 // Check the length with: 1608 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.GetNamespacedCalls()) 1609 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) GetNamespacedCalls() []struct { 1610 Namespace string 1611 Name string 1612 Opts v1.GetOptions 1613 } { 1614 var calls []struct { 1615 Namespace string 1616 Name string 1617 Opts v1.GetOptions 1618 } 1619 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGetNamespaced.RLock() 1620 calls = mock.calls.GetNamespaced 1621 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockGetNamespaced.RUnlock() 1622 return calls 1623 } 1624 1625 // List calls ListFunc. 1626 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) List(opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) { 1627 if mock.ListFunc == nil { 1628 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.ListFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.List was just called") 1629 } 1630 callInfo := struct { 1631 Opts v1.ListOptions 1632 }{ 1633 Opts: opts, 1634 } 1635 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockList.Lock() 1636 mock.calls.List = append(mock.calls.List, callInfo) 1637 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockList.Unlock() 1638 return mock.ListFunc(opts) 1639 } 1640 1641 // ListCalls gets all the calls that were made to List. 1642 // Check the length with: 1643 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.ListCalls()) 1644 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ListCalls() []struct { 1645 Opts v1.ListOptions 1646 } { 1647 var calls []struct { 1648 Opts v1.ListOptions 1649 } 1650 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockList.RLock() 1651 calls = mock.calls.List 1652 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockList.RUnlock() 1653 return calls 1654 } 1655 1656 // ListNamespaced calls ListNamespacedFunc. 1657 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ListNamespaced(namespace string, opts v1.ListOptions) (*v3.PodSecurityPolicyTemplateProjectBindingList, error) { 1658 if mock.ListNamespacedFunc == nil { 1659 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.ListNamespacedFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.ListNamespaced was just called") 1660 } 1661 callInfo := struct { 1662 Namespace string 1663 Opts v1.ListOptions 1664 }{ 1665 Namespace: namespace, 1666 Opts: opts, 1667 } 1668 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced.Lock() 1669 mock.calls.ListNamespaced = append(mock.calls.ListNamespaced, callInfo) 1670 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced.Unlock() 1671 return mock.ListNamespacedFunc(namespace, opts) 1672 } 1673 1674 // ListNamespacedCalls gets all the calls that were made to ListNamespaced. 1675 // Check the length with: 1676 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.ListNamespacedCalls()) 1677 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ListNamespacedCalls() []struct { 1678 Namespace string 1679 Opts v1.ListOptions 1680 } { 1681 var calls []struct { 1682 Namespace string 1683 Opts v1.ListOptions 1684 } 1685 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced.RLock() 1686 calls = mock.calls.ListNamespaced 1687 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockListNamespaced.RUnlock() 1688 return calls 1689 } 1690 1691 // ObjectClient calls ObjectClientFunc. 1692 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ObjectClient() *objectclient.ObjectClient { 1693 if mock.ObjectClientFunc == nil { 1694 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.ObjectClientFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.ObjectClient was just called") 1695 } 1696 callInfo := struct { 1697 }{} 1698 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockObjectClient.Lock() 1699 mock.calls.ObjectClient = append(mock.calls.ObjectClient, callInfo) 1700 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockObjectClient.Unlock() 1701 return mock.ObjectClientFunc() 1702 } 1703 1704 // ObjectClientCalls gets all the calls that were made to ObjectClient. 1705 // Check the length with: 1706 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.ObjectClientCalls()) 1707 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) ObjectClientCalls() []struct { 1708 } { 1709 var calls []struct { 1710 } 1711 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockObjectClient.RLock() 1712 calls = mock.calls.ObjectClient 1713 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockObjectClient.RUnlock() 1714 return calls 1715 } 1716 1717 // Update calls UpdateFunc. 1718 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) Update(in1 *v3.PodSecurityPolicyTemplateProjectBinding) (*v3.PodSecurityPolicyTemplateProjectBinding, error) { 1719 if mock.UpdateFunc == nil { 1720 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.UpdateFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.Update was just called") 1721 } 1722 callInfo := struct { 1723 In1 *v3.PodSecurityPolicyTemplateProjectBinding 1724 }{ 1725 In1: in1, 1726 } 1727 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockUpdate.Lock() 1728 mock.calls.Update = append(mock.calls.Update, callInfo) 1729 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockUpdate.Unlock() 1730 return mock.UpdateFunc(in1) 1731 } 1732 1733 // UpdateCalls gets all the calls that were made to Update. 1734 // Check the length with: 1735 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.UpdateCalls()) 1736 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) UpdateCalls() []struct { 1737 In1 *v3.PodSecurityPolicyTemplateProjectBinding 1738 } { 1739 var calls []struct { 1740 In1 *v3.PodSecurityPolicyTemplateProjectBinding 1741 } 1742 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockUpdate.RLock() 1743 calls = mock.calls.Update 1744 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockUpdate.RUnlock() 1745 return calls 1746 } 1747 1748 // Watch calls WatchFunc. 1749 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error) { 1750 if mock.WatchFunc == nil { 1751 panic("PodSecurityPolicyTemplateProjectBindingInterfaceMock.WatchFunc: method is nil but PodSecurityPolicyTemplateProjectBindingInterface.Watch was just called") 1752 } 1753 callInfo := struct { 1754 Opts v1.ListOptions 1755 }{ 1756 Opts: opts, 1757 } 1758 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockWatch.Lock() 1759 mock.calls.Watch = append(mock.calls.Watch, callInfo) 1760 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockWatch.Unlock() 1761 return mock.WatchFunc(opts) 1762 } 1763 1764 // WatchCalls gets all the calls that were made to Watch. 1765 // Check the length with: 1766 // len(mockedPodSecurityPolicyTemplateProjectBindingInterface.WatchCalls()) 1767 func (mock *PodSecurityPolicyTemplateProjectBindingInterfaceMock) WatchCalls() []struct { 1768 Opts v1.ListOptions 1769 } { 1770 var calls []struct { 1771 Opts v1.ListOptions 1772 } 1773 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockWatch.RLock() 1774 calls = mock.calls.Watch 1775 lockPodSecurityPolicyTemplateProjectBindingInterfaceMockWatch.RUnlock() 1776 return calls 1777 } 1778 1779 var ( 1780 lockPodSecurityPolicyTemplateProjectBindingsGetterMockPodSecurityPolicyTemplateProjectBindings sync.RWMutex 1781 ) 1782 1783 // Ensure, that PodSecurityPolicyTemplateProjectBindingsGetterMock does implement PodSecurityPolicyTemplateProjectBindingsGetter. 1784 // If this is not the case, regenerate this file with moq. 1785 var _ v3.PodSecurityPolicyTemplateProjectBindingsGetter = &PodSecurityPolicyTemplateProjectBindingsGetterMock{} 1786 1787 // PodSecurityPolicyTemplateProjectBindingsGetterMock is a mock implementation of PodSecurityPolicyTemplateProjectBindingsGetter. 1788 // 1789 // func TestSomethingThatUsesPodSecurityPolicyTemplateProjectBindingsGetter(t *testing.T) { 1790 // 1791 // // make and configure a mocked PodSecurityPolicyTemplateProjectBindingsGetter 1792 // mockedPodSecurityPolicyTemplateProjectBindingsGetter := &PodSecurityPolicyTemplateProjectBindingsGetterMock{ 1793 // PodSecurityPolicyTemplateProjectBindingsFunc: func(namespace string) v3.PodSecurityPolicyTemplateProjectBindingInterface { 1794 // panic("mock out the PodSecurityPolicyTemplateProjectBindings method") 1795 // }, 1796 // } 1797 // 1798 // // use mockedPodSecurityPolicyTemplateProjectBindingsGetter in code that requires PodSecurityPolicyTemplateProjectBindingsGetter 1799 // // and then make assertions. 1800 // 1801 // } 1802 type PodSecurityPolicyTemplateProjectBindingsGetterMock struct { 1803 // PodSecurityPolicyTemplateProjectBindingsFunc mocks the PodSecurityPolicyTemplateProjectBindings method. 1804 PodSecurityPolicyTemplateProjectBindingsFunc func(namespace string) v3.PodSecurityPolicyTemplateProjectBindingInterface 1805 1806 // calls tracks calls to the methods. 1807 calls struct { 1808 // PodSecurityPolicyTemplateProjectBindings holds details about calls to the PodSecurityPolicyTemplateProjectBindings method. 1809 PodSecurityPolicyTemplateProjectBindings []struct { 1810 // Namespace is the namespace argument value. 1811 Namespace string 1812 } 1813 } 1814 } 1815 1816 // PodSecurityPolicyTemplateProjectBindings calls PodSecurityPolicyTemplateProjectBindingsFunc. 1817 func (mock *PodSecurityPolicyTemplateProjectBindingsGetterMock) PodSecurityPolicyTemplateProjectBindings(namespace string) v3.PodSecurityPolicyTemplateProjectBindingInterface { 1818 if mock.PodSecurityPolicyTemplateProjectBindingsFunc == nil { 1819 panic("PodSecurityPolicyTemplateProjectBindingsGetterMock.PodSecurityPolicyTemplateProjectBindingsFunc: method is nil but PodSecurityPolicyTemplateProjectBindingsGetter.PodSecurityPolicyTemplateProjectBindings was just called") 1820 } 1821 callInfo := struct { 1822 Namespace string 1823 }{ 1824 Namespace: namespace, 1825 } 1826 lockPodSecurityPolicyTemplateProjectBindingsGetterMockPodSecurityPolicyTemplateProjectBindings.Lock() 1827 mock.calls.PodSecurityPolicyTemplateProjectBindings = append(mock.calls.PodSecurityPolicyTemplateProjectBindings, callInfo) 1828 lockPodSecurityPolicyTemplateProjectBindingsGetterMockPodSecurityPolicyTemplateProjectBindings.Unlock() 1829 return mock.PodSecurityPolicyTemplateProjectBindingsFunc(namespace) 1830 } 1831 1832 // PodSecurityPolicyTemplateProjectBindingsCalls gets all the calls that were made to PodSecurityPolicyTemplateProjectBindings. 1833 // Check the length with: 1834 // len(mockedPodSecurityPolicyTemplateProjectBindingsGetter.PodSecurityPolicyTemplateProjectBindingsCalls()) 1835 func (mock *PodSecurityPolicyTemplateProjectBindingsGetterMock) PodSecurityPolicyTemplateProjectBindingsCalls() []struct { 1836 Namespace string 1837 } { 1838 var calls []struct { 1839 Namespace string 1840 } 1841 lockPodSecurityPolicyTemplateProjectBindingsGetterMockPodSecurityPolicyTemplateProjectBindings.RLock() 1842 calls = mock.calls.PodSecurityPolicyTemplateProjectBindings 1843 lockPodSecurityPolicyTemplateProjectBindingsGetterMockPodSecurityPolicyTemplateProjectBindings.RUnlock() 1844 return calls 1845 }