github.com/quay/claircore@v1.5.28/test/mock/indexer/mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/quay/claircore/indexer (interfaces: Store,PackageScanner,VersionedScanner,DistributionScanner,RepositoryScanner,Coalescer,Realizer,FetchArena) 3 4 // Package mock_indexer is a generated GoMock package. 5 package mock_indexer 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 claircore "github.com/quay/claircore" 13 indexer "github.com/quay/claircore/indexer" 14 ) 15 16 // MockStore is a mock of Store interface. 17 type MockStore struct { 18 ctrl *gomock.Controller 19 recorder *MockStoreMockRecorder 20 } 21 22 // MockStoreMockRecorder is the mock recorder for MockStore. 23 type MockStoreMockRecorder struct { 24 mock *MockStore 25 } 26 27 // NewMockStore creates a new mock instance. 28 func NewMockStore(ctrl *gomock.Controller) *MockStore { 29 mock := &MockStore{ctrl: ctrl} 30 mock.recorder = &MockStoreMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockStore) EXPECT() *MockStoreMockRecorder { 36 return m.recorder 37 } 38 39 // AffectedManifests mocks base method. 40 func (m *MockStore) AffectedManifests(arg0 context.Context, arg1 claircore.Vulnerability, arg2 claircore.CheckVulnernableFunc) ([]claircore.Digest, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "AffectedManifests", arg0, arg1, arg2) 43 ret0, _ := ret[0].([]claircore.Digest) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // AffectedManifests indicates an expected call of AffectedManifests. 49 func (mr *MockStoreMockRecorder) AffectedManifests(arg0, arg1, arg2 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AffectedManifests", reflect.TypeOf((*MockStore)(nil).AffectedManifests), arg0, arg1, arg2) 52 } 53 54 // Close mocks base method. 55 func (m *MockStore) Close(arg0 context.Context) error { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "Close", arg0) 58 ret0, _ := ret[0].(error) 59 return ret0 60 } 61 62 // Close indicates an expected call of Close. 63 func (mr *MockStoreMockRecorder) Close(arg0 interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockStore)(nil).Close), arg0) 66 } 67 68 // DeleteManifests mocks base method. 69 func (m *MockStore) DeleteManifests(arg0 context.Context, arg1 ...claircore.Digest) ([]claircore.Digest, error) { 70 m.ctrl.T.Helper() 71 varargs := []interface{}{arg0} 72 for _, a := range arg1 { 73 varargs = append(varargs, a) 74 } 75 ret := m.ctrl.Call(m, "DeleteManifests", varargs...) 76 ret0, _ := ret[0].([]claircore.Digest) 77 ret1, _ := ret[1].(error) 78 return ret0, ret1 79 } 80 81 // DeleteManifests indicates an expected call of DeleteManifests. 82 func (mr *MockStoreMockRecorder) DeleteManifests(arg0 interface{}, arg1 ...interface{}) *gomock.Call { 83 mr.mock.ctrl.T.Helper() 84 varargs := append([]interface{}{arg0}, arg1...) 85 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteManifests", reflect.TypeOf((*MockStore)(nil).DeleteManifests), varargs...) 86 } 87 88 // DistributionsByLayer mocks base method. 89 func (m *MockStore) DistributionsByLayer(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) ([]*claircore.Distribution, error) { 90 m.ctrl.T.Helper() 91 ret := m.ctrl.Call(m, "DistributionsByLayer", arg0, arg1, arg2) 92 ret0, _ := ret[0].([]*claircore.Distribution) 93 ret1, _ := ret[1].(error) 94 return ret0, ret1 95 } 96 97 // DistributionsByLayer indicates an expected call of DistributionsByLayer. 98 func (mr *MockStoreMockRecorder) DistributionsByLayer(arg0, arg1, arg2 interface{}) *gomock.Call { 99 mr.mock.ctrl.T.Helper() 100 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DistributionsByLayer", reflect.TypeOf((*MockStore)(nil).DistributionsByLayer), arg0, arg1, arg2) 101 } 102 103 // FilesByLayer mocks base method. 104 func (m *MockStore) FilesByLayer(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) ([]claircore.File, error) { 105 m.ctrl.T.Helper() 106 ret := m.ctrl.Call(m, "FilesByLayer", arg0, arg1, arg2) 107 ret0, _ := ret[0].([]claircore.File) 108 ret1, _ := ret[1].(error) 109 return ret0, ret1 110 } 111 112 // FilesByLayer indicates an expected call of FilesByLayer. 113 func (mr *MockStoreMockRecorder) FilesByLayer(arg0, arg1, arg2 interface{}) *gomock.Call { 114 mr.mock.ctrl.T.Helper() 115 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilesByLayer", reflect.TypeOf((*MockStore)(nil).FilesByLayer), arg0, arg1, arg2) 116 } 117 118 // IndexDistributions mocks base method. 119 func (m *MockStore) IndexDistributions(arg0 context.Context, arg1 []*claircore.Distribution, arg2 *claircore.Layer, arg3 indexer.VersionedScanner) error { 120 m.ctrl.T.Helper() 121 ret := m.ctrl.Call(m, "IndexDistributions", arg0, arg1, arg2, arg3) 122 ret0, _ := ret[0].(error) 123 return ret0 124 } 125 126 // IndexDistributions indicates an expected call of IndexDistributions. 127 func (mr *MockStoreMockRecorder) IndexDistributions(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 128 mr.mock.ctrl.T.Helper() 129 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexDistributions", reflect.TypeOf((*MockStore)(nil).IndexDistributions), arg0, arg1, arg2, arg3) 130 } 131 132 // IndexFiles mocks base method. 133 func (m *MockStore) IndexFiles(arg0 context.Context, arg1 []claircore.File, arg2 *claircore.Layer, arg3 indexer.VersionedScanner) error { 134 m.ctrl.T.Helper() 135 ret := m.ctrl.Call(m, "IndexFiles", arg0, arg1, arg2, arg3) 136 ret0, _ := ret[0].(error) 137 return ret0 138 } 139 140 // IndexFiles indicates an expected call of IndexFiles. 141 func (mr *MockStoreMockRecorder) IndexFiles(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexFiles", reflect.TypeOf((*MockStore)(nil).IndexFiles), arg0, arg1, arg2, arg3) 144 } 145 146 // IndexManifest mocks base method. 147 func (m *MockStore) IndexManifest(arg0 context.Context, arg1 *claircore.IndexReport) error { 148 m.ctrl.T.Helper() 149 ret := m.ctrl.Call(m, "IndexManifest", arg0, arg1) 150 ret0, _ := ret[0].(error) 151 return ret0 152 } 153 154 // IndexManifest indicates an expected call of IndexManifest. 155 func (mr *MockStoreMockRecorder) IndexManifest(arg0, arg1 interface{}) *gomock.Call { 156 mr.mock.ctrl.T.Helper() 157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexManifest", reflect.TypeOf((*MockStore)(nil).IndexManifest), arg0, arg1) 158 } 159 160 // IndexPackages mocks base method. 161 func (m *MockStore) IndexPackages(arg0 context.Context, arg1 []*claircore.Package, arg2 *claircore.Layer, arg3 indexer.VersionedScanner) error { 162 m.ctrl.T.Helper() 163 ret := m.ctrl.Call(m, "IndexPackages", arg0, arg1, arg2, arg3) 164 ret0, _ := ret[0].(error) 165 return ret0 166 } 167 168 // IndexPackages indicates an expected call of IndexPackages. 169 func (mr *MockStoreMockRecorder) IndexPackages(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 170 mr.mock.ctrl.T.Helper() 171 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexPackages", reflect.TypeOf((*MockStore)(nil).IndexPackages), arg0, arg1, arg2, arg3) 172 } 173 174 // IndexReport mocks base method. 175 func (m *MockStore) IndexReport(arg0 context.Context, arg1 claircore.Digest) (*claircore.IndexReport, bool, error) { 176 m.ctrl.T.Helper() 177 ret := m.ctrl.Call(m, "IndexReport", arg0, arg1) 178 ret0, _ := ret[0].(*claircore.IndexReport) 179 ret1, _ := ret[1].(bool) 180 ret2, _ := ret[2].(error) 181 return ret0, ret1, ret2 182 } 183 184 // IndexReport indicates an expected call of IndexReport. 185 func (mr *MockStoreMockRecorder) IndexReport(arg0, arg1 interface{}) *gomock.Call { 186 mr.mock.ctrl.T.Helper() 187 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexReport", reflect.TypeOf((*MockStore)(nil).IndexReport), arg0, arg1) 188 } 189 190 // IndexRepositories mocks base method. 191 func (m *MockStore) IndexRepositories(arg0 context.Context, arg1 []*claircore.Repository, arg2 *claircore.Layer, arg3 indexer.VersionedScanner) error { 192 m.ctrl.T.Helper() 193 ret := m.ctrl.Call(m, "IndexRepositories", arg0, arg1, arg2, arg3) 194 ret0, _ := ret[0].(error) 195 return ret0 196 } 197 198 // IndexRepositories indicates an expected call of IndexRepositories. 199 func (mr *MockStoreMockRecorder) IndexRepositories(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 200 mr.mock.ctrl.T.Helper() 201 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexRepositories", reflect.TypeOf((*MockStore)(nil).IndexRepositories), arg0, arg1, arg2, arg3) 202 } 203 204 // LayerScanned mocks base method. 205 func (m *MockStore) LayerScanned(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanner) (bool, error) { 206 m.ctrl.T.Helper() 207 ret := m.ctrl.Call(m, "LayerScanned", arg0, arg1, arg2) 208 ret0, _ := ret[0].(bool) 209 ret1, _ := ret[1].(error) 210 return ret0, ret1 211 } 212 213 // LayerScanned indicates an expected call of LayerScanned. 214 func (mr *MockStoreMockRecorder) LayerScanned(arg0, arg1, arg2 interface{}) *gomock.Call { 215 mr.mock.ctrl.T.Helper() 216 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LayerScanned", reflect.TypeOf((*MockStore)(nil).LayerScanned), arg0, arg1, arg2) 217 } 218 219 // ManifestScanned mocks base method. 220 func (m *MockStore) ManifestScanned(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) (bool, error) { 221 m.ctrl.T.Helper() 222 ret := m.ctrl.Call(m, "ManifestScanned", arg0, arg1, arg2) 223 ret0, _ := ret[0].(bool) 224 ret1, _ := ret[1].(error) 225 return ret0, ret1 226 } 227 228 // ManifestScanned indicates an expected call of ManifestScanned. 229 func (mr *MockStoreMockRecorder) ManifestScanned(arg0, arg1, arg2 interface{}) *gomock.Call { 230 mr.mock.ctrl.T.Helper() 231 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ManifestScanned", reflect.TypeOf((*MockStore)(nil).ManifestScanned), arg0, arg1, arg2) 232 } 233 234 // PackagesByLayer mocks base method. 235 func (m *MockStore) PackagesByLayer(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) ([]*claircore.Package, error) { 236 m.ctrl.T.Helper() 237 ret := m.ctrl.Call(m, "PackagesByLayer", arg0, arg1, arg2) 238 ret0, _ := ret[0].([]*claircore.Package) 239 ret1, _ := ret[1].(error) 240 return ret0, ret1 241 } 242 243 // PackagesByLayer indicates an expected call of PackagesByLayer. 244 func (mr *MockStoreMockRecorder) PackagesByLayer(arg0, arg1, arg2 interface{}) *gomock.Call { 245 mr.mock.ctrl.T.Helper() 246 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PackagesByLayer", reflect.TypeOf((*MockStore)(nil).PackagesByLayer), arg0, arg1, arg2) 247 } 248 249 // PersistManifest mocks base method. 250 func (m *MockStore) PersistManifest(arg0 context.Context, arg1 claircore.Manifest) error { 251 m.ctrl.T.Helper() 252 ret := m.ctrl.Call(m, "PersistManifest", arg0, arg1) 253 ret0, _ := ret[0].(error) 254 return ret0 255 } 256 257 // PersistManifest indicates an expected call of PersistManifest. 258 func (mr *MockStoreMockRecorder) PersistManifest(arg0, arg1 interface{}) *gomock.Call { 259 mr.mock.ctrl.T.Helper() 260 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PersistManifest", reflect.TypeOf((*MockStore)(nil).PersistManifest), arg0, arg1) 261 } 262 263 // RegisterScanners mocks base method. 264 func (m *MockStore) RegisterScanners(arg0 context.Context, arg1 indexer.VersionedScanners) error { 265 m.ctrl.T.Helper() 266 ret := m.ctrl.Call(m, "RegisterScanners", arg0, arg1) 267 ret0, _ := ret[0].(error) 268 return ret0 269 } 270 271 // RegisterScanners indicates an expected call of RegisterScanners. 272 func (mr *MockStoreMockRecorder) RegisterScanners(arg0, arg1 interface{}) *gomock.Call { 273 mr.mock.ctrl.T.Helper() 274 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterScanners", reflect.TypeOf((*MockStore)(nil).RegisterScanners), arg0, arg1) 275 } 276 277 // RepositoriesByLayer mocks base method. 278 func (m *MockStore) RepositoriesByLayer(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanners) ([]*claircore.Repository, error) { 279 m.ctrl.T.Helper() 280 ret := m.ctrl.Call(m, "RepositoriesByLayer", arg0, arg1, arg2) 281 ret0, _ := ret[0].([]*claircore.Repository) 282 ret1, _ := ret[1].(error) 283 return ret0, ret1 284 } 285 286 // RepositoriesByLayer indicates an expected call of RepositoriesByLayer. 287 func (mr *MockStoreMockRecorder) RepositoriesByLayer(arg0, arg1, arg2 interface{}) *gomock.Call { 288 mr.mock.ctrl.T.Helper() 289 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RepositoriesByLayer", reflect.TypeOf((*MockStore)(nil).RepositoriesByLayer), arg0, arg1, arg2) 290 } 291 292 // SetIndexFinished mocks base method. 293 func (m *MockStore) SetIndexFinished(arg0 context.Context, arg1 *claircore.IndexReport, arg2 indexer.VersionedScanners) error { 294 m.ctrl.T.Helper() 295 ret := m.ctrl.Call(m, "SetIndexFinished", arg0, arg1, arg2) 296 ret0, _ := ret[0].(error) 297 return ret0 298 } 299 300 // SetIndexFinished indicates an expected call of SetIndexFinished. 301 func (mr *MockStoreMockRecorder) SetIndexFinished(arg0, arg1, arg2 interface{}) *gomock.Call { 302 mr.mock.ctrl.T.Helper() 303 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndexFinished", reflect.TypeOf((*MockStore)(nil).SetIndexFinished), arg0, arg1, arg2) 304 } 305 306 // SetIndexReport mocks base method. 307 func (m *MockStore) SetIndexReport(arg0 context.Context, arg1 *claircore.IndexReport) error { 308 m.ctrl.T.Helper() 309 ret := m.ctrl.Call(m, "SetIndexReport", arg0, arg1) 310 ret0, _ := ret[0].(error) 311 return ret0 312 } 313 314 // SetIndexReport indicates an expected call of SetIndexReport. 315 func (mr *MockStoreMockRecorder) SetIndexReport(arg0, arg1 interface{}) *gomock.Call { 316 mr.mock.ctrl.T.Helper() 317 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndexReport", reflect.TypeOf((*MockStore)(nil).SetIndexReport), arg0, arg1) 318 } 319 320 // SetLayerScanned mocks base method. 321 func (m *MockStore) SetLayerScanned(arg0 context.Context, arg1 claircore.Digest, arg2 indexer.VersionedScanner) error { 322 m.ctrl.T.Helper() 323 ret := m.ctrl.Call(m, "SetLayerScanned", arg0, arg1, arg2) 324 ret0, _ := ret[0].(error) 325 return ret0 326 } 327 328 // SetLayerScanned indicates an expected call of SetLayerScanned. 329 func (mr *MockStoreMockRecorder) SetLayerScanned(arg0, arg1, arg2 interface{}) *gomock.Call { 330 mr.mock.ctrl.T.Helper() 331 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLayerScanned", reflect.TypeOf((*MockStore)(nil).SetLayerScanned), arg0, arg1, arg2) 332 } 333 334 // MockPackageScanner is a mock of PackageScanner interface. 335 type MockPackageScanner struct { 336 ctrl *gomock.Controller 337 recorder *MockPackageScannerMockRecorder 338 } 339 340 // MockPackageScannerMockRecorder is the mock recorder for MockPackageScanner. 341 type MockPackageScannerMockRecorder struct { 342 mock *MockPackageScanner 343 } 344 345 // NewMockPackageScanner creates a new mock instance. 346 func NewMockPackageScanner(ctrl *gomock.Controller) *MockPackageScanner { 347 mock := &MockPackageScanner{ctrl: ctrl} 348 mock.recorder = &MockPackageScannerMockRecorder{mock} 349 return mock 350 } 351 352 // EXPECT returns an object that allows the caller to indicate expected use. 353 func (m *MockPackageScanner) EXPECT() *MockPackageScannerMockRecorder { 354 return m.recorder 355 } 356 357 // Kind mocks base method. 358 func (m *MockPackageScanner) Kind() string { 359 m.ctrl.T.Helper() 360 ret := m.ctrl.Call(m, "Kind") 361 ret0, _ := ret[0].(string) 362 return ret0 363 } 364 365 // Kind indicates an expected call of Kind. 366 func (mr *MockPackageScannerMockRecorder) Kind() *gomock.Call { 367 mr.mock.ctrl.T.Helper() 368 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kind", reflect.TypeOf((*MockPackageScanner)(nil).Kind)) 369 } 370 371 // Name mocks base method. 372 func (m *MockPackageScanner) Name() string { 373 m.ctrl.T.Helper() 374 ret := m.ctrl.Call(m, "Name") 375 ret0, _ := ret[0].(string) 376 return ret0 377 } 378 379 // Name indicates an expected call of Name. 380 func (mr *MockPackageScannerMockRecorder) Name() *gomock.Call { 381 mr.mock.ctrl.T.Helper() 382 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockPackageScanner)(nil).Name)) 383 } 384 385 // Scan mocks base method. 386 func (m *MockPackageScanner) Scan(arg0 context.Context, arg1 *claircore.Layer) ([]*claircore.Package, error) { 387 m.ctrl.T.Helper() 388 ret := m.ctrl.Call(m, "Scan", arg0, arg1) 389 ret0, _ := ret[0].([]*claircore.Package) 390 ret1, _ := ret[1].(error) 391 return ret0, ret1 392 } 393 394 // Scan indicates an expected call of Scan. 395 func (mr *MockPackageScannerMockRecorder) Scan(arg0, arg1 interface{}) *gomock.Call { 396 mr.mock.ctrl.T.Helper() 397 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Scan", reflect.TypeOf((*MockPackageScanner)(nil).Scan), arg0, arg1) 398 } 399 400 // Version mocks base method. 401 func (m *MockPackageScanner) Version() string { 402 m.ctrl.T.Helper() 403 ret := m.ctrl.Call(m, "Version") 404 ret0, _ := ret[0].(string) 405 return ret0 406 } 407 408 // Version indicates an expected call of Version. 409 func (mr *MockPackageScannerMockRecorder) Version() *gomock.Call { 410 mr.mock.ctrl.T.Helper() 411 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockPackageScanner)(nil).Version)) 412 } 413 414 // MockVersionedScanner is a mock of VersionedScanner interface. 415 type MockVersionedScanner struct { 416 ctrl *gomock.Controller 417 recorder *MockVersionedScannerMockRecorder 418 } 419 420 // MockVersionedScannerMockRecorder is the mock recorder for MockVersionedScanner. 421 type MockVersionedScannerMockRecorder struct { 422 mock *MockVersionedScanner 423 } 424 425 // NewMockVersionedScanner creates a new mock instance. 426 func NewMockVersionedScanner(ctrl *gomock.Controller) *MockVersionedScanner { 427 mock := &MockVersionedScanner{ctrl: ctrl} 428 mock.recorder = &MockVersionedScannerMockRecorder{mock} 429 return mock 430 } 431 432 // EXPECT returns an object that allows the caller to indicate expected use. 433 func (m *MockVersionedScanner) EXPECT() *MockVersionedScannerMockRecorder { 434 return m.recorder 435 } 436 437 // Kind mocks base method. 438 func (m *MockVersionedScanner) Kind() string { 439 m.ctrl.T.Helper() 440 ret := m.ctrl.Call(m, "Kind") 441 ret0, _ := ret[0].(string) 442 return ret0 443 } 444 445 // Kind indicates an expected call of Kind. 446 func (mr *MockVersionedScannerMockRecorder) Kind() *gomock.Call { 447 mr.mock.ctrl.T.Helper() 448 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kind", reflect.TypeOf((*MockVersionedScanner)(nil).Kind)) 449 } 450 451 // Name mocks base method. 452 func (m *MockVersionedScanner) Name() string { 453 m.ctrl.T.Helper() 454 ret := m.ctrl.Call(m, "Name") 455 ret0, _ := ret[0].(string) 456 return ret0 457 } 458 459 // Name indicates an expected call of Name. 460 func (mr *MockVersionedScannerMockRecorder) Name() *gomock.Call { 461 mr.mock.ctrl.T.Helper() 462 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockVersionedScanner)(nil).Name)) 463 } 464 465 // Version mocks base method. 466 func (m *MockVersionedScanner) Version() string { 467 m.ctrl.T.Helper() 468 ret := m.ctrl.Call(m, "Version") 469 ret0, _ := ret[0].(string) 470 return ret0 471 } 472 473 // Version indicates an expected call of Version. 474 func (mr *MockVersionedScannerMockRecorder) Version() *gomock.Call { 475 mr.mock.ctrl.T.Helper() 476 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockVersionedScanner)(nil).Version)) 477 } 478 479 // MockDistributionScanner is a mock of DistributionScanner interface. 480 type MockDistributionScanner struct { 481 ctrl *gomock.Controller 482 recorder *MockDistributionScannerMockRecorder 483 } 484 485 // MockDistributionScannerMockRecorder is the mock recorder for MockDistributionScanner. 486 type MockDistributionScannerMockRecorder struct { 487 mock *MockDistributionScanner 488 } 489 490 // NewMockDistributionScanner creates a new mock instance. 491 func NewMockDistributionScanner(ctrl *gomock.Controller) *MockDistributionScanner { 492 mock := &MockDistributionScanner{ctrl: ctrl} 493 mock.recorder = &MockDistributionScannerMockRecorder{mock} 494 return mock 495 } 496 497 // EXPECT returns an object that allows the caller to indicate expected use. 498 func (m *MockDistributionScanner) EXPECT() *MockDistributionScannerMockRecorder { 499 return m.recorder 500 } 501 502 // Kind mocks base method. 503 func (m *MockDistributionScanner) Kind() string { 504 m.ctrl.T.Helper() 505 ret := m.ctrl.Call(m, "Kind") 506 ret0, _ := ret[0].(string) 507 return ret0 508 } 509 510 // Kind indicates an expected call of Kind. 511 func (mr *MockDistributionScannerMockRecorder) Kind() *gomock.Call { 512 mr.mock.ctrl.T.Helper() 513 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kind", reflect.TypeOf((*MockDistributionScanner)(nil).Kind)) 514 } 515 516 // Name mocks base method. 517 func (m *MockDistributionScanner) Name() string { 518 m.ctrl.T.Helper() 519 ret := m.ctrl.Call(m, "Name") 520 ret0, _ := ret[0].(string) 521 return ret0 522 } 523 524 // Name indicates an expected call of Name. 525 func (mr *MockDistributionScannerMockRecorder) Name() *gomock.Call { 526 mr.mock.ctrl.T.Helper() 527 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockDistributionScanner)(nil).Name)) 528 } 529 530 // Scan mocks base method. 531 func (m *MockDistributionScanner) Scan(arg0 context.Context, arg1 *claircore.Layer) ([]*claircore.Distribution, error) { 532 m.ctrl.T.Helper() 533 ret := m.ctrl.Call(m, "Scan", arg0, arg1) 534 ret0, _ := ret[0].([]*claircore.Distribution) 535 ret1, _ := ret[1].(error) 536 return ret0, ret1 537 } 538 539 // Scan indicates an expected call of Scan. 540 func (mr *MockDistributionScannerMockRecorder) Scan(arg0, arg1 interface{}) *gomock.Call { 541 mr.mock.ctrl.T.Helper() 542 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Scan", reflect.TypeOf((*MockDistributionScanner)(nil).Scan), arg0, arg1) 543 } 544 545 // Version mocks base method. 546 func (m *MockDistributionScanner) Version() string { 547 m.ctrl.T.Helper() 548 ret := m.ctrl.Call(m, "Version") 549 ret0, _ := ret[0].(string) 550 return ret0 551 } 552 553 // Version indicates an expected call of Version. 554 func (mr *MockDistributionScannerMockRecorder) Version() *gomock.Call { 555 mr.mock.ctrl.T.Helper() 556 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockDistributionScanner)(nil).Version)) 557 } 558 559 // MockRepositoryScanner is a mock of RepositoryScanner interface. 560 type MockRepositoryScanner struct { 561 ctrl *gomock.Controller 562 recorder *MockRepositoryScannerMockRecorder 563 } 564 565 // MockRepositoryScannerMockRecorder is the mock recorder for MockRepositoryScanner. 566 type MockRepositoryScannerMockRecorder struct { 567 mock *MockRepositoryScanner 568 } 569 570 // NewMockRepositoryScanner creates a new mock instance. 571 func NewMockRepositoryScanner(ctrl *gomock.Controller) *MockRepositoryScanner { 572 mock := &MockRepositoryScanner{ctrl: ctrl} 573 mock.recorder = &MockRepositoryScannerMockRecorder{mock} 574 return mock 575 } 576 577 // EXPECT returns an object that allows the caller to indicate expected use. 578 func (m *MockRepositoryScanner) EXPECT() *MockRepositoryScannerMockRecorder { 579 return m.recorder 580 } 581 582 // Kind mocks base method. 583 func (m *MockRepositoryScanner) Kind() string { 584 m.ctrl.T.Helper() 585 ret := m.ctrl.Call(m, "Kind") 586 ret0, _ := ret[0].(string) 587 return ret0 588 } 589 590 // Kind indicates an expected call of Kind. 591 func (mr *MockRepositoryScannerMockRecorder) Kind() *gomock.Call { 592 mr.mock.ctrl.T.Helper() 593 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kind", reflect.TypeOf((*MockRepositoryScanner)(nil).Kind)) 594 } 595 596 // Name mocks base method. 597 func (m *MockRepositoryScanner) Name() string { 598 m.ctrl.T.Helper() 599 ret := m.ctrl.Call(m, "Name") 600 ret0, _ := ret[0].(string) 601 return ret0 602 } 603 604 // Name indicates an expected call of Name. 605 func (mr *MockRepositoryScannerMockRecorder) Name() *gomock.Call { 606 mr.mock.ctrl.T.Helper() 607 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockRepositoryScanner)(nil).Name)) 608 } 609 610 // Scan mocks base method. 611 func (m *MockRepositoryScanner) Scan(arg0 context.Context, arg1 *claircore.Layer) ([]*claircore.Repository, error) { 612 m.ctrl.T.Helper() 613 ret := m.ctrl.Call(m, "Scan", arg0, arg1) 614 ret0, _ := ret[0].([]*claircore.Repository) 615 ret1, _ := ret[1].(error) 616 return ret0, ret1 617 } 618 619 // Scan indicates an expected call of Scan. 620 func (mr *MockRepositoryScannerMockRecorder) Scan(arg0, arg1 interface{}) *gomock.Call { 621 mr.mock.ctrl.T.Helper() 622 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Scan", reflect.TypeOf((*MockRepositoryScanner)(nil).Scan), arg0, arg1) 623 } 624 625 // Version mocks base method. 626 func (m *MockRepositoryScanner) Version() string { 627 m.ctrl.T.Helper() 628 ret := m.ctrl.Call(m, "Version") 629 ret0, _ := ret[0].(string) 630 return ret0 631 } 632 633 // Version indicates an expected call of Version. 634 func (mr *MockRepositoryScannerMockRecorder) Version() *gomock.Call { 635 mr.mock.ctrl.T.Helper() 636 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockRepositoryScanner)(nil).Version)) 637 } 638 639 // MockCoalescer is a mock of Coalescer interface. 640 type MockCoalescer struct { 641 ctrl *gomock.Controller 642 recorder *MockCoalescerMockRecorder 643 } 644 645 // MockCoalescerMockRecorder is the mock recorder for MockCoalescer. 646 type MockCoalescerMockRecorder struct { 647 mock *MockCoalescer 648 } 649 650 // NewMockCoalescer creates a new mock instance. 651 func NewMockCoalescer(ctrl *gomock.Controller) *MockCoalescer { 652 mock := &MockCoalescer{ctrl: ctrl} 653 mock.recorder = &MockCoalescerMockRecorder{mock} 654 return mock 655 } 656 657 // EXPECT returns an object that allows the caller to indicate expected use. 658 func (m *MockCoalescer) EXPECT() *MockCoalescerMockRecorder { 659 return m.recorder 660 } 661 662 // Coalesce mocks base method. 663 func (m *MockCoalescer) Coalesce(arg0 context.Context, arg1 []*indexer.LayerArtifacts) (*claircore.IndexReport, error) { 664 m.ctrl.T.Helper() 665 ret := m.ctrl.Call(m, "Coalesce", arg0, arg1) 666 ret0, _ := ret[0].(*claircore.IndexReport) 667 ret1, _ := ret[1].(error) 668 return ret0, ret1 669 } 670 671 // Coalesce indicates an expected call of Coalesce. 672 func (mr *MockCoalescerMockRecorder) Coalesce(arg0, arg1 interface{}) *gomock.Call { 673 mr.mock.ctrl.T.Helper() 674 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Coalesce", reflect.TypeOf((*MockCoalescer)(nil).Coalesce), arg0, arg1) 675 } 676 677 // MockRealizer is a mock of Realizer interface. 678 type MockRealizer struct { 679 ctrl *gomock.Controller 680 recorder *MockRealizerMockRecorder 681 } 682 683 // MockRealizerMockRecorder is the mock recorder for MockRealizer. 684 type MockRealizerMockRecorder struct { 685 mock *MockRealizer 686 } 687 688 // NewMockRealizer creates a new mock instance. 689 func NewMockRealizer(ctrl *gomock.Controller) *MockRealizer { 690 mock := &MockRealizer{ctrl: ctrl} 691 mock.recorder = &MockRealizerMockRecorder{mock} 692 return mock 693 } 694 695 // EXPECT returns an object that allows the caller to indicate expected use. 696 func (m *MockRealizer) EXPECT() *MockRealizerMockRecorder { 697 return m.recorder 698 } 699 700 // Close mocks base method. 701 func (m *MockRealizer) Close() error { 702 m.ctrl.T.Helper() 703 ret := m.ctrl.Call(m, "Close") 704 ret0, _ := ret[0].(error) 705 return ret0 706 } 707 708 // Close indicates an expected call of Close. 709 func (mr *MockRealizerMockRecorder) Close() *gomock.Call { 710 mr.mock.ctrl.T.Helper() 711 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockRealizer)(nil).Close)) 712 } 713 714 // Realize mocks base method. 715 func (m *MockRealizer) Realize(arg0 context.Context, arg1 []*claircore.Layer) error { 716 m.ctrl.T.Helper() 717 ret := m.ctrl.Call(m, "Realize", arg0, arg1) 718 ret0, _ := ret[0].(error) 719 return ret0 720 } 721 722 // Realize indicates an expected call of Realize. 723 func (mr *MockRealizerMockRecorder) Realize(arg0, arg1 interface{}) *gomock.Call { 724 mr.mock.ctrl.T.Helper() 725 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Realize", reflect.TypeOf((*MockRealizer)(nil).Realize), arg0, arg1) 726 } 727 728 // MockFetchArena is a mock of FetchArena interface. 729 type MockFetchArena struct { 730 ctrl *gomock.Controller 731 recorder *MockFetchArenaMockRecorder 732 } 733 734 // MockFetchArenaMockRecorder is the mock recorder for MockFetchArena. 735 type MockFetchArenaMockRecorder struct { 736 mock *MockFetchArena 737 } 738 739 // NewMockFetchArena creates a new mock instance. 740 func NewMockFetchArena(ctrl *gomock.Controller) *MockFetchArena { 741 mock := &MockFetchArena{ctrl: ctrl} 742 mock.recorder = &MockFetchArenaMockRecorder{mock} 743 return mock 744 } 745 746 // EXPECT returns an object that allows the caller to indicate expected use. 747 func (m *MockFetchArena) EXPECT() *MockFetchArenaMockRecorder { 748 return m.recorder 749 } 750 751 // Close mocks base method. 752 func (m *MockFetchArena) Close(arg0 context.Context) error { 753 m.ctrl.T.Helper() 754 ret := m.ctrl.Call(m, "Close", arg0) 755 ret0, _ := ret[0].(error) 756 return ret0 757 } 758 759 // Close indicates an expected call of Close. 760 func (mr *MockFetchArenaMockRecorder) Close(arg0 interface{}) *gomock.Call { 761 mr.mock.ctrl.T.Helper() 762 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockFetchArena)(nil).Close), arg0) 763 } 764 765 // Realizer mocks base method. 766 func (m *MockFetchArena) Realizer(arg0 context.Context) indexer.Realizer { 767 m.ctrl.T.Helper() 768 ret := m.ctrl.Call(m, "Realizer", arg0) 769 ret0, _ := ret[0].(indexer.Realizer) 770 return ret0 771 } 772 773 // Realizer indicates an expected call of Realizer. 774 func (mr *MockFetchArenaMockRecorder) Realizer(arg0 interface{}) *gomock.Call { 775 mr.mock.ctrl.T.Helper() 776 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Realizer", reflect.TypeOf((*MockFetchArena)(nil).Realizer), arg0) 777 }