zotregistry.dev/zot@v1.4.4-0.20240314164342-eec277e14d20/pkg/extensions/search/gql_generated/generated.go (about) 1 // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. 2 3 package gql_generated 4 5 import ( 6 "bytes" 7 "context" 8 "errors" 9 "fmt" 10 "strconv" 11 "sync" 12 "sync/atomic" 13 "time" 14 15 "github.com/99designs/gqlgen/graphql" 16 "github.com/99designs/gqlgen/graphql/introspection" 17 gqlparser "github.com/vektah/gqlparser/v2" 18 "github.com/vektah/gqlparser/v2/ast" 19 ) 20 21 // region ************************** generated!.gotpl ************************** 22 23 // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. 24 func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { 25 return &executableSchema{ 26 schema: cfg.Schema, 27 resolvers: cfg.Resolvers, 28 directives: cfg.Directives, 29 complexity: cfg.Complexity, 30 } 31 } 32 33 type Config struct { 34 Schema *ast.Schema 35 Resolvers ResolverRoot 36 Directives DirectiveRoot 37 Complexity ComplexityRoot 38 } 39 40 type ResolverRoot interface { 41 Query() QueryResolver 42 } 43 44 type DirectiveRoot struct { 45 } 46 47 type ComplexityRoot struct { 48 Annotation struct { 49 Key func(childComplexity int) int 50 Value func(childComplexity int) int 51 } 52 53 CVE struct { 54 Description func(childComplexity int) int 55 ID func(childComplexity int) int 56 PackageList func(childComplexity int) int 57 Reference func(childComplexity int) int 58 Severity func(childComplexity int) int 59 Title func(childComplexity int) int 60 } 61 62 CVEDiffResult struct { 63 CVEList func(childComplexity int) int 64 Minuend func(childComplexity int) int 65 Page func(childComplexity int) int 66 Subtrahend func(childComplexity int) int 67 Summary func(childComplexity int) int 68 } 69 70 CVEResultForImage struct { 71 CVEList func(childComplexity int) int 72 Page func(childComplexity int) int 73 Summary func(childComplexity int) int 74 Tag func(childComplexity int) int 75 } 76 77 GlobalSearchResult struct { 78 Images func(childComplexity int) int 79 Layers func(childComplexity int) int 80 Page func(childComplexity int) int 81 Repos func(childComplexity int) int 82 } 83 84 HistoryDescription struct { 85 Author func(childComplexity int) int 86 Comment func(childComplexity int) int 87 Created func(childComplexity int) int 88 CreatedBy func(childComplexity int) int 89 EmptyLayer func(childComplexity int) int 90 } 91 92 ImageIdentifier struct { 93 Digest func(childComplexity int) int 94 Platform func(childComplexity int) int 95 Repo func(childComplexity int) int 96 Tag func(childComplexity int) int 97 } 98 99 ImageSummary struct { 100 Authors func(childComplexity int) int 101 Description func(childComplexity int) int 102 Digest func(childComplexity int) int 103 Documentation func(childComplexity int) int 104 DownloadCount func(childComplexity int) int 105 IsDeletable func(childComplexity int) int 106 IsSigned func(childComplexity int) int 107 Labels func(childComplexity int) int 108 LastUpdated func(childComplexity int) int 109 Licenses func(childComplexity int) int 110 Manifests func(childComplexity int) int 111 MediaType func(childComplexity int) int 112 Referrers func(childComplexity int) int 113 RepoName func(childComplexity int) int 114 SignatureInfo func(childComplexity int) int 115 Size func(childComplexity int) int 116 Source func(childComplexity int) int 117 Tag func(childComplexity int) int 118 Title func(childComplexity int) int 119 Vendor func(childComplexity int) int 120 Vulnerabilities func(childComplexity int) int 121 } 122 123 ImageVulnerabilitySummary struct { 124 Count func(childComplexity int) int 125 CriticalCount func(childComplexity int) int 126 HighCount func(childComplexity int) int 127 LowCount func(childComplexity int) int 128 MaxSeverity func(childComplexity int) int 129 MediumCount func(childComplexity int) int 130 UnknownCount func(childComplexity int) int 131 } 132 133 LayerHistory struct { 134 HistoryDescription func(childComplexity int) int 135 Layer func(childComplexity int) int 136 } 137 138 LayerSummary struct { 139 Digest func(childComplexity int) int 140 Size func(childComplexity int) int 141 } 142 143 ManifestSummary struct { 144 ArtifactType func(childComplexity int) int 145 ConfigDigest func(childComplexity int) int 146 Digest func(childComplexity int) int 147 DownloadCount func(childComplexity int) int 148 History func(childComplexity int) int 149 IsSigned func(childComplexity int) int 150 LastUpdated func(childComplexity int) int 151 Layers func(childComplexity int) int 152 Platform func(childComplexity int) int 153 Referrers func(childComplexity int) int 154 SignatureInfo func(childComplexity int) int 155 Size func(childComplexity int) int 156 Vulnerabilities func(childComplexity int) int 157 } 158 159 PackageInfo struct { 160 FixedVersion func(childComplexity int) int 161 InstalledVersion func(childComplexity int) int 162 Name func(childComplexity int) int 163 PackagePath func(childComplexity int) int 164 } 165 166 PageInfo struct { 167 ItemCount func(childComplexity int) int 168 TotalCount func(childComplexity int) int 169 } 170 171 PaginatedImagesResult struct { 172 Page func(childComplexity int) int 173 Results func(childComplexity int) int 174 } 175 176 PaginatedReposResult struct { 177 Page func(childComplexity int) int 178 Results func(childComplexity int) int 179 } 180 181 Platform struct { 182 Arch func(childComplexity int) int 183 Os func(childComplexity int) int 184 } 185 186 Query struct { 187 BaseImageList func(childComplexity int, image string, digest *string, requestedPage *PageInput) int 188 BookmarkedRepos func(childComplexity int, requestedPage *PageInput) int 189 CVEDiffListForImages func(childComplexity int, minuend ImageInput, subtrahend ImageInput, requestedPage *PageInput, searchedCve *string, excludedCve *string) int 190 CVEListForImage func(childComplexity int, image string, requestedPage *PageInput, searchedCve *string, excludedCve *string, severity *string) int 191 DerivedImageList func(childComplexity int, image string, digest *string, requestedPage *PageInput) int 192 ExpandedRepoInfo func(childComplexity int, repo string) int 193 GlobalSearch func(childComplexity int, query string, filter *Filter, requestedPage *PageInput) int 194 Image func(childComplexity int, image string) int 195 ImageList func(childComplexity int, repo string, requestedPage *PageInput) int 196 ImageListForCve func(childComplexity int, id string, filter *Filter, requestedPage *PageInput) int 197 ImageListForDigest func(childComplexity int, id string, requestedPage *PageInput) int 198 ImageListWithCVEFixed func(childComplexity int, id string, image string, filter *Filter, requestedPage *PageInput) int 199 Referrers func(childComplexity int, repo string, digest string, typeArg []string) int 200 RepoListWithNewestImage func(childComplexity int, requestedPage *PageInput) int 201 StarredRepos func(childComplexity int, requestedPage *PageInput) int 202 } 203 204 Referrer struct { 205 Annotations func(childComplexity int) int 206 ArtifactType func(childComplexity int) int 207 Digest func(childComplexity int) int 208 MediaType func(childComplexity int) int 209 Size func(childComplexity int) int 210 } 211 212 RepoInfo struct { 213 Images func(childComplexity int) int 214 Summary func(childComplexity int) int 215 } 216 217 RepoSummary struct { 218 DownloadCount func(childComplexity int) int 219 IsBookmarked func(childComplexity int) int 220 IsStarred func(childComplexity int) int 221 LastUpdated func(childComplexity int) int 222 Name func(childComplexity int) int 223 NewestImage func(childComplexity int) int 224 Platforms func(childComplexity int) int 225 Rank func(childComplexity int) int 226 Size func(childComplexity int) int 227 StarCount func(childComplexity int) int 228 Vendors func(childComplexity int) int 229 } 230 231 SignatureSummary struct { 232 Author func(childComplexity int) int 233 IsTrusted func(childComplexity int) int 234 Tool func(childComplexity int) int 235 } 236 } 237 238 type QueryResolver interface { 239 CVEListForImage(ctx context.Context, image string, requestedPage *PageInput, searchedCve *string, excludedCve *string, severity *string) (*CVEResultForImage, error) 240 CVEDiffListForImages(ctx context.Context, minuend ImageInput, subtrahend ImageInput, requestedPage *PageInput, searchedCve *string, excludedCve *string) (*CVEDiffResult, error) 241 ImageListForCve(ctx context.Context, id string, filter *Filter, requestedPage *PageInput) (*PaginatedImagesResult, error) 242 ImageListWithCVEFixed(ctx context.Context, id string, image string, filter *Filter, requestedPage *PageInput) (*PaginatedImagesResult, error) 243 ImageListForDigest(ctx context.Context, id string, requestedPage *PageInput) (*PaginatedImagesResult, error) 244 RepoListWithNewestImage(ctx context.Context, requestedPage *PageInput) (*PaginatedReposResult, error) 245 ImageList(ctx context.Context, repo string, requestedPage *PageInput) (*PaginatedImagesResult, error) 246 ExpandedRepoInfo(ctx context.Context, repo string) (*RepoInfo, error) 247 GlobalSearch(ctx context.Context, query string, filter *Filter, requestedPage *PageInput) (*GlobalSearchResult, error) 248 DerivedImageList(ctx context.Context, image string, digest *string, requestedPage *PageInput) (*PaginatedImagesResult, error) 249 BaseImageList(ctx context.Context, image string, digest *string, requestedPage *PageInput) (*PaginatedImagesResult, error) 250 Image(ctx context.Context, image string) (*ImageSummary, error) 251 Referrers(ctx context.Context, repo string, digest string, typeArg []string) ([]*Referrer, error) 252 StarredRepos(ctx context.Context, requestedPage *PageInput) (*PaginatedReposResult, error) 253 BookmarkedRepos(ctx context.Context, requestedPage *PageInput) (*PaginatedReposResult, error) 254 } 255 256 type executableSchema struct { 257 schema *ast.Schema 258 resolvers ResolverRoot 259 directives DirectiveRoot 260 complexity ComplexityRoot 261 } 262 263 func (e *executableSchema) Schema() *ast.Schema { 264 if e.schema != nil { 265 return e.schema 266 } 267 return parsedSchema 268 } 269 270 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { 271 ec := executionContext{nil, e, 0, 0, nil} 272 _ = ec 273 switch typeName + "." + field { 274 275 case "Annotation.Key": 276 if e.complexity.Annotation.Key == nil { 277 break 278 } 279 280 return e.complexity.Annotation.Key(childComplexity), true 281 282 case "Annotation.Value": 283 if e.complexity.Annotation.Value == nil { 284 break 285 } 286 287 return e.complexity.Annotation.Value(childComplexity), true 288 289 case "CVE.Description": 290 if e.complexity.CVE.Description == nil { 291 break 292 } 293 294 return e.complexity.CVE.Description(childComplexity), true 295 296 case "CVE.Id": 297 if e.complexity.CVE.ID == nil { 298 break 299 } 300 301 return e.complexity.CVE.ID(childComplexity), true 302 303 case "CVE.PackageList": 304 if e.complexity.CVE.PackageList == nil { 305 break 306 } 307 308 return e.complexity.CVE.PackageList(childComplexity), true 309 310 case "CVE.Reference": 311 if e.complexity.CVE.Reference == nil { 312 break 313 } 314 315 return e.complexity.CVE.Reference(childComplexity), true 316 317 case "CVE.Severity": 318 if e.complexity.CVE.Severity == nil { 319 break 320 } 321 322 return e.complexity.CVE.Severity(childComplexity), true 323 324 case "CVE.Title": 325 if e.complexity.CVE.Title == nil { 326 break 327 } 328 329 return e.complexity.CVE.Title(childComplexity), true 330 331 case "CVEDiffResult.CVEList": 332 if e.complexity.CVEDiffResult.CVEList == nil { 333 break 334 } 335 336 return e.complexity.CVEDiffResult.CVEList(childComplexity), true 337 338 case "CVEDiffResult.Minuend": 339 if e.complexity.CVEDiffResult.Minuend == nil { 340 break 341 } 342 343 return e.complexity.CVEDiffResult.Minuend(childComplexity), true 344 345 case "CVEDiffResult.Page": 346 if e.complexity.CVEDiffResult.Page == nil { 347 break 348 } 349 350 return e.complexity.CVEDiffResult.Page(childComplexity), true 351 352 case "CVEDiffResult.Subtrahend": 353 if e.complexity.CVEDiffResult.Subtrahend == nil { 354 break 355 } 356 357 return e.complexity.CVEDiffResult.Subtrahend(childComplexity), true 358 359 case "CVEDiffResult.Summary": 360 if e.complexity.CVEDiffResult.Summary == nil { 361 break 362 } 363 364 return e.complexity.CVEDiffResult.Summary(childComplexity), true 365 366 case "CVEResultForImage.CVEList": 367 if e.complexity.CVEResultForImage.CVEList == nil { 368 break 369 } 370 371 return e.complexity.CVEResultForImage.CVEList(childComplexity), true 372 373 case "CVEResultForImage.Page": 374 if e.complexity.CVEResultForImage.Page == nil { 375 break 376 } 377 378 return e.complexity.CVEResultForImage.Page(childComplexity), true 379 380 case "CVEResultForImage.Summary": 381 if e.complexity.CVEResultForImage.Summary == nil { 382 break 383 } 384 385 return e.complexity.CVEResultForImage.Summary(childComplexity), true 386 387 case "CVEResultForImage.Tag": 388 if e.complexity.CVEResultForImage.Tag == nil { 389 break 390 } 391 392 return e.complexity.CVEResultForImage.Tag(childComplexity), true 393 394 case "GlobalSearchResult.Images": 395 if e.complexity.GlobalSearchResult.Images == nil { 396 break 397 } 398 399 return e.complexity.GlobalSearchResult.Images(childComplexity), true 400 401 case "GlobalSearchResult.Layers": 402 if e.complexity.GlobalSearchResult.Layers == nil { 403 break 404 } 405 406 return e.complexity.GlobalSearchResult.Layers(childComplexity), true 407 408 case "GlobalSearchResult.Page": 409 if e.complexity.GlobalSearchResult.Page == nil { 410 break 411 } 412 413 return e.complexity.GlobalSearchResult.Page(childComplexity), true 414 415 case "GlobalSearchResult.Repos": 416 if e.complexity.GlobalSearchResult.Repos == nil { 417 break 418 } 419 420 return e.complexity.GlobalSearchResult.Repos(childComplexity), true 421 422 case "HistoryDescription.Author": 423 if e.complexity.HistoryDescription.Author == nil { 424 break 425 } 426 427 return e.complexity.HistoryDescription.Author(childComplexity), true 428 429 case "HistoryDescription.Comment": 430 if e.complexity.HistoryDescription.Comment == nil { 431 break 432 } 433 434 return e.complexity.HistoryDescription.Comment(childComplexity), true 435 436 case "HistoryDescription.Created": 437 if e.complexity.HistoryDescription.Created == nil { 438 break 439 } 440 441 return e.complexity.HistoryDescription.Created(childComplexity), true 442 443 case "HistoryDescription.CreatedBy": 444 if e.complexity.HistoryDescription.CreatedBy == nil { 445 break 446 } 447 448 return e.complexity.HistoryDescription.CreatedBy(childComplexity), true 449 450 case "HistoryDescription.EmptyLayer": 451 if e.complexity.HistoryDescription.EmptyLayer == nil { 452 break 453 } 454 455 return e.complexity.HistoryDescription.EmptyLayer(childComplexity), true 456 457 case "ImageIdentifier.Digest": 458 if e.complexity.ImageIdentifier.Digest == nil { 459 break 460 } 461 462 return e.complexity.ImageIdentifier.Digest(childComplexity), true 463 464 case "ImageIdentifier.Platform": 465 if e.complexity.ImageIdentifier.Platform == nil { 466 break 467 } 468 469 return e.complexity.ImageIdentifier.Platform(childComplexity), true 470 471 case "ImageIdentifier.Repo": 472 if e.complexity.ImageIdentifier.Repo == nil { 473 break 474 } 475 476 return e.complexity.ImageIdentifier.Repo(childComplexity), true 477 478 case "ImageIdentifier.Tag": 479 if e.complexity.ImageIdentifier.Tag == nil { 480 break 481 } 482 483 return e.complexity.ImageIdentifier.Tag(childComplexity), true 484 485 case "ImageSummary.Authors": 486 if e.complexity.ImageSummary.Authors == nil { 487 break 488 } 489 490 return e.complexity.ImageSummary.Authors(childComplexity), true 491 492 case "ImageSummary.Description": 493 if e.complexity.ImageSummary.Description == nil { 494 break 495 } 496 497 return e.complexity.ImageSummary.Description(childComplexity), true 498 499 case "ImageSummary.Digest": 500 if e.complexity.ImageSummary.Digest == nil { 501 break 502 } 503 504 return e.complexity.ImageSummary.Digest(childComplexity), true 505 506 case "ImageSummary.Documentation": 507 if e.complexity.ImageSummary.Documentation == nil { 508 break 509 } 510 511 return e.complexity.ImageSummary.Documentation(childComplexity), true 512 513 case "ImageSummary.DownloadCount": 514 if e.complexity.ImageSummary.DownloadCount == nil { 515 break 516 } 517 518 return e.complexity.ImageSummary.DownloadCount(childComplexity), true 519 520 case "ImageSummary.IsDeletable": 521 if e.complexity.ImageSummary.IsDeletable == nil { 522 break 523 } 524 525 return e.complexity.ImageSummary.IsDeletable(childComplexity), true 526 527 case "ImageSummary.IsSigned": 528 if e.complexity.ImageSummary.IsSigned == nil { 529 break 530 } 531 532 return e.complexity.ImageSummary.IsSigned(childComplexity), true 533 534 case "ImageSummary.Labels": 535 if e.complexity.ImageSummary.Labels == nil { 536 break 537 } 538 539 return e.complexity.ImageSummary.Labels(childComplexity), true 540 541 case "ImageSummary.LastUpdated": 542 if e.complexity.ImageSummary.LastUpdated == nil { 543 break 544 } 545 546 return e.complexity.ImageSummary.LastUpdated(childComplexity), true 547 548 case "ImageSummary.Licenses": 549 if e.complexity.ImageSummary.Licenses == nil { 550 break 551 } 552 553 return e.complexity.ImageSummary.Licenses(childComplexity), true 554 555 case "ImageSummary.Manifests": 556 if e.complexity.ImageSummary.Manifests == nil { 557 break 558 } 559 560 return e.complexity.ImageSummary.Manifests(childComplexity), true 561 562 case "ImageSummary.MediaType": 563 if e.complexity.ImageSummary.MediaType == nil { 564 break 565 } 566 567 return e.complexity.ImageSummary.MediaType(childComplexity), true 568 569 case "ImageSummary.Referrers": 570 if e.complexity.ImageSummary.Referrers == nil { 571 break 572 } 573 574 return e.complexity.ImageSummary.Referrers(childComplexity), true 575 576 case "ImageSummary.RepoName": 577 if e.complexity.ImageSummary.RepoName == nil { 578 break 579 } 580 581 return e.complexity.ImageSummary.RepoName(childComplexity), true 582 583 case "ImageSummary.SignatureInfo": 584 if e.complexity.ImageSummary.SignatureInfo == nil { 585 break 586 } 587 588 return e.complexity.ImageSummary.SignatureInfo(childComplexity), true 589 590 case "ImageSummary.Size": 591 if e.complexity.ImageSummary.Size == nil { 592 break 593 } 594 595 return e.complexity.ImageSummary.Size(childComplexity), true 596 597 case "ImageSummary.Source": 598 if e.complexity.ImageSummary.Source == nil { 599 break 600 } 601 602 return e.complexity.ImageSummary.Source(childComplexity), true 603 604 case "ImageSummary.Tag": 605 if e.complexity.ImageSummary.Tag == nil { 606 break 607 } 608 609 return e.complexity.ImageSummary.Tag(childComplexity), true 610 611 case "ImageSummary.Title": 612 if e.complexity.ImageSummary.Title == nil { 613 break 614 } 615 616 return e.complexity.ImageSummary.Title(childComplexity), true 617 618 case "ImageSummary.Vendor": 619 if e.complexity.ImageSummary.Vendor == nil { 620 break 621 } 622 623 return e.complexity.ImageSummary.Vendor(childComplexity), true 624 625 case "ImageSummary.Vulnerabilities": 626 if e.complexity.ImageSummary.Vulnerabilities == nil { 627 break 628 } 629 630 return e.complexity.ImageSummary.Vulnerabilities(childComplexity), true 631 632 case "ImageVulnerabilitySummary.Count": 633 if e.complexity.ImageVulnerabilitySummary.Count == nil { 634 break 635 } 636 637 return e.complexity.ImageVulnerabilitySummary.Count(childComplexity), true 638 639 case "ImageVulnerabilitySummary.CriticalCount": 640 if e.complexity.ImageVulnerabilitySummary.CriticalCount == nil { 641 break 642 } 643 644 return e.complexity.ImageVulnerabilitySummary.CriticalCount(childComplexity), true 645 646 case "ImageVulnerabilitySummary.HighCount": 647 if e.complexity.ImageVulnerabilitySummary.HighCount == nil { 648 break 649 } 650 651 return e.complexity.ImageVulnerabilitySummary.HighCount(childComplexity), true 652 653 case "ImageVulnerabilitySummary.LowCount": 654 if e.complexity.ImageVulnerabilitySummary.LowCount == nil { 655 break 656 } 657 658 return e.complexity.ImageVulnerabilitySummary.LowCount(childComplexity), true 659 660 case "ImageVulnerabilitySummary.MaxSeverity": 661 if e.complexity.ImageVulnerabilitySummary.MaxSeverity == nil { 662 break 663 } 664 665 return e.complexity.ImageVulnerabilitySummary.MaxSeverity(childComplexity), true 666 667 case "ImageVulnerabilitySummary.MediumCount": 668 if e.complexity.ImageVulnerabilitySummary.MediumCount == nil { 669 break 670 } 671 672 return e.complexity.ImageVulnerabilitySummary.MediumCount(childComplexity), true 673 674 case "ImageVulnerabilitySummary.UnknownCount": 675 if e.complexity.ImageVulnerabilitySummary.UnknownCount == nil { 676 break 677 } 678 679 return e.complexity.ImageVulnerabilitySummary.UnknownCount(childComplexity), true 680 681 case "LayerHistory.HistoryDescription": 682 if e.complexity.LayerHistory.HistoryDescription == nil { 683 break 684 } 685 686 return e.complexity.LayerHistory.HistoryDescription(childComplexity), true 687 688 case "LayerHistory.Layer": 689 if e.complexity.LayerHistory.Layer == nil { 690 break 691 } 692 693 return e.complexity.LayerHistory.Layer(childComplexity), true 694 695 case "LayerSummary.Digest": 696 if e.complexity.LayerSummary.Digest == nil { 697 break 698 } 699 700 return e.complexity.LayerSummary.Digest(childComplexity), true 701 702 case "LayerSummary.Size": 703 if e.complexity.LayerSummary.Size == nil { 704 break 705 } 706 707 return e.complexity.LayerSummary.Size(childComplexity), true 708 709 case "ManifestSummary.ArtifactType": 710 if e.complexity.ManifestSummary.ArtifactType == nil { 711 break 712 } 713 714 return e.complexity.ManifestSummary.ArtifactType(childComplexity), true 715 716 case "ManifestSummary.ConfigDigest": 717 if e.complexity.ManifestSummary.ConfigDigest == nil { 718 break 719 } 720 721 return e.complexity.ManifestSummary.ConfigDigest(childComplexity), true 722 723 case "ManifestSummary.Digest": 724 if e.complexity.ManifestSummary.Digest == nil { 725 break 726 } 727 728 return e.complexity.ManifestSummary.Digest(childComplexity), true 729 730 case "ManifestSummary.DownloadCount": 731 if e.complexity.ManifestSummary.DownloadCount == nil { 732 break 733 } 734 735 return e.complexity.ManifestSummary.DownloadCount(childComplexity), true 736 737 case "ManifestSummary.History": 738 if e.complexity.ManifestSummary.History == nil { 739 break 740 } 741 742 return e.complexity.ManifestSummary.History(childComplexity), true 743 744 case "ManifestSummary.IsSigned": 745 if e.complexity.ManifestSummary.IsSigned == nil { 746 break 747 } 748 749 return e.complexity.ManifestSummary.IsSigned(childComplexity), true 750 751 case "ManifestSummary.LastUpdated": 752 if e.complexity.ManifestSummary.LastUpdated == nil { 753 break 754 } 755 756 return e.complexity.ManifestSummary.LastUpdated(childComplexity), true 757 758 case "ManifestSummary.Layers": 759 if e.complexity.ManifestSummary.Layers == nil { 760 break 761 } 762 763 return e.complexity.ManifestSummary.Layers(childComplexity), true 764 765 case "ManifestSummary.Platform": 766 if e.complexity.ManifestSummary.Platform == nil { 767 break 768 } 769 770 return e.complexity.ManifestSummary.Platform(childComplexity), true 771 772 case "ManifestSummary.Referrers": 773 if e.complexity.ManifestSummary.Referrers == nil { 774 break 775 } 776 777 return e.complexity.ManifestSummary.Referrers(childComplexity), true 778 779 case "ManifestSummary.SignatureInfo": 780 if e.complexity.ManifestSummary.SignatureInfo == nil { 781 break 782 } 783 784 return e.complexity.ManifestSummary.SignatureInfo(childComplexity), true 785 786 case "ManifestSummary.Size": 787 if e.complexity.ManifestSummary.Size == nil { 788 break 789 } 790 791 return e.complexity.ManifestSummary.Size(childComplexity), true 792 793 case "ManifestSummary.Vulnerabilities": 794 if e.complexity.ManifestSummary.Vulnerabilities == nil { 795 break 796 } 797 798 return e.complexity.ManifestSummary.Vulnerabilities(childComplexity), true 799 800 case "PackageInfo.FixedVersion": 801 if e.complexity.PackageInfo.FixedVersion == nil { 802 break 803 } 804 805 return e.complexity.PackageInfo.FixedVersion(childComplexity), true 806 807 case "PackageInfo.InstalledVersion": 808 if e.complexity.PackageInfo.InstalledVersion == nil { 809 break 810 } 811 812 return e.complexity.PackageInfo.InstalledVersion(childComplexity), true 813 814 case "PackageInfo.Name": 815 if e.complexity.PackageInfo.Name == nil { 816 break 817 } 818 819 return e.complexity.PackageInfo.Name(childComplexity), true 820 821 case "PackageInfo.PackagePath": 822 if e.complexity.PackageInfo.PackagePath == nil { 823 break 824 } 825 826 return e.complexity.PackageInfo.PackagePath(childComplexity), true 827 828 case "PageInfo.ItemCount": 829 if e.complexity.PageInfo.ItemCount == nil { 830 break 831 } 832 833 return e.complexity.PageInfo.ItemCount(childComplexity), true 834 835 case "PageInfo.TotalCount": 836 if e.complexity.PageInfo.TotalCount == nil { 837 break 838 } 839 840 return e.complexity.PageInfo.TotalCount(childComplexity), true 841 842 case "PaginatedImagesResult.Page": 843 if e.complexity.PaginatedImagesResult.Page == nil { 844 break 845 } 846 847 return e.complexity.PaginatedImagesResult.Page(childComplexity), true 848 849 case "PaginatedImagesResult.Results": 850 if e.complexity.PaginatedImagesResult.Results == nil { 851 break 852 } 853 854 return e.complexity.PaginatedImagesResult.Results(childComplexity), true 855 856 case "PaginatedReposResult.Page": 857 if e.complexity.PaginatedReposResult.Page == nil { 858 break 859 } 860 861 return e.complexity.PaginatedReposResult.Page(childComplexity), true 862 863 case "PaginatedReposResult.Results": 864 if e.complexity.PaginatedReposResult.Results == nil { 865 break 866 } 867 868 return e.complexity.PaginatedReposResult.Results(childComplexity), true 869 870 case "Platform.Arch": 871 if e.complexity.Platform.Arch == nil { 872 break 873 } 874 875 return e.complexity.Platform.Arch(childComplexity), true 876 877 case "Platform.Os": 878 if e.complexity.Platform.Os == nil { 879 break 880 } 881 882 return e.complexity.Platform.Os(childComplexity), true 883 884 case "Query.BaseImageList": 885 if e.complexity.Query.BaseImageList == nil { 886 break 887 } 888 889 args, err := ec.field_Query_BaseImageList_args(context.TODO(), rawArgs) 890 if err != nil { 891 return 0, false 892 } 893 894 return e.complexity.Query.BaseImageList(childComplexity, args["image"].(string), args["digest"].(*string), args["requestedPage"].(*PageInput)), true 895 896 case "Query.BookmarkedRepos": 897 if e.complexity.Query.BookmarkedRepos == nil { 898 break 899 } 900 901 args, err := ec.field_Query_BookmarkedRepos_args(context.TODO(), rawArgs) 902 if err != nil { 903 return 0, false 904 } 905 906 return e.complexity.Query.BookmarkedRepos(childComplexity, args["requestedPage"].(*PageInput)), true 907 908 case "Query.CVEDiffListForImages": 909 if e.complexity.Query.CVEDiffListForImages == nil { 910 break 911 } 912 913 args, err := ec.field_Query_CVEDiffListForImages_args(context.TODO(), rawArgs) 914 if err != nil { 915 return 0, false 916 } 917 918 return e.complexity.Query.CVEDiffListForImages(childComplexity, args["minuend"].(ImageInput), args["subtrahend"].(ImageInput), args["requestedPage"].(*PageInput), args["searchedCVE"].(*string), args["excludedCVE"].(*string)), true 919 920 case "Query.CVEListForImage": 921 if e.complexity.Query.CVEListForImage == nil { 922 break 923 } 924 925 args, err := ec.field_Query_CVEListForImage_args(context.TODO(), rawArgs) 926 if err != nil { 927 return 0, false 928 } 929 930 return e.complexity.Query.CVEListForImage(childComplexity, args["image"].(string), args["requestedPage"].(*PageInput), args["searchedCVE"].(*string), args["excludedCVE"].(*string), args["severity"].(*string)), true 931 932 case "Query.DerivedImageList": 933 if e.complexity.Query.DerivedImageList == nil { 934 break 935 } 936 937 args, err := ec.field_Query_DerivedImageList_args(context.TODO(), rawArgs) 938 if err != nil { 939 return 0, false 940 } 941 942 return e.complexity.Query.DerivedImageList(childComplexity, args["image"].(string), args["digest"].(*string), args["requestedPage"].(*PageInput)), true 943 944 case "Query.ExpandedRepoInfo": 945 if e.complexity.Query.ExpandedRepoInfo == nil { 946 break 947 } 948 949 args, err := ec.field_Query_ExpandedRepoInfo_args(context.TODO(), rawArgs) 950 if err != nil { 951 return 0, false 952 } 953 954 return e.complexity.Query.ExpandedRepoInfo(childComplexity, args["repo"].(string)), true 955 956 case "Query.GlobalSearch": 957 if e.complexity.Query.GlobalSearch == nil { 958 break 959 } 960 961 args, err := ec.field_Query_GlobalSearch_args(context.TODO(), rawArgs) 962 if err != nil { 963 return 0, false 964 } 965 966 return e.complexity.Query.GlobalSearch(childComplexity, args["query"].(string), args["filter"].(*Filter), args["requestedPage"].(*PageInput)), true 967 968 case "Query.Image": 969 if e.complexity.Query.Image == nil { 970 break 971 } 972 973 args, err := ec.field_Query_Image_args(context.TODO(), rawArgs) 974 if err != nil { 975 return 0, false 976 } 977 978 return e.complexity.Query.Image(childComplexity, args["image"].(string)), true 979 980 case "Query.ImageList": 981 if e.complexity.Query.ImageList == nil { 982 break 983 } 984 985 args, err := ec.field_Query_ImageList_args(context.TODO(), rawArgs) 986 if err != nil { 987 return 0, false 988 } 989 990 return e.complexity.Query.ImageList(childComplexity, args["repo"].(string), args["requestedPage"].(*PageInput)), true 991 992 case "Query.ImageListForCVE": 993 if e.complexity.Query.ImageListForCve == nil { 994 break 995 } 996 997 args, err := ec.field_Query_ImageListForCVE_args(context.TODO(), rawArgs) 998 if err != nil { 999 return 0, false 1000 } 1001 1002 return e.complexity.Query.ImageListForCve(childComplexity, args["id"].(string), args["filter"].(*Filter), args["requestedPage"].(*PageInput)), true 1003 1004 case "Query.ImageListForDigest": 1005 if e.complexity.Query.ImageListForDigest == nil { 1006 break 1007 } 1008 1009 args, err := ec.field_Query_ImageListForDigest_args(context.TODO(), rawArgs) 1010 if err != nil { 1011 return 0, false 1012 } 1013 1014 return e.complexity.Query.ImageListForDigest(childComplexity, args["id"].(string), args["requestedPage"].(*PageInput)), true 1015 1016 case "Query.ImageListWithCVEFixed": 1017 if e.complexity.Query.ImageListWithCVEFixed == nil { 1018 break 1019 } 1020 1021 args, err := ec.field_Query_ImageListWithCVEFixed_args(context.TODO(), rawArgs) 1022 if err != nil { 1023 return 0, false 1024 } 1025 1026 return e.complexity.Query.ImageListWithCVEFixed(childComplexity, args["id"].(string), args["image"].(string), args["filter"].(*Filter), args["requestedPage"].(*PageInput)), true 1027 1028 case "Query.Referrers": 1029 if e.complexity.Query.Referrers == nil { 1030 break 1031 } 1032 1033 args, err := ec.field_Query_Referrers_args(context.TODO(), rawArgs) 1034 if err != nil { 1035 return 0, false 1036 } 1037 1038 return e.complexity.Query.Referrers(childComplexity, args["repo"].(string), args["digest"].(string), args["type"].([]string)), true 1039 1040 case "Query.RepoListWithNewestImage": 1041 if e.complexity.Query.RepoListWithNewestImage == nil { 1042 break 1043 } 1044 1045 args, err := ec.field_Query_RepoListWithNewestImage_args(context.TODO(), rawArgs) 1046 if err != nil { 1047 return 0, false 1048 } 1049 1050 return e.complexity.Query.RepoListWithNewestImage(childComplexity, args["requestedPage"].(*PageInput)), true 1051 1052 case "Query.StarredRepos": 1053 if e.complexity.Query.StarredRepos == nil { 1054 break 1055 } 1056 1057 args, err := ec.field_Query_StarredRepos_args(context.TODO(), rawArgs) 1058 if err != nil { 1059 return 0, false 1060 } 1061 1062 return e.complexity.Query.StarredRepos(childComplexity, args["requestedPage"].(*PageInput)), true 1063 1064 case "Referrer.Annotations": 1065 if e.complexity.Referrer.Annotations == nil { 1066 break 1067 } 1068 1069 return e.complexity.Referrer.Annotations(childComplexity), true 1070 1071 case "Referrer.ArtifactType": 1072 if e.complexity.Referrer.ArtifactType == nil { 1073 break 1074 } 1075 1076 return e.complexity.Referrer.ArtifactType(childComplexity), true 1077 1078 case "Referrer.Digest": 1079 if e.complexity.Referrer.Digest == nil { 1080 break 1081 } 1082 1083 return e.complexity.Referrer.Digest(childComplexity), true 1084 1085 case "Referrer.MediaType": 1086 if e.complexity.Referrer.MediaType == nil { 1087 break 1088 } 1089 1090 return e.complexity.Referrer.MediaType(childComplexity), true 1091 1092 case "Referrer.Size": 1093 if e.complexity.Referrer.Size == nil { 1094 break 1095 } 1096 1097 return e.complexity.Referrer.Size(childComplexity), true 1098 1099 case "RepoInfo.Images": 1100 if e.complexity.RepoInfo.Images == nil { 1101 break 1102 } 1103 1104 return e.complexity.RepoInfo.Images(childComplexity), true 1105 1106 case "RepoInfo.Summary": 1107 if e.complexity.RepoInfo.Summary == nil { 1108 break 1109 } 1110 1111 return e.complexity.RepoInfo.Summary(childComplexity), true 1112 1113 case "RepoSummary.DownloadCount": 1114 if e.complexity.RepoSummary.DownloadCount == nil { 1115 break 1116 } 1117 1118 return e.complexity.RepoSummary.DownloadCount(childComplexity), true 1119 1120 case "RepoSummary.IsBookmarked": 1121 if e.complexity.RepoSummary.IsBookmarked == nil { 1122 break 1123 } 1124 1125 return e.complexity.RepoSummary.IsBookmarked(childComplexity), true 1126 1127 case "RepoSummary.IsStarred": 1128 if e.complexity.RepoSummary.IsStarred == nil { 1129 break 1130 } 1131 1132 return e.complexity.RepoSummary.IsStarred(childComplexity), true 1133 1134 case "RepoSummary.LastUpdated": 1135 if e.complexity.RepoSummary.LastUpdated == nil { 1136 break 1137 } 1138 1139 return e.complexity.RepoSummary.LastUpdated(childComplexity), true 1140 1141 case "RepoSummary.Name": 1142 if e.complexity.RepoSummary.Name == nil { 1143 break 1144 } 1145 1146 return e.complexity.RepoSummary.Name(childComplexity), true 1147 1148 case "RepoSummary.NewestImage": 1149 if e.complexity.RepoSummary.NewestImage == nil { 1150 break 1151 } 1152 1153 return e.complexity.RepoSummary.NewestImage(childComplexity), true 1154 1155 case "RepoSummary.Platforms": 1156 if e.complexity.RepoSummary.Platforms == nil { 1157 break 1158 } 1159 1160 return e.complexity.RepoSummary.Platforms(childComplexity), true 1161 1162 case "RepoSummary.Rank": 1163 if e.complexity.RepoSummary.Rank == nil { 1164 break 1165 } 1166 1167 return e.complexity.RepoSummary.Rank(childComplexity), true 1168 1169 case "RepoSummary.Size": 1170 if e.complexity.RepoSummary.Size == nil { 1171 break 1172 } 1173 1174 return e.complexity.RepoSummary.Size(childComplexity), true 1175 1176 case "RepoSummary.StarCount": 1177 if e.complexity.RepoSummary.StarCount == nil { 1178 break 1179 } 1180 1181 return e.complexity.RepoSummary.StarCount(childComplexity), true 1182 1183 case "RepoSummary.Vendors": 1184 if e.complexity.RepoSummary.Vendors == nil { 1185 break 1186 } 1187 1188 return e.complexity.RepoSummary.Vendors(childComplexity), true 1189 1190 case "SignatureSummary.Author": 1191 if e.complexity.SignatureSummary.Author == nil { 1192 break 1193 } 1194 1195 return e.complexity.SignatureSummary.Author(childComplexity), true 1196 1197 case "SignatureSummary.IsTrusted": 1198 if e.complexity.SignatureSummary.IsTrusted == nil { 1199 break 1200 } 1201 1202 return e.complexity.SignatureSummary.IsTrusted(childComplexity), true 1203 1204 case "SignatureSummary.Tool": 1205 if e.complexity.SignatureSummary.Tool == nil { 1206 break 1207 } 1208 1209 return e.complexity.SignatureSummary.Tool(childComplexity), true 1210 1211 } 1212 return 0, false 1213 } 1214 1215 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { 1216 rc := graphql.GetOperationContext(ctx) 1217 ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} 1218 inputUnmarshalMap := graphql.BuildUnmarshalerMap( 1219 ec.unmarshalInputFilter, 1220 ec.unmarshalInputImageInput, 1221 ec.unmarshalInputPageInput, 1222 ec.unmarshalInputPlatformInput, 1223 ) 1224 first := true 1225 1226 switch rc.Operation.Operation { 1227 case ast.Query: 1228 return func(ctx context.Context) *graphql.Response { 1229 var response graphql.Response 1230 var data graphql.Marshaler 1231 if first { 1232 first = false 1233 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) 1234 data = ec._Query(ctx, rc.Operation.SelectionSet) 1235 } else { 1236 if atomic.LoadInt32(&ec.pendingDeferred) > 0 { 1237 result := <-ec.deferredResults 1238 atomic.AddInt32(&ec.pendingDeferred, -1) 1239 data = result.Result 1240 response.Path = result.Path 1241 response.Label = result.Label 1242 response.Errors = result.Errors 1243 } else { 1244 return nil 1245 } 1246 } 1247 var buf bytes.Buffer 1248 data.MarshalGQL(&buf) 1249 response.Data = buf.Bytes() 1250 if atomic.LoadInt32(&ec.deferred) > 0 { 1251 hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 1252 response.HasNext = &hasNext 1253 } 1254 1255 return &response 1256 } 1257 1258 default: 1259 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) 1260 } 1261 } 1262 1263 type executionContext struct { 1264 *graphql.OperationContext 1265 *executableSchema 1266 deferred int32 1267 pendingDeferred int32 1268 deferredResults chan graphql.DeferredResult 1269 } 1270 1271 func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { 1272 atomic.AddInt32(&ec.pendingDeferred, 1) 1273 go func() { 1274 ctx := graphql.WithFreshResponseContext(dg.Context) 1275 dg.FieldSet.Dispatch(ctx) 1276 ds := graphql.DeferredResult{ 1277 Path: dg.Path, 1278 Label: dg.Label, 1279 Result: dg.FieldSet, 1280 Errors: graphql.GetErrors(ctx), 1281 } 1282 // null fields should bubble up 1283 if dg.FieldSet.Invalids > 0 { 1284 ds.Result = graphql.Null 1285 } 1286 ec.deferredResults <- ds 1287 }() 1288 } 1289 1290 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { 1291 if ec.DisableIntrospection { 1292 return nil, errors.New("introspection disabled") 1293 } 1294 return introspection.WrapSchema(ec.Schema()), nil 1295 } 1296 1297 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { 1298 if ec.DisableIntrospection { 1299 return nil, errors.New("introspection disabled") 1300 } 1301 return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil 1302 } 1303 1304 var sources = []*ast.Source{ 1305 {Name: "../schema.graphql", Input: `# Exclude these linters because current implementation of the clients would need an update 1306 # lint-disable fields-are-camel-cased, input-object-values-are-camel-cased 1307 # Exclude this linter as we have a different implementation for pagination 1308 # lint-disable relay-page-info-spec 1309 # Exclude this linters and fix the issues later 1310 # lint-disable type-fields-sorted-alphabetically, input-object-fields-sorted-alphabetically, enum-values-sorted-alphabetically 1311 1312 """ 1313 A timestamp 1314 """ 1315 scalar Time 1316 1317 1318 """ 1319 Contains the tag of the image and a list of CVEs 1320 """ 1321 type CVEResultForImage { 1322 """ 1323 Tag affected by the CVEs 1324 """ 1325 Tag: String 1326 """ 1327 List of CVE objects which affect this specific image:tag 1328 """ 1329 CVEList: [CVE] 1330 """ 1331 Summary of the findings for this image 1332 """ 1333 Summary: ImageVulnerabilitySummary 1334 """ 1335 The CVE pagination information, see PageInfo object for more details 1336 """ 1337 Page: PageInfo 1338 } 1339 1340 """ 1341 ImageIdentifier 1342 """ 1343 type ImageIdentifier { 1344 """ 1345 Repo name of the image 1346 """ 1347 Repo: String! 1348 """ 1349 The tag of the image 1350 """ 1351 Tag: String! 1352 """ 1353 The digest of the image 1354 """ 1355 Digest: String 1356 """ 1357 The platform of the image 1358 """ 1359 Platform: Platform 1360 } 1361 1362 """ 1363 Contains the diff results of subtracting Subtrahend's CVEs from Minuend's CVEs 1364 """ 1365 type CVEDiffResult { 1366 """ 1367 Minuend is the image from which CVE's we subtract 1368 """ 1369 Minuend: ImageIdentifier! 1370 """ 1371 Subtrahend is the image which CVE's are subtracted 1372 """ 1373 Subtrahend: ImageIdentifier! 1374 """ 1375 List of CVE objects which are present in minuend but not in subtrahend 1376 """ 1377 CVEList: [CVE] 1378 """ 1379 Summary of the findings for this image 1380 """ 1381 Summary: ImageVulnerabilitySummary 1382 """ 1383 The CVE pagination information, see PageInfo object for more details 1384 """ 1385 Page: PageInfo 1386 } 1387 1388 """ 1389 Contains various details about the CVE (Common Vulnerabilities and Exposures) 1390 and a list of PackageInfo about the affected packages 1391 """ 1392 type CVE { 1393 """ 1394 CVE ID 1395 """ 1396 Id: String 1397 """ 1398 A short title describing the CVE 1399 """ 1400 Title: String 1401 """ 1402 A detailed description of the CVE 1403 """ 1404 Description: String 1405 """ 1406 Reference for the given CVE 1407 """ 1408 Reference: String 1409 """ 1410 The impact the CVE has, one of "UNKNOWN", "LOW", "MEDIUM", "HIGH", "CRITICAL" 1411 """ 1412 Severity: String 1413 """ 1414 Information on the packages in which the CVE was found 1415 """ 1416 PackageList: [PackageInfo] 1417 } 1418 1419 """ 1420 Contains the name of the package, the current installed version and the version where the CVE was fixed 1421 """ 1422 type PackageInfo { 1423 """ 1424 Name of the package affected by a CVE 1425 """ 1426 Name: String 1427 """ 1428 Path where the vulnerable package is located 1429 """ 1430 PackagePath: String 1431 """ 1432 Current version of the package, typically affected by the CVE 1433 """ 1434 InstalledVersion: String 1435 """ 1436 Minimum version of the package in which the CVE is fixed 1437 """ 1438 FixedVersion: String 1439 } 1440 1441 """ 1442 Contains details about the repo: both general information on the repo, and the list of images 1443 """ 1444 type RepoInfo { 1445 """ 1446 List of images in the repo 1447 """ 1448 Images: [ImageSummary] 1449 """ 1450 Details about the repository itself 1451 """ 1452 Summary: RepoSummary 1453 } 1454 1455 """ 1456 Search results, can contain images, repositories and layers 1457 """ 1458 type GlobalSearchResult { 1459 """ 1460 Pagination information 1461 """ 1462 Page: PageInfo 1463 """ 1464 List of images matching the search criteria 1465 """ 1466 Images: [ImageSummary] 1467 """ 1468 List of repositories matching the search criteria 1469 """ 1470 Repos: [RepoSummary] 1471 """ 1472 List of layers matching the search criteria 1473 NOTE: the actual search logic for layers is not implemented at the moment 1474 """ 1475 Layers: [LayerSummary] 1476 } 1477 1478 """ 1479 Details about a specific image, it is used by queries returning a list of images 1480 We define an image as a pairing or a repository and a tag belonging to that repository 1481 """ 1482 type ImageSummary { 1483 """ 1484 Name of the repository where the image is found 1485 """ 1486 RepoName: String 1487 """ 1488 Tag identifying the image within the repository 1489 """ 1490 Tag: String 1491 """ 1492 The digest of the descriptor of this image 1493 """ 1494 Digest: String 1495 """ 1496 The media type of the descriptor of this image 1497 """ 1498 MediaType: String 1499 """ 1500 List of manifests for all supported versions of the image for different operating systems and architectures 1501 """ 1502 Manifests: [ManifestSummary] 1503 """ 1504 Total size of the files associated with all images (manifest, config, layers) 1505 """ 1506 Size: String 1507 """ 1508 Number of downloads of the manifest of this image 1509 """ 1510 DownloadCount: Int 1511 """ 1512 Timestamp of the last modification done to the image (from config or the last updated layer) 1513 """ 1514 LastUpdated: Time 1515 """ 1516 Human-readable description of the software packaged in the image 1517 """ 1518 Description: String 1519 """ 1520 True if the image has a signature associated with it, false otherwise 1521 """ 1522 IsSigned: Boolean 1523 """ 1524 Info about signature validity 1525 """ 1526 SignatureInfo: [SignatureSummary] 1527 """ 1528 License(s) under which contained software is distributed as an SPDX License Expression 1529 """ 1530 Licenses: String # The value of the annotation if present, 'unknown' otherwise). 1531 """ 1532 Labels associated with this image 1533 NOTE: currently this field is unused 1534 """ 1535 Labels: String 1536 """ 1537 Human-readable title of the image 1538 """ 1539 Title: String 1540 """ 1541 URL to get source code for building the image 1542 """ 1543 Source: String 1544 """ 1545 URL to get documentation on the image 1546 """ 1547 Documentation: String 1548 """ 1549 Vendor associated with this image, the distributing entity, organization or individual 1550 """ 1551 Vendor: String 1552 """ 1553 Contact details of the people or organization responsible for the image 1554 """ 1555 Authors: String 1556 """ 1557 Short summary of the identified CVEs 1558 """ 1559 Vulnerabilities: ImageVulnerabilitySummary 1560 """ 1561 Information about objects that reference this image 1562 """ 1563 Referrers: [Referrer] 1564 """ 1565 True if current user has delete permission on this tag. 1566 """ 1567 IsDeletable: Boolean 1568 } 1569 """ 1570 Details about a specific version of an image for a certain operating system and architecture. 1571 """ 1572 type ManifestSummary { 1573 """ 1574 Digest of the manifest file associated with this image 1575 """ 1576 Digest: String 1577 """ 1578 Digest of the config file associated with this image 1579 """ 1580 ConfigDigest: String 1581 """ 1582 Timestamp of the last update to an image inside this repository 1583 """ 1584 LastUpdated: Time 1585 """ 1586 Total size of the files associated with this manifest (manifest, config, layers) 1587 """ 1588 Size: String 1589 """ 1590 True if the manifest has a signature associated with it, false otherwise 1591 """ 1592 IsSigned: Boolean 1593 """ 1594 Info about signature validity 1595 """ 1596 SignatureInfo: [SignatureSummary] 1597 """ 1598 OS and architecture supported by this image 1599 """ 1600 Platform: Platform 1601 """ 1602 Total number of image manifest downloads from this repository 1603 """ 1604 DownloadCount: Int 1605 """ 1606 List of layers matching the search criteria 1607 NOTE: the actual search logic for layers is not implemented at the moment 1608 """ 1609 Layers: [LayerSummary] 1610 """ 1611 Information about the history of the specific image, see LayerHistory 1612 """ 1613 History: [LayerHistory] 1614 """ 1615 Short summary of the identified CVEs 1616 """ 1617 Vulnerabilities: ImageVulnerabilitySummary 1618 """ 1619 Information about objects that reference this image 1620 """ 1621 Referrers: [Referrer] 1622 """ 1623 Value of the artifactType field if present else the value of the config media type 1624 """ 1625 ArtifactType: String 1626 } 1627 1628 """ 1629 Contains summary of vulnerabilities found in a specific image 1630 """ 1631 type ImageVulnerabilitySummary { 1632 """ 1633 Maximum severity of all CVEs found in this image 1634 """ 1635 MaxSeverity: String 1636 """ 1637 Count of all CVEs found in this image 1638 """ 1639 Count: Int 1640 """ 1641 Coresponds to CVSS 3 score NONE 1642 """ 1643 UnknownCount: Int 1644 """ 1645 Coresponds to CVSS 3 score LOW 1646 """ 1647 LowCount: Int 1648 """ 1649 Coresponds to CVSS 3 score MEDIUM 1650 """ 1651 MediumCount: Int 1652 """ 1653 Coresponds to CVSS 3 score HIGH 1654 """ 1655 HighCount: Int 1656 """ 1657 Coresponds to CVSS 3 score CRITICAL 1658 """ 1659 CriticalCount: Int 1660 } 1661 1662 """ 1663 Details of a specific repo, it is used by queries returning a list of repos 1664 """ 1665 type RepoSummary { 1666 """ 1667 Name of the repository 1668 """ 1669 Name: String 1670 """ 1671 Timestamp of the last update to an image inside this repository 1672 """ 1673 LastUpdated: Time 1674 """ 1675 Total size of the files within this repository 1676 """ 1677 Size: String 1678 """ 1679 List of platforms supported by this repository 1680 """ 1681 Platforms: [Platform] 1682 """ 1683 Vendors associated with this image, the distributing entities, organizations or individuals 1684 """ 1685 Vendors: [String] 1686 """ 1687 Details of the newest image inside the repository 1688 NOTE: not the image with the ` + "`" + `latest` + "`" + ` tag, the one with the most recent created timestamp 1689 """ 1690 NewestImage: ImageSummary 1691 """ 1692 Total number of image manifest downloads from this repository 1693 """ 1694 DownloadCount: Int 1695 """ 1696 Number of stars attributed to this repository by users 1697 """ 1698 StarCount: Int 1699 """ 1700 True if the repository is bookmarked by the current user, false otherwise 1701 """ 1702 IsBookmarked: Boolean 1703 """ 1704 True if the repository is starred by the current user, false otherwise 1705 """ 1706 IsStarred: Boolean 1707 """ 1708 Rank represents how good the match was between the queried repo name and this repo summary. 1709 """ 1710 Rank: Int 1711 } 1712 1713 """ 1714 Contains details about a specific layer which is part of an image 1715 """ 1716 type LayerSummary { 1717 """ 1718 The size of the layer in bytes 1719 """ 1720 Size: String # Int64 is not supported. 1721 """ 1722 Digest of the layer content 1723 """ 1724 Digest: String 1725 } 1726 1727 """ 1728 Information on how a layer was created 1729 """ 1730 type HistoryDescription { 1731 """ 1732 Created is the time when the layer was created. 1733 """ 1734 Created: Time 1735 """ 1736 CreatedBy is the command which created the layer. 1737 """ 1738 CreatedBy: String 1739 """ 1740 Author is the author of the build point. 1741 """ 1742 Author: String 1743 """ 1744 Comment is a custom message set when creating the layer. 1745 """ 1746 Comment: String 1747 """ 1748 EmptyLayer is used to mark if the history item created a filesystem diff. 1749 """ 1750 EmptyLayer: Boolean 1751 } 1752 1753 """ 1754 Information about how/when a layer was built 1755 """ 1756 type LayerHistory { 1757 """ 1758 Information specific to the layer such as size and digest. 1759 """ 1760 Layer: LayerSummary 1761 """ 1762 Additional information about how the layer was created. 1763 """ 1764 HistoryDescription: HistoryDescription 1765 } 1766 1767 """ 1768 Annotation is Key:Value pair representing custom data which is otherwise 1769 not available in other fields. 1770 """ 1771 type Annotation { 1772 """ 1773 Custom key 1774 """ 1775 Key: String 1776 """ 1777 Value associated with the custom key 1778 """ 1779 Value: String 1780 } 1781 1782 """ 1783 A referrer is an object which has a reference to a another object 1784 """ 1785 type Referrer { 1786 """ 1787 Referrer MediaType 1788 See https://github.com/opencontainers/artifacts for more details 1789 """ 1790 MediaType: String 1791 """ 1792 Referrer ArtifactType 1793 See https://github.com/opencontainers/artifacts for more details 1794 """ 1795 ArtifactType: String 1796 """ 1797 Total size of the referrer files in bytes 1798 """ 1799 Size: Int 1800 """ 1801 Digest of the manifest file of the referrer 1802 """ 1803 Digest: String 1804 """ 1805 A list of annotations associated with this referrer 1806 """ 1807 Annotations: [Annotation]! 1808 } 1809 1810 """ 1811 Contains details about the OS and architecture of the image 1812 """ 1813 type Platform { 1814 """ 1815 The name of the operating system which the image is built to run on, 1816 Should be values listed in the Go Language document https://go.dev/doc/install/source#environment 1817 """ 1818 Os: String 1819 """ 1820 The name of the compilation architecture which the image is built to run on, 1821 Should be values listed in the Go Language document https://go.dev/doc/install/source#environment 1822 """ 1823 Arch: String 1824 } 1825 1826 """ 1827 Contains details about the signature 1828 """ 1829 type SignatureSummary { 1830 """ 1831 Tool is the tool used for signing image 1832 """ 1833 Tool: String 1834 """ 1835 True if the signature is trusted, false otherwise 1836 """ 1837 IsTrusted: Boolean 1838 """ 1839 Author is the author of the signature 1840 """ 1841 Author: String 1842 } 1843 1844 """ 1845 All sort criteria usable with pagination, some of these criteria applies only 1846 to certain queries. For example sort by severity is available for CVEs but not 1847 for repositories 1848 """ 1849 enum SortCriteria { 1850 """ 1851 How relevant the result is based on the user input used while searching 1852 Applies to: images and repositories 1853 """ 1854 RELEVANCE 1855 """ 1856 Sort by the most recently created timestamp of the images 1857 Applies to: images and repositories 1858 """ 1859 UPDATE_TIME 1860 """ 1861 Sort alphabetically ascending 1862 Applies to: images, repositories and CVEs 1863 """ 1864 ALPHABETIC_ASC 1865 """ 1866 Sort alphabetically descending 1867 Applies to: images, repositories and CVEs 1868 """ 1869 ALPHABETIC_DSC 1870 """ 1871 Sort from the most severe to the least severe 1872 Applies to: CVEs 1873 """ 1874 SEVERITY 1875 """ 1876 Sort by the total number of stars given by users 1877 Applies to: repositories 1878 """ 1879 STARS 1880 """ 1881 Sort by the total download count 1882 Applies to: repositories and images 1883 """ 1884 DOWNLOADS 1885 } 1886 1887 """ 1888 Information on current page returned by the API 1889 """ 1890 type PageInfo { 1891 """ 1892 The total number of objects on all pages 1893 """ 1894 TotalCount: Int! 1895 """ 1896 The number of objects in this page 1897 """ 1898 ItemCount: Int! 1899 } 1900 1901 """ 1902 Pagination parameters 1903 If PageInput is empty, the request should return all objects. 1904 """ 1905 input PageInput { 1906 """ 1907 The maximum amount of results to return for this page 1908 Negative values are not allowed 1909 """ 1910 limit: Int 1911 """ 1912 The results page number you want to receive 1913 Negative values are not allowed 1914 """ 1915 offset: Int 1916 """ 1917 The criteria used to sort the results on the page 1918 """ 1919 sortBy: SortCriteria 1920 } 1921 1922 """ 1923 PlatformInput contains the Os and the Arch of the input image 1924 """ 1925 input PlatformInput { 1926 """ 1927 The os of the image 1928 """ 1929 Os: String 1930 """ 1931 The arch of the image 1932 """ 1933 Arch: String 1934 } 1935 1936 """ 1937 ImageInput 1938 """ 1939 input ImageInput { 1940 """ 1941 Repo name of the image 1942 """ 1943 Repo: String! 1944 """ 1945 The tag of the image 1946 """ 1947 Tag: String! 1948 """ 1949 The digest of the image 1950 """ 1951 Digest: String 1952 """ 1953 The platform of the image 1954 """ 1955 Platform: PlatformInput 1956 } 1957 1958 """ 1959 Paginated list of RepoSummary objects 1960 """ 1961 type PaginatedReposResult { 1962 """ 1963 Information on the returned page 1964 """ 1965 Page: PageInfo 1966 """ 1967 List of repositories 1968 """ 1969 Results: [RepoSummary!]! 1970 } 1971 1972 """ 1973 Paginated list of ImageSummary objects 1974 """ 1975 type PaginatedImagesResult { 1976 """ 1977 Information on the returned page 1978 """ 1979 Page: PageInfo 1980 """ 1981 List of images 1982 """ 1983 Results: [ImageSummary!]! 1984 } 1985 1986 """ 1987 Apply various types of filters to the queries made for repositories and images 1988 For example we only want to display repositories which contain images with 1989 a certain OS ar Architecture. 1990 """ 1991 input Filter { 1992 """ 1993 Only return images or repositories supporting the operating systems in the list 1994 Should be values listed in the Go Language document https://go.dev/doc/install/source#environment 1995 """ 1996 Os: [String] 1997 """ 1998 Only return images or repositories supporting the build architectures in the list 1999 Should be values listed in the Go Language document https://go.dev/doc/install/source#environment 2000 """ 2001 Arch: [String] 2002 """ 2003 Only return images or repositories with at least one signature 2004 """ 2005 HasToBeSigned: Boolean 2006 """ 2007 Only returns images or repositories that are bookmarked or not bookmarked 2008 """ 2009 IsBookmarked: Boolean 2010 """ 2011 Only returns images or repositories that are starred or not starred 2012 """ 2013 IsStarred: Boolean 2014 } 2015 2016 """ 2017 Queries supported by the zot server 2018 """ 2019 type Query { 2020 """ 2021 Returns a CVE list for the image specified in the argument 2022 """ 2023 CVEListForImage( 2024 "Image name in format ` + "`" + `repository:tag` + "`" + ` or ` + "`" + `repository@digest` + "`" + `" 2025 image: String!, 2026 "Sets the parameters of the requested page" 2027 requestedPage: PageInput 2028 "Search term for specific CVE by title/id" 2029 searchedCVE: String 2030 "Search term that must not be present in the returned results" 2031 excludedCVE: String 2032 "Severity of the CVEs that should be present in the returned results" 2033 severity: String 2034 ): CVEResultForImage! 2035 2036 """ 2037 Returns a list with CVE's that are present in ` + "`" + `image` + "`" + ` but not in ` + "`" + `comparedImage` + "`" + ` 2038 """ 2039 CVEDiffListForImages( 2040 "Image name in format ` + "`" + `repository:tag` + "`" + ` or ` + "`" + `repository@digest` + "`" + `" 2041 minuend: ImageInput!, 2042 "Compared image name in format ` + "`" + `repository:tag` + "`" + ` or ` + "`" + `repository@digest` + "`" + `" 2043 subtrahend: ImageInput!, 2044 "Sets the parameters of the requested page" 2045 requestedPage: PageInput 2046 "Search term for specific CVE by title/id" 2047 searchedCVE: String 2048 "Search term that must not be present in the returned results" 2049 excludedCVE: String 2050 ): CVEDiffResult! 2051 2052 """ 2053 Returns a list of images vulnerable to the CVE of the specified ID 2054 """ 2055 ImageListForCVE( 2056 "CVE ID" 2057 id: String!, 2058 "Filter to apply before returning the results" 2059 filter: Filter, 2060 "Sets the parameters of the requested page" 2061 requestedPage: PageInput 2062 ): PaginatedImagesResult! 2063 2064 """ 2065 Returns a list of images that are no longer vulnerable to the CVE of the specified ID, 2066 from the specified repository 2067 """ 2068 ImageListWithCVEFixed( 2069 "CVE ID" 2070 id: String!, 2071 "Repository name" 2072 image: String!, 2073 "Filter to apply before returning the results" 2074 filter: Filter, 2075 "Sets the parameters of the requested page" 2076 requestedPage: PageInput 2077 ): PaginatedImagesResult! 2078 2079 """ 2080 Returns a list of images which contain the specified digest 2081 """ 2082 ImageListForDigest( 2083 "Digest to be used in searching for images" 2084 id: String!, 2085 "Sets the parameters of the requested page" 2086 requestedPage: PageInput 2087 ): PaginatedImagesResult! 2088 2089 """ 2090 Returns a list of repositories with the newest tag (most recently created timestamp) 2091 """ 2092 RepoListWithNewestImage( 2093 "Sets the parameters of the requested page" 2094 requestedPage: PageInput 2095 ): PaginatedReposResult! 2096 2097 """ 2098 Returns all the images from the specified repository | from all repositories if specified repository is "" 2099 """ 2100 ImageList( 2101 "Repository name" 2102 repo: String!, 2103 "Sets the parameters of the requested page" 2104 requestedPage: PageInput 2105 ): PaginatedImagesResult! 2106 2107 """ 2108 Obtain detailed information about a repository and container images within 2109 """ 2110 ExpandedRepoInfo( 2111 "Repository name" 2112 repo: String! 2113 ): RepoInfo! 2114 2115 """ 2116 Searches within repos, images, and layers 2117 """ 2118 GlobalSearch( 2119 """ 2120 Query string, searches for repository names by default, 2121 when containing ` + "`" + `:` + "`" + ` it searches for tags inside a repository 2122 """ 2123 query: String!, 2124 "Filter to apply on the matches" 2125 filter: Filter, 2126 "Sets the parameters of the requested page" 2127 requestedPage: PageInput 2128 ): GlobalSearchResult! 2129 2130 """ 2131 List of images which use the argument image 2132 """ 2133 DerivedImageList( 2134 "Image name in the format ` + "`" + `repository:tag` + "`" + `" 2135 image: String!, 2136 "Digest of a specific manifest inside the image. When null whole image is considered" 2137 digest: String, 2138 "Sets the parameters of the requested page" 2139 requestedPage: PageInput 2140 ): PaginatedImagesResult! 2141 2142 """ 2143 List of images on which the argument image depends on 2144 """ 2145 BaseImageList( 2146 "Image name in the format ` + "`" + `repository:tag` + "`" + `" 2147 image: String!, 2148 "Digest of a specific manifest inside the image. When null whole image is considered" 2149 digest: String, 2150 "Sets the parameters of the requested page" 2151 requestedPage: PageInput 2152 ): PaginatedImagesResult! 2153 2154 """ 2155 Search for a specific image using its name 2156 """ 2157 Image( 2158 "Image name in the format ` + "`" + `repository:tag` + "`" + `" 2159 image: String! 2160 ): ImageSummary! 2161 2162 """ 2163 Returns a list of descriptors of an image or artifact manifest that are found in a <repo> and have a subject field of <digest> 2164 Can be filtered based on a specific artifact type <type> 2165 """ 2166 Referrers( 2167 "Repository name" 2168 repo: String!, 2169 "Digest the referrers are referring to" 2170 digest: String!, 2171 "Types of artifacts to return in the referrer list" 2172 type: [String!] 2173 ): [Referrer]! 2174 2175 """ 2176 Receive RepoSummaries of repos starred by current user 2177 """ 2178 StarredRepos( 2179 "Sets the parameters of the requested page (how many to include and offset)" 2180 requestedPage: PageInput 2181 ): PaginatedReposResult! 2182 2183 """ 2184 Receive RepoSummaries of repos bookmarked by current user 2185 """ 2186 BookmarkedRepos( 2187 "Sets the parameters of the requested page (how many to include and offset)" 2188 requestedPage: PageInput 2189 ): PaginatedReposResult! 2190 } 2191 `, BuiltIn: false}, 2192 } 2193 var parsedSchema = gqlparser.MustLoadSchema(sources...) 2194 2195 // endregion ************************** generated!.gotpl ************************** 2196 2197 // region ***************************** args.gotpl ***************************** 2198 2199 func (ec *executionContext) field_Query_BaseImageList_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2200 var err error 2201 args := map[string]interface{}{} 2202 var arg0 string 2203 if tmp, ok := rawArgs["image"]; ok { 2204 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 2205 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2206 if err != nil { 2207 return nil, err 2208 } 2209 } 2210 args["image"] = arg0 2211 var arg1 *string 2212 if tmp, ok := rawArgs["digest"]; ok { 2213 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("digest")) 2214 arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2215 if err != nil { 2216 return nil, err 2217 } 2218 } 2219 args["digest"] = arg1 2220 var arg2 *PageInput 2221 if tmp, ok := rawArgs["requestedPage"]; ok { 2222 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2223 arg2, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2224 if err != nil { 2225 return nil, err 2226 } 2227 } 2228 args["requestedPage"] = arg2 2229 return args, nil 2230 } 2231 2232 func (ec *executionContext) field_Query_BookmarkedRepos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2233 var err error 2234 args := map[string]interface{}{} 2235 var arg0 *PageInput 2236 if tmp, ok := rawArgs["requestedPage"]; ok { 2237 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2238 arg0, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2239 if err != nil { 2240 return nil, err 2241 } 2242 } 2243 args["requestedPage"] = arg0 2244 return args, nil 2245 } 2246 2247 func (ec *executionContext) field_Query_CVEDiffListForImages_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2248 var err error 2249 args := map[string]interface{}{} 2250 var arg0 ImageInput 2251 if tmp, ok := rawArgs["minuend"]; ok { 2252 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("minuend")) 2253 arg0, err = ec.unmarshalNImageInput2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageInput(ctx, tmp) 2254 if err != nil { 2255 return nil, err 2256 } 2257 } 2258 args["minuend"] = arg0 2259 var arg1 ImageInput 2260 if tmp, ok := rawArgs["subtrahend"]; ok { 2261 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subtrahend")) 2262 arg1, err = ec.unmarshalNImageInput2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageInput(ctx, tmp) 2263 if err != nil { 2264 return nil, err 2265 } 2266 } 2267 args["subtrahend"] = arg1 2268 var arg2 *PageInput 2269 if tmp, ok := rawArgs["requestedPage"]; ok { 2270 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2271 arg2, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2272 if err != nil { 2273 return nil, err 2274 } 2275 } 2276 args["requestedPage"] = arg2 2277 var arg3 *string 2278 if tmp, ok := rawArgs["searchedCVE"]; ok { 2279 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("searchedCVE")) 2280 arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2281 if err != nil { 2282 return nil, err 2283 } 2284 } 2285 args["searchedCVE"] = arg3 2286 var arg4 *string 2287 if tmp, ok := rawArgs["excludedCVE"]; ok { 2288 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("excludedCVE")) 2289 arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2290 if err != nil { 2291 return nil, err 2292 } 2293 } 2294 args["excludedCVE"] = arg4 2295 return args, nil 2296 } 2297 2298 func (ec *executionContext) field_Query_CVEListForImage_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2299 var err error 2300 args := map[string]interface{}{} 2301 var arg0 string 2302 if tmp, ok := rawArgs["image"]; ok { 2303 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 2304 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2305 if err != nil { 2306 return nil, err 2307 } 2308 } 2309 args["image"] = arg0 2310 var arg1 *PageInput 2311 if tmp, ok := rawArgs["requestedPage"]; ok { 2312 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2313 arg1, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2314 if err != nil { 2315 return nil, err 2316 } 2317 } 2318 args["requestedPage"] = arg1 2319 var arg2 *string 2320 if tmp, ok := rawArgs["searchedCVE"]; ok { 2321 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("searchedCVE")) 2322 arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2323 if err != nil { 2324 return nil, err 2325 } 2326 } 2327 args["searchedCVE"] = arg2 2328 var arg3 *string 2329 if tmp, ok := rawArgs["excludedCVE"]; ok { 2330 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("excludedCVE")) 2331 arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2332 if err != nil { 2333 return nil, err 2334 } 2335 } 2336 args["excludedCVE"] = arg3 2337 var arg4 *string 2338 if tmp, ok := rawArgs["severity"]; ok { 2339 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severity")) 2340 arg4, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2341 if err != nil { 2342 return nil, err 2343 } 2344 } 2345 args["severity"] = arg4 2346 return args, nil 2347 } 2348 2349 func (ec *executionContext) field_Query_DerivedImageList_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2350 var err error 2351 args := map[string]interface{}{} 2352 var arg0 string 2353 if tmp, ok := rawArgs["image"]; ok { 2354 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 2355 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2356 if err != nil { 2357 return nil, err 2358 } 2359 } 2360 args["image"] = arg0 2361 var arg1 *string 2362 if tmp, ok := rawArgs["digest"]; ok { 2363 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("digest")) 2364 arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 2365 if err != nil { 2366 return nil, err 2367 } 2368 } 2369 args["digest"] = arg1 2370 var arg2 *PageInput 2371 if tmp, ok := rawArgs["requestedPage"]; ok { 2372 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2373 arg2, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2374 if err != nil { 2375 return nil, err 2376 } 2377 } 2378 args["requestedPage"] = arg2 2379 return args, nil 2380 } 2381 2382 func (ec *executionContext) field_Query_ExpandedRepoInfo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2383 var err error 2384 args := map[string]interface{}{} 2385 var arg0 string 2386 if tmp, ok := rawArgs["repo"]; ok { 2387 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repo")) 2388 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2389 if err != nil { 2390 return nil, err 2391 } 2392 } 2393 args["repo"] = arg0 2394 return args, nil 2395 } 2396 2397 func (ec *executionContext) field_Query_GlobalSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2398 var err error 2399 args := map[string]interface{}{} 2400 var arg0 string 2401 if tmp, ok := rawArgs["query"]; ok { 2402 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) 2403 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2404 if err != nil { 2405 return nil, err 2406 } 2407 } 2408 args["query"] = arg0 2409 var arg1 *Filter 2410 if tmp, ok := rawArgs["filter"]; ok { 2411 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) 2412 arg1, err = ec.unmarshalOFilter2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐFilter(ctx, tmp) 2413 if err != nil { 2414 return nil, err 2415 } 2416 } 2417 args["filter"] = arg1 2418 var arg2 *PageInput 2419 if tmp, ok := rawArgs["requestedPage"]; ok { 2420 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2421 arg2, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2422 if err != nil { 2423 return nil, err 2424 } 2425 } 2426 args["requestedPage"] = arg2 2427 return args, nil 2428 } 2429 2430 func (ec *executionContext) field_Query_ImageListForCVE_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2431 var err error 2432 args := map[string]interface{}{} 2433 var arg0 string 2434 if tmp, ok := rawArgs["id"]; ok { 2435 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 2436 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2437 if err != nil { 2438 return nil, err 2439 } 2440 } 2441 args["id"] = arg0 2442 var arg1 *Filter 2443 if tmp, ok := rawArgs["filter"]; ok { 2444 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) 2445 arg1, err = ec.unmarshalOFilter2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐFilter(ctx, tmp) 2446 if err != nil { 2447 return nil, err 2448 } 2449 } 2450 args["filter"] = arg1 2451 var arg2 *PageInput 2452 if tmp, ok := rawArgs["requestedPage"]; ok { 2453 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2454 arg2, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2455 if err != nil { 2456 return nil, err 2457 } 2458 } 2459 args["requestedPage"] = arg2 2460 return args, nil 2461 } 2462 2463 func (ec *executionContext) field_Query_ImageListForDigest_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2464 var err error 2465 args := map[string]interface{}{} 2466 var arg0 string 2467 if tmp, ok := rawArgs["id"]; ok { 2468 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 2469 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2470 if err != nil { 2471 return nil, err 2472 } 2473 } 2474 args["id"] = arg0 2475 var arg1 *PageInput 2476 if tmp, ok := rawArgs["requestedPage"]; ok { 2477 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2478 arg1, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2479 if err != nil { 2480 return nil, err 2481 } 2482 } 2483 args["requestedPage"] = arg1 2484 return args, nil 2485 } 2486 2487 func (ec *executionContext) field_Query_ImageListWithCVEFixed_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2488 var err error 2489 args := map[string]interface{}{} 2490 var arg0 string 2491 if tmp, ok := rawArgs["id"]; ok { 2492 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 2493 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2494 if err != nil { 2495 return nil, err 2496 } 2497 } 2498 args["id"] = arg0 2499 var arg1 string 2500 if tmp, ok := rawArgs["image"]; ok { 2501 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 2502 arg1, err = ec.unmarshalNString2string(ctx, tmp) 2503 if err != nil { 2504 return nil, err 2505 } 2506 } 2507 args["image"] = arg1 2508 var arg2 *Filter 2509 if tmp, ok := rawArgs["filter"]; ok { 2510 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) 2511 arg2, err = ec.unmarshalOFilter2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐFilter(ctx, tmp) 2512 if err != nil { 2513 return nil, err 2514 } 2515 } 2516 args["filter"] = arg2 2517 var arg3 *PageInput 2518 if tmp, ok := rawArgs["requestedPage"]; ok { 2519 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2520 arg3, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2521 if err != nil { 2522 return nil, err 2523 } 2524 } 2525 args["requestedPage"] = arg3 2526 return args, nil 2527 } 2528 2529 func (ec *executionContext) field_Query_ImageList_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2530 var err error 2531 args := map[string]interface{}{} 2532 var arg0 string 2533 if tmp, ok := rawArgs["repo"]; ok { 2534 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repo")) 2535 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2536 if err != nil { 2537 return nil, err 2538 } 2539 } 2540 args["repo"] = arg0 2541 var arg1 *PageInput 2542 if tmp, ok := rawArgs["requestedPage"]; ok { 2543 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2544 arg1, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2545 if err != nil { 2546 return nil, err 2547 } 2548 } 2549 args["requestedPage"] = arg1 2550 return args, nil 2551 } 2552 2553 func (ec *executionContext) field_Query_Image_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2554 var err error 2555 args := map[string]interface{}{} 2556 var arg0 string 2557 if tmp, ok := rawArgs["image"]; ok { 2558 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 2559 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2560 if err != nil { 2561 return nil, err 2562 } 2563 } 2564 args["image"] = arg0 2565 return args, nil 2566 } 2567 2568 func (ec *executionContext) field_Query_Referrers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2569 var err error 2570 args := map[string]interface{}{} 2571 var arg0 string 2572 if tmp, ok := rawArgs["repo"]; ok { 2573 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repo")) 2574 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2575 if err != nil { 2576 return nil, err 2577 } 2578 } 2579 args["repo"] = arg0 2580 var arg1 string 2581 if tmp, ok := rawArgs["digest"]; ok { 2582 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("digest")) 2583 arg1, err = ec.unmarshalNString2string(ctx, tmp) 2584 if err != nil { 2585 return nil, err 2586 } 2587 } 2588 args["digest"] = arg1 2589 var arg2 []string 2590 if tmp, ok := rawArgs["type"]; ok { 2591 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) 2592 arg2, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) 2593 if err != nil { 2594 return nil, err 2595 } 2596 } 2597 args["type"] = arg2 2598 return args, nil 2599 } 2600 2601 func (ec *executionContext) field_Query_RepoListWithNewestImage_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2602 var err error 2603 args := map[string]interface{}{} 2604 var arg0 *PageInput 2605 if tmp, ok := rawArgs["requestedPage"]; ok { 2606 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2607 arg0, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2608 if err != nil { 2609 return nil, err 2610 } 2611 } 2612 args["requestedPage"] = arg0 2613 return args, nil 2614 } 2615 2616 func (ec *executionContext) field_Query_StarredRepos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2617 var err error 2618 args := map[string]interface{}{} 2619 var arg0 *PageInput 2620 if tmp, ok := rawArgs["requestedPage"]; ok { 2621 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2622 arg0, err = ec.unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2623 if err != nil { 2624 return nil, err 2625 } 2626 } 2627 args["requestedPage"] = arg0 2628 return args, nil 2629 } 2630 2631 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2632 var err error 2633 args := map[string]interface{}{} 2634 var arg0 string 2635 if tmp, ok := rawArgs["name"]; ok { 2636 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 2637 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2638 if err != nil { 2639 return nil, err 2640 } 2641 } 2642 args["name"] = arg0 2643 return args, nil 2644 } 2645 2646 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2647 var err error 2648 args := map[string]interface{}{} 2649 var arg0 bool 2650 if tmp, ok := rawArgs["includeDeprecated"]; ok { 2651 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 2652 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 2653 if err != nil { 2654 return nil, err 2655 } 2656 } 2657 args["includeDeprecated"] = arg0 2658 return args, nil 2659 } 2660 2661 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2662 var err error 2663 args := map[string]interface{}{} 2664 var arg0 bool 2665 if tmp, ok := rawArgs["includeDeprecated"]; ok { 2666 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 2667 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 2668 if err != nil { 2669 return nil, err 2670 } 2671 } 2672 args["includeDeprecated"] = arg0 2673 return args, nil 2674 } 2675 2676 // endregion ***************************** args.gotpl ***************************** 2677 2678 // region ************************** directives.gotpl ************************** 2679 2680 // endregion ************************** directives.gotpl ************************** 2681 2682 // region **************************** field.gotpl ***************************** 2683 2684 func (ec *executionContext) _Annotation_Key(ctx context.Context, field graphql.CollectedField, obj *Annotation) (ret graphql.Marshaler) { 2685 fc, err := ec.fieldContext_Annotation_Key(ctx, field) 2686 if err != nil { 2687 return graphql.Null 2688 } 2689 ctx = graphql.WithFieldContext(ctx, fc) 2690 defer func() { 2691 if r := recover(); r != nil { 2692 ec.Error(ctx, ec.Recover(ctx, r)) 2693 ret = graphql.Null 2694 } 2695 }() 2696 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2697 ctx = rctx // use context from middleware stack in children 2698 return obj.Key, nil 2699 }) 2700 if err != nil { 2701 ec.Error(ctx, err) 2702 return graphql.Null 2703 } 2704 if resTmp == nil { 2705 return graphql.Null 2706 } 2707 res := resTmp.(*string) 2708 fc.Result = res 2709 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2710 } 2711 2712 func (ec *executionContext) fieldContext_Annotation_Key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2713 fc = &graphql.FieldContext{ 2714 Object: "Annotation", 2715 Field: field, 2716 IsMethod: false, 2717 IsResolver: false, 2718 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2719 return nil, errors.New("field of type String does not have child fields") 2720 }, 2721 } 2722 return fc, nil 2723 } 2724 2725 func (ec *executionContext) _Annotation_Value(ctx context.Context, field graphql.CollectedField, obj *Annotation) (ret graphql.Marshaler) { 2726 fc, err := ec.fieldContext_Annotation_Value(ctx, field) 2727 if err != nil { 2728 return graphql.Null 2729 } 2730 ctx = graphql.WithFieldContext(ctx, fc) 2731 defer func() { 2732 if r := recover(); r != nil { 2733 ec.Error(ctx, ec.Recover(ctx, r)) 2734 ret = graphql.Null 2735 } 2736 }() 2737 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2738 ctx = rctx // use context from middleware stack in children 2739 return obj.Value, nil 2740 }) 2741 if err != nil { 2742 ec.Error(ctx, err) 2743 return graphql.Null 2744 } 2745 if resTmp == nil { 2746 return graphql.Null 2747 } 2748 res := resTmp.(*string) 2749 fc.Result = res 2750 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2751 } 2752 2753 func (ec *executionContext) fieldContext_Annotation_Value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2754 fc = &graphql.FieldContext{ 2755 Object: "Annotation", 2756 Field: field, 2757 IsMethod: false, 2758 IsResolver: false, 2759 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2760 return nil, errors.New("field of type String does not have child fields") 2761 }, 2762 } 2763 return fc, nil 2764 } 2765 2766 func (ec *executionContext) _CVE_Id(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2767 fc, err := ec.fieldContext_CVE_Id(ctx, field) 2768 if err != nil { 2769 return graphql.Null 2770 } 2771 ctx = graphql.WithFieldContext(ctx, fc) 2772 defer func() { 2773 if r := recover(); r != nil { 2774 ec.Error(ctx, ec.Recover(ctx, r)) 2775 ret = graphql.Null 2776 } 2777 }() 2778 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2779 ctx = rctx // use context from middleware stack in children 2780 return obj.ID, nil 2781 }) 2782 if err != nil { 2783 ec.Error(ctx, err) 2784 return graphql.Null 2785 } 2786 if resTmp == nil { 2787 return graphql.Null 2788 } 2789 res := resTmp.(*string) 2790 fc.Result = res 2791 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2792 } 2793 2794 func (ec *executionContext) fieldContext_CVE_Id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2795 fc = &graphql.FieldContext{ 2796 Object: "CVE", 2797 Field: field, 2798 IsMethod: false, 2799 IsResolver: false, 2800 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2801 return nil, errors.New("field of type String does not have child fields") 2802 }, 2803 } 2804 return fc, nil 2805 } 2806 2807 func (ec *executionContext) _CVE_Title(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2808 fc, err := ec.fieldContext_CVE_Title(ctx, field) 2809 if err != nil { 2810 return graphql.Null 2811 } 2812 ctx = graphql.WithFieldContext(ctx, fc) 2813 defer func() { 2814 if r := recover(); r != nil { 2815 ec.Error(ctx, ec.Recover(ctx, r)) 2816 ret = graphql.Null 2817 } 2818 }() 2819 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2820 ctx = rctx // use context from middleware stack in children 2821 return obj.Title, nil 2822 }) 2823 if err != nil { 2824 ec.Error(ctx, err) 2825 return graphql.Null 2826 } 2827 if resTmp == nil { 2828 return graphql.Null 2829 } 2830 res := resTmp.(*string) 2831 fc.Result = res 2832 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2833 } 2834 2835 func (ec *executionContext) fieldContext_CVE_Title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2836 fc = &graphql.FieldContext{ 2837 Object: "CVE", 2838 Field: field, 2839 IsMethod: false, 2840 IsResolver: false, 2841 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2842 return nil, errors.New("field of type String does not have child fields") 2843 }, 2844 } 2845 return fc, nil 2846 } 2847 2848 func (ec *executionContext) _CVE_Description(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2849 fc, err := ec.fieldContext_CVE_Description(ctx, field) 2850 if err != nil { 2851 return graphql.Null 2852 } 2853 ctx = graphql.WithFieldContext(ctx, fc) 2854 defer func() { 2855 if r := recover(); r != nil { 2856 ec.Error(ctx, ec.Recover(ctx, r)) 2857 ret = graphql.Null 2858 } 2859 }() 2860 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2861 ctx = rctx // use context from middleware stack in children 2862 return obj.Description, nil 2863 }) 2864 if err != nil { 2865 ec.Error(ctx, err) 2866 return graphql.Null 2867 } 2868 if resTmp == nil { 2869 return graphql.Null 2870 } 2871 res := resTmp.(*string) 2872 fc.Result = res 2873 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2874 } 2875 2876 func (ec *executionContext) fieldContext_CVE_Description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2877 fc = &graphql.FieldContext{ 2878 Object: "CVE", 2879 Field: field, 2880 IsMethod: false, 2881 IsResolver: false, 2882 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2883 return nil, errors.New("field of type String does not have child fields") 2884 }, 2885 } 2886 return fc, nil 2887 } 2888 2889 func (ec *executionContext) _CVE_Reference(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2890 fc, err := ec.fieldContext_CVE_Reference(ctx, field) 2891 if err != nil { 2892 return graphql.Null 2893 } 2894 ctx = graphql.WithFieldContext(ctx, fc) 2895 defer func() { 2896 if r := recover(); r != nil { 2897 ec.Error(ctx, ec.Recover(ctx, r)) 2898 ret = graphql.Null 2899 } 2900 }() 2901 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2902 ctx = rctx // use context from middleware stack in children 2903 return obj.Reference, nil 2904 }) 2905 if err != nil { 2906 ec.Error(ctx, err) 2907 return graphql.Null 2908 } 2909 if resTmp == nil { 2910 return graphql.Null 2911 } 2912 res := resTmp.(*string) 2913 fc.Result = res 2914 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2915 } 2916 2917 func (ec *executionContext) fieldContext_CVE_Reference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2918 fc = &graphql.FieldContext{ 2919 Object: "CVE", 2920 Field: field, 2921 IsMethod: false, 2922 IsResolver: false, 2923 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2924 return nil, errors.New("field of type String does not have child fields") 2925 }, 2926 } 2927 return fc, nil 2928 } 2929 2930 func (ec *executionContext) _CVE_Severity(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2931 fc, err := ec.fieldContext_CVE_Severity(ctx, field) 2932 if err != nil { 2933 return graphql.Null 2934 } 2935 ctx = graphql.WithFieldContext(ctx, fc) 2936 defer func() { 2937 if r := recover(); r != nil { 2938 ec.Error(ctx, ec.Recover(ctx, r)) 2939 ret = graphql.Null 2940 } 2941 }() 2942 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2943 ctx = rctx // use context from middleware stack in children 2944 return obj.Severity, nil 2945 }) 2946 if err != nil { 2947 ec.Error(ctx, err) 2948 return graphql.Null 2949 } 2950 if resTmp == nil { 2951 return graphql.Null 2952 } 2953 res := resTmp.(*string) 2954 fc.Result = res 2955 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2956 } 2957 2958 func (ec *executionContext) fieldContext_CVE_Severity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2959 fc = &graphql.FieldContext{ 2960 Object: "CVE", 2961 Field: field, 2962 IsMethod: false, 2963 IsResolver: false, 2964 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2965 return nil, errors.New("field of type String does not have child fields") 2966 }, 2967 } 2968 return fc, nil 2969 } 2970 2971 func (ec *executionContext) _CVE_PackageList(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2972 fc, err := ec.fieldContext_CVE_PackageList(ctx, field) 2973 if err != nil { 2974 return graphql.Null 2975 } 2976 ctx = graphql.WithFieldContext(ctx, fc) 2977 defer func() { 2978 if r := recover(); r != nil { 2979 ec.Error(ctx, ec.Recover(ctx, r)) 2980 ret = graphql.Null 2981 } 2982 }() 2983 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2984 ctx = rctx // use context from middleware stack in children 2985 return obj.PackageList, nil 2986 }) 2987 if err != nil { 2988 ec.Error(ctx, err) 2989 return graphql.Null 2990 } 2991 if resTmp == nil { 2992 return graphql.Null 2993 } 2994 res := resTmp.([]*PackageInfo) 2995 fc.Result = res 2996 return ec.marshalOPackageInfo2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPackageInfo(ctx, field.Selections, res) 2997 } 2998 2999 func (ec *executionContext) fieldContext_CVE_PackageList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3000 fc = &graphql.FieldContext{ 3001 Object: "CVE", 3002 Field: field, 3003 IsMethod: false, 3004 IsResolver: false, 3005 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3006 switch field.Name { 3007 case "Name": 3008 return ec.fieldContext_PackageInfo_Name(ctx, field) 3009 case "PackagePath": 3010 return ec.fieldContext_PackageInfo_PackagePath(ctx, field) 3011 case "InstalledVersion": 3012 return ec.fieldContext_PackageInfo_InstalledVersion(ctx, field) 3013 case "FixedVersion": 3014 return ec.fieldContext_PackageInfo_FixedVersion(ctx, field) 3015 } 3016 return nil, fmt.Errorf("no field named %q was found under type PackageInfo", field.Name) 3017 }, 3018 } 3019 return fc, nil 3020 } 3021 3022 func (ec *executionContext) _CVEDiffResult_Minuend(ctx context.Context, field graphql.CollectedField, obj *CVEDiffResult) (ret graphql.Marshaler) { 3023 fc, err := ec.fieldContext_CVEDiffResult_Minuend(ctx, field) 3024 if err != nil { 3025 return graphql.Null 3026 } 3027 ctx = graphql.WithFieldContext(ctx, fc) 3028 defer func() { 3029 if r := recover(); r != nil { 3030 ec.Error(ctx, ec.Recover(ctx, r)) 3031 ret = graphql.Null 3032 } 3033 }() 3034 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3035 ctx = rctx // use context from middleware stack in children 3036 return obj.Minuend, nil 3037 }) 3038 if err != nil { 3039 ec.Error(ctx, err) 3040 return graphql.Null 3041 } 3042 if resTmp == nil { 3043 if !graphql.HasFieldError(ctx, fc) { 3044 ec.Errorf(ctx, "must not be null") 3045 } 3046 return graphql.Null 3047 } 3048 res := resTmp.(*ImageIdentifier) 3049 fc.Result = res 3050 return ec.marshalNImageIdentifier2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageIdentifier(ctx, field.Selections, res) 3051 } 3052 3053 func (ec *executionContext) fieldContext_CVEDiffResult_Minuend(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3054 fc = &graphql.FieldContext{ 3055 Object: "CVEDiffResult", 3056 Field: field, 3057 IsMethod: false, 3058 IsResolver: false, 3059 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3060 switch field.Name { 3061 case "Repo": 3062 return ec.fieldContext_ImageIdentifier_Repo(ctx, field) 3063 case "Tag": 3064 return ec.fieldContext_ImageIdentifier_Tag(ctx, field) 3065 case "Digest": 3066 return ec.fieldContext_ImageIdentifier_Digest(ctx, field) 3067 case "Platform": 3068 return ec.fieldContext_ImageIdentifier_Platform(ctx, field) 3069 } 3070 return nil, fmt.Errorf("no field named %q was found under type ImageIdentifier", field.Name) 3071 }, 3072 } 3073 return fc, nil 3074 } 3075 3076 func (ec *executionContext) _CVEDiffResult_Subtrahend(ctx context.Context, field graphql.CollectedField, obj *CVEDiffResult) (ret graphql.Marshaler) { 3077 fc, err := ec.fieldContext_CVEDiffResult_Subtrahend(ctx, field) 3078 if err != nil { 3079 return graphql.Null 3080 } 3081 ctx = graphql.WithFieldContext(ctx, fc) 3082 defer func() { 3083 if r := recover(); r != nil { 3084 ec.Error(ctx, ec.Recover(ctx, r)) 3085 ret = graphql.Null 3086 } 3087 }() 3088 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3089 ctx = rctx // use context from middleware stack in children 3090 return obj.Subtrahend, nil 3091 }) 3092 if err != nil { 3093 ec.Error(ctx, err) 3094 return graphql.Null 3095 } 3096 if resTmp == nil { 3097 if !graphql.HasFieldError(ctx, fc) { 3098 ec.Errorf(ctx, "must not be null") 3099 } 3100 return graphql.Null 3101 } 3102 res := resTmp.(*ImageIdentifier) 3103 fc.Result = res 3104 return ec.marshalNImageIdentifier2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageIdentifier(ctx, field.Selections, res) 3105 } 3106 3107 func (ec *executionContext) fieldContext_CVEDiffResult_Subtrahend(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3108 fc = &graphql.FieldContext{ 3109 Object: "CVEDiffResult", 3110 Field: field, 3111 IsMethod: false, 3112 IsResolver: false, 3113 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3114 switch field.Name { 3115 case "Repo": 3116 return ec.fieldContext_ImageIdentifier_Repo(ctx, field) 3117 case "Tag": 3118 return ec.fieldContext_ImageIdentifier_Tag(ctx, field) 3119 case "Digest": 3120 return ec.fieldContext_ImageIdentifier_Digest(ctx, field) 3121 case "Platform": 3122 return ec.fieldContext_ImageIdentifier_Platform(ctx, field) 3123 } 3124 return nil, fmt.Errorf("no field named %q was found under type ImageIdentifier", field.Name) 3125 }, 3126 } 3127 return fc, nil 3128 } 3129 3130 func (ec *executionContext) _CVEDiffResult_CVEList(ctx context.Context, field graphql.CollectedField, obj *CVEDiffResult) (ret graphql.Marshaler) { 3131 fc, err := ec.fieldContext_CVEDiffResult_CVEList(ctx, field) 3132 if err != nil { 3133 return graphql.Null 3134 } 3135 ctx = graphql.WithFieldContext(ctx, fc) 3136 defer func() { 3137 if r := recover(); r != nil { 3138 ec.Error(ctx, ec.Recover(ctx, r)) 3139 ret = graphql.Null 3140 } 3141 }() 3142 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3143 ctx = rctx // use context from middleware stack in children 3144 return obj.CVEList, nil 3145 }) 3146 if err != nil { 3147 ec.Error(ctx, err) 3148 return graphql.Null 3149 } 3150 if resTmp == nil { 3151 return graphql.Null 3152 } 3153 res := resTmp.([]*Cve) 3154 fc.Result = res 3155 return ec.marshalOCVE2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCve(ctx, field.Selections, res) 3156 } 3157 3158 func (ec *executionContext) fieldContext_CVEDiffResult_CVEList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3159 fc = &graphql.FieldContext{ 3160 Object: "CVEDiffResult", 3161 Field: field, 3162 IsMethod: false, 3163 IsResolver: false, 3164 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3165 switch field.Name { 3166 case "Id": 3167 return ec.fieldContext_CVE_Id(ctx, field) 3168 case "Title": 3169 return ec.fieldContext_CVE_Title(ctx, field) 3170 case "Description": 3171 return ec.fieldContext_CVE_Description(ctx, field) 3172 case "Reference": 3173 return ec.fieldContext_CVE_Reference(ctx, field) 3174 case "Severity": 3175 return ec.fieldContext_CVE_Severity(ctx, field) 3176 case "PackageList": 3177 return ec.fieldContext_CVE_PackageList(ctx, field) 3178 } 3179 return nil, fmt.Errorf("no field named %q was found under type CVE", field.Name) 3180 }, 3181 } 3182 return fc, nil 3183 } 3184 3185 func (ec *executionContext) _CVEDiffResult_Summary(ctx context.Context, field graphql.CollectedField, obj *CVEDiffResult) (ret graphql.Marshaler) { 3186 fc, err := ec.fieldContext_CVEDiffResult_Summary(ctx, field) 3187 if err != nil { 3188 return graphql.Null 3189 } 3190 ctx = graphql.WithFieldContext(ctx, fc) 3191 defer func() { 3192 if r := recover(); r != nil { 3193 ec.Error(ctx, ec.Recover(ctx, r)) 3194 ret = graphql.Null 3195 } 3196 }() 3197 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3198 ctx = rctx // use context from middleware stack in children 3199 return obj.Summary, nil 3200 }) 3201 if err != nil { 3202 ec.Error(ctx, err) 3203 return graphql.Null 3204 } 3205 if resTmp == nil { 3206 return graphql.Null 3207 } 3208 res := resTmp.(*ImageVulnerabilitySummary) 3209 fc.Result = res 3210 return ec.marshalOImageVulnerabilitySummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageVulnerabilitySummary(ctx, field.Selections, res) 3211 } 3212 3213 func (ec *executionContext) fieldContext_CVEDiffResult_Summary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3214 fc = &graphql.FieldContext{ 3215 Object: "CVEDiffResult", 3216 Field: field, 3217 IsMethod: false, 3218 IsResolver: false, 3219 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3220 switch field.Name { 3221 case "MaxSeverity": 3222 return ec.fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx, field) 3223 case "Count": 3224 return ec.fieldContext_ImageVulnerabilitySummary_Count(ctx, field) 3225 case "UnknownCount": 3226 return ec.fieldContext_ImageVulnerabilitySummary_UnknownCount(ctx, field) 3227 case "LowCount": 3228 return ec.fieldContext_ImageVulnerabilitySummary_LowCount(ctx, field) 3229 case "MediumCount": 3230 return ec.fieldContext_ImageVulnerabilitySummary_MediumCount(ctx, field) 3231 case "HighCount": 3232 return ec.fieldContext_ImageVulnerabilitySummary_HighCount(ctx, field) 3233 case "CriticalCount": 3234 return ec.fieldContext_ImageVulnerabilitySummary_CriticalCount(ctx, field) 3235 } 3236 return nil, fmt.Errorf("no field named %q was found under type ImageVulnerabilitySummary", field.Name) 3237 }, 3238 } 3239 return fc, nil 3240 } 3241 3242 func (ec *executionContext) _CVEDiffResult_Page(ctx context.Context, field graphql.CollectedField, obj *CVEDiffResult) (ret graphql.Marshaler) { 3243 fc, err := ec.fieldContext_CVEDiffResult_Page(ctx, field) 3244 if err != nil { 3245 return graphql.Null 3246 } 3247 ctx = graphql.WithFieldContext(ctx, fc) 3248 defer func() { 3249 if r := recover(); r != nil { 3250 ec.Error(ctx, ec.Recover(ctx, r)) 3251 ret = graphql.Null 3252 } 3253 }() 3254 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3255 ctx = rctx // use context from middleware stack in children 3256 return obj.Page, nil 3257 }) 3258 if err != nil { 3259 ec.Error(ctx, err) 3260 return graphql.Null 3261 } 3262 if resTmp == nil { 3263 return graphql.Null 3264 } 3265 res := resTmp.(*PageInfo) 3266 fc.Result = res 3267 return ec.marshalOPageInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx, field.Selections, res) 3268 } 3269 3270 func (ec *executionContext) fieldContext_CVEDiffResult_Page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3271 fc = &graphql.FieldContext{ 3272 Object: "CVEDiffResult", 3273 Field: field, 3274 IsMethod: false, 3275 IsResolver: false, 3276 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3277 switch field.Name { 3278 case "TotalCount": 3279 return ec.fieldContext_PageInfo_TotalCount(ctx, field) 3280 case "ItemCount": 3281 return ec.fieldContext_PageInfo_ItemCount(ctx, field) 3282 } 3283 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) 3284 }, 3285 } 3286 return fc, nil 3287 } 3288 3289 func (ec *executionContext) _CVEResultForImage_Tag(ctx context.Context, field graphql.CollectedField, obj *CVEResultForImage) (ret graphql.Marshaler) { 3290 fc, err := ec.fieldContext_CVEResultForImage_Tag(ctx, field) 3291 if err != nil { 3292 return graphql.Null 3293 } 3294 ctx = graphql.WithFieldContext(ctx, fc) 3295 defer func() { 3296 if r := recover(); r != nil { 3297 ec.Error(ctx, ec.Recover(ctx, r)) 3298 ret = graphql.Null 3299 } 3300 }() 3301 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3302 ctx = rctx // use context from middleware stack in children 3303 return obj.Tag, nil 3304 }) 3305 if err != nil { 3306 ec.Error(ctx, err) 3307 return graphql.Null 3308 } 3309 if resTmp == nil { 3310 return graphql.Null 3311 } 3312 res := resTmp.(*string) 3313 fc.Result = res 3314 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3315 } 3316 3317 func (ec *executionContext) fieldContext_CVEResultForImage_Tag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3318 fc = &graphql.FieldContext{ 3319 Object: "CVEResultForImage", 3320 Field: field, 3321 IsMethod: false, 3322 IsResolver: false, 3323 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3324 return nil, errors.New("field of type String does not have child fields") 3325 }, 3326 } 3327 return fc, nil 3328 } 3329 3330 func (ec *executionContext) _CVEResultForImage_CVEList(ctx context.Context, field graphql.CollectedField, obj *CVEResultForImage) (ret graphql.Marshaler) { 3331 fc, err := ec.fieldContext_CVEResultForImage_CVEList(ctx, field) 3332 if err != nil { 3333 return graphql.Null 3334 } 3335 ctx = graphql.WithFieldContext(ctx, fc) 3336 defer func() { 3337 if r := recover(); r != nil { 3338 ec.Error(ctx, ec.Recover(ctx, r)) 3339 ret = graphql.Null 3340 } 3341 }() 3342 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3343 ctx = rctx // use context from middleware stack in children 3344 return obj.CVEList, nil 3345 }) 3346 if err != nil { 3347 ec.Error(ctx, err) 3348 return graphql.Null 3349 } 3350 if resTmp == nil { 3351 return graphql.Null 3352 } 3353 res := resTmp.([]*Cve) 3354 fc.Result = res 3355 return ec.marshalOCVE2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCve(ctx, field.Selections, res) 3356 } 3357 3358 func (ec *executionContext) fieldContext_CVEResultForImage_CVEList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3359 fc = &graphql.FieldContext{ 3360 Object: "CVEResultForImage", 3361 Field: field, 3362 IsMethod: false, 3363 IsResolver: false, 3364 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3365 switch field.Name { 3366 case "Id": 3367 return ec.fieldContext_CVE_Id(ctx, field) 3368 case "Title": 3369 return ec.fieldContext_CVE_Title(ctx, field) 3370 case "Description": 3371 return ec.fieldContext_CVE_Description(ctx, field) 3372 case "Reference": 3373 return ec.fieldContext_CVE_Reference(ctx, field) 3374 case "Severity": 3375 return ec.fieldContext_CVE_Severity(ctx, field) 3376 case "PackageList": 3377 return ec.fieldContext_CVE_PackageList(ctx, field) 3378 } 3379 return nil, fmt.Errorf("no field named %q was found under type CVE", field.Name) 3380 }, 3381 } 3382 return fc, nil 3383 } 3384 3385 func (ec *executionContext) _CVEResultForImage_Summary(ctx context.Context, field graphql.CollectedField, obj *CVEResultForImage) (ret graphql.Marshaler) { 3386 fc, err := ec.fieldContext_CVEResultForImage_Summary(ctx, field) 3387 if err != nil { 3388 return graphql.Null 3389 } 3390 ctx = graphql.WithFieldContext(ctx, fc) 3391 defer func() { 3392 if r := recover(); r != nil { 3393 ec.Error(ctx, ec.Recover(ctx, r)) 3394 ret = graphql.Null 3395 } 3396 }() 3397 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3398 ctx = rctx // use context from middleware stack in children 3399 return obj.Summary, nil 3400 }) 3401 if err != nil { 3402 ec.Error(ctx, err) 3403 return graphql.Null 3404 } 3405 if resTmp == nil { 3406 return graphql.Null 3407 } 3408 res := resTmp.(*ImageVulnerabilitySummary) 3409 fc.Result = res 3410 return ec.marshalOImageVulnerabilitySummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageVulnerabilitySummary(ctx, field.Selections, res) 3411 } 3412 3413 func (ec *executionContext) fieldContext_CVEResultForImage_Summary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3414 fc = &graphql.FieldContext{ 3415 Object: "CVEResultForImage", 3416 Field: field, 3417 IsMethod: false, 3418 IsResolver: false, 3419 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3420 switch field.Name { 3421 case "MaxSeverity": 3422 return ec.fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx, field) 3423 case "Count": 3424 return ec.fieldContext_ImageVulnerabilitySummary_Count(ctx, field) 3425 case "UnknownCount": 3426 return ec.fieldContext_ImageVulnerabilitySummary_UnknownCount(ctx, field) 3427 case "LowCount": 3428 return ec.fieldContext_ImageVulnerabilitySummary_LowCount(ctx, field) 3429 case "MediumCount": 3430 return ec.fieldContext_ImageVulnerabilitySummary_MediumCount(ctx, field) 3431 case "HighCount": 3432 return ec.fieldContext_ImageVulnerabilitySummary_HighCount(ctx, field) 3433 case "CriticalCount": 3434 return ec.fieldContext_ImageVulnerabilitySummary_CriticalCount(ctx, field) 3435 } 3436 return nil, fmt.Errorf("no field named %q was found under type ImageVulnerabilitySummary", field.Name) 3437 }, 3438 } 3439 return fc, nil 3440 } 3441 3442 func (ec *executionContext) _CVEResultForImage_Page(ctx context.Context, field graphql.CollectedField, obj *CVEResultForImage) (ret graphql.Marshaler) { 3443 fc, err := ec.fieldContext_CVEResultForImage_Page(ctx, field) 3444 if err != nil { 3445 return graphql.Null 3446 } 3447 ctx = graphql.WithFieldContext(ctx, fc) 3448 defer func() { 3449 if r := recover(); r != nil { 3450 ec.Error(ctx, ec.Recover(ctx, r)) 3451 ret = graphql.Null 3452 } 3453 }() 3454 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3455 ctx = rctx // use context from middleware stack in children 3456 return obj.Page, nil 3457 }) 3458 if err != nil { 3459 ec.Error(ctx, err) 3460 return graphql.Null 3461 } 3462 if resTmp == nil { 3463 return graphql.Null 3464 } 3465 res := resTmp.(*PageInfo) 3466 fc.Result = res 3467 return ec.marshalOPageInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx, field.Selections, res) 3468 } 3469 3470 func (ec *executionContext) fieldContext_CVEResultForImage_Page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3471 fc = &graphql.FieldContext{ 3472 Object: "CVEResultForImage", 3473 Field: field, 3474 IsMethod: false, 3475 IsResolver: false, 3476 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3477 switch field.Name { 3478 case "TotalCount": 3479 return ec.fieldContext_PageInfo_TotalCount(ctx, field) 3480 case "ItemCount": 3481 return ec.fieldContext_PageInfo_ItemCount(ctx, field) 3482 } 3483 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) 3484 }, 3485 } 3486 return fc, nil 3487 } 3488 3489 func (ec *executionContext) _GlobalSearchResult_Page(ctx context.Context, field graphql.CollectedField, obj *GlobalSearchResult) (ret graphql.Marshaler) { 3490 fc, err := ec.fieldContext_GlobalSearchResult_Page(ctx, field) 3491 if err != nil { 3492 return graphql.Null 3493 } 3494 ctx = graphql.WithFieldContext(ctx, fc) 3495 defer func() { 3496 if r := recover(); r != nil { 3497 ec.Error(ctx, ec.Recover(ctx, r)) 3498 ret = graphql.Null 3499 } 3500 }() 3501 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3502 ctx = rctx // use context from middleware stack in children 3503 return obj.Page, nil 3504 }) 3505 if err != nil { 3506 ec.Error(ctx, err) 3507 return graphql.Null 3508 } 3509 if resTmp == nil { 3510 return graphql.Null 3511 } 3512 res := resTmp.(*PageInfo) 3513 fc.Result = res 3514 return ec.marshalOPageInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx, field.Selections, res) 3515 } 3516 3517 func (ec *executionContext) fieldContext_GlobalSearchResult_Page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3518 fc = &graphql.FieldContext{ 3519 Object: "GlobalSearchResult", 3520 Field: field, 3521 IsMethod: false, 3522 IsResolver: false, 3523 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3524 switch field.Name { 3525 case "TotalCount": 3526 return ec.fieldContext_PageInfo_TotalCount(ctx, field) 3527 case "ItemCount": 3528 return ec.fieldContext_PageInfo_ItemCount(ctx, field) 3529 } 3530 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) 3531 }, 3532 } 3533 return fc, nil 3534 } 3535 3536 func (ec *executionContext) _GlobalSearchResult_Images(ctx context.Context, field graphql.CollectedField, obj *GlobalSearchResult) (ret graphql.Marshaler) { 3537 fc, err := ec.fieldContext_GlobalSearchResult_Images(ctx, field) 3538 if err != nil { 3539 return graphql.Null 3540 } 3541 ctx = graphql.WithFieldContext(ctx, fc) 3542 defer func() { 3543 if r := recover(); r != nil { 3544 ec.Error(ctx, ec.Recover(ctx, r)) 3545 ret = graphql.Null 3546 } 3547 }() 3548 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3549 ctx = rctx // use context from middleware stack in children 3550 return obj.Images, nil 3551 }) 3552 if err != nil { 3553 ec.Error(ctx, err) 3554 return graphql.Null 3555 } 3556 if resTmp == nil { 3557 return graphql.Null 3558 } 3559 res := resTmp.([]*ImageSummary) 3560 fc.Result = res 3561 return ec.marshalOImageSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, field.Selections, res) 3562 } 3563 3564 func (ec *executionContext) fieldContext_GlobalSearchResult_Images(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3565 fc = &graphql.FieldContext{ 3566 Object: "GlobalSearchResult", 3567 Field: field, 3568 IsMethod: false, 3569 IsResolver: false, 3570 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3571 switch field.Name { 3572 case "RepoName": 3573 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 3574 case "Tag": 3575 return ec.fieldContext_ImageSummary_Tag(ctx, field) 3576 case "Digest": 3577 return ec.fieldContext_ImageSummary_Digest(ctx, field) 3578 case "MediaType": 3579 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 3580 case "Manifests": 3581 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 3582 case "Size": 3583 return ec.fieldContext_ImageSummary_Size(ctx, field) 3584 case "DownloadCount": 3585 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 3586 case "LastUpdated": 3587 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 3588 case "Description": 3589 return ec.fieldContext_ImageSummary_Description(ctx, field) 3590 case "IsSigned": 3591 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 3592 case "SignatureInfo": 3593 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 3594 case "Licenses": 3595 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 3596 case "Labels": 3597 return ec.fieldContext_ImageSummary_Labels(ctx, field) 3598 case "Title": 3599 return ec.fieldContext_ImageSummary_Title(ctx, field) 3600 case "Source": 3601 return ec.fieldContext_ImageSummary_Source(ctx, field) 3602 case "Documentation": 3603 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 3604 case "Vendor": 3605 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 3606 case "Authors": 3607 return ec.fieldContext_ImageSummary_Authors(ctx, field) 3608 case "Vulnerabilities": 3609 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 3610 case "Referrers": 3611 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 3612 case "IsDeletable": 3613 return ec.fieldContext_ImageSummary_IsDeletable(ctx, field) 3614 } 3615 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 3616 }, 3617 } 3618 return fc, nil 3619 } 3620 3621 func (ec *executionContext) _GlobalSearchResult_Repos(ctx context.Context, field graphql.CollectedField, obj *GlobalSearchResult) (ret graphql.Marshaler) { 3622 fc, err := ec.fieldContext_GlobalSearchResult_Repos(ctx, field) 3623 if err != nil { 3624 return graphql.Null 3625 } 3626 ctx = graphql.WithFieldContext(ctx, fc) 3627 defer func() { 3628 if r := recover(); r != nil { 3629 ec.Error(ctx, ec.Recover(ctx, r)) 3630 ret = graphql.Null 3631 } 3632 }() 3633 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3634 ctx = rctx // use context from middleware stack in children 3635 return obj.Repos, nil 3636 }) 3637 if err != nil { 3638 ec.Error(ctx, err) 3639 return graphql.Null 3640 } 3641 if resTmp == nil { 3642 return graphql.Null 3643 } 3644 res := resTmp.([]*RepoSummary) 3645 fc.Result = res 3646 return ec.marshalORepoSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx, field.Selections, res) 3647 } 3648 3649 func (ec *executionContext) fieldContext_GlobalSearchResult_Repos(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3650 fc = &graphql.FieldContext{ 3651 Object: "GlobalSearchResult", 3652 Field: field, 3653 IsMethod: false, 3654 IsResolver: false, 3655 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3656 switch field.Name { 3657 case "Name": 3658 return ec.fieldContext_RepoSummary_Name(ctx, field) 3659 case "LastUpdated": 3660 return ec.fieldContext_RepoSummary_LastUpdated(ctx, field) 3661 case "Size": 3662 return ec.fieldContext_RepoSummary_Size(ctx, field) 3663 case "Platforms": 3664 return ec.fieldContext_RepoSummary_Platforms(ctx, field) 3665 case "Vendors": 3666 return ec.fieldContext_RepoSummary_Vendors(ctx, field) 3667 case "NewestImage": 3668 return ec.fieldContext_RepoSummary_NewestImage(ctx, field) 3669 case "DownloadCount": 3670 return ec.fieldContext_RepoSummary_DownloadCount(ctx, field) 3671 case "StarCount": 3672 return ec.fieldContext_RepoSummary_StarCount(ctx, field) 3673 case "IsBookmarked": 3674 return ec.fieldContext_RepoSummary_IsBookmarked(ctx, field) 3675 case "IsStarred": 3676 return ec.fieldContext_RepoSummary_IsStarred(ctx, field) 3677 case "Rank": 3678 return ec.fieldContext_RepoSummary_Rank(ctx, field) 3679 } 3680 return nil, fmt.Errorf("no field named %q was found under type RepoSummary", field.Name) 3681 }, 3682 } 3683 return fc, nil 3684 } 3685 3686 func (ec *executionContext) _GlobalSearchResult_Layers(ctx context.Context, field graphql.CollectedField, obj *GlobalSearchResult) (ret graphql.Marshaler) { 3687 fc, err := ec.fieldContext_GlobalSearchResult_Layers(ctx, field) 3688 if err != nil { 3689 return graphql.Null 3690 } 3691 ctx = graphql.WithFieldContext(ctx, fc) 3692 defer func() { 3693 if r := recover(); r != nil { 3694 ec.Error(ctx, ec.Recover(ctx, r)) 3695 ret = graphql.Null 3696 } 3697 }() 3698 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3699 ctx = rctx // use context from middleware stack in children 3700 return obj.Layers, nil 3701 }) 3702 if err != nil { 3703 ec.Error(ctx, err) 3704 return graphql.Null 3705 } 3706 if resTmp == nil { 3707 return graphql.Null 3708 } 3709 res := resTmp.([]*LayerSummary) 3710 fc.Result = res 3711 return ec.marshalOLayerSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx, field.Selections, res) 3712 } 3713 3714 func (ec *executionContext) fieldContext_GlobalSearchResult_Layers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3715 fc = &graphql.FieldContext{ 3716 Object: "GlobalSearchResult", 3717 Field: field, 3718 IsMethod: false, 3719 IsResolver: false, 3720 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3721 switch field.Name { 3722 case "Size": 3723 return ec.fieldContext_LayerSummary_Size(ctx, field) 3724 case "Digest": 3725 return ec.fieldContext_LayerSummary_Digest(ctx, field) 3726 } 3727 return nil, fmt.Errorf("no field named %q was found under type LayerSummary", field.Name) 3728 }, 3729 } 3730 return fc, nil 3731 } 3732 3733 func (ec *executionContext) _HistoryDescription_Created(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 3734 fc, err := ec.fieldContext_HistoryDescription_Created(ctx, field) 3735 if err != nil { 3736 return graphql.Null 3737 } 3738 ctx = graphql.WithFieldContext(ctx, fc) 3739 defer func() { 3740 if r := recover(); r != nil { 3741 ec.Error(ctx, ec.Recover(ctx, r)) 3742 ret = graphql.Null 3743 } 3744 }() 3745 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3746 ctx = rctx // use context from middleware stack in children 3747 return obj.Created, nil 3748 }) 3749 if err != nil { 3750 ec.Error(ctx, err) 3751 return graphql.Null 3752 } 3753 if resTmp == nil { 3754 return graphql.Null 3755 } 3756 res := resTmp.(*time.Time) 3757 fc.Result = res 3758 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 3759 } 3760 3761 func (ec *executionContext) fieldContext_HistoryDescription_Created(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3762 fc = &graphql.FieldContext{ 3763 Object: "HistoryDescription", 3764 Field: field, 3765 IsMethod: false, 3766 IsResolver: false, 3767 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3768 return nil, errors.New("field of type Time does not have child fields") 3769 }, 3770 } 3771 return fc, nil 3772 } 3773 3774 func (ec *executionContext) _HistoryDescription_CreatedBy(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 3775 fc, err := ec.fieldContext_HistoryDescription_CreatedBy(ctx, field) 3776 if err != nil { 3777 return graphql.Null 3778 } 3779 ctx = graphql.WithFieldContext(ctx, fc) 3780 defer func() { 3781 if r := recover(); r != nil { 3782 ec.Error(ctx, ec.Recover(ctx, r)) 3783 ret = graphql.Null 3784 } 3785 }() 3786 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3787 ctx = rctx // use context from middleware stack in children 3788 return obj.CreatedBy, nil 3789 }) 3790 if err != nil { 3791 ec.Error(ctx, err) 3792 return graphql.Null 3793 } 3794 if resTmp == nil { 3795 return graphql.Null 3796 } 3797 res := resTmp.(*string) 3798 fc.Result = res 3799 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3800 } 3801 3802 func (ec *executionContext) fieldContext_HistoryDescription_CreatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3803 fc = &graphql.FieldContext{ 3804 Object: "HistoryDescription", 3805 Field: field, 3806 IsMethod: false, 3807 IsResolver: false, 3808 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3809 return nil, errors.New("field of type String does not have child fields") 3810 }, 3811 } 3812 return fc, nil 3813 } 3814 3815 func (ec *executionContext) _HistoryDescription_Author(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 3816 fc, err := ec.fieldContext_HistoryDescription_Author(ctx, field) 3817 if err != nil { 3818 return graphql.Null 3819 } 3820 ctx = graphql.WithFieldContext(ctx, fc) 3821 defer func() { 3822 if r := recover(); r != nil { 3823 ec.Error(ctx, ec.Recover(ctx, r)) 3824 ret = graphql.Null 3825 } 3826 }() 3827 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3828 ctx = rctx // use context from middleware stack in children 3829 return obj.Author, nil 3830 }) 3831 if err != nil { 3832 ec.Error(ctx, err) 3833 return graphql.Null 3834 } 3835 if resTmp == nil { 3836 return graphql.Null 3837 } 3838 res := resTmp.(*string) 3839 fc.Result = res 3840 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3841 } 3842 3843 func (ec *executionContext) fieldContext_HistoryDescription_Author(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3844 fc = &graphql.FieldContext{ 3845 Object: "HistoryDescription", 3846 Field: field, 3847 IsMethod: false, 3848 IsResolver: false, 3849 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3850 return nil, errors.New("field of type String does not have child fields") 3851 }, 3852 } 3853 return fc, nil 3854 } 3855 3856 func (ec *executionContext) _HistoryDescription_Comment(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 3857 fc, err := ec.fieldContext_HistoryDescription_Comment(ctx, field) 3858 if err != nil { 3859 return graphql.Null 3860 } 3861 ctx = graphql.WithFieldContext(ctx, fc) 3862 defer func() { 3863 if r := recover(); r != nil { 3864 ec.Error(ctx, ec.Recover(ctx, r)) 3865 ret = graphql.Null 3866 } 3867 }() 3868 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3869 ctx = rctx // use context from middleware stack in children 3870 return obj.Comment, nil 3871 }) 3872 if err != nil { 3873 ec.Error(ctx, err) 3874 return graphql.Null 3875 } 3876 if resTmp == nil { 3877 return graphql.Null 3878 } 3879 res := resTmp.(*string) 3880 fc.Result = res 3881 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3882 } 3883 3884 func (ec *executionContext) fieldContext_HistoryDescription_Comment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3885 fc = &graphql.FieldContext{ 3886 Object: "HistoryDescription", 3887 Field: field, 3888 IsMethod: false, 3889 IsResolver: false, 3890 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3891 return nil, errors.New("field of type String does not have child fields") 3892 }, 3893 } 3894 return fc, nil 3895 } 3896 3897 func (ec *executionContext) _HistoryDescription_EmptyLayer(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 3898 fc, err := ec.fieldContext_HistoryDescription_EmptyLayer(ctx, field) 3899 if err != nil { 3900 return graphql.Null 3901 } 3902 ctx = graphql.WithFieldContext(ctx, fc) 3903 defer func() { 3904 if r := recover(); r != nil { 3905 ec.Error(ctx, ec.Recover(ctx, r)) 3906 ret = graphql.Null 3907 } 3908 }() 3909 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3910 ctx = rctx // use context from middleware stack in children 3911 return obj.EmptyLayer, nil 3912 }) 3913 if err != nil { 3914 ec.Error(ctx, err) 3915 return graphql.Null 3916 } 3917 if resTmp == nil { 3918 return graphql.Null 3919 } 3920 res := resTmp.(*bool) 3921 fc.Result = res 3922 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 3923 } 3924 3925 func (ec *executionContext) fieldContext_HistoryDescription_EmptyLayer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3926 fc = &graphql.FieldContext{ 3927 Object: "HistoryDescription", 3928 Field: field, 3929 IsMethod: false, 3930 IsResolver: false, 3931 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3932 return nil, errors.New("field of type Boolean does not have child fields") 3933 }, 3934 } 3935 return fc, nil 3936 } 3937 3938 func (ec *executionContext) _ImageIdentifier_Repo(ctx context.Context, field graphql.CollectedField, obj *ImageIdentifier) (ret graphql.Marshaler) { 3939 fc, err := ec.fieldContext_ImageIdentifier_Repo(ctx, field) 3940 if err != nil { 3941 return graphql.Null 3942 } 3943 ctx = graphql.WithFieldContext(ctx, fc) 3944 defer func() { 3945 if r := recover(); r != nil { 3946 ec.Error(ctx, ec.Recover(ctx, r)) 3947 ret = graphql.Null 3948 } 3949 }() 3950 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3951 ctx = rctx // use context from middleware stack in children 3952 return obj.Repo, nil 3953 }) 3954 if err != nil { 3955 ec.Error(ctx, err) 3956 return graphql.Null 3957 } 3958 if resTmp == nil { 3959 if !graphql.HasFieldError(ctx, fc) { 3960 ec.Errorf(ctx, "must not be null") 3961 } 3962 return graphql.Null 3963 } 3964 res := resTmp.(string) 3965 fc.Result = res 3966 return ec.marshalNString2string(ctx, field.Selections, res) 3967 } 3968 3969 func (ec *executionContext) fieldContext_ImageIdentifier_Repo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3970 fc = &graphql.FieldContext{ 3971 Object: "ImageIdentifier", 3972 Field: field, 3973 IsMethod: false, 3974 IsResolver: false, 3975 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3976 return nil, errors.New("field of type String does not have child fields") 3977 }, 3978 } 3979 return fc, nil 3980 } 3981 3982 func (ec *executionContext) _ImageIdentifier_Tag(ctx context.Context, field graphql.CollectedField, obj *ImageIdentifier) (ret graphql.Marshaler) { 3983 fc, err := ec.fieldContext_ImageIdentifier_Tag(ctx, field) 3984 if err != nil { 3985 return graphql.Null 3986 } 3987 ctx = graphql.WithFieldContext(ctx, fc) 3988 defer func() { 3989 if r := recover(); r != nil { 3990 ec.Error(ctx, ec.Recover(ctx, r)) 3991 ret = graphql.Null 3992 } 3993 }() 3994 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3995 ctx = rctx // use context from middleware stack in children 3996 return obj.Tag, nil 3997 }) 3998 if err != nil { 3999 ec.Error(ctx, err) 4000 return graphql.Null 4001 } 4002 if resTmp == nil { 4003 if !graphql.HasFieldError(ctx, fc) { 4004 ec.Errorf(ctx, "must not be null") 4005 } 4006 return graphql.Null 4007 } 4008 res := resTmp.(string) 4009 fc.Result = res 4010 return ec.marshalNString2string(ctx, field.Selections, res) 4011 } 4012 4013 func (ec *executionContext) fieldContext_ImageIdentifier_Tag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4014 fc = &graphql.FieldContext{ 4015 Object: "ImageIdentifier", 4016 Field: field, 4017 IsMethod: false, 4018 IsResolver: false, 4019 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4020 return nil, errors.New("field of type String does not have child fields") 4021 }, 4022 } 4023 return fc, nil 4024 } 4025 4026 func (ec *executionContext) _ImageIdentifier_Digest(ctx context.Context, field graphql.CollectedField, obj *ImageIdentifier) (ret graphql.Marshaler) { 4027 fc, err := ec.fieldContext_ImageIdentifier_Digest(ctx, field) 4028 if err != nil { 4029 return graphql.Null 4030 } 4031 ctx = graphql.WithFieldContext(ctx, fc) 4032 defer func() { 4033 if r := recover(); r != nil { 4034 ec.Error(ctx, ec.Recover(ctx, r)) 4035 ret = graphql.Null 4036 } 4037 }() 4038 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4039 ctx = rctx // use context from middleware stack in children 4040 return obj.Digest, nil 4041 }) 4042 if err != nil { 4043 ec.Error(ctx, err) 4044 return graphql.Null 4045 } 4046 if resTmp == nil { 4047 return graphql.Null 4048 } 4049 res := resTmp.(*string) 4050 fc.Result = res 4051 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4052 } 4053 4054 func (ec *executionContext) fieldContext_ImageIdentifier_Digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4055 fc = &graphql.FieldContext{ 4056 Object: "ImageIdentifier", 4057 Field: field, 4058 IsMethod: false, 4059 IsResolver: false, 4060 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4061 return nil, errors.New("field of type String does not have child fields") 4062 }, 4063 } 4064 return fc, nil 4065 } 4066 4067 func (ec *executionContext) _ImageIdentifier_Platform(ctx context.Context, field graphql.CollectedField, obj *ImageIdentifier) (ret graphql.Marshaler) { 4068 fc, err := ec.fieldContext_ImageIdentifier_Platform(ctx, field) 4069 if err != nil { 4070 return graphql.Null 4071 } 4072 ctx = graphql.WithFieldContext(ctx, fc) 4073 defer func() { 4074 if r := recover(); r != nil { 4075 ec.Error(ctx, ec.Recover(ctx, r)) 4076 ret = graphql.Null 4077 } 4078 }() 4079 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4080 ctx = rctx // use context from middleware stack in children 4081 return obj.Platform, nil 4082 }) 4083 if err != nil { 4084 ec.Error(ctx, err) 4085 return graphql.Null 4086 } 4087 if resTmp == nil { 4088 return graphql.Null 4089 } 4090 res := resTmp.(*Platform) 4091 fc.Result = res 4092 return ec.marshalOPlatform2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx, field.Selections, res) 4093 } 4094 4095 func (ec *executionContext) fieldContext_ImageIdentifier_Platform(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4096 fc = &graphql.FieldContext{ 4097 Object: "ImageIdentifier", 4098 Field: field, 4099 IsMethod: false, 4100 IsResolver: false, 4101 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4102 switch field.Name { 4103 case "Os": 4104 return ec.fieldContext_Platform_Os(ctx, field) 4105 case "Arch": 4106 return ec.fieldContext_Platform_Arch(ctx, field) 4107 } 4108 return nil, fmt.Errorf("no field named %q was found under type Platform", field.Name) 4109 }, 4110 } 4111 return fc, nil 4112 } 4113 4114 func (ec *executionContext) _ImageSummary_RepoName(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4115 fc, err := ec.fieldContext_ImageSummary_RepoName(ctx, field) 4116 if err != nil { 4117 return graphql.Null 4118 } 4119 ctx = graphql.WithFieldContext(ctx, fc) 4120 defer func() { 4121 if r := recover(); r != nil { 4122 ec.Error(ctx, ec.Recover(ctx, r)) 4123 ret = graphql.Null 4124 } 4125 }() 4126 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4127 ctx = rctx // use context from middleware stack in children 4128 return obj.RepoName, nil 4129 }) 4130 if err != nil { 4131 ec.Error(ctx, err) 4132 return graphql.Null 4133 } 4134 if resTmp == nil { 4135 return graphql.Null 4136 } 4137 res := resTmp.(*string) 4138 fc.Result = res 4139 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4140 } 4141 4142 func (ec *executionContext) fieldContext_ImageSummary_RepoName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4143 fc = &graphql.FieldContext{ 4144 Object: "ImageSummary", 4145 Field: field, 4146 IsMethod: false, 4147 IsResolver: false, 4148 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4149 return nil, errors.New("field of type String does not have child fields") 4150 }, 4151 } 4152 return fc, nil 4153 } 4154 4155 func (ec *executionContext) _ImageSummary_Tag(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4156 fc, err := ec.fieldContext_ImageSummary_Tag(ctx, field) 4157 if err != nil { 4158 return graphql.Null 4159 } 4160 ctx = graphql.WithFieldContext(ctx, fc) 4161 defer func() { 4162 if r := recover(); r != nil { 4163 ec.Error(ctx, ec.Recover(ctx, r)) 4164 ret = graphql.Null 4165 } 4166 }() 4167 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4168 ctx = rctx // use context from middleware stack in children 4169 return obj.Tag, nil 4170 }) 4171 if err != nil { 4172 ec.Error(ctx, err) 4173 return graphql.Null 4174 } 4175 if resTmp == nil { 4176 return graphql.Null 4177 } 4178 res := resTmp.(*string) 4179 fc.Result = res 4180 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4181 } 4182 4183 func (ec *executionContext) fieldContext_ImageSummary_Tag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4184 fc = &graphql.FieldContext{ 4185 Object: "ImageSummary", 4186 Field: field, 4187 IsMethod: false, 4188 IsResolver: false, 4189 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4190 return nil, errors.New("field of type String does not have child fields") 4191 }, 4192 } 4193 return fc, nil 4194 } 4195 4196 func (ec *executionContext) _ImageSummary_Digest(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4197 fc, err := ec.fieldContext_ImageSummary_Digest(ctx, field) 4198 if err != nil { 4199 return graphql.Null 4200 } 4201 ctx = graphql.WithFieldContext(ctx, fc) 4202 defer func() { 4203 if r := recover(); r != nil { 4204 ec.Error(ctx, ec.Recover(ctx, r)) 4205 ret = graphql.Null 4206 } 4207 }() 4208 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4209 ctx = rctx // use context from middleware stack in children 4210 return obj.Digest, nil 4211 }) 4212 if err != nil { 4213 ec.Error(ctx, err) 4214 return graphql.Null 4215 } 4216 if resTmp == nil { 4217 return graphql.Null 4218 } 4219 res := resTmp.(*string) 4220 fc.Result = res 4221 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4222 } 4223 4224 func (ec *executionContext) fieldContext_ImageSummary_Digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4225 fc = &graphql.FieldContext{ 4226 Object: "ImageSummary", 4227 Field: field, 4228 IsMethod: false, 4229 IsResolver: false, 4230 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4231 return nil, errors.New("field of type String does not have child fields") 4232 }, 4233 } 4234 return fc, nil 4235 } 4236 4237 func (ec *executionContext) _ImageSummary_MediaType(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4238 fc, err := ec.fieldContext_ImageSummary_MediaType(ctx, field) 4239 if err != nil { 4240 return graphql.Null 4241 } 4242 ctx = graphql.WithFieldContext(ctx, fc) 4243 defer func() { 4244 if r := recover(); r != nil { 4245 ec.Error(ctx, ec.Recover(ctx, r)) 4246 ret = graphql.Null 4247 } 4248 }() 4249 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4250 ctx = rctx // use context from middleware stack in children 4251 return obj.MediaType, nil 4252 }) 4253 if err != nil { 4254 ec.Error(ctx, err) 4255 return graphql.Null 4256 } 4257 if resTmp == nil { 4258 return graphql.Null 4259 } 4260 res := resTmp.(*string) 4261 fc.Result = res 4262 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4263 } 4264 4265 func (ec *executionContext) fieldContext_ImageSummary_MediaType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4266 fc = &graphql.FieldContext{ 4267 Object: "ImageSummary", 4268 Field: field, 4269 IsMethod: false, 4270 IsResolver: false, 4271 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4272 return nil, errors.New("field of type String does not have child fields") 4273 }, 4274 } 4275 return fc, nil 4276 } 4277 4278 func (ec *executionContext) _ImageSummary_Manifests(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4279 fc, err := ec.fieldContext_ImageSummary_Manifests(ctx, field) 4280 if err != nil { 4281 return graphql.Null 4282 } 4283 ctx = graphql.WithFieldContext(ctx, fc) 4284 defer func() { 4285 if r := recover(); r != nil { 4286 ec.Error(ctx, ec.Recover(ctx, r)) 4287 ret = graphql.Null 4288 } 4289 }() 4290 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4291 ctx = rctx // use context from middleware stack in children 4292 return obj.Manifests, nil 4293 }) 4294 if err != nil { 4295 ec.Error(ctx, err) 4296 return graphql.Null 4297 } 4298 if resTmp == nil { 4299 return graphql.Null 4300 } 4301 res := resTmp.([]*ManifestSummary) 4302 fc.Result = res 4303 return ec.marshalOManifestSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐManifestSummary(ctx, field.Selections, res) 4304 } 4305 4306 func (ec *executionContext) fieldContext_ImageSummary_Manifests(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4307 fc = &graphql.FieldContext{ 4308 Object: "ImageSummary", 4309 Field: field, 4310 IsMethod: false, 4311 IsResolver: false, 4312 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4313 switch field.Name { 4314 case "Digest": 4315 return ec.fieldContext_ManifestSummary_Digest(ctx, field) 4316 case "ConfigDigest": 4317 return ec.fieldContext_ManifestSummary_ConfigDigest(ctx, field) 4318 case "LastUpdated": 4319 return ec.fieldContext_ManifestSummary_LastUpdated(ctx, field) 4320 case "Size": 4321 return ec.fieldContext_ManifestSummary_Size(ctx, field) 4322 case "IsSigned": 4323 return ec.fieldContext_ManifestSummary_IsSigned(ctx, field) 4324 case "SignatureInfo": 4325 return ec.fieldContext_ManifestSummary_SignatureInfo(ctx, field) 4326 case "Platform": 4327 return ec.fieldContext_ManifestSummary_Platform(ctx, field) 4328 case "DownloadCount": 4329 return ec.fieldContext_ManifestSummary_DownloadCount(ctx, field) 4330 case "Layers": 4331 return ec.fieldContext_ManifestSummary_Layers(ctx, field) 4332 case "History": 4333 return ec.fieldContext_ManifestSummary_History(ctx, field) 4334 case "Vulnerabilities": 4335 return ec.fieldContext_ManifestSummary_Vulnerabilities(ctx, field) 4336 case "Referrers": 4337 return ec.fieldContext_ManifestSummary_Referrers(ctx, field) 4338 case "ArtifactType": 4339 return ec.fieldContext_ManifestSummary_ArtifactType(ctx, field) 4340 } 4341 return nil, fmt.Errorf("no field named %q was found under type ManifestSummary", field.Name) 4342 }, 4343 } 4344 return fc, nil 4345 } 4346 4347 func (ec *executionContext) _ImageSummary_Size(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4348 fc, err := ec.fieldContext_ImageSummary_Size(ctx, field) 4349 if err != nil { 4350 return graphql.Null 4351 } 4352 ctx = graphql.WithFieldContext(ctx, fc) 4353 defer func() { 4354 if r := recover(); r != nil { 4355 ec.Error(ctx, ec.Recover(ctx, r)) 4356 ret = graphql.Null 4357 } 4358 }() 4359 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4360 ctx = rctx // use context from middleware stack in children 4361 return obj.Size, nil 4362 }) 4363 if err != nil { 4364 ec.Error(ctx, err) 4365 return graphql.Null 4366 } 4367 if resTmp == nil { 4368 return graphql.Null 4369 } 4370 res := resTmp.(*string) 4371 fc.Result = res 4372 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4373 } 4374 4375 func (ec *executionContext) fieldContext_ImageSummary_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4376 fc = &graphql.FieldContext{ 4377 Object: "ImageSummary", 4378 Field: field, 4379 IsMethod: false, 4380 IsResolver: false, 4381 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4382 return nil, errors.New("field of type String does not have child fields") 4383 }, 4384 } 4385 return fc, nil 4386 } 4387 4388 func (ec *executionContext) _ImageSummary_DownloadCount(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4389 fc, err := ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 4390 if err != nil { 4391 return graphql.Null 4392 } 4393 ctx = graphql.WithFieldContext(ctx, fc) 4394 defer func() { 4395 if r := recover(); r != nil { 4396 ec.Error(ctx, ec.Recover(ctx, r)) 4397 ret = graphql.Null 4398 } 4399 }() 4400 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4401 ctx = rctx // use context from middleware stack in children 4402 return obj.DownloadCount, nil 4403 }) 4404 if err != nil { 4405 ec.Error(ctx, err) 4406 return graphql.Null 4407 } 4408 if resTmp == nil { 4409 return graphql.Null 4410 } 4411 res := resTmp.(*int) 4412 fc.Result = res 4413 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 4414 } 4415 4416 func (ec *executionContext) fieldContext_ImageSummary_DownloadCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4417 fc = &graphql.FieldContext{ 4418 Object: "ImageSummary", 4419 Field: field, 4420 IsMethod: false, 4421 IsResolver: false, 4422 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4423 return nil, errors.New("field of type Int does not have child fields") 4424 }, 4425 } 4426 return fc, nil 4427 } 4428 4429 func (ec *executionContext) _ImageSummary_LastUpdated(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4430 fc, err := ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 4431 if err != nil { 4432 return graphql.Null 4433 } 4434 ctx = graphql.WithFieldContext(ctx, fc) 4435 defer func() { 4436 if r := recover(); r != nil { 4437 ec.Error(ctx, ec.Recover(ctx, r)) 4438 ret = graphql.Null 4439 } 4440 }() 4441 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4442 ctx = rctx // use context from middleware stack in children 4443 return obj.LastUpdated, nil 4444 }) 4445 if err != nil { 4446 ec.Error(ctx, err) 4447 return graphql.Null 4448 } 4449 if resTmp == nil { 4450 return graphql.Null 4451 } 4452 res := resTmp.(*time.Time) 4453 fc.Result = res 4454 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 4455 } 4456 4457 func (ec *executionContext) fieldContext_ImageSummary_LastUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4458 fc = &graphql.FieldContext{ 4459 Object: "ImageSummary", 4460 Field: field, 4461 IsMethod: false, 4462 IsResolver: false, 4463 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4464 return nil, errors.New("field of type Time does not have child fields") 4465 }, 4466 } 4467 return fc, nil 4468 } 4469 4470 func (ec *executionContext) _ImageSummary_Description(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4471 fc, err := ec.fieldContext_ImageSummary_Description(ctx, field) 4472 if err != nil { 4473 return graphql.Null 4474 } 4475 ctx = graphql.WithFieldContext(ctx, fc) 4476 defer func() { 4477 if r := recover(); r != nil { 4478 ec.Error(ctx, ec.Recover(ctx, r)) 4479 ret = graphql.Null 4480 } 4481 }() 4482 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4483 ctx = rctx // use context from middleware stack in children 4484 return obj.Description, nil 4485 }) 4486 if err != nil { 4487 ec.Error(ctx, err) 4488 return graphql.Null 4489 } 4490 if resTmp == nil { 4491 return graphql.Null 4492 } 4493 res := resTmp.(*string) 4494 fc.Result = res 4495 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4496 } 4497 4498 func (ec *executionContext) fieldContext_ImageSummary_Description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4499 fc = &graphql.FieldContext{ 4500 Object: "ImageSummary", 4501 Field: field, 4502 IsMethod: false, 4503 IsResolver: false, 4504 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4505 return nil, errors.New("field of type String does not have child fields") 4506 }, 4507 } 4508 return fc, nil 4509 } 4510 4511 func (ec *executionContext) _ImageSummary_IsSigned(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4512 fc, err := ec.fieldContext_ImageSummary_IsSigned(ctx, field) 4513 if err != nil { 4514 return graphql.Null 4515 } 4516 ctx = graphql.WithFieldContext(ctx, fc) 4517 defer func() { 4518 if r := recover(); r != nil { 4519 ec.Error(ctx, ec.Recover(ctx, r)) 4520 ret = graphql.Null 4521 } 4522 }() 4523 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4524 ctx = rctx // use context from middleware stack in children 4525 return obj.IsSigned, nil 4526 }) 4527 if err != nil { 4528 ec.Error(ctx, err) 4529 return graphql.Null 4530 } 4531 if resTmp == nil { 4532 return graphql.Null 4533 } 4534 res := resTmp.(*bool) 4535 fc.Result = res 4536 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 4537 } 4538 4539 func (ec *executionContext) fieldContext_ImageSummary_IsSigned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4540 fc = &graphql.FieldContext{ 4541 Object: "ImageSummary", 4542 Field: field, 4543 IsMethod: false, 4544 IsResolver: false, 4545 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4546 return nil, errors.New("field of type Boolean does not have child fields") 4547 }, 4548 } 4549 return fc, nil 4550 } 4551 4552 func (ec *executionContext) _ImageSummary_SignatureInfo(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4553 fc, err := ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 4554 if err != nil { 4555 return graphql.Null 4556 } 4557 ctx = graphql.WithFieldContext(ctx, fc) 4558 defer func() { 4559 if r := recover(); r != nil { 4560 ec.Error(ctx, ec.Recover(ctx, r)) 4561 ret = graphql.Null 4562 } 4563 }() 4564 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4565 ctx = rctx // use context from middleware stack in children 4566 return obj.SignatureInfo, nil 4567 }) 4568 if err != nil { 4569 ec.Error(ctx, err) 4570 return graphql.Null 4571 } 4572 if resTmp == nil { 4573 return graphql.Null 4574 } 4575 res := resTmp.([]*SignatureSummary) 4576 fc.Result = res 4577 return ec.marshalOSignatureSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx, field.Selections, res) 4578 } 4579 4580 func (ec *executionContext) fieldContext_ImageSummary_SignatureInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4581 fc = &graphql.FieldContext{ 4582 Object: "ImageSummary", 4583 Field: field, 4584 IsMethod: false, 4585 IsResolver: false, 4586 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4587 switch field.Name { 4588 case "Tool": 4589 return ec.fieldContext_SignatureSummary_Tool(ctx, field) 4590 case "IsTrusted": 4591 return ec.fieldContext_SignatureSummary_IsTrusted(ctx, field) 4592 case "Author": 4593 return ec.fieldContext_SignatureSummary_Author(ctx, field) 4594 } 4595 return nil, fmt.Errorf("no field named %q was found under type SignatureSummary", field.Name) 4596 }, 4597 } 4598 return fc, nil 4599 } 4600 4601 func (ec *executionContext) _ImageSummary_Licenses(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4602 fc, err := ec.fieldContext_ImageSummary_Licenses(ctx, field) 4603 if err != nil { 4604 return graphql.Null 4605 } 4606 ctx = graphql.WithFieldContext(ctx, fc) 4607 defer func() { 4608 if r := recover(); r != nil { 4609 ec.Error(ctx, ec.Recover(ctx, r)) 4610 ret = graphql.Null 4611 } 4612 }() 4613 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4614 ctx = rctx // use context from middleware stack in children 4615 return obj.Licenses, nil 4616 }) 4617 if err != nil { 4618 ec.Error(ctx, err) 4619 return graphql.Null 4620 } 4621 if resTmp == nil { 4622 return graphql.Null 4623 } 4624 res := resTmp.(*string) 4625 fc.Result = res 4626 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4627 } 4628 4629 func (ec *executionContext) fieldContext_ImageSummary_Licenses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4630 fc = &graphql.FieldContext{ 4631 Object: "ImageSummary", 4632 Field: field, 4633 IsMethod: false, 4634 IsResolver: false, 4635 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4636 return nil, errors.New("field of type String does not have child fields") 4637 }, 4638 } 4639 return fc, nil 4640 } 4641 4642 func (ec *executionContext) _ImageSummary_Labels(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4643 fc, err := ec.fieldContext_ImageSummary_Labels(ctx, field) 4644 if err != nil { 4645 return graphql.Null 4646 } 4647 ctx = graphql.WithFieldContext(ctx, fc) 4648 defer func() { 4649 if r := recover(); r != nil { 4650 ec.Error(ctx, ec.Recover(ctx, r)) 4651 ret = graphql.Null 4652 } 4653 }() 4654 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4655 ctx = rctx // use context from middleware stack in children 4656 return obj.Labels, nil 4657 }) 4658 if err != nil { 4659 ec.Error(ctx, err) 4660 return graphql.Null 4661 } 4662 if resTmp == nil { 4663 return graphql.Null 4664 } 4665 res := resTmp.(*string) 4666 fc.Result = res 4667 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4668 } 4669 4670 func (ec *executionContext) fieldContext_ImageSummary_Labels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4671 fc = &graphql.FieldContext{ 4672 Object: "ImageSummary", 4673 Field: field, 4674 IsMethod: false, 4675 IsResolver: false, 4676 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4677 return nil, errors.New("field of type String does not have child fields") 4678 }, 4679 } 4680 return fc, nil 4681 } 4682 4683 func (ec *executionContext) _ImageSummary_Title(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4684 fc, err := ec.fieldContext_ImageSummary_Title(ctx, field) 4685 if err != nil { 4686 return graphql.Null 4687 } 4688 ctx = graphql.WithFieldContext(ctx, fc) 4689 defer func() { 4690 if r := recover(); r != nil { 4691 ec.Error(ctx, ec.Recover(ctx, r)) 4692 ret = graphql.Null 4693 } 4694 }() 4695 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4696 ctx = rctx // use context from middleware stack in children 4697 return obj.Title, nil 4698 }) 4699 if err != nil { 4700 ec.Error(ctx, err) 4701 return graphql.Null 4702 } 4703 if resTmp == nil { 4704 return graphql.Null 4705 } 4706 res := resTmp.(*string) 4707 fc.Result = res 4708 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4709 } 4710 4711 func (ec *executionContext) fieldContext_ImageSummary_Title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4712 fc = &graphql.FieldContext{ 4713 Object: "ImageSummary", 4714 Field: field, 4715 IsMethod: false, 4716 IsResolver: false, 4717 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4718 return nil, errors.New("field of type String does not have child fields") 4719 }, 4720 } 4721 return fc, nil 4722 } 4723 4724 func (ec *executionContext) _ImageSummary_Source(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4725 fc, err := ec.fieldContext_ImageSummary_Source(ctx, field) 4726 if err != nil { 4727 return graphql.Null 4728 } 4729 ctx = graphql.WithFieldContext(ctx, fc) 4730 defer func() { 4731 if r := recover(); r != nil { 4732 ec.Error(ctx, ec.Recover(ctx, r)) 4733 ret = graphql.Null 4734 } 4735 }() 4736 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4737 ctx = rctx // use context from middleware stack in children 4738 return obj.Source, nil 4739 }) 4740 if err != nil { 4741 ec.Error(ctx, err) 4742 return graphql.Null 4743 } 4744 if resTmp == nil { 4745 return graphql.Null 4746 } 4747 res := resTmp.(*string) 4748 fc.Result = res 4749 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4750 } 4751 4752 func (ec *executionContext) fieldContext_ImageSummary_Source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4753 fc = &graphql.FieldContext{ 4754 Object: "ImageSummary", 4755 Field: field, 4756 IsMethod: false, 4757 IsResolver: false, 4758 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4759 return nil, errors.New("field of type String does not have child fields") 4760 }, 4761 } 4762 return fc, nil 4763 } 4764 4765 func (ec *executionContext) _ImageSummary_Documentation(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4766 fc, err := ec.fieldContext_ImageSummary_Documentation(ctx, field) 4767 if err != nil { 4768 return graphql.Null 4769 } 4770 ctx = graphql.WithFieldContext(ctx, fc) 4771 defer func() { 4772 if r := recover(); r != nil { 4773 ec.Error(ctx, ec.Recover(ctx, r)) 4774 ret = graphql.Null 4775 } 4776 }() 4777 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4778 ctx = rctx // use context from middleware stack in children 4779 return obj.Documentation, nil 4780 }) 4781 if err != nil { 4782 ec.Error(ctx, err) 4783 return graphql.Null 4784 } 4785 if resTmp == nil { 4786 return graphql.Null 4787 } 4788 res := resTmp.(*string) 4789 fc.Result = res 4790 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4791 } 4792 4793 func (ec *executionContext) fieldContext_ImageSummary_Documentation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4794 fc = &graphql.FieldContext{ 4795 Object: "ImageSummary", 4796 Field: field, 4797 IsMethod: false, 4798 IsResolver: false, 4799 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4800 return nil, errors.New("field of type String does not have child fields") 4801 }, 4802 } 4803 return fc, nil 4804 } 4805 4806 func (ec *executionContext) _ImageSummary_Vendor(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4807 fc, err := ec.fieldContext_ImageSummary_Vendor(ctx, field) 4808 if err != nil { 4809 return graphql.Null 4810 } 4811 ctx = graphql.WithFieldContext(ctx, fc) 4812 defer func() { 4813 if r := recover(); r != nil { 4814 ec.Error(ctx, ec.Recover(ctx, r)) 4815 ret = graphql.Null 4816 } 4817 }() 4818 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4819 ctx = rctx // use context from middleware stack in children 4820 return obj.Vendor, nil 4821 }) 4822 if err != nil { 4823 ec.Error(ctx, err) 4824 return graphql.Null 4825 } 4826 if resTmp == nil { 4827 return graphql.Null 4828 } 4829 res := resTmp.(*string) 4830 fc.Result = res 4831 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4832 } 4833 4834 func (ec *executionContext) fieldContext_ImageSummary_Vendor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4835 fc = &graphql.FieldContext{ 4836 Object: "ImageSummary", 4837 Field: field, 4838 IsMethod: false, 4839 IsResolver: false, 4840 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4841 return nil, errors.New("field of type String does not have child fields") 4842 }, 4843 } 4844 return fc, nil 4845 } 4846 4847 func (ec *executionContext) _ImageSummary_Authors(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4848 fc, err := ec.fieldContext_ImageSummary_Authors(ctx, field) 4849 if err != nil { 4850 return graphql.Null 4851 } 4852 ctx = graphql.WithFieldContext(ctx, fc) 4853 defer func() { 4854 if r := recover(); r != nil { 4855 ec.Error(ctx, ec.Recover(ctx, r)) 4856 ret = graphql.Null 4857 } 4858 }() 4859 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4860 ctx = rctx // use context from middleware stack in children 4861 return obj.Authors, nil 4862 }) 4863 if err != nil { 4864 ec.Error(ctx, err) 4865 return graphql.Null 4866 } 4867 if resTmp == nil { 4868 return graphql.Null 4869 } 4870 res := resTmp.(*string) 4871 fc.Result = res 4872 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4873 } 4874 4875 func (ec *executionContext) fieldContext_ImageSummary_Authors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4876 fc = &graphql.FieldContext{ 4877 Object: "ImageSummary", 4878 Field: field, 4879 IsMethod: false, 4880 IsResolver: false, 4881 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4882 return nil, errors.New("field of type String does not have child fields") 4883 }, 4884 } 4885 return fc, nil 4886 } 4887 4888 func (ec *executionContext) _ImageSummary_Vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4889 fc, err := ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 4890 if err != nil { 4891 return graphql.Null 4892 } 4893 ctx = graphql.WithFieldContext(ctx, fc) 4894 defer func() { 4895 if r := recover(); r != nil { 4896 ec.Error(ctx, ec.Recover(ctx, r)) 4897 ret = graphql.Null 4898 } 4899 }() 4900 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4901 ctx = rctx // use context from middleware stack in children 4902 return obj.Vulnerabilities, nil 4903 }) 4904 if err != nil { 4905 ec.Error(ctx, err) 4906 return graphql.Null 4907 } 4908 if resTmp == nil { 4909 return graphql.Null 4910 } 4911 res := resTmp.(*ImageVulnerabilitySummary) 4912 fc.Result = res 4913 return ec.marshalOImageVulnerabilitySummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageVulnerabilitySummary(ctx, field.Selections, res) 4914 } 4915 4916 func (ec *executionContext) fieldContext_ImageSummary_Vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4917 fc = &graphql.FieldContext{ 4918 Object: "ImageSummary", 4919 Field: field, 4920 IsMethod: false, 4921 IsResolver: false, 4922 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4923 switch field.Name { 4924 case "MaxSeverity": 4925 return ec.fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx, field) 4926 case "Count": 4927 return ec.fieldContext_ImageVulnerabilitySummary_Count(ctx, field) 4928 case "UnknownCount": 4929 return ec.fieldContext_ImageVulnerabilitySummary_UnknownCount(ctx, field) 4930 case "LowCount": 4931 return ec.fieldContext_ImageVulnerabilitySummary_LowCount(ctx, field) 4932 case "MediumCount": 4933 return ec.fieldContext_ImageVulnerabilitySummary_MediumCount(ctx, field) 4934 case "HighCount": 4935 return ec.fieldContext_ImageVulnerabilitySummary_HighCount(ctx, field) 4936 case "CriticalCount": 4937 return ec.fieldContext_ImageVulnerabilitySummary_CriticalCount(ctx, field) 4938 } 4939 return nil, fmt.Errorf("no field named %q was found under type ImageVulnerabilitySummary", field.Name) 4940 }, 4941 } 4942 return fc, nil 4943 } 4944 4945 func (ec *executionContext) _ImageSummary_Referrers(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4946 fc, err := ec.fieldContext_ImageSummary_Referrers(ctx, field) 4947 if err != nil { 4948 return graphql.Null 4949 } 4950 ctx = graphql.WithFieldContext(ctx, fc) 4951 defer func() { 4952 if r := recover(); r != nil { 4953 ec.Error(ctx, ec.Recover(ctx, r)) 4954 ret = graphql.Null 4955 } 4956 }() 4957 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4958 ctx = rctx // use context from middleware stack in children 4959 return obj.Referrers, nil 4960 }) 4961 if err != nil { 4962 ec.Error(ctx, err) 4963 return graphql.Null 4964 } 4965 if resTmp == nil { 4966 return graphql.Null 4967 } 4968 res := resTmp.([]*Referrer) 4969 fc.Result = res 4970 return ec.marshalOReferrer2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, field.Selections, res) 4971 } 4972 4973 func (ec *executionContext) fieldContext_ImageSummary_Referrers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4974 fc = &graphql.FieldContext{ 4975 Object: "ImageSummary", 4976 Field: field, 4977 IsMethod: false, 4978 IsResolver: false, 4979 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4980 switch field.Name { 4981 case "MediaType": 4982 return ec.fieldContext_Referrer_MediaType(ctx, field) 4983 case "ArtifactType": 4984 return ec.fieldContext_Referrer_ArtifactType(ctx, field) 4985 case "Size": 4986 return ec.fieldContext_Referrer_Size(ctx, field) 4987 case "Digest": 4988 return ec.fieldContext_Referrer_Digest(ctx, field) 4989 case "Annotations": 4990 return ec.fieldContext_Referrer_Annotations(ctx, field) 4991 } 4992 return nil, fmt.Errorf("no field named %q was found under type Referrer", field.Name) 4993 }, 4994 } 4995 return fc, nil 4996 } 4997 4998 func (ec *executionContext) _ImageSummary_IsDeletable(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4999 fc, err := ec.fieldContext_ImageSummary_IsDeletable(ctx, field) 5000 if err != nil { 5001 return graphql.Null 5002 } 5003 ctx = graphql.WithFieldContext(ctx, fc) 5004 defer func() { 5005 if r := recover(); r != nil { 5006 ec.Error(ctx, ec.Recover(ctx, r)) 5007 ret = graphql.Null 5008 } 5009 }() 5010 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5011 ctx = rctx // use context from middleware stack in children 5012 return obj.IsDeletable, nil 5013 }) 5014 if err != nil { 5015 ec.Error(ctx, err) 5016 return graphql.Null 5017 } 5018 if resTmp == nil { 5019 return graphql.Null 5020 } 5021 res := resTmp.(*bool) 5022 fc.Result = res 5023 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 5024 } 5025 5026 func (ec *executionContext) fieldContext_ImageSummary_IsDeletable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5027 fc = &graphql.FieldContext{ 5028 Object: "ImageSummary", 5029 Field: field, 5030 IsMethod: false, 5031 IsResolver: false, 5032 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5033 return nil, errors.New("field of type Boolean does not have child fields") 5034 }, 5035 } 5036 return fc, nil 5037 } 5038 5039 func (ec *executionContext) _ImageVulnerabilitySummary_MaxSeverity(ctx context.Context, field graphql.CollectedField, obj *ImageVulnerabilitySummary) (ret graphql.Marshaler) { 5040 fc, err := ec.fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx, field) 5041 if err != nil { 5042 return graphql.Null 5043 } 5044 ctx = graphql.WithFieldContext(ctx, fc) 5045 defer func() { 5046 if r := recover(); r != nil { 5047 ec.Error(ctx, ec.Recover(ctx, r)) 5048 ret = graphql.Null 5049 } 5050 }() 5051 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5052 ctx = rctx // use context from middleware stack in children 5053 return obj.MaxSeverity, nil 5054 }) 5055 if err != nil { 5056 ec.Error(ctx, err) 5057 return graphql.Null 5058 } 5059 if resTmp == nil { 5060 return graphql.Null 5061 } 5062 res := resTmp.(*string) 5063 fc.Result = res 5064 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5065 } 5066 5067 func (ec *executionContext) fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5068 fc = &graphql.FieldContext{ 5069 Object: "ImageVulnerabilitySummary", 5070 Field: field, 5071 IsMethod: false, 5072 IsResolver: false, 5073 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5074 return nil, errors.New("field of type String does not have child fields") 5075 }, 5076 } 5077 return fc, nil 5078 } 5079 5080 func (ec *executionContext) _ImageVulnerabilitySummary_Count(ctx context.Context, field graphql.CollectedField, obj *ImageVulnerabilitySummary) (ret graphql.Marshaler) { 5081 fc, err := ec.fieldContext_ImageVulnerabilitySummary_Count(ctx, field) 5082 if err != nil { 5083 return graphql.Null 5084 } 5085 ctx = graphql.WithFieldContext(ctx, fc) 5086 defer func() { 5087 if r := recover(); r != nil { 5088 ec.Error(ctx, ec.Recover(ctx, r)) 5089 ret = graphql.Null 5090 } 5091 }() 5092 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5093 ctx = rctx // use context from middleware stack in children 5094 return obj.Count, nil 5095 }) 5096 if err != nil { 5097 ec.Error(ctx, err) 5098 return graphql.Null 5099 } 5100 if resTmp == nil { 5101 return graphql.Null 5102 } 5103 res := resTmp.(*int) 5104 fc.Result = res 5105 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 5106 } 5107 5108 func (ec *executionContext) fieldContext_ImageVulnerabilitySummary_Count(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5109 fc = &graphql.FieldContext{ 5110 Object: "ImageVulnerabilitySummary", 5111 Field: field, 5112 IsMethod: false, 5113 IsResolver: false, 5114 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5115 return nil, errors.New("field of type Int does not have child fields") 5116 }, 5117 } 5118 return fc, nil 5119 } 5120 5121 func (ec *executionContext) _ImageVulnerabilitySummary_UnknownCount(ctx context.Context, field graphql.CollectedField, obj *ImageVulnerabilitySummary) (ret graphql.Marshaler) { 5122 fc, err := ec.fieldContext_ImageVulnerabilitySummary_UnknownCount(ctx, field) 5123 if err != nil { 5124 return graphql.Null 5125 } 5126 ctx = graphql.WithFieldContext(ctx, fc) 5127 defer func() { 5128 if r := recover(); r != nil { 5129 ec.Error(ctx, ec.Recover(ctx, r)) 5130 ret = graphql.Null 5131 } 5132 }() 5133 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5134 ctx = rctx // use context from middleware stack in children 5135 return obj.UnknownCount, nil 5136 }) 5137 if err != nil { 5138 ec.Error(ctx, err) 5139 return graphql.Null 5140 } 5141 if resTmp == nil { 5142 return graphql.Null 5143 } 5144 res := resTmp.(*int) 5145 fc.Result = res 5146 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 5147 } 5148 5149 func (ec *executionContext) fieldContext_ImageVulnerabilitySummary_UnknownCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5150 fc = &graphql.FieldContext{ 5151 Object: "ImageVulnerabilitySummary", 5152 Field: field, 5153 IsMethod: false, 5154 IsResolver: false, 5155 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5156 return nil, errors.New("field of type Int does not have child fields") 5157 }, 5158 } 5159 return fc, nil 5160 } 5161 5162 func (ec *executionContext) _ImageVulnerabilitySummary_LowCount(ctx context.Context, field graphql.CollectedField, obj *ImageVulnerabilitySummary) (ret graphql.Marshaler) { 5163 fc, err := ec.fieldContext_ImageVulnerabilitySummary_LowCount(ctx, field) 5164 if err != nil { 5165 return graphql.Null 5166 } 5167 ctx = graphql.WithFieldContext(ctx, fc) 5168 defer func() { 5169 if r := recover(); r != nil { 5170 ec.Error(ctx, ec.Recover(ctx, r)) 5171 ret = graphql.Null 5172 } 5173 }() 5174 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5175 ctx = rctx // use context from middleware stack in children 5176 return obj.LowCount, nil 5177 }) 5178 if err != nil { 5179 ec.Error(ctx, err) 5180 return graphql.Null 5181 } 5182 if resTmp == nil { 5183 return graphql.Null 5184 } 5185 res := resTmp.(*int) 5186 fc.Result = res 5187 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 5188 } 5189 5190 func (ec *executionContext) fieldContext_ImageVulnerabilitySummary_LowCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5191 fc = &graphql.FieldContext{ 5192 Object: "ImageVulnerabilitySummary", 5193 Field: field, 5194 IsMethod: false, 5195 IsResolver: false, 5196 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5197 return nil, errors.New("field of type Int does not have child fields") 5198 }, 5199 } 5200 return fc, nil 5201 } 5202 5203 func (ec *executionContext) _ImageVulnerabilitySummary_MediumCount(ctx context.Context, field graphql.CollectedField, obj *ImageVulnerabilitySummary) (ret graphql.Marshaler) { 5204 fc, err := ec.fieldContext_ImageVulnerabilitySummary_MediumCount(ctx, field) 5205 if err != nil { 5206 return graphql.Null 5207 } 5208 ctx = graphql.WithFieldContext(ctx, fc) 5209 defer func() { 5210 if r := recover(); r != nil { 5211 ec.Error(ctx, ec.Recover(ctx, r)) 5212 ret = graphql.Null 5213 } 5214 }() 5215 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5216 ctx = rctx // use context from middleware stack in children 5217 return obj.MediumCount, nil 5218 }) 5219 if err != nil { 5220 ec.Error(ctx, err) 5221 return graphql.Null 5222 } 5223 if resTmp == nil { 5224 return graphql.Null 5225 } 5226 res := resTmp.(*int) 5227 fc.Result = res 5228 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 5229 } 5230 5231 func (ec *executionContext) fieldContext_ImageVulnerabilitySummary_MediumCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5232 fc = &graphql.FieldContext{ 5233 Object: "ImageVulnerabilitySummary", 5234 Field: field, 5235 IsMethod: false, 5236 IsResolver: false, 5237 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5238 return nil, errors.New("field of type Int does not have child fields") 5239 }, 5240 } 5241 return fc, nil 5242 } 5243 5244 func (ec *executionContext) _ImageVulnerabilitySummary_HighCount(ctx context.Context, field graphql.CollectedField, obj *ImageVulnerabilitySummary) (ret graphql.Marshaler) { 5245 fc, err := ec.fieldContext_ImageVulnerabilitySummary_HighCount(ctx, field) 5246 if err != nil { 5247 return graphql.Null 5248 } 5249 ctx = graphql.WithFieldContext(ctx, fc) 5250 defer func() { 5251 if r := recover(); r != nil { 5252 ec.Error(ctx, ec.Recover(ctx, r)) 5253 ret = graphql.Null 5254 } 5255 }() 5256 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5257 ctx = rctx // use context from middleware stack in children 5258 return obj.HighCount, nil 5259 }) 5260 if err != nil { 5261 ec.Error(ctx, err) 5262 return graphql.Null 5263 } 5264 if resTmp == nil { 5265 return graphql.Null 5266 } 5267 res := resTmp.(*int) 5268 fc.Result = res 5269 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 5270 } 5271 5272 func (ec *executionContext) fieldContext_ImageVulnerabilitySummary_HighCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5273 fc = &graphql.FieldContext{ 5274 Object: "ImageVulnerabilitySummary", 5275 Field: field, 5276 IsMethod: false, 5277 IsResolver: false, 5278 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5279 return nil, errors.New("field of type Int does not have child fields") 5280 }, 5281 } 5282 return fc, nil 5283 } 5284 5285 func (ec *executionContext) _ImageVulnerabilitySummary_CriticalCount(ctx context.Context, field graphql.CollectedField, obj *ImageVulnerabilitySummary) (ret graphql.Marshaler) { 5286 fc, err := ec.fieldContext_ImageVulnerabilitySummary_CriticalCount(ctx, field) 5287 if err != nil { 5288 return graphql.Null 5289 } 5290 ctx = graphql.WithFieldContext(ctx, fc) 5291 defer func() { 5292 if r := recover(); r != nil { 5293 ec.Error(ctx, ec.Recover(ctx, r)) 5294 ret = graphql.Null 5295 } 5296 }() 5297 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5298 ctx = rctx // use context from middleware stack in children 5299 return obj.CriticalCount, nil 5300 }) 5301 if err != nil { 5302 ec.Error(ctx, err) 5303 return graphql.Null 5304 } 5305 if resTmp == nil { 5306 return graphql.Null 5307 } 5308 res := resTmp.(*int) 5309 fc.Result = res 5310 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 5311 } 5312 5313 func (ec *executionContext) fieldContext_ImageVulnerabilitySummary_CriticalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5314 fc = &graphql.FieldContext{ 5315 Object: "ImageVulnerabilitySummary", 5316 Field: field, 5317 IsMethod: false, 5318 IsResolver: false, 5319 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5320 return nil, errors.New("field of type Int does not have child fields") 5321 }, 5322 } 5323 return fc, nil 5324 } 5325 5326 func (ec *executionContext) _LayerHistory_Layer(ctx context.Context, field graphql.CollectedField, obj *LayerHistory) (ret graphql.Marshaler) { 5327 fc, err := ec.fieldContext_LayerHistory_Layer(ctx, field) 5328 if err != nil { 5329 return graphql.Null 5330 } 5331 ctx = graphql.WithFieldContext(ctx, fc) 5332 defer func() { 5333 if r := recover(); r != nil { 5334 ec.Error(ctx, ec.Recover(ctx, r)) 5335 ret = graphql.Null 5336 } 5337 }() 5338 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5339 ctx = rctx // use context from middleware stack in children 5340 return obj.Layer, nil 5341 }) 5342 if err != nil { 5343 ec.Error(ctx, err) 5344 return graphql.Null 5345 } 5346 if resTmp == nil { 5347 return graphql.Null 5348 } 5349 res := resTmp.(*LayerSummary) 5350 fc.Result = res 5351 return ec.marshalOLayerSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx, field.Selections, res) 5352 } 5353 5354 func (ec *executionContext) fieldContext_LayerHistory_Layer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5355 fc = &graphql.FieldContext{ 5356 Object: "LayerHistory", 5357 Field: field, 5358 IsMethod: false, 5359 IsResolver: false, 5360 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5361 switch field.Name { 5362 case "Size": 5363 return ec.fieldContext_LayerSummary_Size(ctx, field) 5364 case "Digest": 5365 return ec.fieldContext_LayerSummary_Digest(ctx, field) 5366 } 5367 return nil, fmt.Errorf("no field named %q was found under type LayerSummary", field.Name) 5368 }, 5369 } 5370 return fc, nil 5371 } 5372 5373 func (ec *executionContext) _LayerHistory_HistoryDescription(ctx context.Context, field graphql.CollectedField, obj *LayerHistory) (ret graphql.Marshaler) { 5374 fc, err := ec.fieldContext_LayerHistory_HistoryDescription(ctx, field) 5375 if err != nil { 5376 return graphql.Null 5377 } 5378 ctx = graphql.WithFieldContext(ctx, fc) 5379 defer func() { 5380 if r := recover(); r != nil { 5381 ec.Error(ctx, ec.Recover(ctx, r)) 5382 ret = graphql.Null 5383 } 5384 }() 5385 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5386 ctx = rctx // use context from middleware stack in children 5387 return obj.HistoryDescription, nil 5388 }) 5389 if err != nil { 5390 ec.Error(ctx, err) 5391 return graphql.Null 5392 } 5393 if resTmp == nil { 5394 return graphql.Null 5395 } 5396 res := resTmp.(*HistoryDescription) 5397 fc.Result = res 5398 return ec.marshalOHistoryDescription2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐHistoryDescription(ctx, field.Selections, res) 5399 } 5400 5401 func (ec *executionContext) fieldContext_LayerHistory_HistoryDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5402 fc = &graphql.FieldContext{ 5403 Object: "LayerHistory", 5404 Field: field, 5405 IsMethod: false, 5406 IsResolver: false, 5407 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5408 switch field.Name { 5409 case "Created": 5410 return ec.fieldContext_HistoryDescription_Created(ctx, field) 5411 case "CreatedBy": 5412 return ec.fieldContext_HistoryDescription_CreatedBy(ctx, field) 5413 case "Author": 5414 return ec.fieldContext_HistoryDescription_Author(ctx, field) 5415 case "Comment": 5416 return ec.fieldContext_HistoryDescription_Comment(ctx, field) 5417 case "EmptyLayer": 5418 return ec.fieldContext_HistoryDescription_EmptyLayer(ctx, field) 5419 } 5420 return nil, fmt.Errorf("no field named %q was found under type HistoryDescription", field.Name) 5421 }, 5422 } 5423 return fc, nil 5424 } 5425 5426 func (ec *executionContext) _LayerSummary_Size(ctx context.Context, field graphql.CollectedField, obj *LayerSummary) (ret graphql.Marshaler) { 5427 fc, err := ec.fieldContext_LayerSummary_Size(ctx, field) 5428 if err != nil { 5429 return graphql.Null 5430 } 5431 ctx = graphql.WithFieldContext(ctx, fc) 5432 defer func() { 5433 if r := recover(); r != nil { 5434 ec.Error(ctx, ec.Recover(ctx, r)) 5435 ret = graphql.Null 5436 } 5437 }() 5438 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5439 ctx = rctx // use context from middleware stack in children 5440 return obj.Size, nil 5441 }) 5442 if err != nil { 5443 ec.Error(ctx, err) 5444 return graphql.Null 5445 } 5446 if resTmp == nil { 5447 return graphql.Null 5448 } 5449 res := resTmp.(*string) 5450 fc.Result = res 5451 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5452 } 5453 5454 func (ec *executionContext) fieldContext_LayerSummary_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5455 fc = &graphql.FieldContext{ 5456 Object: "LayerSummary", 5457 Field: field, 5458 IsMethod: false, 5459 IsResolver: false, 5460 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5461 return nil, errors.New("field of type String does not have child fields") 5462 }, 5463 } 5464 return fc, nil 5465 } 5466 5467 func (ec *executionContext) _LayerSummary_Digest(ctx context.Context, field graphql.CollectedField, obj *LayerSummary) (ret graphql.Marshaler) { 5468 fc, err := ec.fieldContext_LayerSummary_Digest(ctx, field) 5469 if err != nil { 5470 return graphql.Null 5471 } 5472 ctx = graphql.WithFieldContext(ctx, fc) 5473 defer func() { 5474 if r := recover(); r != nil { 5475 ec.Error(ctx, ec.Recover(ctx, r)) 5476 ret = graphql.Null 5477 } 5478 }() 5479 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5480 ctx = rctx // use context from middleware stack in children 5481 return obj.Digest, nil 5482 }) 5483 if err != nil { 5484 ec.Error(ctx, err) 5485 return graphql.Null 5486 } 5487 if resTmp == nil { 5488 return graphql.Null 5489 } 5490 res := resTmp.(*string) 5491 fc.Result = res 5492 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5493 } 5494 5495 func (ec *executionContext) fieldContext_LayerSummary_Digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5496 fc = &graphql.FieldContext{ 5497 Object: "LayerSummary", 5498 Field: field, 5499 IsMethod: false, 5500 IsResolver: false, 5501 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5502 return nil, errors.New("field of type String does not have child fields") 5503 }, 5504 } 5505 return fc, nil 5506 } 5507 5508 func (ec *executionContext) _ManifestSummary_Digest(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5509 fc, err := ec.fieldContext_ManifestSummary_Digest(ctx, field) 5510 if err != nil { 5511 return graphql.Null 5512 } 5513 ctx = graphql.WithFieldContext(ctx, fc) 5514 defer func() { 5515 if r := recover(); r != nil { 5516 ec.Error(ctx, ec.Recover(ctx, r)) 5517 ret = graphql.Null 5518 } 5519 }() 5520 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5521 ctx = rctx // use context from middleware stack in children 5522 return obj.Digest, nil 5523 }) 5524 if err != nil { 5525 ec.Error(ctx, err) 5526 return graphql.Null 5527 } 5528 if resTmp == nil { 5529 return graphql.Null 5530 } 5531 res := resTmp.(*string) 5532 fc.Result = res 5533 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5534 } 5535 5536 func (ec *executionContext) fieldContext_ManifestSummary_Digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5537 fc = &graphql.FieldContext{ 5538 Object: "ManifestSummary", 5539 Field: field, 5540 IsMethod: false, 5541 IsResolver: false, 5542 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5543 return nil, errors.New("field of type String does not have child fields") 5544 }, 5545 } 5546 return fc, nil 5547 } 5548 5549 func (ec *executionContext) _ManifestSummary_ConfigDigest(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5550 fc, err := ec.fieldContext_ManifestSummary_ConfigDigest(ctx, field) 5551 if err != nil { 5552 return graphql.Null 5553 } 5554 ctx = graphql.WithFieldContext(ctx, fc) 5555 defer func() { 5556 if r := recover(); r != nil { 5557 ec.Error(ctx, ec.Recover(ctx, r)) 5558 ret = graphql.Null 5559 } 5560 }() 5561 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5562 ctx = rctx // use context from middleware stack in children 5563 return obj.ConfigDigest, nil 5564 }) 5565 if err != nil { 5566 ec.Error(ctx, err) 5567 return graphql.Null 5568 } 5569 if resTmp == nil { 5570 return graphql.Null 5571 } 5572 res := resTmp.(*string) 5573 fc.Result = res 5574 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5575 } 5576 5577 func (ec *executionContext) fieldContext_ManifestSummary_ConfigDigest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5578 fc = &graphql.FieldContext{ 5579 Object: "ManifestSummary", 5580 Field: field, 5581 IsMethod: false, 5582 IsResolver: false, 5583 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5584 return nil, errors.New("field of type String does not have child fields") 5585 }, 5586 } 5587 return fc, nil 5588 } 5589 5590 func (ec *executionContext) _ManifestSummary_LastUpdated(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5591 fc, err := ec.fieldContext_ManifestSummary_LastUpdated(ctx, field) 5592 if err != nil { 5593 return graphql.Null 5594 } 5595 ctx = graphql.WithFieldContext(ctx, fc) 5596 defer func() { 5597 if r := recover(); r != nil { 5598 ec.Error(ctx, ec.Recover(ctx, r)) 5599 ret = graphql.Null 5600 } 5601 }() 5602 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5603 ctx = rctx // use context from middleware stack in children 5604 return obj.LastUpdated, nil 5605 }) 5606 if err != nil { 5607 ec.Error(ctx, err) 5608 return graphql.Null 5609 } 5610 if resTmp == nil { 5611 return graphql.Null 5612 } 5613 res := resTmp.(*time.Time) 5614 fc.Result = res 5615 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 5616 } 5617 5618 func (ec *executionContext) fieldContext_ManifestSummary_LastUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5619 fc = &graphql.FieldContext{ 5620 Object: "ManifestSummary", 5621 Field: field, 5622 IsMethod: false, 5623 IsResolver: false, 5624 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5625 return nil, errors.New("field of type Time does not have child fields") 5626 }, 5627 } 5628 return fc, nil 5629 } 5630 5631 func (ec *executionContext) _ManifestSummary_Size(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5632 fc, err := ec.fieldContext_ManifestSummary_Size(ctx, field) 5633 if err != nil { 5634 return graphql.Null 5635 } 5636 ctx = graphql.WithFieldContext(ctx, fc) 5637 defer func() { 5638 if r := recover(); r != nil { 5639 ec.Error(ctx, ec.Recover(ctx, r)) 5640 ret = graphql.Null 5641 } 5642 }() 5643 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5644 ctx = rctx // use context from middleware stack in children 5645 return obj.Size, nil 5646 }) 5647 if err != nil { 5648 ec.Error(ctx, err) 5649 return graphql.Null 5650 } 5651 if resTmp == nil { 5652 return graphql.Null 5653 } 5654 res := resTmp.(*string) 5655 fc.Result = res 5656 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5657 } 5658 5659 func (ec *executionContext) fieldContext_ManifestSummary_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5660 fc = &graphql.FieldContext{ 5661 Object: "ManifestSummary", 5662 Field: field, 5663 IsMethod: false, 5664 IsResolver: false, 5665 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5666 return nil, errors.New("field of type String does not have child fields") 5667 }, 5668 } 5669 return fc, nil 5670 } 5671 5672 func (ec *executionContext) _ManifestSummary_IsSigned(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5673 fc, err := ec.fieldContext_ManifestSummary_IsSigned(ctx, field) 5674 if err != nil { 5675 return graphql.Null 5676 } 5677 ctx = graphql.WithFieldContext(ctx, fc) 5678 defer func() { 5679 if r := recover(); r != nil { 5680 ec.Error(ctx, ec.Recover(ctx, r)) 5681 ret = graphql.Null 5682 } 5683 }() 5684 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5685 ctx = rctx // use context from middleware stack in children 5686 return obj.IsSigned, nil 5687 }) 5688 if err != nil { 5689 ec.Error(ctx, err) 5690 return graphql.Null 5691 } 5692 if resTmp == nil { 5693 return graphql.Null 5694 } 5695 res := resTmp.(*bool) 5696 fc.Result = res 5697 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 5698 } 5699 5700 func (ec *executionContext) fieldContext_ManifestSummary_IsSigned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5701 fc = &graphql.FieldContext{ 5702 Object: "ManifestSummary", 5703 Field: field, 5704 IsMethod: false, 5705 IsResolver: false, 5706 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5707 return nil, errors.New("field of type Boolean does not have child fields") 5708 }, 5709 } 5710 return fc, nil 5711 } 5712 5713 func (ec *executionContext) _ManifestSummary_SignatureInfo(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5714 fc, err := ec.fieldContext_ManifestSummary_SignatureInfo(ctx, field) 5715 if err != nil { 5716 return graphql.Null 5717 } 5718 ctx = graphql.WithFieldContext(ctx, fc) 5719 defer func() { 5720 if r := recover(); r != nil { 5721 ec.Error(ctx, ec.Recover(ctx, r)) 5722 ret = graphql.Null 5723 } 5724 }() 5725 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5726 ctx = rctx // use context from middleware stack in children 5727 return obj.SignatureInfo, nil 5728 }) 5729 if err != nil { 5730 ec.Error(ctx, err) 5731 return graphql.Null 5732 } 5733 if resTmp == nil { 5734 return graphql.Null 5735 } 5736 res := resTmp.([]*SignatureSummary) 5737 fc.Result = res 5738 return ec.marshalOSignatureSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx, field.Selections, res) 5739 } 5740 5741 func (ec *executionContext) fieldContext_ManifestSummary_SignatureInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5742 fc = &graphql.FieldContext{ 5743 Object: "ManifestSummary", 5744 Field: field, 5745 IsMethod: false, 5746 IsResolver: false, 5747 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5748 switch field.Name { 5749 case "Tool": 5750 return ec.fieldContext_SignatureSummary_Tool(ctx, field) 5751 case "IsTrusted": 5752 return ec.fieldContext_SignatureSummary_IsTrusted(ctx, field) 5753 case "Author": 5754 return ec.fieldContext_SignatureSummary_Author(ctx, field) 5755 } 5756 return nil, fmt.Errorf("no field named %q was found under type SignatureSummary", field.Name) 5757 }, 5758 } 5759 return fc, nil 5760 } 5761 5762 func (ec *executionContext) _ManifestSummary_Platform(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5763 fc, err := ec.fieldContext_ManifestSummary_Platform(ctx, field) 5764 if err != nil { 5765 return graphql.Null 5766 } 5767 ctx = graphql.WithFieldContext(ctx, fc) 5768 defer func() { 5769 if r := recover(); r != nil { 5770 ec.Error(ctx, ec.Recover(ctx, r)) 5771 ret = graphql.Null 5772 } 5773 }() 5774 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5775 ctx = rctx // use context from middleware stack in children 5776 return obj.Platform, nil 5777 }) 5778 if err != nil { 5779 ec.Error(ctx, err) 5780 return graphql.Null 5781 } 5782 if resTmp == nil { 5783 return graphql.Null 5784 } 5785 res := resTmp.(*Platform) 5786 fc.Result = res 5787 return ec.marshalOPlatform2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx, field.Selections, res) 5788 } 5789 5790 func (ec *executionContext) fieldContext_ManifestSummary_Platform(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5791 fc = &graphql.FieldContext{ 5792 Object: "ManifestSummary", 5793 Field: field, 5794 IsMethod: false, 5795 IsResolver: false, 5796 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5797 switch field.Name { 5798 case "Os": 5799 return ec.fieldContext_Platform_Os(ctx, field) 5800 case "Arch": 5801 return ec.fieldContext_Platform_Arch(ctx, field) 5802 } 5803 return nil, fmt.Errorf("no field named %q was found under type Platform", field.Name) 5804 }, 5805 } 5806 return fc, nil 5807 } 5808 5809 func (ec *executionContext) _ManifestSummary_DownloadCount(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5810 fc, err := ec.fieldContext_ManifestSummary_DownloadCount(ctx, field) 5811 if err != nil { 5812 return graphql.Null 5813 } 5814 ctx = graphql.WithFieldContext(ctx, fc) 5815 defer func() { 5816 if r := recover(); r != nil { 5817 ec.Error(ctx, ec.Recover(ctx, r)) 5818 ret = graphql.Null 5819 } 5820 }() 5821 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5822 ctx = rctx // use context from middleware stack in children 5823 return obj.DownloadCount, nil 5824 }) 5825 if err != nil { 5826 ec.Error(ctx, err) 5827 return graphql.Null 5828 } 5829 if resTmp == nil { 5830 return graphql.Null 5831 } 5832 res := resTmp.(*int) 5833 fc.Result = res 5834 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 5835 } 5836 5837 func (ec *executionContext) fieldContext_ManifestSummary_DownloadCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5838 fc = &graphql.FieldContext{ 5839 Object: "ManifestSummary", 5840 Field: field, 5841 IsMethod: false, 5842 IsResolver: false, 5843 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5844 return nil, errors.New("field of type Int does not have child fields") 5845 }, 5846 } 5847 return fc, nil 5848 } 5849 5850 func (ec *executionContext) _ManifestSummary_Layers(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5851 fc, err := ec.fieldContext_ManifestSummary_Layers(ctx, field) 5852 if err != nil { 5853 return graphql.Null 5854 } 5855 ctx = graphql.WithFieldContext(ctx, fc) 5856 defer func() { 5857 if r := recover(); r != nil { 5858 ec.Error(ctx, ec.Recover(ctx, r)) 5859 ret = graphql.Null 5860 } 5861 }() 5862 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5863 ctx = rctx // use context from middleware stack in children 5864 return obj.Layers, nil 5865 }) 5866 if err != nil { 5867 ec.Error(ctx, err) 5868 return graphql.Null 5869 } 5870 if resTmp == nil { 5871 return graphql.Null 5872 } 5873 res := resTmp.([]*LayerSummary) 5874 fc.Result = res 5875 return ec.marshalOLayerSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx, field.Selections, res) 5876 } 5877 5878 func (ec *executionContext) fieldContext_ManifestSummary_Layers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5879 fc = &graphql.FieldContext{ 5880 Object: "ManifestSummary", 5881 Field: field, 5882 IsMethod: false, 5883 IsResolver: false, 5884 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5885 switch field.Name { 5886 case "Size": 5887 return ec.fieldContext_LayerSummary_Size(ctx, field) 5888 case "Digest": 5889 return ec.fieldContext_LayerSummary_Digest(ctx, field) 5890 } 5891 return nil, fmt.Errorf("no field named %q was found under type LayerSummary", field.Name) 5892 }, 5893 } 5894 return fc, nil 5895 } 5896 5897 func (ec *executionContext) _ManifestSummary_History(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5898 fc, err := ec.fieldContext_ManifestSummary_History(ctx, field) 5899 if err != nil { 5900 return graphql.Null 5901 } 5902 ctx = graphql.WithFieldContext(ctx, fc) 5903 defer func() { 5904 if r := recover(); r != nil { 5905 ec.Error(ctx, ec.Recover(ctx, r)) 5906 ret = graphql.Null 5907 } 5908 }() 5909 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5910 ctx = rctx // use context from middleware stack in children 5911 return obj.History, nil 5912 }) 5913 if err != nil { 5914 ec.Error(ctx, err) 5915 return graphql.Null 5916 } 5917 if resTmp == nil { 5918 return graphql.Null 5919 } 5920 res := resTmp.([]*LayerHistory) 5921 fc.Result = res 5922 return ec.marshalOLayerHistory2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerHistory(ctx, field.Selections, res) 5923 } 5924 5925 func (ec *executionContext) fieldContext_ManifestSummary_History(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5926 fc = &graphql.FieldContext{ 5927 Object: "ManifestSummary", 5928 Field: field, 5929 IsMethod: false, 5930 IsResolver: false, 5931 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5932 switch field.Name { 5933 case "Layer": 5934 return ec.fieldContext_LayerHistory_Layer(ctx, field) 5935 case "HistoryDescription": 5936 return ec.fieldContext_LayerHistory_HistoryDescription(ctx, field) 5937 } 5938 return nil, fmt.Errorf("no field named %q was found under type LayerHistory", field.Name) 5939 }, 5940 } 5941 return fc, nil 5942 } 5943 5944 func (ec *executionContext) _ManifestSummary_Vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 5945 fc, err := ec.fieldContext_ManifestSummary_Vulnerabilities(ctx, field) 5946 if err != nil { 5947 return graphql.Null 5948 } 5949 ctx = graphql.WithFieldContext(ctx, fc) 5950 defer func() { 5951 if r := recover(); r != nil { 5952 ec.Error(ctx, ec.Recover(ctx, r)) 5953 ret = graphql.Null 5954 } 5955 }() 5956 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5957 ctx = rctx // use context from middleware stack in children 5958 return obj.Vulnerabilities, nil 5959 }) 5960 if err != nil { 5961 ec.Error(ctx, err) 5962 return graphql.Null 5963 } 5964 if resTmp == nil { 5965 return graphql.Null 5966 } 5967 res := resTmp.(*ImageVulnerabilitySummary) 5968 fc.Result = res 5969 return ec.marshalOImageVulnerabilitySummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageVulnerabilitySummary(ctx, field.Selections, res) 5970 } 5971 5972 func (ec *executionContext) fieldContext_ManifestSummary_Vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5973 fc = &graphql.FieldContext{ 5974 Object: "ManifestSummary", 5975 Field: field, 5976 IsMethod: false, 5977 IsResolver: false, 5978 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5979 switch field.Name { 5980 case "MaxSeverity": 5981 return ec.fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx, field) 5982 case "Count": 5983 return ec.fieldContext_ImageVulnerabilitySummary_Count(ctx, field) 5984 case "UnknownCount": 5985 return ec.fieldContext_ImageVulnerabilitySummary_UnknownCount(ctx, field) 5986 case "LowCount": 5987 return ec.fieldContext_ImageVulnerabilitySummary_LowCount(ctx, field) 5988 case "MediumCount": 5989 return ec.fieldContext_ImageVulnerabilitySummary_MediumCount(ctx, field) 5990 case "HighCount": 5991 return ec.fieldContext_ImageVulnerabilitySummary_HighCount(ctx, field) 5992 case "CriticalCount": 5993 return ec.fieldContext_ImageVulnerabilitySummary_CriticalCount(ctx, field) 5994 } 5995 return nil, fmt.Errorf("no field named %q was found under type ImageVulnerabilitySummary", field.Name) 5996 }, 5997 } 5998 return fc, nil 5999 } 6000 6001 func (ec *executionContext) _ManifestSummary_Referrers(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 6002 fc, err := ec.fieldContext_ManifestSummary_Referrers(ctx, field) 6003 if err != nil { 6004 return graphql.Null 6005 } 6006 ctx = graphql.WithFieldContext(ctx, fc) 6007 defer func() { 6008 if r := recover(); r != nil { 6009 ec.Error(ctx, ec.Recover(ctx, r)) 6010 ret = graphql.Null 6011 } 6012 }() 6013 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6014 ctx = rctx // use context from middleware stack in children 6015 return obj.Referrers, nil 6016 }) 6017 if err != nil { 6018 ec.Error(ctx, err) 6019 return graphql.Null 6020 } 6021 if resTmp == nil { 6022 return graphql.Null 6023 } 6024 res := resTmp.([]*Referrer) 6025 fc.Result = res 6026 return ec.marshalOReferrer2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, field.Selections, res) 6027 } 6028 6029 func (ec *executionContext) fieldContext_ManifestSummary_Referrers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6030 fc = &graphql.FieldContext{ 6031 Object: "ManifestSummary", 6032 Field: field, 6033 IsMethod: false, 6034 IsResolver: false, 6035 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6036 switch field.Name { 6037 case "MediaType": 6038 return ec.fieldContext_Referrer_MediaType(ctx, field) 6039 case "ArtifactType": 6040 return ec.fieldContext_Referrer_ArtifactType(ctx, field) 6041 case "Size": 6042 return ec.fieldContext_Referrer_Size(ctx, field) 6043 case "Digest": 6044 return ec.fieldContext_Referrer_Digest(ctx, field) 6045 case "Annotations": 6046 return ec.fieldContext_Referrer_Annotations(ctx, field) 6047 } 6048 return nil, fmt.Errorf("no field named %q was found under type Referrer", field.Name) 6049 }, 6050 } 6051 return fc, nil 6052 } 6053 6054 func (ec *executionContext) _ManifestSummary_ArtifactType(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 6055 fc, err := ec.fieldContext_ManifestSummary_ArtifactType(ctx, field) 6056 if err != nil { 6057 return graphql.Null 6058 } 6059 ctx = graphql.WithFieldContext(ctx, fc) 6060 defer func() { 6061 if r := recover(); r != nil { 6062 ec.Error(ctx, ec.Recover(ctx, r)) 6063 ret = graphql.Null 6064 } 6065 }() 6066 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6067 ctx = rctx // use context from middleware stack in children 6068 return obj.ArtifactType, nil 6069 }) 6070 if err != nil { 6071 ec.Error(ctx, err) 6072 return graphql.Null 6073 } 6074 if resTmp == nil { 6075 return graphql.Null 6076 } 6077 res := resTmp.(*string) 6078 fc.Result = res 6079 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6080 } 6081 6082 func (ec *executionContext) fieldContext_ManifestSummary_ArtifactType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6083 fc = &graphql.FieldContext{ 6084 Object: "ManifestSummary", 6085 Field: field, 6086 IsMethod: false, 6087 IsResolver: false, 6088 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6089 return nil, errors.New("field of type String does not have child fields") 6090 }, 6091 } 6092 return fc, nil 6093 } 6094 6095 func (ec *executionContext) _PackageInfo_Name(ctx context.Context, field graphql.CollectedField, obj *PackageInfo) (ret graphql.Marshaler) { 6096 fc, err := ec.fieldContext_PackageInfo_Name(ctx, field) 6097 if err != nil { 6098 return graphql.Null 6099 } 6100 ctx = graphql.WithFieldContext(ctx, fc) 6101 defer func() { 6102 if r := recover(); r != nil { 6103 ec.Error(ctx, ec.Recover(ctx, r)) 6104 ret = graphql.Null 6105 } 6106 }() 6107 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6108 ctx = rctx // use context from middleware stack in children 6109 return obj.Name, nil 6110 }) 6111 if err != nil { 6112 ec.Error(ctx, err) 6113 return graphql.Null 6114 } 6115 if resTmp == nil { 6116 return graphql.Null 6117 } 6118 res := resTmp.(*string) 6119 fc.Result = res 6120 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6121 } 6122 6123 func (ec *executionContext) fieldContext_PackageInfo_Name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6124 fc = &graphql.FieldContext{ 6125 Object: "PackageInfo", 6126 Field: field, 6127 IsMethod: false, 6128 IsResolver: false, 6129 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6130 return nil, errors.New("field of type String does not have child fields") 6131 }, 6132 } 6133 return fc, nil 6134 } 6135 6136 func (ec *executionContext) _PackageInfo_PackagePath(ctx context.Context, field graphql.CollectedField, obj *PackageInfo) (ret graphql.Marshaler) { 6137 fc, err := ec.fieldContext_PackageInfo_PackagePath(ctx, field) 6138 if err != nil { 6139 return graphql.Null 6140 } 6141 ctx = graphql.WithFieldContext(ctx, fc) 6142 defer func() { 6143 if r := recover(); r != nil { 6144 ec.Error(ctx, ec.Recover(ctx, r)) 6145 ret = graphql.Null 6146 } 6147 }() 6148 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6149 ctx = rctx // use context from middleware stack in children 6150 return obj.PackagePath, nil 6151 }) 6152 if err != nil { 6153 ec.Error(ctx, err) 6154 return graphql.Null 6155 } 6156 if resTmp == nil { 6157 return graphql.Null 6158 } 6159 res := resTmp.(*string) 6160 fc.Result = res 6161 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6162 } 6163 6164 func (ec *executionContext) fieldContext_PackageInfo_PackagePath(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6165 fc = &graphql.FieldContext{ 6166 Object: "PackageInfo", 6167 Field: field, 6168 IsMethod: false, 6169 IsResolver: false, 6170 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6171 return nil, errors.New("field of type String does not have child fields") 6172 }, 6173 } 6174 return fc, nil 6175 } 6176 6177 func (ec *executionContext) _PackageInfo_InstalledVersion(ctx context.Context, field graphql.CollectedField, obj *PackageInfo) (ret graphql.Marshaler) { 6178 fc, err := ec.fieldContext_PackageInfo_InstalledVersion(ctx, field) 6179 if err != nil { 6180 return graphql.Null 6181 } 6182 ctx = graphql.WithFieldContext(ctx, fc) 6183 defer func() { 6184 if r := recover(); r != nil { 6185 ec.Error(ctx, ec.Recover(ctx, r)) 6186 ret = graphql.Null 6187 } 6188 }() 6189 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6190 ctx = rctx // use context from middleware stack in children 6191 return obj.InstalledVersion, nil 6192 }) 6193 if err != nil { 6194 ec.Error(ctx, err) 6195 return graphql.Null 6196 } 6197 if resTmp == nil { 6198 return graphql.Null 6199 } 6200 res := resTmp.(*string) 6201 fc.Result = res 6202 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6203 } 6204 6205 func (ec *executionContext) fieldContext_PackageInfo_InstalledVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6206 fc = &graphql.FieldContext{ 6207 Object: "PackageInfo", 6208 Field: field, 6209 IsMethod: false, 6210 IsResolver: false, 6211 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6212 return nil, errors.New("field of type String does not have child fields") 6213 }, 6214 } 6215 return fc, nil 6216 } 6217 6218 func (ec *executionContext) _PackageInfo_FixedVersion(ctx context.Context, field graphql.CollectedField, obj *PackageInfo) (ret graphql.Marshaler) { 6219 fc, err := ec.fieldContext_PackageInfo_FixedVersion(ctx, field) 6220 if err != nil { 6221 return graphql.Null 6222 } 6223 ctx = graphql.WithFieldContext(ctx, fc) 6224 defer func() { 6225 if r := recover(); r != nil { 6226 ec.Error(ctx, ec.Recover(ctx, r)) 6227 ret = graphql.Null 6228 } 6229 }() 6230 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6231 ctx = rctx // use context from middleware stack in children 6232 return obj.FixedVersion, nil 6233 }) 6234 if err != nil { 6235 ec.Error(ctx, err) 6236 return graphql.Null 6237 } 6238 if resTmp == nil { 6239 return graphql.Null 6240 } 6241 res := resTmp.(*string) 6242 fc.Result = res 6243 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6244 } 6245 6246 func (ec *executionContext) fieldContext_PackageInfo_FixedVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6247 fc = &graphql.FieldContext{ 6248 Object: "PackageInfo", 6249 Field: field, 6250 IsMethod: false, 6251 IsResolver: false, 6252 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6253 return nil, errors.New("field of type String does not have child fields") 6254 }, 6255 } 6256 return fc, nil 6257 } 6258 6259 func (ec *executionContext) _PageInfo_TotalCount(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) { 6260 fc, err := ec.fieldContext_PageInfo_TotalCount(ctx, field) 6261 if err != nil { 6262 return graphql.Null 6263 } 6264 ctx = graphql.WithFieldContext(ctx, fc) 6265 defer func() { 6266 if r := recover(); r != nil { 6267 ec.Error(ctx, ec.Recover(ctx, r)) 6268 ret = graphql.Null 6269 } 6270 }() 6271 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6272 ctx = rctx // use context from middleware stack in children 6273 return obj.TotalCount, nil 6274 }) 6275 if err != nil { 6276 ec.Error(ctx, err) 6277 return graphql.Null 6278 } 6279 if resTmp == nil { 6280 if !graphql.HasFieldError(ctx, fc) { 6281 ec.Errorf(ctx, "must not be null") 6282 } 6283 return graphql.Null 6284 } 6285 res := resTmp.(int) 6286 fc.Result = res 6287 return ec.marshalNInt2int(ctx, field.Selections, res) 6288 } 6289 6290 func (ec *executionContext) fieldContext_PageInfo_TotalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6291 fc = &graphql.FieldContext{ 6292 Object: "PageInfo", 6293 Field: field, 6294 IsMethod: false, 6295 IsResolver: false, 6296 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6297 return nil, errors.New("field of type Int does not have child fields") 6298 }, 6299 } 6300 return fc, nil 6301 } 6302 6303 func (ec *executionContext) _PageInfo_ItemCount(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) { 6304 fc, err := ec.fieldContext_PageInfo_ItemCount(ctx, field) 6305 if err != nil { 6306 return graphql.Null 6307 } 6308 ctx = graphql.WithFieldContext(ctx, fc) 6309 defer func() { 6310 if r := recover(); r != nil { 6311 ec.Error(ctx, ec.Recover(ctx, r)) 6312 ret = graphql.Null 6313 } 6314 }() 6315 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6316 ctx = rctx // use context from middleware stack in children 6317 return obj.ItemCount, nil 6318 }) 6319 if err != nil { 6320 ec.Error(ctx, err) 6321 return graphql.Null 6322 } 6323 if resTmp == nil { 6324 if !graphql.HasFieldError(ctx, fc) { 6325 ec.Errorf(ctx, "must not be null") 6326 } 6327 return graphql.Null 6328 } 6329 res := resTmp.(int) 6330 fc.Result = res 6331 return ec.marshalNInt2int(ctx, field.Selections, res) 6332 } 6333 6334 func (ec *executionContext) fieldContext_PageInfo_ItemCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6335 fc = &graphql.FieldContext{ 6336 Object: "PageInfo", 6337 Field: field, 6338 IsMethod: false, 6339 IsResolver: false, 6340 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6341 return nil, errors.New("field of type Int does not have child fields") 6342 }, 6343 } 6344 return fc, nil 6345 } 6346 6347 func (ec *executionContext) _PaginatedImagesResult_Page(ctx context.Context, field graphql.CollectedField, obj *PaginatedImagesResult) (ret graphql.Marshaler) { 6348 fc, err := ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 6349 if err != nil { 6350 return graphql.Null 6351 } 6352 ctx = graphql.WithFieldContext(ctx, fc) 6353 defer func() { 6354 if r := recover(); r != nil { 6355 ec.Error(ctx, ec.Recover(ctx, r)) 6356 ret = graphql.Null 6357 } 6358 }() 6359 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6360 ctx = rctx // use context from middleware stack in children 6361 return obj.Page, nil 6362 }) 6363 if err != nil { 6364 ec.Error(ctx, err) 6365 return graphql.Null 6366 } 6367 if resTmp == nil { 6368 return graphql.Null 6369 } 6370 res := resTmp.(*PageInfo) 6371 fc.Result = res 6372 return ec.marshalOPageInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx, field.Selections, res) 6373 } 6374 6375 func (ec *executionContext) fieldContext_PaginatedImagesResult_Page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6376 fc = &graphql.FieldContext{ 6377 Object: "PaginatedImagesResult", 6378 Field: field, 6379 IsMethod: false, 6380 IsResolver: false, 6381 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6382 switch field.Name { 6383 case "TotalCount": 6384 return ec.fieldContext_PageInfo_TotalCount(ctx, field) 6385 case "ItemCount": 6386 return ec.fieldContext_PageInfo_ItemCount(ctx, field) 6387 } 6388 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) 6389 }, 6390 } 6391 return fc, nil 6392 } 6393 6394 func (ec *executionContext) _PaginatedImagesResult_Results(ctx context.Context, field graphql.CollectedField, obj *PaginatedImagesResult) (ret graphql.Marshaler) { 6395 fc, err := ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 6396 if err != nil { 6397 return graphql.Null 6398 } 6399 ctx = graphql.WithFieldContext(ctx, fc) 6400 defer func() { 6401 if r := recover(); r != nil { 6402 ec.Error(ctx, ec.Recover(ctx, r)) 6403 ret = graphql.Null 6404 } 6405 }() 6406 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6407 ctx = rctx // use context from middleware stack in children 6408 return obj.Results, nil 6409 }) 6410 if err != nil { 6411 ec.Error(ctx, err) 6412 return graphql.Null 6413 } 6414 if resTmp == nil { 6415 if !graphql.HasFieldError(ctx, fc) { 6416 ec.Errorf(ctx, "must not be null") 6417 } 6418 return graphql.Null 6419 } 6420 res := resTmp.([]*ImageSummary) 6421 fc.Result = res 6422 return ec.marshalNImageSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummaryᚄ(ctx, field.Selections, res) 6423 } 6424 6425 func (ec *executionContext) fieldContext_PaginatedImagesResult_Results(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6426 fc = &graphql.FieldContext{ 6427 Object: "PaginatedImagesResult", 6428 Field: field, 6429 IsMethod: false, 6430 IsResolver: false, 6431 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6432 switch field.Name { 6433 case "RepoName": 6434 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 6435 case "Tag": 6436 return ec.fieldContext_ImageSummary_Tag(ctx, field) 6437 case "Digest": 6438 return ec.fieldContext_ImageSummary_Digest(ctx, field) 6439 case "MediaType": 6440 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 6441 case "Manifests": 6442 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 6443 case "Size": 6444 return ec.fieldContext_ImageSummary_Size(ctx, field) 6445 case "DownloadCount": 6446 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 6447 case "LastUpdated": 6448 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 6449 case "Description": 6450 return ec.fieldContext_ImageSummary_Description(ctx, field) 6451 case "IsSigned": 6452 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 6453 case "SignatureInfo": 6454 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 6455 case "Licenses": 6456 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 6457 case "Labels": 6458 return ec.fieldContext_ImageSummary_Labels(ctx, field) 6459 case "Title": 6460 return ec.fieldContext_ImageSummary_Title(ctx, field) 6461 case "Source": 6462 return ec.fieldContext_ImageSummary_Source(ctx, field) 6463 case "Documentation": 6464 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 6465 case "Vendor": 6466 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 6467 case "Authors": 6468 return ec.fieldContext_ImageSummary_Authors(ctx, field) 6469 case "Vulnerabilities": 6470 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 6471 case "Referrers": 6472 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 6473 case "IsDeletable": 6474 return ec.fieldContext_ImageSummary_IsDeletable(ctx, field) 6475 } 6476 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 6477 }, 6478 } 6479 return fc, nil 6480 } 6481 6482 func (ec *executionContext) _PaginatedReposResult_Page(ctx context.Context, field graphql.CollectedField, obj *PaginatedReposResult) (ret graphql.Marshaler) { 6483 fc, err := ec.fieldContext_PaginatedReposResult_Page(ctx, field) 6484 if err != nil { 6485 return graphql.Null 6486 } 6487 ctx = graphql.WithFieldContext(ctx, fc) 6488 defer func() { 6489 if r := recover(); r != nil { 6490 ec.Error(ctx, ec.Recover(ctx, r)) 6491 ret = graphql.Null 6492 } 6493 }() 6494 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6495 ctx = rctx // use context from middleware stack in children 6496 return obj.Page, nil 6497 }) 6498 if err != nil { 6499 ec.Error(ctx, err) 6500 return graphql.Null 6501 } 6502 if resTmp == nil { 6503 return graphql.Null 6504 } 6505 res := resTmp.(*PageInfo) 6506 fc.Result = res 6507 return ec.marshalOPageInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx, field.Selections, res) 6508 } 6509 6510 func (ec *executionContext) fieldContext_PaginatedReposResult_Page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6511 fc = &graphql.FieldContext{ 6512 Object: "PaginatedReposResult", 6513 Field: field, 6514 IsMethod: false, 6515 IsResolver: false, 6516 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6517 switch field.Name { 6518 case "TotalCount": 6519 return ec.fieldContext_PageInfo_TotalCount(ctx, field) 6520 case "ItemCount": 6521 return ec.fieldContext_PageInfo_ItemCount(ctx, field) 6522 } 6523 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) 6524 }, 6525 } 6526 return fc, nil 6527 } 6528 6529 func (ec *executionContext) _PaginatedReposResult_Results(ctx context.Context, field graphql.CollectedField, obj *PaginatedReposResult) (ret graphql.Marshaler) { 6530 fc, err := ec.fieldContext_PaginatedReposResult_Results(ctx, field) 6531 if err != nil { 6532 return graphql.Null 6533 } 6534 ctx = graphql.WithFieldContext(ctx, fc) 6535 defer func() { 6536 if r := recover(); r != nil { 6537 ec.Error(ctx, ec.Recover(ctx, r)) 6538 ret = graphql.Null 6539 } 6540 }() 6541 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6542 ctx = rctx // use context from middleware stack in children 6543 return obj.Results, nil 6544 }) 6545 if err != nil { 6546 ec.Error(ctx, err) 6547 return graphql.Null 6548 } 6549 if resTmp == nil { 6550 if !graphql.HasFieldError(ctx, fc) { 6551 ec.Errorf(ctx, "must not be null") 6552 } 6553 return graphql.Null 6554 } 6555 res := resTmp.([]*RepoSummary) 6556 fc.Result = res 6557 return ec.marshalNRepoSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummaryᚄ(ctx, field.Selections, res) 6558 } 6559 6560 func (ec *executionContext) fieldContext_PaginatedReposResult_Results(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6561 fc = &graphql.FieldContext{ 6562 Object: "PaginatedReposResult", 6563 Field: field, 6564 IsMethod: false, 6565 IsResolver: false, 6566 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6567 switch field.Name { 6568 case "Name": 6569 return ec.fieldContext_RepoSummary_Name(ctx, field) 6570 case "LastUpdated": 6571 return ec.fieldContext_RepoSummary_LastUpdated(ctx, field) 6572 case "Size": 6573 return ec.fieldContext_RepoSummary_Size(ctx, field) 6574 case "Platforms": 6575 return ec.fieldContext_RepoSummary_Platforms(ctx, field) 6576 case "Vendors": 6577 return ec.fieldContext_RepoSummary_Vendors(ctx, field) 6578 case "NewestImage": 6579 return ec.fieldContext_RepoSummary_NewestImage(ctx, field) 6580 case "DownloadCount": 6581 return ec.fieldContext_RepoSummary_DownloadCount(ctx, field) 6582 case "StarCount": 6583 return ec.fieldContext_RepoSummary_StarCount(ctx, field) 6584 case "IsBookmarked": 6585 return ec.fieldContext_RepoSummary_IsBookmarked(ctx, field) 6586 case "IsStarred": 6587 return ec.fieldContext_RepoSummary_IsStarred(ctx, field) 6588 case "Rank": 6589 return ec.fieldContext_RepoSummary_Rank(ctx, field) 6590 } 6591 return nil, fmt.Errorf("no field named %q was found under type RepoSummary", field.Name) 6592 }, 6593 } 6594 return fc, nil 6595 } 6596 6597 func (ec *executionContext) _Platform_Os(ctx context.Context, field graphql.CollectedField, obj *Platform) (ret graphql.Marshaler) { 6598 fc, err := ec.fieldContext_Platform_Os(ctx, field) 6599 if err != nil { 6600 return graphql.Null 6601 } 6602 ctx = graphql.WithFieldContext(ctx, fc) 6603 defer func() { 6604 if r := recover(); r != nil { 6605 ec.Error(ctx, ec.Recover(ctx, r)) 6606 ret = graphql.Null 6607 } 6608 }() 6609 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6610 ctx = rctx // use context from middleware stack in children 6611 return obj.Os, nil 6612 }) 6613 if err != nil { 6614 ec.Error(ctx, err) 6615 return graphql.Null 6616 } 6617 if resTmp == nil { 6618 return graphql.Null 6619 } 6620 res := resTmp.(*string) 6621 fc.Result = res 6622 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6623 } 6624 6625 func (ec *executionContext) fieldContext_Platform_Os(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6626 fc = &graphql.FieldContext{ 6627 Object: "Platform", 6628 Field: field, 6629 IsMethod: false, 6630 IsResolver: false, 6631 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6632 return nil, errors.New("field of type String does not have child fields") 6633 }, 6634 } 6635 return fc, nil 6636 } 6637 6638 func (ec *executionContext) _Platform_Arch(ctx context.Context, field graphql.CollectedField, obj *Platform) (ret graphql.Marshaler) { 6639 fc, err := ec.fieldContext_Platform_Arch(ctx, field) 6640 if err != nil { 6641 return graphql.Null 6642 } 6643 ctx = graphql.WithFieldContext(ctx, fc) 6644 defer func() { 6645 if r := recover(); r != nil { 6646 ec.Error(ctx, ec.Recover(ctx, r)) 6647 ret = graphql.Null 6648 } 6649 }() 6650 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6651 ctx = rctx // use context from middleware stack in children 6652 return obj.Arch, nil 6653 }) 6654 if err != nil { 6655 ec.Error(ctx, err) 6656 return graphql.Null 6657 } 6658 if resTmp == nil { 6659 return graphql.Null 6660 } 6661 res := resTmp.(*string) 6662 fc.Result = res 6663 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6664 } 6665 6666 func (ec *executionContext) fieldContext_Platform_Arch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6667 fc = &graphql.FieldContext{ 6668 Object: "Platform", 6669 Field: field, 6670 IsMethod: false, 6671 IsResolver: false, 6672 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6673 return nil, errors.New("field of type String does not have child fields") 6674 }, 6675 } 6676 return fc, nil 6677 } 6678 6679 func (ec *executionContext) _Query_CVEListForImage(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6680 fc, err := ec.fieldContext_Query_CVEListForImage(ctx, field) 6681 if err != nil { 6682 return graphql.Null 6683 } 6684 ctx = graphql.WithFieldContext(ctx, fc) 6685 defer func() { 6686 if r := recover(); r != nil { 6687 ec.Error(ctx, ec.Recover(ctx, r)) 6688 ret = graphql.Null 6689 } 6690 }() 6691 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6692 ctx = rctx // use context from middleware stack in children 6693 return ec.resolvers.Query().CVEListForImage(rctx, fc.Args["image"].(string), fc.Args["requestedPage"].(*PageInput), fc.Args["searchedCVE"].(*string), fc.Args["excludedCVE"].(*string), fc.Args["severity"].(*string)) 6694 }) 6695 if err != nil { 6696 ec.Error(ctx, err) 6697 return graphql.Null 6698 } 6699 if resTmp == nil { 6700 if !graphql.HasFieldError(ctx, fc) { 6701 ec.Errorf(ctx, "must not be null") 6702 } 6703 return graphql.Null 6704 } 6705 res := resTmp.(*CVEResultForImage) 6706 fc.Result = res 6707 return ec.marshalNCVEResultForImage2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCVEResultForImage(ctx, field.Selections, res) 6708 } 6709 6710 func (ec *executionContext) fieldContext_Query_CVEListForImage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6711 fc = &graphql.FieldContext{ 6712 Object: "Query", 6713 Field: field, 6714 IsMethod: true, 6715 IsResolver: true, 6716 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6717 switch field.Name { 6718 case "Tag": 6719 return ec.fieldContext_CVEResultForImage_Tag(ctx, field) 6720 case "CVEList": 6721 return ec.fieldContext_CVEResultForImage_CVEList(ctx, field) 6722 case "Summary": 6723 return ec.fieldContext_CVEResultForImage_Summary(ctx, field) 6724 case "Page": 6725 return ec.fieldContext_CVEResultForImage_Page(ctx, field) 6726 } 6727 return nil, fmt.Errorf("no field named %q was found under type CVEResultForImage", field.Name) 6728 }, 6729 } 6730 defer func() { 6731 if r := recover(); r != nil { 6732 err = ec.Recover(ctx, r) 6733 ec.Error(ctx, err) 6734 } 6735 }() 6736 ctx = graphql.WithFieldContext(ctx, fc) 6737 if fc.Args, err = ec.field_Query_CVEListForImage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6738 ec.Error(ctx, err) 6739 return fc, err 6740 } 6741 return fc, nil 6742 } 6743 6744 func (ec *executionContext) _Query_CVEDiffListForImages(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6745 fc, err := ec.fieldContext_Query_CVEDiffListForImages(ctx, field) 6746 if err != nil { 6747 return graphql.Null 6748 } 6749 ctx = graphql.WithFieldContext(ctx, fc) 6750 defer func() { 6751 if r := recover(); r != nil { 6752 ec.Error(ctx, ec.Recover(ctx, r)) 6753 ret = graphql.Null 6754 } 6755 }() 6756 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6757 ctx = rctx // use context from middleware stack in children 6758 return ec.resolvers.Query().CVEDiffListForImages(rctx, fc.Args["minuend"].(ImageInput), fc.Args["subtrahend"].(ImageInput), fc.Args["requestedPage"].(*PageInput), fc.Args["searchedCVE"].(*string), fc.Args["excludedCVE"].(*string)) 6759 }) 6760 if err != nil { 6761 ec.Error(ctx, err) 6762 return graphql.Null 6763 } 6764 if resTmp == nil { 6765 if !graphql.HasFieldError(ctx, fc) { 6766 ec.Errorf(ctx, "must not be null") 6767 } 6768 return graphql.Null 6769 } 6770 res := resTmp.(*CVEDiffResult) 6771 fc.Result = res 6772 return ec.marshalNCVEDiffResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCVEDiffResult(ctx, field.Selections, res) 6773 } 6774 6775 func (ec *executionContext) fieldContext_Query_CVEDiffListForImages(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6776 fc = &graphql.FieldContext{ 6777 Object: "Query", 6778 Field: field, 6779 IsMethod: true, 6780 IsResolver: true, 6781 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6782 switch field.Name { 6783 case "Minuend": 6784 return ec.fieldContext_CVEDiffResult_Minuend(ctx, field) 6785 case "Subtrahend": 6786 return ec.fieldContext_CVEDiffResult_Subtrahend(ctx, field) 6787 case "CVEList": 6788 return ec.fieldContext_CVEDiffResult_CVEList(ctx, field) 6789 case "Summary": 6790 return ec.fieldContext_CVEDiffResult_Summary(ctx, field) 6791 case "Page": 6792 return ec.fieldContext_CVEDiffResult_Page(ctx, field) 6793 } 6794 return nil, fmt.Errorf("no field named %q was found under type CVEDiffResult", field.Name) 6795 }, 6796 } 6797 defer func() { 6798 if r := recover(); r != nil { 6799 err = ec.Recover(ctx, r) 6800 ec.Error(ctx, err) 6801 } 6802 }() 6803 ctx = graphql.WithFieldContext(ctx, fc) 6804 if fc.Args, err = ec.field_Query_CVEDiffListForImages_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6805 ec.Error(ctx, err) 6806 return fc, err 6807 } 6808 return fc, nil 6809 } 6810 6811 func (ec *executionContext) _Query_ImageListForCVE(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6812 fc, err := ec.fieldContext_Query_ImageListForCVE(ctx, field) 6813 if err != nil { 6814 return graphql.Null 6815 } 6816 ctx = graphql.WithFieldContext(ctx, fc) 6817 defer func() { 6818 if r := recover(); r != nil { 6819 ec.Error(ctx, ec.Recover(ctx, r)) 6820 ret = graphql.Null 6821 } 6822 }() 6823 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6824 ctx = rctx // use context from middleware stack in children 6825 return ec.resolvers.Query().ImageListForCve(rctx, fc.Args["id"].(string), fc.Args["filter"].(*Filter), fc.Args["requestedPage"].(*PageInput)) 6826 }) 6827 if err != nil { 6828 ec.Error(ctx, err) 6829 return graphql.Null 6830 } 6831 if resTmp == nil { 6832 if !graphql.HasFieldError(ctx, fc) { 6833 ec.Errorf(ctx, "must not be null") 6834 } 6835 return graphql.Null 6836 } 6837 res := resTmp.(*PaginatedImagesResult) 6838 fc.Result = res 6839 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 6840 } 6841 6842 func (ec *executionContext) fieldContext_Query_ImageListForCVE(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6843 fc = &graphql.FieldContext{ 6844 Object: "Query", 6845 Field: field, 6846 IsMethod: true, 6847 IsResolver: true, 6848 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6849 switch field.Name { 6850 case "Page": 6851 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 6852 case "Results": 6853 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 6854 } 6855 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 6856 }, 6857 } 6858 defer func() { 6859 if r := recover(); r != nil { 6860 err = ec.Recover(ctx, r) 6861 ec.Error(ctx, err) 6862 } 6863 }() 6864 ctx = graphql.WithFieldContext(ctx, fc) 6865 if fc.Args, err = ec.field_Query_ImageListForCVE_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6866 ec.Error(ctx, err) 6867 return fc, err 6868 } 6869 return fc, nil 6870 } 6871 6872 func (ec *executionContext) _Query_ImageListWithCVEFixed(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6873 fc, err := ec.fieldContext_Query_ImageListWithCVEFixed(ctx, field) 6874 if err != nil { 6875 return graphql.Null 6876 } 6877 ctx = graphql.WithFieldContext(ctx, fc) 6878 defer func() { 6879 if r := recover(); r != nil { 6880 ec.Error(ctx, ec.Recover(ctx, r)) 6881 ret = graphql.Null 6882 } 6883 }() 6884 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6885 ctx = rctx // use context from middleware stack in children 6886 return ec.resolvers.Query().ImageListWithCVEFixed(rctx, fc.Args["id"].(string), fc.Args["image"].(string), fc.Args["filter"].(*Filter), fc.Args["requestedPage"].(*PageInput)) 6887 }) 6888 if err != nil { 6889 ec.Error(ctx, err) 6890 return graphql.Null 6891 } 6892 if resTmp == nil { 6893 if !graphql.HasFieldError(ctx, fc) { 6894 ec.Errorf(ctx, "must not be null") 6895 } 6896 return graphql.Null 6897 } 6898 res := resTmp.(*PaginatedImagesResult) 6899 fc.Result = res 6900 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 6901 } 6902 6903 func (ec *executionContext) fieldContext_Query_ImageListWithCVEFixed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6904 fc = &graphql.FieldContext{ 6905 Object: "Query", 6906 Field: field, 6907 IsMethod: true, 6908 IsResolver: true, 6909 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6910 switch field.Name { 6911 case "Page": 6912 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 6913 case "Results": 6914 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 6915 } 6916 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 6917 }, 6918 } 6919 defer func() { 6920 if r := recover(); r != nil { 6921 err = ec.Recover(ctx, r) 6922 ec.Error(ctx, err) 6923 } 6924 }() 6925 ctx = graphql.WithFieldContext(ctx, fc) 6926 if fc.Args, err = ec.field_Query_ImageListWithCVEFixed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6927 ec.Error(ctx, err) 6928 return fc, err 6929 } 6930 return fc, nil 6931 } 6932 6933 func (ec *executionContext) _Query_ImageListForDigest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6934 fc, err := ec.fieldContext_Query_ImageListForDigest(ctx, field) 6935 if err != nil { 6936 return graphql.Null 6937 } 6938 ctx = graphql.WithFieldContext(ctx, fc) 6939 defer func() { 6940 if r := recover(); r != nil { 6941 ec.Error(ctx, ec.Recover(ctx, r)) 6942 ret = graphql.Null 6943 } 6944 }() 6945 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6946 ctx = rctx // use context from middleware stack in children 6947 return ec.resolvers.Query().ImageListForDigest(rctx, fc.Args["id"].(string), fc.Args["requestedPage"].(*PageInput)) 6948 }) 6949 if err != nil { 6950 ec.Error(ctx, err) 6951 return graphql.Null 6952 } 6953 if resTmp == nil { 6954 if !graphql.HasFieldError(ctx, fc) { 6955 ec.Errorf(ctx, "must not be null") 6956 } 6957 return graphql.Null 6958 } 6959 res := resTmp.(*PaginatedImagesResult) 6960 fc.Result = res 6961 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 6962 } 6963 6964 func (ec *executionContext) fieldContext_Query_ImageListForDigest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6965 fc = &graphql.FieldContext{ 6966 Object: "Query", 6967 Field: field, 6968 IsMethod: true, 6969 IsResolver: true, 6970 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6971 switch field.Name { 6972 case "Page": 6973 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 6974 case "Results": 6975 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 6976 } 6977 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 6978 }, 6979 } 6980 defer func() { 6981 if r := recover(); r != nil { 6982 err = ec.Recover(ctx, r) 6983 ec.Error(ctx, err) 6984 } 6985 }() 6986 ctx = graphql.WithFieldContext(ctx, fc) 6987 if fc.Args, err = ec.field_Query_ImageListForDigest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6988 ec.Error(ctx, err) 6989 return fc, err 6990 } 6991 return fc, nil 6992 } 6993 6994 func (ec *executionContext) _Query_RepoListWithNewestImage(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6995 fc, err := ec.fieldContext_Query_RepoListWithNewestImage(ctx, field) 6996 if err != nil { 6997 return graphql.Null 6998 } 6999 ctx = graphql.WithFieldContext(ctx, fc) 7000 defer func() { 7001 if r := recover(); r != nil { 7002 ec.Error(ctx, ec.Recover(ctx, r)) 7003 ret = graphql.Null 7004 } 7005 }() 7006 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7007 ctx = rctx // use context from middleware stack in children 7008 return ec.resolvers.Query().RepoListWithNewestImage(rctx, fc.Args["requestedPage"].(*PageInput)) 7009 }) 7010 if err != nil { 7011 ec.Error(ctx, err) 7012 return graphql.Null 7013 } 7014 if resTmp == nil { 7015 if !graphql.HasFieldError(ctx, fc) { 7016 ec.Errorf(ctx, "must not be null") 7017 } 7018 return graphql.Null 7019 } 7020 res := resTmp.(*PaginatedReposResult) 7021 fc.Result = res 7022 return ec.marshalNPaginatedReposResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx, field.Selections, res) 7023 } 7024 7025 func (ec *executionContext) fieldContext_Query_RepoListWithNewestImage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7026 fc = &graphql.FieldContext{ 7027 Object: "Query", 7028 Field: field, 7029 IsMethod: true, 7030 IsResolver: true, 7031 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7032 switch field.Name { 7033 case "Page": 7034 return ec.fieldContext_PaginatedReposResult_Page(ctx, field) 7035 case "Results": 7036 return ec.fieldContext_PaginatedReposResult_Results(ctx, field) 7037 } 7038 return nil, fmt.Errorf("no field named %q was found under type PaginatedReposResult", field.Name) 7039 }, 7040 } 7041 defer func() { 7042 if r := recover(); r != nil { 7043 err = ec.Recover(ctx, r) 7044 ec.Error(ctx, err) 7045 } 7046 }() 7047 ctx = graphql.WithFieldContext(ctx, fc) 7048 if fc.Args, err = ec.field_Query_RepoListWithNewestImage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7049 ec.Error(ctx, err) 7050 return fc, err 7051 } 7052 return fc, nil 7053 } 7054 7055 func (ec *executionContext) _Query_ImageList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7056 fc, err := ec.fieldContext_Query_ImageList(ctx, field) 7057 if err != nil { 7058 return graphql.Null 7059 } 7060 ctx = graphql.WithFieldContext(ctx, fc) 7061 defer func() { 7062 if r := recover(); r != nil { 7063 ec.Error(ctx, ec.Recover(ctx, r)) 7064 ret = graphql.Null 7065 } 7066 }() 7067 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7068 ctx = rctx // use context from middleware stack in children 7069 return ec.resolvers.Query().ImageList(rctx, fc.Args["repo"].(string), fc.Args["requestedPage"].(*PageInput)) 7070 }) 7071 if err != nil { 7072 ec.Error(ctx, err) 7073 return graphql.Null 7074 } 7075 if resTmp == nil { 7076 if !graphql.HasFieldError(ctx, fc) { 7077 ec.Errorf(ctx, "must not be null") 7078 } 7079 return graphql.Null 7080 } 7081 res := resTmp.(*PaginatedImagesResult) 7082 fc.Result = res 7083 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 7084 } 7085 7086 func (ec *executionContext) fieldContext_Query_ImageList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7087 fc = &graphql.FieldContext{ 7088 Object: "Query", 7089 Field: field, 7090 IsMethod: true, 7091 IsResolver: true, 7092 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7093 switch field.Name { 7094 case "Page": 7095 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 7096 case "Results": 7097 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 7098 } 7099 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 7100 }, 7101 } 7102 defer func() { 7103 if r := recover(); r != nil { 7104 err = ec.Recover(ctx, r) 7105 ec.Error(ctx, err) 7106 } 7107 }() 7108 ctx = graphql.WithFieldContext(ctx, fc) 7109 if fc.Args, err = ec.field_Query_ImageList_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7110 ec.Error(ctx, err) 7111 return fc, err 7112 } 7113 return fc, nil 7114 } 7115 7116 func (ec *executionContext) _Query_ExpandedRepoInfo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7117 fc, err := ec.fieldContext_Query_ExpandedRepoInfo(ctx, field) 7118 if err != nil { 7119 return graphql.Null 7120 } 7121 ctx = graphql.WithFieldContext(ctx, fc) 7122 defer func() { 7123 if r := recover(); r != nil { 7124 ec.Error(ctx, ec.Recover(ctx, r)) 7125 ret = graphql.Null 7126 } 7127 }() 7128 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7129 ctx = rctx // use context from middleware stack in children 7130 return ec.resolvers.Query().ExpandedRepoInfo(rctx, fc.Args["repo"].(string)) 7131 }) 7132 if err != nil { 7133 ec.Error(ctx, err) 7134 return graphql.Null 7135 } 7136 if resTmp == nil { 7137 if !graphql.HasFieldError(ctx, fc) { 7138 ec.Errorf(ctx, "must not be null") 7139 } 7140 return graphql.Null 7141 } 7142 res := resTmp.(*RepoInfo) 7143 fc.Result = res 7144 return ec.marshalNRepoInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoInfo(ctx, field.Selections, res) 7145 } 7146 7147 func (ec *executionContext) fieldContext_Query_ExpandedRepoInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7148 fc = &graphql.FieldContext{ 7149 Object: "Query", 7150 Field: field, 7151 IsMethod: true, 7152 IsResolver: true, 7153 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7154 switch field.Name { 7155 case "Images": 7156 return ec.fieldContext_RepoInfo_Images(ctx, field) 7157 case "Summary": 7158 return ec.fieldContext_RepoInfo_Summary(ctx, field) 7159 } 7160 return nil, fmt.Errorf("no field named %q was found under type RepoInfo", field.Name) 7161 }, 7162 } 7163 defer func() { 7164 if r := recover(); r != nil { 7165 err = ec.Recover(ctx, r) 7166 ec.Error(ctx, err) 7167 } 7168 }() 7169 ctx = graphql.WithFieldContext(ctx, fc) 7170 if fc.Args, err = ec.field_Query_ExpandedRepoInfo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7171 ec.Error(ctx, err) 7172 return fc, err 7173 } 7174 return fc, nil 7175 } 7176 7177 func (ec *executionContext) _Query_GlobalSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7178 fc, err := ec.fieldContext_Query_GlobalSearch(ctx, field) 7179 if err != nil { 7180 return graphql.Null 7181 } 7182 ctx = graphql.WithFieldContext(ctx, fc) 7183 defer func() { 7184 if r := recover(); r != nil { 7185 ec.Error(ctx, ec.Recover(ctx, r)) 7186 ret = graphql.Null 7187 } 7188 }() 7189 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7190 ctx = rctx // use context from middleware stack in children 7191 return ec.resolvers.Query().GlobalSearch(rctx, fc.Args["query"].(string), fc.Args["filter"].(*Filter), fc.Args["requestedPage"].(*PageInput)) 7192 }) 7193 if err != nil { 7194 ec.Error(ctx, err) 7195 return graphql.Null 7196 } 7197 if resTmp == nil { 7198 if !graphql.HasFieldError(ctx, fc) { 7199 ec.Errorf(ctx, "must not be null") 7200 } 7201 return graphql.Null 7202 } 7203 res := resTmp.(*GlobalSearchResult) 7204 fc.Result = res 7205 return ec.marshalNGlobalSearchResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐGlobalSearchResult(ctx, field.Selections, res) 7206 } 7207 7208 func (ec *executionContext) fieldContext_Query_GlobalSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7209 fc = &graphql.FieldContext{ 7210 Object: "Query", 7211 Field: field, 7212 IsMethod: true, 7213 IsResolver: true, 7214 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7215 switch field.Name { 7216 case "Page": 7217 return ec.fieldContext_GlobalSearchResult_Page(ctx, field) 7218 case "Images": 7219 return ec.fieldContext_GlobalSearchResult_Images(ctx, field) 7220 case "Repos": 7221 return ec.fieldContext_GlobalSearchResult_Repos(ctx, field) 7222 case "Layers": 7223 return ec.fieldContext_GlobalSearchResult_Layers(ctx, field) 7224 } 7225 return nil, fmt.Errorf("no field named %q was found under type GlobalSearchResult", field.Name) 7226 }, 7227 } 7228 defer func() { 7229 if r := recover(); r != nil { 7230 err = ec.Recover(ctx, r) 7231 ec.Error(ctx, err) 7232 } 7233 }() 7234 ctx = graphql.WithFieldContext(ctx, fc) 7235 if fc.Args, err = ec.field_Query_GlobalSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7236 ec.Error(ctx, err) 7237 return fc, err 7238 } 7239 return fc, nil 7240 } 7241 7242 func (ec *executionContext) _Query_DerivedImageList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7243 fc, err := ec.fieldContext_Query_DerivedImageList(ctx, field) 7244 if err != nil { 7245 return graphql.Null 7246 } 7247 ctx = graphql.WithFieldContext(ctx, fc) 7248 defer func() { 7249 if r := recover(); r != nil { 7250 ec.Error(ctx, ec.Recover(ctx, r)) 7251 ret = graphql.Null 7252 } 7253 }() 7254 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7255 ctx = rctx // use context from middleware stack in children 7256 return ec.resolvers.Query().DerivedImageList(rctx, fc.Args["image"].(string), fc.Args["digest"].(*string), fc.Args["requestedPage"].(*PageInput)) 7257 }) 7258 if err != nil { 7259 ec.Error(ctx, err) 7260 return graphql.Null 7261 } 7262 if resTmp == nil { 7263 if !graphql.HasFieldError(ctx, fc) { 7264 ec.Errorf(ctx, "must not be null") 7265 } 7266 return graphql.Null 7267 } 7268 res := resTmp.(*PaginatedImagesResult) 7269 fc.Result = res 7270 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 7271 } 7272 7273 func (ec *executionContext) fieldContext_Query_DerivedImageList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7274 fc = &graphql.FieldContext{ 7275 Object: "Query", 7276 Field: field, 7277 IsMethod: true, 7278 IsResolver: true, 7279 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7280 switch field.Name { 7281 case "Page": 7282 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 7283 case "Results": 7284 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 7285 } 7286 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 7287 }, 7288 } 7289 defer func() { 7290 if r := recover(); r != nil { 7291 err = ec.Recover(ctx, r) 7292 ec.Error(ctx, err) 7293 } 7294 }() 7295 ctx = graphql.WithFieldContext(ctx, fc) 7296 if fc.Args, err = ec.field_Query_DerivedImageList_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7297 ec.Error(ctx, err) 7298 return fc, err 7299 } 7300 return fc, nil 7301 } 7302 7303 func (ec *executionContext) _Query_BaseImageList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7304 fc, err := ec.fieldContext_Query_BaseImageList(ctx, field) 7305 if err != nil { 7306 return graphql.Null 7307 } 7308 ctx = graphql.WithFieldContext(ctx, fc) 7309 defer func() { 7310 if r := recover(); r != nil { 7311 ec.Error(ctx, ec.Recover(ctx, r)) 7312 ret = graphql.Null 7313 } 7314 }() 7315 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7316 ctx = rctx // use context from middleware stack in children 7317 return ec.resolvers.Query().BaseImageList(rctx, fc.Args["image"].(string), fc.Args["digest"].(*string), fc.Args["requestedPage"].(*PageInput)) 7318 }) 7319 if err != nil { 7320 ec.Error(ctx, err) 7321 return graphql.Null 7322 } 7323 if resTmp == nil { 7324 if !graphql.HasFieldError(ctx, fc) { 7325 ec.Errorf(ctx, "must not be null") 7326 } 7327 return graphql.Null 7328 } 7329 res := resTmp.(*PaginatedImagesResult) 7330 fc.Result = res 7331 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 7332 } 7333 7334 func (ec *executionContext) fieldContext_Query_BaseImageList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7335 fc = &graphql.FieldContext{ 7336 Object: "Query", 7337 Field: field, 7338 IsMethod: true, 7339 IsResolver: true, 7340 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7341 switch field.Name { 7342 case "Page": 7343 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 7344 case "Results": 7345 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 7346 } 7347 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 7348 }, 7349 } 7350 defer func() { 7351 if r := recover(); r != nil { 7352 err = ec.Recover(ctx, r) 7353 ec.Error(ctx, err) 7354 } 7355 }() 7356 ctx = graphql.WithFieldContext(ctx, fc) 7357 if fc.Args, err = ec.field_Query_BaseImageList_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7358 ec.Error(ctx, err) 7359 return fc, err 7360 } 7361 return fc, nil 7362 } 7363 7364 func (ec *executionContext) _Query_Image(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7365 fc, err := ec.fieldContext_Query_Image(ctx, field) 7366 if err != nil { 7367 return graphql.Null 7368 } 7369 ctx = graphql.WithFieldContext(ctx, fc) 7370 defer func() { 7371 if r := recover(); r != nil { 7372 ec.Error(ctx, ec.Recover(ctx, r)) 7373 ret = graphql.Null 7374 } 7375 }() 7376 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7377 ctx = rctx // use context from middleware stack in children 7378 return ec.resolvers.Query().Image(rctx, fc.Args["image"].(string)) 7379 }) 7380 if err != nil { 7381 ec.Error(ctx, err) 7382 return graphql.Null 7383 } 7384 if resTmp == nil { 7385 if !graphql.HasFieldError(ctx, fc) { 7386 ec.Errorf(ctx, "must not be null") 7387 } 7388 return graphql.Null 7389 } 7390 res := resTmp.(*ImageSummary) 7391 fc.Result = res 7392 return ec.marshalNImageSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, field.Selections, res) 7393 } 7394 7395 func (ec *executionContext) fieldContext_Query_Image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7396 fc = &graphql.FieldContext{ 7397 Object: "Query", 7398 Field: field, 7399 IsMethod: true, 7400 IsResolver: true, 7401 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7402 switch field.Name { 7403 case "RepoName": 7404 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 7405 case "Tag": 7406 return ec.fieldContext_ImageSummary_Tag(ctx, field) 7407 case "Digest": 7408 return ec.fieldContext_ImageSummary_Digest(ctx, field) 7409 case "MediaType": 7410 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 7411 case "Manifests": 7412 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 7413 case "Size": 7414 return ec.fieldContext_ImageSummary_Size(ctx, field) 7415 case "DownloadCount": 7416 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 7417 case "LastUpdated": 7418 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 7419 case "Description": 7420 return ec.fieldContext_ImageSummary_Description(ctx, field) 7421 case "IsSigned": 7422 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 7423 case "SignatureInfo": 7424 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 7425 case "Licenses": 7426 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 7427 case "Labels": 7428 return ec.fieldContext_ImageSummary_Labels(ctx, field) 7429 case "Title": 7430 return ec.fieldContext_ImageSummary_Title(ctx, field) 7431 case "Source": 7432 return ec.fieldContext_ImageSummary_Source(ctx, field) 7433 case "Documentation": 7434 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 7435 case "Vendor": 7436 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 7437 case "Authors": 7438 return ec.fieldContext_ImageSummary_Authors(ctx, field) 7439 case "Vulnerabilities": 7440 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 7441 case "Referrers": 7442 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 7443 case "IsDeletable": 7444 return ec.fieldContext_ImageSummary_IsDeletable(ctx, field) 7445 } 7446 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 7447 }, 7448 } 7449 defer func() { 7450 if r := recover(); r != nil { 7451 err = ec.Recover(ctx, r) 7452 ec.Error(ctx, err) 7453 } 7454 }() 7455 ctx = graphql.WithFieldContext(ctx, fc) 7456 if fc.Args, err = ec.field_Query_Image_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7457 ec.Error(ctx, err) 7458 return fc, err 7459 } 7460 return fc, nil 7461 } 7462 7463 func (ec *executionContext) _Query_Referrers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7464 fc, err := ec.fieldContext_Query_Referrers(ctx, field) 7465 if err != nil { 7466 return graphql.Null 7467 } 7468 ctx = graphql.WithFieldContext(ctx, fc) 7469 defer func() { 7470 if r := recover(); r != nil { 7471 ec.Error(ctx, ec.Recover(ctx, r)) 7472 ret = graphql.Null 7473 } 7474 }() 7475 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7476 ctx = rctx // use context from middleware stack in children 7477 return ec.resolvers.Query().Referrers(rctx, fc.Args["repo"].(string), fc.Args["digest"].(string), fc.Args["type"].([]string)) 7478 }) 7479 if err != nil { 7480 ec.Error(ctx, err) 7481 return graphql.Null 7482 } 7483 if resTmp == nil { 7484 if !graphql.HasFieldError(ctx, fc) { 7485 ec.Errorf(ctx, "must not be null") 7486 } 7487 return graphql.Null 7488 } 7489 res := resTmp.([]*Referrer) 7490 fc.Result = res 7491 return ec.marshalNReferrer2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, field.Selections, res) 7492 } 7493 7494 func (ec *executionContext) fieldContext_Query_Referrers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7495 fc = &graphql.FieldContext{ 7496 Object: "Query", 7497 Field: field, 7498 IsMethod: true, 7499 IsResolver: true, 7500 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7501 switch field.Name { 7502 case "MediaType": 7503 return ec.fieldContext_Referrer_MediaType(ctx, field) 7504 case "ArtifactType": 7505 return ec.fieldContext_Referrer_ArtifactType(ctx, field) 7506 case "Size": 7507 return ec.fieldContext_Referrer_Size(ctx, field) 7508 case "Digest": 7509 return ec.fieldContext_Referrer_Digest(ctx, field) 7510 case "Annotations": 7511 return ec.fieldContext_Referrer_Annotations(ctx, field) 7512 } 7513 return nil, fmt.Errorf("no field named %q was found under type Referrer", field.Name) 7514 }, 7515 } 7516 defer func() { 7517 if r := recover(); r != nil { 7518 err = ec.Recover(ctx, r) 7519 ec.Error(ctx, err) 7520 } 7521 }() 7522 ctx = graphql.WithFieldContext(ctx, fc) 7523 if fc.Args, err = ec.field_Query_Referrers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7524 ec.Error(ctx, err) 7525 return fc, err 7526 } 7527 return fc, nil 7528 } 7529 7530 func (ec *executionContext) _Query_StarredRepos(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7531 fc, err := ec.fieldContext_Query_StarredRepos(ctx, field) 7532 if err != nil { 7533 return graphql.Null 7534 } 7535 ctx = graphql.WithFieldContext(ctx, fc) 7536 defer func() { 7537 if r := recover(); r != nil { 7538 ec.Error(ctx, ec.Recover(ctx, r)) 7539 ret = graphql.Null 7540 } 7541 }() 7542 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7543 ctx = rctx // use context from middleware stack in children 7544 return ec.resolvers.Query().StarredRepos(rctx, fc.Args["requestedPage"].(*PageInput)) 7545 }) 7546 if err != nil { 7547 ec.Error(ctx, err) 7548 return graphql.Null 7549 } 7550 if resTmp == nil { 7551 if !graphql.HasFieldError(ctx, fc) { 7552 ec.Errorf(ctx, "must not be null") 7553 } 7554 return graphql.Null 7555 } 7556 res := resTmp.(*PaginatedReposResult) 7557 fc.Result = res 7558 return ec.marshalNPaginatedReposResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx, field.Selections, res) 7559 } 7560 7561 func (ec *executionContext) fieldContext_Query_StarredRepos(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7562 fc = &graphql.FieldContext{ 7563 Object: "Query", 7564 Field: field, 7565 IsMethod: true, 7566 IsResolver: true, 7567 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7568 switch field.Name { 7569 case "Page": 7570 return ec.fieldContext_PaginatedReposResult_Page(ctx, field) 7571 case "Results": 7572 return ec.fieldContext_PaginatedReposResult_Results(ctx, field) 7573 } 7574 return nil, fmt.Errorf("no field named %q was found under type PaginatedReposResult", field.Name) 7575 }, 7576 } 7577 defer func() { 7578 if r := recover(); r != nil { 7579 err = ec.Recover(ctx, r) 7580 ec.Error(ctx, err) 7581 } 7582 }() 7583 ctx = graphql.WithFieldContext(ctx, fc) 7584 if fc.Args, err = ec.field_Query_StarredRepos_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7585 ec.Error(ctx, err) 7586 return fc, err 7587 } 7588 return fc, nil 7589 } 7590 7591 func (ec *executionContext) _Query_BookmarkedRepos(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7592 fc, err := ec.fieldContext_Query_BookmarkedRepos(ctx, field) 7593 if err != nil { 7594 return graphql.Null 7595 } 7596 ctx = graphql.WithFieldContext(ctx, fc) 7597 defer func() { 7598 if r := recover(); r != nil { 7599 ec.Error(ctx, ec.Recover(ctx, r)) 7600 ret = graphql.Null 7601 } 7602 }() 7603 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7604 ctx = rctx // use context from middleware stack in children 7605 return ec.resolvers.Query().BookmarkedRepos(rctx, fc.Args["requestedPage"].(*PageInput)) 7606 }) 7607 if err != nil { 7608 ec.Error(ctx, err) 7609 return graphql.Null 7610 } 7611 if resTmp == nil { 7612 if !graphql.HasFieldError(ctx, fc) { 7613 ec.Errorf(ctx, "must not be null") 7614 } 7615 return graphql.Null 7616 } 7617 res := resTmp.(*PaginatedReposResult) 7618 fc.Result = res 7619 return ec.marshalNPaginatedReposResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx, field.Selections, res) 7620 } 7621 7622 func (ec *executionContext) fieldContext_Query_BookmarkedRepos(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7623 fc = &graphql.FieldContext{ 7624 Object: "Query", 7625 Field: field, 7626 IsMethod: true, 7627 IsResolver: true, 7628 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7629 switch field.Name { 7630 case "Page": 7631 return ec.fieldContext_PaginatedReposResult_Page(ctx, field) 7632 case "Results": 7633 return ec.fieldContext_PaginatedReposResult_Results(ctx, field) 7634 } 7635 return nil, fmt.Errorf("no field named %q was found under type PaginatedReposResult", field.Name) 7636 }, 7637 } 7638 defer func() { 7639 if r := recover(); r != nil { 7640 err = ec.Recover(ctx, r) 7641 ec.Error(ctx, err) 7642 } 7643 }() 7644 ctx = graphql.WithFieldContext(ctx, fc) 7645 if fc.Args, err = ec.field_Query_BookmarkedRepos_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7646 ec.Error(ctx, err) 7647 return fc, err 7648 } 7649 return fc, nil 7650 } 7651 7652 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7653 fc, err := ec.fieldContext_Query___type(ctx, field) 7654 if err != nil { 7655 return graphql.Null 7656 } 7657 ctx = graphql.WithFieldContext(ctx, fc) 7658 defer func() { 7659 if r := recover(); r != nil { 7660 ec.Error(ctx, ec.Recover(ctx, r)) 7661 ret = graphql.Null 7662 } 7663 }() 7664 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7665 ctx = rctx // use context from middleware stack in children 7666 return ec.introspectType(fc.Args["name"].(string)) 7667 }) 7668 if err != nil { 7669 ec.Error(ctx, err) 7670 return graphql.Null 7671 } 7672 if resTmp == nil { 7673 return graphql.Null 7674 } 7675 res := resTmp.(*introspection.Type) 7676 fc.Result = res 7677 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 7678 } 7679 7680 func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7681 fc = &graphql.FieldContext{ 7682 Object: "Query", 7683 Field: field, 7684 IsMethod: true, 7685 IsResolver: false, 7686 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7687 switch field.Name { 7688 case "kind": 7689 return ec.fieldContext___Type_kind(ctx, field) 7690 case "name": 7691 return ec.fieldContext___Type_name(ctx, field) 7692 case "description": 7693 return ec.fieldContext___Type_description(ctx, field) 7694 case "fields": 7695 return ec.fieldContext___Type_fields(ctx, field) 7696 case "interfaces": 7697 return ec.fieldContext___Type_interfaces(ctx, field) 7698 case "possibleTypes": 7699 return ec.fieldContext___Type_possibleTypes(ctx, field) 7700 case "enumValues": 7701 return ec.fieldContext___Type_enumValues(ctx, field) 7702 case "inputFields": 7703 return ec.fieldContext___Type_inputFields(ctx, field) 7704 case "ofType": 7705 return ec.fieldContext___Type_ofType(ctx, field) 7706 case "specifiedByURL": 7707 return ec.fieldContext___Type_specifiedByURL(ctx, field) 7708 } 7709 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 7710 }, 7711 } 7712 defer func() { 7713 if r := recover(); r != nil { 7714 err = ec.Recover(ctx, r) 7715 ec.Error(ctx, err) 7716 } 7717 }() 7718 ctx = graphql.WithFieldContext(ctx, fc) 7719 if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 7720 ec.Error(ctx, err) 7721 return fc, err 7722 } 7723 return fc, nil 7724 } 7725 7726 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 7727 fc, err := ec.fieldContext_Query___schema(ctx, field) 7728 if err != nil { 7729 return graphql.Null 7730 } 7731 ctx = graphql.WithFieldContext(ctx, fc) 7732 defer func() { 7733 if r := recover(); r != nil { 7734 ec.Error(ctx, ec.Recover(ctx, r)) 7735 ret = graphql.Null 7736 } 7737 }() 7738 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7739 ctx = rctx // use context from middleware stack in children 7740 return ec.introspectSchema() 7741 }) 7742 if err != nil { 7743 ec.Error(ctx, err) 7744 return graphql.Null 7745 } 7746 if resTmp == nil { 7747 return graphql.Null 7748 } 7749 res := resTmp.(*introspection.Schema) 7750 fc.Result = res 7751 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) 7752 } 7753 7754 func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7755 fc = &graphql.FieldContext{ 7756 Object: "Query", 7757 Field: field, 7758 IsMethod: true, 7759 IsResolver: false, 7760 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7761 switch field.Name { 7762 case "description": 7763 return ec.fieldContext___Schema_description(ctx, field) 7764 case "types": 7765 return ec.fieldContext___Schema_types(ctx, field) 7766 case "queryType": 7767 return ec.fieldContext___Schema_queryType(ctx, field) 7768 case "mutationType": 7769 return ec.fieldContext___Schema_mutationType(ctx, field) 7770 case "subscriptionType": 7771 return ec.fieldContext___Schema_subscriptionType(ctx, field) 7772 case "directives": 7773 return ec.fieldContext___Schema_directives(ctx, field) 7774 } 7775 return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) 7776 }, 7777 } 7778 return fc, nil 7779 } 7780 7781 func (ec *executionContext) _Referrer_MediaType(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 7782 fc, err := ec.fieldContext_Referrer_MediaType(ctx, field) 7783 if err != nil { 7784 return graphql.Null 7785 } 7786 ctx = graphql.WithFieldContext(ctx, fc) 7787 defer func() { 7788 if r := recover(); r != nil { 7789 ec.Error(ctx, ec.Recover(ctx, r)) 7790 ret = graphql.Null 7791 } 7792 }() 7793 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7794 ctx = rctx // use context from middleware stack in children 7795 return obj.MediaType, nil 7796 }) 7797 if err != nil { 7798 ec.Error(ctx, err) 7799 return graphql.Null 7800 } 7801 if resTmp == nil { 7802 return graphql.Null 7803 } 7804 res := resTmp.(*string) 7805 fc.Result = res 7806 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7807 } 7808 7809 func (ec *executionContext) fieldContext_Referrer_MediaType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7810 fc = &graphql.FieldContext{ 7811 Object: "Referrer", 7812 Field: field, 7813 IsMethod: false, 7814 IsResolver: false, 7815 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7816 return nil, errors.New("field of type String does not have child fields") 7817 }, 7818 } 7819 return fc, nil 7820 } 7821 7822 func (ec *executionContext) _Referrer_ArtifactType(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 7823 fc, err := ec.fieldContext_Referrer_ArtifactType(ctx, field) 7824 if err != nil { 7825 return graphql.Null 7826 } 7827 ctx = graphql.WithFieldContext(ctx, fc) 7828 defer func() { 7829 if r := recover(); r != nil { 7830 ec.Error(ctx, ec.Recover(ctx, r)) 7831 ret = graphql.Null 7832 } 7833 }() 7834 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7835 ctx = rctx // use context from middleware stack in children 7836 return obj.ArtifactType, nil 7837 }) 7838 if err != nil { 7839 ec.Error(ctx, err) 7840 return graphql.Null 7841 } 7842 if resTmp == nil { 7843 return graphql.Null 7844 } 7845 res := resTmp.(*string) 7846 fc.Result = res 7847 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7848 } 7849 7850 func (ec *executionContext) fieldContext_Referrer_ArtifactType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7851 fc = &graphql.FieldContext{ 7852 Object: "Referrer", 7853 Field: field, 7854 IsMethod: false, 7855 IsResolver: false, 7856 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7857 return nil, errors.New("field of type String does not have child fields") 7858 }, 7859 } 7860 return fc, nil 7861 } 7862 7863 func (ec *executionContext) _Referrer_Size(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 7864 fc, err := ec.fieldContext_Referrer_Size(ctx, field) 7865 if err != nil { 7866 return graphql.Null 7867 } 7868 ctx = graphql.WithFieldContext(ctx, fc) 7869 defer func() { 7870 if r := recover(); r != nil { 7871 ec.Error(ctx, ec.Recover(ctx, r)) 7872 ret = graphql.Null 7873 } 7874 }() 7875 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7876 ctx = rctx // use context from middleware stack in children 7877 return obj.Size, nil 7878 }) 7879 if err != nil { 7880 ec.Error(ctx, err) 7881 return graphql.Null 7882 } 7883 if resTmp == nil { 7884 return graphql.Null 7885 } 7886 res := resTmp.(*int) 7887 fc.Result = res 7888 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 7889 } 7890 7891 func (ec *executionContext) fieldContext_Referrer_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7892 fc = &graphql.FieldContext{ 7893 Object: "Referrer", 7894 Field: field, 7895 IsMethod: false, 7896 IsResolver: false, 7897 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7898 return nil, errors.New("field of type Int does not have child fields") 7899 }, 7900 } 7901 return fc, nil 7902 } 7903 7904 func (ec *executionContext) _Referrer_Digest(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 7905 fc, err := ec.fieldContext_Referrer_Digest(ctx, field) 7906 if err != nil { 7907 return graphql.Null 7908 } 7909 ctx = graphql.WithFieldContext(ctx, fc) 7910 defer func() { 7911 if r := recover(); r != nil { 7912 ec.Error(ctx, ec.Recover(ctx, r)) 7913 ret = graphql.Null 7914 } 7915 }() 7916 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7917 ctx = rctx // use context from middleware stack in children 7918 return obj.Digest, nil 7919 }) 7920 if err != nil { 7921 ec.Error(ctx, err) 7922 return graphql.Null 7923 } 7924 if resTmp == nil { 7925 return graphql.Null 7926 } 7927 res := resTmp.(*string) 7928 fc.Result = res 7929 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7930 } 7931 7932 func (ec *executionContext) fieldContext_Referrer_Digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7933 fc = &graphql.FieldContext{ 7934 Object: "Referrer", 7935 Field: field, 7936 IsMethod: false, 7937 IsResolver: false, 7938 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7939 return nil, errors.New("field of type String does not have child fields") 7940 }, 7941 } 7942 return fc, nil 7943 } 7944 7945 func (ec *executionContext) _Referrer_Annotations(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 7946 fc, err := ec.fieldContext_Referrer_Annotations(ctx, field) 7947 if err != nil { 7948 return graphql.Null 7949 } 7950 ctx = graphql.WithFieldContext(ctx, fc) 7951 defer func() { 7952 if r := recover(); r != nil { 7953 ec.Error(ctx, ec.Recover(ctx, r)) 7954 ret = graphql.Null 7955 } 7956 }() 7957 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7958 ctx = rctx // use context from middleware stack in children 7959 return obj.Annotations, nil 7960 }) 7961 if err != nil { 7962 ec.Error(ctx, err) 7963 return graphql.Null 7964 } 7965 if resTmp == nil { 7966 if !graphql.HasFieldError(ctx, fc) { 7967 ec.Errorf(ctx, "must not be null") 7968 } 7969 return graphql.Null 7970 } 7971 res := resTmp.([]*Annotation) 7972 fc.Result = res 7973 return ec.marshalNAnnotation2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐAnnotation(ctx, field.Selections, res) 7974 } 7975 7976 func (ec *executionContext) fieldContext_Referrer_Annotations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7977 fc = &graphql.FieldContext{ 7978 Object: "Referrer", 7979 Field: field, 7980 IsMethod: false, 7981 IsResolver: false, 7982 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7983 switch field.Name { 7984 case "Key": 7985 return ec.fieldContext_Annotation_Key(ctx, field) 7986 case "Value": 7987 return ec.fieldContext_Annotation_Value(ctx, field) 7988 } 7989 return nil, fmt.Errorf("no field named %q was found under type Annotation", field.Name) 7990 }, 7991 } 7992 return fc, nil 7993 } 7994 7995 func (ec *executionContext) _RepoInfo_Images(ctx context.Context, field graphql.CollectedField, obj *RepoInfo) (ret graphql.Marshaler) { 7996 fc, err := ec.fieldContext_RepoInfo_Images(ctx, field) 7997 if err != nil { 7998 return graphql.Null 7999 } 8000 ctx = graphql.WithFieldContext(ctx, fc) 8001 defer func() { 8002 if r := recover(); r != nil { 8003 ec.Error(ctx, ec.Recover(ctx, r)) 8004 ret = graphql.Null 8005 } 8006 }() 8007 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8008 ctx = rctx // use context from middleware stack in children 8009 return obj.Images, nil 8010 }) 8011 if err != nil { 8012 ec.Error(ctx, err) 8013 return graphql.Null 8014 } 8015 if resTmp == nil { 8016 return graphql.Null 8017 } 8018 res := resTmp.([]*ImageSummary) 8019 fc.Result = res 8020 return ec.marshalOImageSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, field.Selections, res) 8021 } 8022 8023 func (ec *executionContext) fieldContext_RepoInfo_Images(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8024 fc = &graphql.FieldContext{ 8025 Object: "RepoInfo", 8026 Field: field, 8027 IsMethod: false, 8028 IsResolver: false, 8029 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8030 switch field.Name { 8031 case "RepoName": 8032 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 8033 case "Tag": 8034 return ec.fieldContext_ImageSummary_Tag(ctx, field) 8035 case "Digest": 8036 return ec.fieldContext_ImageSummary_Digest(ctx, field) 8037 case "MediaType": 8038 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 8039 case "Manifests": 8040 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 8041 case "Size": 8042 return ec.fieldContext_ImageSummary_Size(ctx, field) 8043 case "DownloadCount": 8044 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 8045 case "LastUpdated": 8046 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 8047 case "Description": 8048 return ec.fieldContext_ImageSummary_Description(ctx, field) 8049 case "IsSigned": 8050 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 8051 case "SignatureInfo": 8052 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 8053 case "Licenses": 8054 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 8055 case "Labels": 8056 return ec.fieldContext_ImageSummary_Labels(ctx, field) 8057 case "Title": 8058 return ec.fieldContext_ImageSummary_Title(ctx, field) 8059 case "Source": 8060 return ec.fieldContext_ImageSummary_Source(ctx, field) 8061 case "Documentation": 8062 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 8063 case "Vendor": 8064 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 8065 case "Authors": 8066 return ec.fieldContext_ImageSummary_Authors(ctx, field) 8067 case "Vulnerabilities": 8068 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 8069 case "Referrers": 8070 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 8071 case "IsDeletable": 8072 return ec.fieldContext_ImageSummary_IsDeletable(ctx, field) 8073 } 8074 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 8075 }, 8076 } 8077 return fc, nil 8078 } 8079 8080 func (ec *executionContext) _RepoInfo_Summary(ctx context.Context, field graphql.CollectedField, obj *RepoInfo) (ret graphql.Marshaler) { 8081 fc, err := ec.fieldContext_RepoInfo_Summary(ctx, field) 8082 if err != nil { 8083 return graphql.Null 8084 } 8085 ctx = graphql.WithFieldContext(ctx, fc) 8086 defer func() { 8087 if r := recover(); r != nil { 8088 ec.Error(ctx, ec.Recover(ctx, r)) 8089 ret = graphql.Null 8090 } 8091 }() 8092 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8093 ctx = rctx // use context from middleware stack in children 8094 return obj.Summary, nil 8095 }) 8096 if err != nil { 8097 ec.Error(ctx, err) 8098 return graphql.Null 8099 } 8100 if resTmp == nil { 8101 return graphql.Null 8102 } 8103 res := resTmp.(*RepoSummary) 8104 fc.Result = res 8105 return ec.marshalORepoSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx, field.Selections, res) 8106 } 8107 8108 func (ec *executionContext) fieldContext_RepoInfo_Summary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8109 fc = &graphql.FieldContext{ 8110 Object: "RepoInfo", 8111 Field: field, 8112 IsMethod: false, 8113 IsResolver: false, 8114 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8115 switch field.Name { 8116 case "Name": 8117 return ec.fieldContext_RepoSummary_Name(ctx, field) 8118 case "LastUpdated": 8119 return ec.fieldContext_RepoSummary_LastUpdated(ctx, field) 8120 case "Size": 8121 return ec.fieldContext_RepoSummary_Size(ctx, field) 8122 case "Platforms": 8123 return ec.fieldContext_RepoSummary_Platforms(ctx, field) 8124 case "Vendors": 8125 return ec.fieldContext_RepoSummary_Vendors(ctx, field) 8126 case "NewestImage": 8127 return ec.fieldContext_RepoSummary_NewestImage(ctx, field) 8128 case "DownloadCount": 8129 return ec.fieldContext_RepoSummary_DownloadCount(ctx, field) 8130 case "StarCount": 8131 return ec.fieldContext_RepoSummary_StarCount(ctx, field) 8132 case "IsBookmarked": 8133 return ec.fieldContext_RepoSummary_IsBookmarked(ctx, field) 8134 case "IsStarred": 8135 return ec.fieldContext_RepoSummary_IsStarred(ctx, field) 8136 case "Rank": 8137 return ec.fieldContext_RepoSummary_Rank(ctx, field) 8138 } 8139 return nil, fmt.Errorf("no field named %q was found under type RepoSummary", field.Name) 8140 }, 8141 } 8142 return fc, nil 8143 } 8144 8145 func (ec *executionContext) _RepoSummary_Name(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8146 fc, err := ec.fieldContext_RepoSummary_Name(ctx, field) 8147 if err != nil { 8148 return graphql.Null 8149 } 8150 ctx = graphql.WithFieldContext(ctx, fc) 8151 defer func() { 8152 if r := recover(); r != nil { 8153 ec.Error(ctx, ec.Recover(ctx, r)) 8154 ret = graphql.Null 8155 } 8156 }() 8157 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8158 ctx = rctx // use context from middleware stack in children 8159 return obj.Name, nil 8160 }) 8161 if err != nil { 8162 ec.Error(ctx, err) 8163 return graphql.Null 8164 } 8165 if resTmp == nil { 8166 return graphql.Null 8167 } 8168 res := resTmp.(*string) 8169 fc.Result = res 8170 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8171 } 8172 8173 func (ec *executionContext) fieldContext_RepoSummary_Name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8174 fc = &graphql.FieldContext{ 8175 Object: "RepoSummary", 8176 Field: field, 8177 IsMethod: false, 8178 IsResolver: false, 8179 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8180 return nil, errors.New("field of type String does not have child fields") 8181 }, 8182 } 8183 return fc, nil 8184 } 8185 8186 func (ec *executionContext) _RepoSummary_LastUpdated(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8187 fc, err := ec.fieldContext_RepoSummary_LastUpdated(ctx, field) 8188 if err != nil { 8189 return graphql.Null 8190 } 8191 ctx = graphql.WithFieldContext(ctx, fc) 8192 defer func() { 8193 if r := recover(); r != nil { 8194 ec.Error(ctx, ec.Recover(ctx, r)) 8195 ret = graphql.Null 8196 } 8197 }() 8198 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8199 ctx = rctx // use context from middleware stack in children 8200 return obj.LastUpdated, nil 8201 }) 8202 if err != nil { 8203 ec.Error(ctx, err) 8204 return graphql.Null 8205 } 8206 if resTmp == nil { 8207 return graphql.Null 8208 } 8209 res := resTmp.(*time.Time) 8210 fc.Result = res 8211 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 8212 } 8213 8214 func (ec *executionContext) fieldContext_RepoSummary_LastUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8215 fc = &graphql.FieldContext{ 8216 Object: "RepoSummary", 8217 Field: field, 8218 IsMethod: false, 8219 IsResolver: false, 8220 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8221 return nil, errors.New("field of type Time does not have child fields") 8222 }, 8223 } 8224 return fc, nil 8225 } 8226 8227 func (ec *executionContext) _RepoSummary_Size(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8228 fc, err := ec.fieldContext_RepoSummary_Size(ctx, field) 8229 if err != nil { 8230 return graphql.Null 8231 } 8232 ctx = graphql.WithFieldContext(ctx, fc) 8233 defer func() { 8234 if r := recover(); r != nil { 8235 ec.Error(ctx, ec.Recover(ctx, r)) 8236 ret = graphql.Null 8237 } 8238 }() 8239 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8240 ctx = rctx // use context from middleware stack in children 8241 return obj.Size, nil 8242 }) 8243 if err != nil { 8244 ec.Error(ctx, err) 8245 return graphql.Null 8246 } 8247 if resTmp == nil { 8248 return graphql.Null 8249 } 8250 res := resTmp.(*string) 8251 fc.Result = res 8252 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8253 } 8254 8255 func (ec *executionContext) fieldContext_RepoSummary_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8256 fc = &graphql.FieldContext{ 8257 Object: "RepoSummary", 8258 Field: field, 8259 IsMethod: false, 8260 IsResolver: false, 8261 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8262 return nil, errors.New("field of type String does not have child fields") 8263 }, 8264 } 8265 return fc, nil 8266 } 8267 8268 func (ec *executionContext) _RepoSummary_Platforms(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8269 fc, err := ec.fieldContext_RepoSummary_Platforms(ctx, field) 8270 if err != nil { 8271 return graphql.Null 8272 } 8273 ctx = graphql.WithFieldContext(ctx, fc) 8274 defer func() { 8275 if r := recover(); r != nil { 8276 ec.Error(ctx, ec.Recover(ctx, r)) 8277 ret = graphql.Null 8278 } 8279 }() 8280 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8281 ctx = rctx // use context from middleware stack in children 8282 return obj.Platforms, nil 8283 }) 8284 if err != nil { 8285 ec.Error(ctx, err) 8286 return graphql.Null 8287 } 8288 if resTmp == nil { 8289 return graphql.Null 8290 } 8291 res := resTmp.([]*Platform) 8292 fc.Result = res 8293 return ec.marshalOPlatform2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx, field.Selections, res) 8294 } 8295 8296 func (ec *executionContext) fieldContext_RepoSummary_Platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8297 fc = &graphql.FieldContext{ 8298 Object: "RepoSummary", 8299 Field: field, 8300 IsMethod: false, 8301 IsResolver: false, 8302 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8303 switch field.Name { 8304 case "Os": 8305 return ec.fieldContext_Platform_Os(ctx, field) 8306 case "Arch": 8307 return ec.fieldContext_Platform_Arch(ctx, field) 8308 } 8309 return nil, fmt.Errorf("no field named %q was found under type Platform", field.Name) 8310 }, 8311 } 8312 return fc, nil 8313 } 8314 8315 func (ec *executionContext) _RepoSummary_Vendors(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8316 fc, err := ec.fieldContext_RepoSummary_Vendors(ctx, field) 8317 if err != nil { 8318 return graphql.Null 8319 } 8320 ctx = graphql.WithFieldContext(ctx, fc) 8321 defer func() { 8322 if r := recover(); r != nil { 8323 ec.Error(ctx, ec.Recover(ctx, r)) 8324 ret = graphql.Null 8325 } 8326 }() 8327 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8328 ctx = rctx // use context from middleware stack in children 8329 return obj.Vendors, nil 8330 }) 8331 if err != nil { 8332 ec.Error(ctx, err) 8333 return graphql.Null 8334 } 8335 if resTmp == nil { 8336 return graphql.Null 8337 } 8338 res := resTmp.([]*string) 8339 fc.Result = res 8340 return ec.marshalOString2ᚕᚖstring(ctx, field.Selections, res) 8341 } 8342 8343 func (ec *executionContext) fieldContext_RepoSummary_Vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8344 fc = &graphql.FieldContext{ 8345 Object: "RepoSummary", 8346 Field: field, 8347 IsMethod: false, 8348 IsResolver: false, 8349 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8350 return nil, errors.New("field of type String does not have child fields") 8351 }, 8352 } 8353 return fc, nil 8354 } 8355 8356 func (ec *executionContext) _RepoSummary_NewestImage(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8357 fc, err := ec.fieldContext_RepoSummary_NewestImage(ctx, field) 8358 if err != nil { 8359 return graphql.Null 8360 } 8361 ctx = graphql.WithFieldContext(ctx, fc) 8362 defer func() { 8363 if r := recover(); r != nil { 8364 ec.Error(ctx, ec.Recover(ctx, r)) 8365 ret = graphql.Null 8366 } 8367 }() 8368 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8369 ctx = rctx // use context from middleware stack in children 8370 return obj.NewestImage, nil 8371 }) 8372 if err != nil { 8373 ec.Error(ctx, err) 8374 return graphql.Null 8375 } 8376 if resTmp == nil { 8377 return graphql.Null 8378 } 8379 res := resTmp.(*ImageSummary) 8380 fc.Result = res 8381 return ec.marshalOImageSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, field.Selections, res) 8382 } 8383 8384 func (ec *executionContext) fieldContext_RepoSummary_NewestImage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8385 fc = &graphql.FieldContext{ 8386 Object: "RepoSummary", 8387 Field: field, 8388 IsMethod: false, 8389 IsResolver: false, 8390 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8391 switch field.Name { 8392 case "RepoName": 8393 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 8394 case "Tag": 8395 return ec.fieldContext_ImageSummary_Tag(ctx, field) 8396 case "Digest": 8397 return ec.fieldContext_ImageSummary_Digest(ctx, field) 8398 case "MediaType": 8399 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 8400 case "Manifests": 8401 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 8402 case "Size": 8403 return ec.fieldContext_ImageSummary_Size(ctx, field) 8404 case "DownloadCount": 8405 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 8406 case "LastUpdated": 8407 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 8408 case "Description": 8409 return ec.fieldContext_ImageSummary_Description(ctx, field) 8410 case "IsSigned": 8411 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 8412 case "SignatureInfo": 8413 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 8414 case "Licenses": 8415 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 8416 case "Labels": 8417 return ec.fieldContext_ImageSummary_Labels(ctx, field) 8418 case "Title": 8419 return ec.fieldContext_ImageSummary_Title(ctx, field) 8420 case "Source": 8421 return ec.fieldContext_ImageSummary_Source(ctx, field) 8422 case "Documentation": 8423 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 8424 case "Vendor": 8425 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 8426 case "Authors": 8427 return ec.fieldContext_ImageSummary_Authors(ctx, field) 8428 case "Vulnerabilities": 8429 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 8430 case "Referrers": 8431 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 8432 case "IsDeletable": 8433 return ec.fieldContext_ImageSummary_IsDeletable(ctx, field) 8434 } 8435 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 8436 }, 8437 } 8438 return fc, nil 8439 } 8440 8441 func (ec *executionContext) _RepoSummary_DownloadCount(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8442 fc, err := ec.fieldContext_RepoSummary_DownloadCount(ctx, field) 8443 if err != nil { 8444 return graphql.Null 8445 } 8446 ctx = graphql.WithFieldContext(ctx, fc) 8447 defer func() { 8448 if r := recover(); r != nil { 8449 ec.Error(ctx, ec.Recover(ctx, r)) 8450 ret = graphql.Null 8451 } 8452 }() 8453 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8454 ctx = rctx // use context from middleware stack in children 8455 return obj.DownloadCount, nil 8456 }) 8457 if err != nil { 8458 ec.Error(ctx, err) 8459 return graphql.Null 8460 } 8461 if resTmp == nil { 8462 return graphql.Null 8463 } 8464 res := resTmp.(*int) 8465 fc.Result = res 8466 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 8467 } 8468 8469 func (ec *executionContext) fieldContext_RepoSummary_DownloadCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8470 fc = &graphql.FieldContext{ 8471 Object: "RepoSummary", 8472 Field: field, 8473 IsMethod: false, 8474 IsResolver: false, 8475 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8476 return nil, errors.New("field of type Int does not have child fields") 8477 }, 8478 } 8479 return fc, nil 8480 } 8481 8482 func (ec *executionContext) _RepoSummary_StarCount(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8483 fc, err := ec.fieldContext_RepoSummary_StarCount(ctx, field) 8484 if err != nil { 8485 return graphql.Null 8486 } 8487 ctx = graphql.WithFieldContext(ctx, fc) 8488 defer func() { 8489 if r := recover(); r != nil { 8490 ec.Error(ctx, ec.Recover(ctx, r)) 8491 ret = graphql.Null 8492 } 8493 }() 8494 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8495 ctx = rctx // use context from middleware stack in children 8496 return obj.StarCount, nil 8497 }) 8498 if err != nil { 8499 ec.Error(ctx, err) 8500 return graphql.Null 8501 } 8502 if resTmp == nil { 8503 return graphql.Null 8504 } 8505 res := resTmp.(*int) 8506 fc.Result = res 8507 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 8508 } 8509 8510 func (ec *executionContext) fieldContext_RepoSummary_StarCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8511 fc = &graphql.FieldContext{ 8512 Object: "RepoSummary", 8513 Field: field, 8514 IsMethod: false, 8515 IsResolver: false, 8516 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8517 return nil, errors.New("field of type Int does not have child fields") 8518 }, 8519 } 8520 return fc, nil 8521 } 8522 8523 func (ec *executionContext) _RepoSummary_IsBookmarked(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8524 fc, err := ec.fieldContext_RepoSummary_IsBookmarked(ctx, field) 8525 if err != nil { 8526 return graphql.Null 8527 } 8528 ctx = graphql.WithFieldContext(ctx, fc) 8529 defer func() { 8530 if r := recover(); r != nil { 8531 ec.Error(ctx, ec.Recover(ctx, r)) 8532 ret = graphql.Null 8533 } 8534 }() 8535 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8536 ctx = rctx // use context from middleware stack in children 8537 return obj.IsBookmarked, nil 8538 }) 8539 if err != nil { 8540 ec.Error(ctx, err) 8541 return graphql.Null 8542 } 8543 if resTmp == nil { 8544 return graphql.Null 8545 } 8546 res := resTmp.(*bool) 8547 fc.Result = res 8548 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 8549 } 8550 8551 func (ec *executionContext) fieldContext_RepoSummary_IsBookmarked(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8552 fc = &graphql.FieldContext{ 8553 Object: "RepoSummary", 8554 Field: field, 8555 IsMethod: false, 8556 IsResolver: false, 8557 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8558 return nil, errors.New("field of type Boolean does not have child fields") 8559 }, 8560 } 8561 return fc, nil 8562 } 8563 8564 func (ec *executionContext) _RepoSummary_IsStarred(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8565 fc, err := ec.fieldContext_RepoSummary_IsStarred(ctx, field) 8566 if err != nil { 8567 return graphql.Null 8568 } 8569 ctx = graphql.WithFieldContext(ctx, fc) 8570 defer func() { 8571 if r := recover(); r != nil { 8572 ec.Error(ctx, ec.Recover(ctx, r)) 8573 ret = graphql.Null 8574 } 8575 }() 8576 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8577 ctx = rctx // use context from middleware stack in children 8578 return obj.IsStarred, nil 8579 }) 8580 if err != nil { 8581 ec.Error(ctx, err) 8582 return graphql.Null 8583 } 8584 if resTmp == nil { 8585 return graphql.Null 8586 } 8587 res := resTmp.(*bool) 8588 fc.Result = res 8589 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 8590 } 8591 8592 func (ec *executionContext) fieldContext_RepoSummary_IsStarred(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8593 fc = &graphql.FieldContext{ 8594 Object: "RepoSummary", 8595 Field: field, 8596 IsMethod: false, 8597 IsResolver: false, 8598 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8599 return nil, errors.New("field of type Boolean does not have child fields") 8600 }, 8601 } 8602 return fc, nil 8603 } 8604 8605 func (ec *executionContext) _RepoSummary_Rank(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 8606 fc, err := ec.fieldContext_RepoSummary_Rank(ctx, field) 8607 if err != nil { 8608 return graphql.Null 8609 } 8610 ctx = graphql.WithFieldContext(ctx, fc) 8611 defer func() { 8612 if r := recover(); r != nil { 8613 ec.Error(ctx, ec.Recover(ctx, r)) 8614 ret = graphql.Null 8615 } 8616 }() 8617 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8618 ctx = rctx // use context from middleware stack in children 8619 return obj.Rank, nil 8620 }) 8621 if err != nil { 8622 ec.Error(ctx, err) 8623 return graphql.Null 8624 } 8625 if resTmp == nil { 8626 return graphql.Null 8627 } 8628 res := resTmp.(*int) 8629 fc.Result = res 8630 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 8631 } 8632 8633 func (ec *executionContext) fieldContext_RepoSummary_Rank(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8634 fc = &graphql.FieldContext{ 8635 Object: "RepoSummary", 8636 Field: field, 8637 IsMethod: false, 8638 IsResolver: false, 8639 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8640 return nil, errors.New("field of type Int does not have child fields") 8641 }, 8642 } 8643 return fc, nil 8644 } 8645 8646 func (ec *executionContext) _SignatureSummary_Tool(ctx context.Context, field graphql.CollectedField, obj *SignatureSummary) (ret graphql.Marshaler) { 8647 fc, err := ec.fieldContext_SignatureSummary_Tool(ctx, field) 8648 if err != nil { 8649 return graphql.Null 8650 } 8651 ctx = graphql.WithFieldContext(ctx, fc) 8652 defer func() { 8653 if r := recover(); r != nil { 8654 ec.Error(ctx, ec.Recover(ctx, r)) 8655 ret = graphql.Null 8656 } 8657 }() 8658 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8659 ctx = rctx // use context from middleware stack in children 8660 return obj.Tool, nil 8661 }) 8662 if err != nil { 8663 ec.Error(ctx, err) 8664 return graphql.Null 8665 } 8666 if resTmp == nil { 8667 return graphql.Null 8668 } 8669 res := resTmp.(*string) 8670 fc.Result = res 8671 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8672 } 8673 8674 func (ec *executionContext) fieldContext_SignatureSummary_Tool(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8675 fc = &graphql.FieldContext{ 8676 Object: "SignatureSummary", 8677 Field: field, 8678 IsMethod: false, 8679 IsResolver: false, 8680 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8681 return nil, errors.New("field of type String does not have child fields") 8682 }, 8683 } 8684 return fc, nil 8685 } 8686 8687 func (ec *executionContext) _SignatureSummary_IsTrusted(ctx context.Context, field graphql.CollectedField, obj *SignatureSummary) (ret graphql.Marshaler) { 8688 fc, err := ec.fieldContext_SignatureSummary_IsTrusted(ctx, field) 8689 if err != nil { 8690 return graphql.Null 8691 } 8692 ctx = graphql.WithFieldContext(ctx, fc) 8693 defer func() { 8694 if r := recover(); r != nil { 8695 ec.Error(ctx, ec.Recover(ctx, r)) 8696 ret = graphql.Null 8697 } 8698 }() 8699 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8700 ctx = rctx // use context from middleware stack in children 8701 return obj.IsTrusted, nil 8702 }) 8703 if err != nil { 8704 ec.Error(ctx, err) 8705 return graphql.Null 8706 } 8707 if resTmp == nil { 8708 return graphql.Null 8709 } 8710 res := resTmp.(*bool) 8711 fc.Result = res 8712 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 8713 } 8714 8715 func (ec *executionContext) fieldContext_SignatureSummary_IsTrusted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8716 fc = &graphql.FieldContext{ 8717 Object: "SignatureSummary", 8718 Field: field, 8719 IsMethod: false, 8720 IsResolver: false, 8721 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8722 return nil, errors.New("field of type Boolean does not have child fields") 8723 }, 8724 } 8725 return fc, nil 8726 } 8727 8728 func (ec *executionContext) _SignatureSummary_Author(ctx context.Context, field graphql.CollectedField, obj *SignatureSummary) (ret graphql.Marshaler) { 8729 fc, err := ec.fieldContext_SignatureSummary_Author(ctx, field) 8730 if err != nil { 8731 return graphql.Null 8732 } 8733 ctx = graphql.WithFieldContext(ctx, fc) 8734 defer func() { 8735 if r := recover(); r != nil { 8736 ec.Error(ctx, ec.Recover(ctx, r)) 8737 ret = graphql.Null 8738 } 8739 }() 8740 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8741 ctx = rctx // use context from middleware stack in children 8742 return obj.Author, nil 8743 }) 8744 if err != nil { 8745 ec.Error(ctx, err) 8746 return graphql.Null 8747 } 8748 if resTmp == nil { 8749 return graphql.Null 8750 } 8751 res := resTmp.(*string) 8752 fc.Result = res 8753 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8754 } 8755 8756 func (ec *executionContext) fieldContext_SignatureSummary_Author(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8757 fc = &graphql.FieldContext{ 8758 Object: "SignatureSummary", 8759 Field: field, 8760 IsMethod: false, 8761 IsResolver: false, 8762 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8763 return nil, errors.New("field of type String does not have child fields") 8764 }, 8765 } 8766 return fc, nil 8767 } 8768 8769 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 8770 fc, err := ec.fieldContext___Directive_name(ctx, field) 8771 if err != nil { 8772 return graphql.Null 8773 } 8774 ctx = graphql.WithFieldContext(ctx, fc) 8775 defer func() { 8776 if r := recover(); r != nil { 8777 ec.Error(ctx, ec.Recover(ctx, r)) 8778 ret = graphql.Null 8779 } 8780 }() 8781 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8782 ctx = rctx // use context from middleware stack in children 8783 return obj.Name, nil 8784 }) 8785 if err != nil { 8786 ec.Error(ctx, err) 8787 return graphql.Null 8788 } 8789 if resTmp == nil { 8790 if !graphql.HasFieldError(ctx, fc) { 8791 ec.Errorf(ctx, "must not be null") 8792 } 8793 return graphql.Null 8794 } 8795 res := resTmp.(string) 8796 fc.Result = res 8797 return ec.marshalNString2string(ctx, field.Selections, res) 8798 } 8799 8800 func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8801 fc = &graphql.FieldContext{ 8802 Object: "__Directive", 8803 Field: field, 8804 IsMethod: false, 8805 IsResolver: false, 8806 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8807 return nil, errors.New("field of type String does not have child fields") 8808 }, 8809 } 8810 return fc, nil 8811 } 8812 8813 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 8814 fc, err := ec.fieldContext___Directive_description(ctx, field) 8815 if err != nil { 8816 return graphql.Null 8817 } 8818 ctx = graphql.WithFieldContext(ctx, fc) 8819 defer func() { 8820 if r := recover(); r != nil { 8821 ec.Error(ctx, ec.Recover(ctx, r)) 8822 ret = graphql.Null 8823 } 8824 }() 8825 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8826 ctx = rctx // use context from middleware stack in children 8827 return obj.Description(), nil 8828 }) 8829 if err != nil { 8830 ec.Error(ctx, err) 8831 return graphql.Null 8832 } 8833 if resTmp == nil { 8834 return graphql.Null 8835 } 8836 res := resTmp.(*string) 8837 fc.Result = res 8838 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8839 } 8840 8841 func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8842 fc = &graphql.FieldContext{ 8843 Object: "__Directive", 8844 Field: field, 8845 IsMethod: true, 8846 IsResolver: false, 8847 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8848 return nil, errors.New("field of type String does not have child fields") 8849 }, 8850 } 8851 return fc, nil 8852 } 8853 8854 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 8855 fc, err := ec.fieldContext___Directive_locations(ctx, field) 8856 if err != nil { 8857 return graphql.Null 8858 } 8859 ctx = graphql.WithFieldContext(ctx, fc) 8860 defer func() { 8861 if r := recover(); r != nil { 8862 ec.Error(ctx, ec.Recover(ctx, r)) 8863 ret = graphql.Null 8864 } 8865 }() 8866 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8867 ctx = rctx // use context from middleware stack in children 8868 return obj.Locations, nil 8869 }) 8870 if err != nil { 8871 ec.Error(ctx, err) 8872 return graphql.Null 8873 } 8874 if resTmp == nil { 8875 if !graphql.HasFieldError(ctx, fc) { 8876 ec.Errorf(ctx, "must not be null") 8877 } 8878 return graphql.Null 8879 } 8880 res := resTmp.([]string) 8881 fc.Result = res 8882 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) 8883 } 8884 8885 func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8886 fc = &graphql.FieldContext{ 8887 Object: "__Directive", 8888 Field: field, 8889 IsMethod: false, 8890 IsResolver: false, 8891 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8892 return nil, errors.New("field of type __DirectiveLocation does not have child fields") 8893 }, 8894 } 8895 return fc, nil 8896 } 8897 8898 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 8899 fc, err := ec.fieldContext___Directive_args(ctx, field) 8900 if err != nil { 8901 return graphql.Null 8902 } 8903 ctx = graphql.WithFieldContext(ctx, fc) 8904 defer func() { 8905 if r := recover(); r != nil { 8906 ec.Error(ctx, ec.Recover(ctx, r)) 8907 ret = graphql.Null 8908 } 8909 }() 8910 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8911 ctx = rctx // use context from middleware stack in children 8912 return obj.Args, nil 8913 }) 8914 if err != nil { 8915 ec.Error(ctx, err) 8916 return graphql.Null 8917 } 8918 if resTmp == nil { 8919 if !graphql.HasFieldError(ctx, fc) { 8920 ec.Errorf(ctx, "must not be null") 8921 } 8922 return graphql.Null 8923 } 8924 res := resTmp.([]introspection.InputValue) 8925 fc.Result = res 8926 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 8927 } 8928 8929 func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8930 fc = &graphql.FieldContext{ 8931 Object: "__Directive", 8932 Field: field, 8933 IsMethod: false, 8934 IsResolver: false, 8935 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8936 switch field.Name { 8937 case "name": 8938 return ec.fieldContext___InputValue_name(ctx, field) 8939 case "description": 8940 return ec.fieldContext___InputValue_description(ctx, field) 8941 case "type": 8942 return ec.fieldContext___InputValue_type(ctx, field) 8943 case "defaultValue": 8944 return ec.fieldContext___InputValue_defaultValue(ctx, field) 8945 } 8946 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 8947 }, 8948 } 8949 return fc, nil 8950 } 8951 8952 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 8953 fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) 8954 if err != nil { 8955 return graphql.Null 8956 } 8957 ctx = graphql.WithFieldContext(ctx, fc) 8958 defer func() { 8959 if r := recover(); r != nil { 8960 ec.Error(ctx, ec.Recover(ctx, r)) 8961 ret = graphql.Null 8962 } 8963 }() 8964 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8965 ctx = rctx // use context from middleware stack in children 8966 return obj.IsRepeatable, nil 8967 }) 8968 if err != nil { 8969 ec.Error(ctx, err) 8970 return graphql.Null 8971 } 8972 if resTmp == nil { 8973 if !graphql.HasFieldError(ctx, fc) { 8974 ec.Errorf(ctx, "must not be null") 8975 } 8976 return graphql.Null 8977 } 8978 res := resTmp.(bool) 8979 fc.Result = res 8980 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 8981 } 8982 8983 func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8984 fc = &graphql.FieldContext{ 8985 Object: "__Directive", 8986 Field: field, 8987 IsMethod: false, 8988 IsResolver: false, 8989 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8990 return nil, errors.New("field of type Boolean does not have child fields") 8991 }, 8992 } 8993 return fc, nil 8994 } 8995 8996 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 8997 fc, err := ec.fieldContext___EnumValue_name(ctx, field) 8998 if err != nil { 8999 return graphql.Null 9000 } 9001 ctx = graphql.WithFieldContext(ctx, fc) 9002 defer func() { 9003 if r := recover(); r != nil { 9004 ec.Error(ctx, ec.Recover(ctx, r)) 9005 ret = graphql.Null 9006 } 9007 }() 9008 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9009 ctx = rctx // use context from middleware stack in children 9010 return obj.Name, nil 9011 }) 9012 if err != nil { 9013 ec.Error(ctx, err) 9014 return graphql.Null 9015 } 9016 if resTmp == nil { 9017 if !graphql.HasFieldError(ctx, fc) { 9018 ec.Errorf(ctx, "must not be null") 9019 } 9020 return graphql.Null 9021 } 9022 res := resTmp.(string) 9023 fc.Result = res 9024 return ec.marshalNString2string(ctx, field.Selections, res) 9025 } 9026 9027 func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9028 fc = &graphql.FieldContext{ 9029 Object: "__EnumValue", 9030 Field: field, 9031 IsMethod: false, 9032 IsResolver: false, 9033 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9034 return nil, errors.New("field of type String does not have child fields") 9035 }, 9036 } 9037 return fc, nil 9038 } 9039 9040 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 9041 fc, err := ec.fieldContext___EnumValue_description(ctx, field) 9042 if err != nil { 9043 return graphql.Null 9044 } 9045 ctx = graphql.WithFieldContext(ctx, fc) 9046 defer func() { 9047 if r := recover(); r != nil { 9048 ec.Error(ctx, ec.Recover(ctx, r)) 9049 ret = graphql.Null 9050 } 9051 }() 9052 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9053 ctx = rctx // use context from middleware stack in children 9054 return obj.Description(), nil 9055 }) 9056 if err != nil { 9057 ec.Error(ctx, err) 9058 return graphql.Null 9059 } 9060 if resTmp == nil { 9061 return graphql.Null 9062 } 9063 res := resTmp.(*string) 9064 fc.Result = res 9065 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9066 } 9067 9068 func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9069 fc = &graphql.FieldContext{ 9070 Object: "__EnumValue", 9071 Field: field, 9072 IsMethod: true, 9073 IsResolver: false, 9074 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9075 return nil, errors.New("field of type String does not have child fields") 9076 }, 9077 } 9078 return fc, nil 9079 } 9080 9081 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 9082 fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) 9083 if err != nil { 9084 return graphql.Null 9085 } 9086 ctx = graphql.WithFieldContext(ctx, fc) 9087 defer func() { 9088 if r := recover(); r != nil { 9089 ec.Error(ctx, ec.Recover(ctx, r)) 9090 ret = graphql.Null 9091 } 9092 }() 9093 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9094 ctx = rctx // use context from middleware stack in children 9095 return obj.IsDeprecated(), nil 9096 }) 9097 if err != nil { 9098 ec.Error(ctx, err) 9099 return graphql.Null 9100 } 9101 if resTmp == nil { 9102 if !graphql.HasFieldError(ctx, fc) { 9103 ec.Errorf(ctx, "must not be null") 9104 } 9105 return graphql.Null 9106 } 9107 res := resTmp.(bool) 9108 fc.Result = res 9109 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 9110 } 9111 9112 func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9113 fc = &graphql.FieldContext{ 9114 Object: "__EnumValue", 9115 Field: field, 9116 IsMethod: true, 9117 IsResolver: false, 9118 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9119 return nil, errors.New("field of type Boolean does not have child fields") 9120 }, 9121 } 9122 return fc, nil 9123 } 9124 9125 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 9126 fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) 9127 if err != nil { 9128 return graphql.Null 9129 } 9130 ctx = graphql.WithFieldContext(ctx, fc) 9131 defer func() { 9132 if r := recover(); r != nil { 9133 ec.Error(ctx, ec.Recover(ctx, r)) 9134 ret = graphql.Null 9135 } 9136 }() 9137 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9138 ctx = rctx // use context from middleware stack in children 9139 return obj.DeprecationReason(), nil 9140 }) 9141 if err != nil { 9142 ec.Error(ctx, err) 9143 return graphql.Null 9144 } 9145 if resTmp == nil { 9146 return graphql.Null 9147 } 9148 res := resTmp.(*string) 9149 fc.Result = res 9150 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9151 } 9152 9153 func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9154 fc = &graphql.FieldContext{ 9155 Object: "__EnumValue", 9156 Field: field, 9157 IsMethod: true, 9158 IsResolver: false, 9159 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9160 return nil, errors.New("field of type String does not have child fields") 9161 }, 9162 } 9163 return fc, nil 9164 } 9165 9166 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 9167 fc, err := ec.fieldContext___Field_name(ctx, field) 9168 if err != nil { 9169 return graphql.Null 9170 } 9171 ctx = graphql.WithFieldContext(ctx, fc) 9172 defer func() { 9173 if r := recover(); r != nil { 9174 ec.Error(ctx, ec.Recover(ctx, r)) 9175 ret = graphql.Null 9176 } 9177 }() 9178 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9179 ctx = rctx // use context from middleware stack in children 9180 return obj.Name, nil 9181 }) 9182 if err != nil { 9183 ec.Error(ctx, err) 9184 return graphql.Null 9185 } 9186 if resTmp == nil { 9187 if !graphql.HasFieldError(ctx, fc) { 9188 ec.Errorf(ctx, "must not be null") 9189 } 9190 return graphql.Null 9191 } 9192 res := resTmp.(string) 9193 fc.Result = res 9194 return ec.marshalNString2string(ctx, field.Selections, res) 9195 } 9196 9197 func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9198 fc = &graphql.FieldContext{ 9199 Object: "__Field", 9200 Field: field, 9201 IsMethod: false, 9202 IsResolver: false, 9203 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9204 return nil, errors.New("field of type String does not have child fields") 9205 }, 9206 } 9207 return fc, nil 9208 } 9209 9210 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 9211 fc, err := ec.fieldContext___Field_description(ctx, field) 9212 if err != nil { 9213 return graphql.Null 9214 } 9215 ctx = graphql.WithFieldContext(ctx, fc) 9216 defer func() { 9217 if r := recover(); r != nil { 9218 ec.Error(ctx, ec.Recover(ctx, r)) 9219 ret = graphql.Null 9220 } 9221 }() 9222 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9223 ctx = rctx // use context from middleware stack in children 9224 return obj.Description(), nil 9225 }) 9226 if err != nil { 9227 ec.Error(ctx, err) 9228 return graphql.Null 9229 } 9230 if resTmp == nil { 9231 return graphql.Null 9232 } 9233 res := resTmp.(*string) 9234 fc.Result = res 9235 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9236 } 9237 9238 func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9239 fc = &graphql.FieldContext{ 9240 Object: "__Field", 9241 Field: field, 9242 IsMethod: true, 9243 IsResolver: false, 9244 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9245 return nil, errors.New("field of type String does not have child fields") 9246 }, 9247 } 9248 return fc, nil 9249 } 9250 9251 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 9252 fc, err := ec.fieldContext___Field_args(ctx, field) 9253 if err != nil { 9254 return graphql.Null 9255 } 9256 ctx = graphql.WithFieldContext(ctx, fc) 9257 defer func() { 9258 if r := recover(); r != nil { 9259 ec.Error(ctx, ec.Recover(ctx, r)) 9260 ret = graphql.Null 9261 } 9262 }() 9263 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9264 ctx = rctx // use context from middleware stack in children 9265 return obj.Args, nil 9266 }) 9267 if err != nil { 9268 ec.Error(ctx, err) 9269 return graphql.Null 9270 } 9271 if resTmp == nil { 9272 if !graphql.HasFieldError(ctx, fc) { 9273 ec.Errorf(ctx, "must not be null") 9274 } 9275 return graphql.Null 9276 } 9277 res := resTmp.([]introspection.InputValue) 9278 fc.Result = res 9279 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 9280 } 9281 9282 func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9283 fc = &graphql.FieldContext{ 9284 Object: "__Field", 9285 Field: field, 9286 IsMethod: false, 9287 IsResolver: false, 9288 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9289 switch field.Name { 9290 case "name": 9291 return ec.fieldContext___InputValue_name(ctx, field) 9292 case "description": 9293 return ec.fieldContext___InputValue_description(ctx, field) 9294 case "type": 9295 return ec.fieldContext___InputValue_type(ctx, field) 9296 case "defaultValue": 9297 return ec.fieldContext___InputValue_defaultValue(ctx, field) 9298 } 9299 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 9300 }, 9301 } 9302 return fc, nil 9303 } 9304 9305 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 9306 fc, err := ec.fieldContext___Field_type(ctx, field) 9307 if err != nil { 9308 return graphql.Null 9309 } 9310 ctx = graphql.WithFieldContext(ctx, fc) 9311 defer func() { 9312 if r := recover(); r != nil { 9313 ec.Error(ctx, ec.Recover(ctx, r)) 9314 ret = graphql.Null 9315 } 9316 }() 9317 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9318 ctx = rctx // use context from middleware stack in children 9319 return obj.Type, nil 9320 }) 9321 if err != nil { 9322 ec.Error(ctx, err) 9323 return graphql.Null 9324 } 9325 if resTmp == nil { 9326 if !graphql.HasFieldError(ctx, fc) { 9327 ec.Errorf(ctx, "must not be null") 9328 } 9329 return graphql.Null 9330 } 9331 res := resTmp.(*introspection.Type) 9332 fc.Result = res 9333 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 9334 } 9335 9336 func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9337 fc = &graphql.FieldContext{ 9338 Object: "__Field", 9339 Field: field, 9340 IsMethod: false, 9341 IsResolver: false, 9342 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9343 switch field.Name { 9344 case "kind": 9345 return ec.fieldContext___Type_kind(ctx, field) 9346 case "name": 9347 return ec.fieldContext___Type_name(ctx, field) 9348 case "description": 9349 return ec.fieldContext___Type_description(ctx, field) 9350 case "fields": 9351 return ec.fieldContext___Type_fields(ctx, field) 9352 case "interfaces": 9353 return ec.fieldContext___Type_interfaces(ctx, field) 9354 case "possibleTypes": 9355 return ec.fieldContext___Type_possibleTypes(ctx, field) 9356 case "enumValues": 9357 return ec.fieldContext___Type_enumValues(ctx, field) 9358 case "inputFields": 9359 return ec.fieldContext___Type_inputFields(ctx, field) 9360 case "ofType": 9361 return ec.fieldContext___Type_ofType(ctx, field) 9362 case "specifiedByURL": 9363 return ec.fieldContext___Type_specifiedByURL(ctx, field) 9364 } 9365 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 9366 }, 9367 } 9368 return fc, nil 9369 } 9370 9371 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 9372 fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) 9373 if err != nil { 9374 return graphql.Null 9375 } 9376 ctx = graphql.WithFieldContext(ctx, fc) 9377 defer func() { 9378 if r := recover(); r != nil { 9379 ec.Error(ctx, ec.Recover(ctx, r)) 9380 ret = graphql.Null 9381 } 9382 }() 9383 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9384 ctx = rctx // use context from middleware stack in children 9385 return obj.IsDeprecated(), nil 9386 }) 9387 if err != nil { 9388 ec.Error(ctx, err) 9389 return graphql.Null 9390 } 9391 if resTmp == nil { 9392 if !graphql.HasFieldError(ctx, fc) { 9393 ec.Errorf(ctx, "must not be null") 9394 } 9395 return graphql.Null 9396 } 9397 res := resTmp.(bool) 9398 fc.Result = res 9399 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 9400 } 9401 9402 func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9403 fc = &graphql.FieldContext{ 9404 Object: "__Field", 9405 Field: field, 9406 IsMethod: true, 9407 IsResolver: false, 9408 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9409 return nil, errors.New("field of type Boolean does not have child fields") 9410 }, 9411 } 9412 return fc, nil 9413 } 9414 9415 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 9416 fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) 9417 if err != nil { 9418 return graphql.Null 9419 } 9420 ctx = graphql.WithFieldContext(ctx, fc) 9421 defer func() { 9422 if r := recover(); r != nil { 9423 ec.Error(ctx, ec.Recover(ctx, r)) 9424 ret = graphql.Null 9425 } 9426 }() 9427 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9428 ctx = rctx // use context from middleware stack in children 9429 return obj.DeprecationReason(), nil 9430 }) 9431 if err != nil { 9432 ec.Error(ctx, err) 9433 return graphql.Null 9434 } 9435 if resTmp == nil { 9436 return graphql.Null 9437 } 9438 res := resTmp.(*string) 9439 fc.Result = res 9440 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9441 } 9442 9443 func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9444 fc = &graphql.FieldContext{ 9445 Object: "__Field", 9446 Field: field, 9447 IsMethod: true, 9448 IsResolver: false, 9449 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9450 return nil, errors.New("field of type String does not have child fields") 9451 }, 9452 } 9453 return fc, nil 9454 } 9455 9456 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 9457 fc, err := ec.fieldContext___InputValue_name(ctx, field) 9458 if err != nil { 9459 return graphql.Null 9460 } 9461 ctx = graphql.WithFieldContext(ctx, fc) 9462 defer func() { 9463 if r := recover(); r != nil { 9464 ec.Error(ctx, ec.Recover(ctx, r)) 9465 ret = graphql.Null 9466 } 9467 }() 9468 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9469 ctx = rctx // use context from middleware stack in children 9470 return obj.Name, nil 9471 }) 9472 if err != nil { 9473 ec.Error(ctx, err) 9474 return graphql.Null 9475 } 9476 if resTmp == nil { 9477 if !graphql.HasFieldError(ctx, fc) { 9478 ec.Errorf(ctx, "must not be null") 9479 } 9480 return graphql.Null 9481 } 9482 res := resTmp.(string) 9483 fc.Result = res 9484 return ec.marshalNString2string(ctx, field.Selections, res) 9485 } 9486 9487 func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9488 fc = &graphql.FieldContext{ 9489 Object: "__InputValue", 9490 Field: field, 9491 IsMethod: false, 9492 IsResolver: false, 9493 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9494 return nil, errors.New("field of type String does not have child fields") 9495 }, 9496 } 9497 return fc, nil 9498 } 9499 9500 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 9501 fc, err := ec.fieldContext___InputValue_description(ctx, field) 9502 if err != nil { 9503 return graphql.Null 9504 } 9505 ctx = graphql.WithFieldContext(ctx, fc) 9506 defer func() { 9507 if r := recover(); r != nil { 9508 ec.Error(ctx, ec.Recover(ctx, r)) 9509 ret = graphql.Null 9510 } 9511 }() 9512 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9513 ctx = rctx // use context from middleware stack in children 9514 return obj.Description(), nil 9515 }) 9516 if err != nil { 9517 ec.Error(ctx, err) 9518 return graphql.Null 9519 } 9520 if resTmp == nil { 9521 return graphql.Null 9522 } 9523 res := resTmp.(*string) 9524 fc.Result = res 9525 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9526 } 9527 9528 func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9529 fc = &graphql.FieldContext{ 9530 Object: "__InputValue", 9531 Field: field, 9532 IsMethod: true, 9533 IsResolver: false, 9534 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9535 return nil, errors.New("field of type String does not have child fields") 9536 }, 9537 } 9538 return fc, nil 9539 } 9540 9541 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 9542 fc, err := ec.fieldContext___InputValue_type(ctx, field) 9543 if err != nil { 9544 return graphql.Null 9545 } 9546 ctx = graphql.WithFieldContext(ctx, fc) 9547 defer func() { 9548 if r := recover(); r != nil { 9549 ec.Error(ctx, ec.Recover(ctx, r)) 9550 ret = graphql.Null 9551 } 9552 }() 9553 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9554 ctx = rctx // use context from middleware stack in children 9555 return obj.Type, nil 9556 }) 9557 if err != nil { 9558 ec.Error(ctx, err) 9559 return graphql.Null 9560 } 9561 if resTmp == nil { 9562 if !graphql.HasFieldError(ctx, fc) { 9563 ec.Errorf(ctx, "must not be null") 9564 } 9565 return graphql.Null 9566 } 9567 res := resTmp.(*introspection.Type) 9568 fc.Result = res 9569 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 9570 } 9571 9572 func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9573 fc = &graphql.FieldContext{ 9574 Object: "__InputValue", 9575 Field: field, 9576 IsMethod: false, 9577 IsResolver: false, 9578 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9579 switch field.Name { 9580 case "kind": 9581 return ec.fieldContext___Type_kind(ctx, field) 9582 case "name": 9583 return ec.fieldContext___Type_name(ctx, field) 9584 case "description": 9585 return ec.fieldContext___Type_description(ctx, field) 9586 case "fields": 9587 return ec.fieldContext___Type_fields(ctx, field) 9588 case "interfaces": 9589 return ec.fieldContext___Type_interfaces(ctx, field) 9590 case "possibleTypes": 9591 return ec.fieldContext___Type_possibleTypes(ctx, field) 9592 case "enumValues": 9593 return ec.fieldContext___Type_enumValues(ctx, field) 9594 case "inputFields": 9595 return ec.fieldContext___Type_inputFields(ctx, field) 9596 case "ofType": 9597 return ec.fieldContext___Type_ofType(ctx, field) 9598 case "specifiedByURL": 9599 return ec.fieldContext___Type_specifiedByURL(ctx, field) 9600 } 9601 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 9602 }, 9603 } 9604 return fc, nil 9605 } 9606 9607 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 9608 fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) 9609 if err != nil { 9610 return graphql.Null 9611 } 9612 ctx = graphql.WithFieldContext(ctx, fc) 9613 defer func() { 9614 if r := recover(); r != nil { 9615 ec.Error(ctx, ec.Recover(ctx, r)) 9616 ret = graphql.Null 9617 } 9618 }() 9619 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9620 ctx = rctx // use context from middleware stack in children 9621 return obj.DefaultValue, nil 9622 }) 9623 if err != nil { 9624 ec.Error(ctx, err) 9625 return graphql.Null 9626 } 9627 if resTmp == nil { 9628 return graphql.Null 9629 } 9630 res := resTmp.(*string) 9631 fc.Result = res 9632 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9633 } 9634 9635 func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9636 fc = &graphql.FieldContext{ 9637 Object: "__InputValue", 9638 Field: field, 9639 IsMethod: false, 9640 IsResolver: false, 9641 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9642 return nil, errors.New("field of type String does not have child fields") 9643 }, 9644 } 9645 return fc, nil 9646 } 9647 9648 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 9649 fc, err := ec.fieldContext___Schema_description(ctx, field) 9650 if err != nil { 9651 return graphql.Null 9652 } 9653 ctx = graphql.WithFieldContext(ctx, fc) 9654 defer func() { 9655 if r := recover(); r != nil { 9656 ec.Error(ctx, ec.Recover(ctx, r)) 9657 ret = graphql.Null 9658 } 9659 }() 9660 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9661 ctx = rctx // use context from middleware stack in children 9662 return obj.Description(), nil 9663 }) 9664 if err != nil { 9665 ec.Error(ctx, err) 9666 return graphql.Null 9667 } 9668 if resTmp == nil { 9669 return graphql.Null 9670 } 9671 res := resTmp.(*string) 9672 fc.Result = res 9673 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9674 } 9675 9676 func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9677 fc = &graphql.FieldContext{ 9678 Object: "__Schema", 9679 Field: field, 9680 IsMethod: true, 9681 IsResolver: false, 9682 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9683 return nil, errors.New("field of type String does not have child fields") 9684 }, 9685 } 9686 return fc, nil 9687 } 9688 9689 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 9690 fc, err := ec.fieldContext___Schema_types(ctx, field) 9691 if err != nil { 9692 return graphql.Null 9693 } 9694 ctx = graphql.WithFieldContext(ctx, fc) 9695 defer func() { 9696 if r := recover(); r != nil { 9697 ec.Error(ctx, ec.Recover(ctx, r)) 9698 ret = graphql.Null 9699 } 9700 }() 9701 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9702 ctx = rctx // use context from middleware stack in children 9703 return obj.Types(), nil 9704 }) 9705 if err != nil { 9706 ec.Error(ctx, err) 9707 return graphql.Null 9708 } 9709 if resTmp == nil { 9710 if !graphql.HasFieldError(ctx, fc) { 9711 ec.Errorf(ctx, "must not be null") 9712 } 9713 return graphql.Null 9714 } 9715 res := resTmp.([]introspection.Type) 9716 fc.Result = res 9717 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 9718 } 9719 9720 func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9721 fc = &graphql.FieldContext{ 9722 Object: "__Schema", 9723 Field: field, 9724 IsMethod: true, 9725 IsResolver: false, 9726 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9727 switch field.Name { 9728 case "kind": 9729 return ec.fieldContext___Type_kind(ctx, field) 9730 case "name": 9731 return ec.fieldContext___Type_name(ctx, field) 9732 case "description": 9733 return ec.fieldContext___Type_description(ctx, field) 9734 case "fields": 9735 return ec.fieldContext___Type_fields(ctx, field) 9736 case "interfaces": 9737 return ec.fieldContext___Type_interfaces(ctx, field) 9738 case "possibleTypes": 9739 return ec.fieldContext___Type_possibleTypes(ctx, field) 9740 case "enumValues": 9741 return ec.fieldContext___Type_enumValues(ctx, field) 9742 case "inputFields": 9743 return ec.fieldContext___Type_inputFields(ctx, field) 9744 case "ofType": 9745 return ec.fieldContext___Type_ofType(ctx, field) 9746 case "specifiedByURL": 9747 return ec.fieldContext___Type_specifiedByURL(ctx, field) 9748 } 9749 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 9750 }, 9751 } 9752 return fc, nil 9753 } 9754 9755 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 9756 fc, err := ec.fieldContext___Schema_queryType(ctx, field) 9757 if err != nil { 9758 return graphql.Null 9759 } 9760 ctx = graphql.WithFieldContext(ctx, fc) 9761 defer func() { 9762 if r := recover(); r != nil { 9763 ec.Error(ctx, ec.Recover(ctx, r)) 9764 ret = graphql.Null 9765 } 9766 }() 9767 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9768 ctx = rctx // use context from middleware stack in children 9769 return obj.QueryType(), nil 9770 }) 9771 if err != nil { 9772 ec.Error(ctx, err) 9773 return graphql.Null 9774 } 9775 if resTmp == nil { 9776 if !graphql.HasFieldError(ctx, fc) { 9777 ec.Errorf(ctx, "must not be null") 9778 } 9779 return graphql.Null 9780 } 9781 res := resTmp.(*introspection.Type) 9782 fc.Result = res 9783 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 9784 } 9785 9786 func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9787 fc = &graphql.FieldContext{ 9788 Object: "__Schema", 9789 Field: field, 9790 IsMethod: true, 9791 IsResolver: false, 9792 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9793 switch field.Name { 9794 case "kind": 9795 return ec.fieldContext___Type_kind(ctx, field) 9796 case "name": 9797 return ec.fieldContext___Type_name(ctx, field) 9798 case "description": 9799 return ec.fieldContext___Type_description(ctx, field) 9800 case "fields": 9801 return ec.fieldContext___Type_fields(ctx, field) 9802 case "interfaces": 9803 return ec.fieldContext___Type_interfaces(ctx, field) 9804 case "possibleTypes": 9805 return ec.fieldContext___Type_possibleTypes(ctx, field) 9806 case "enumValues": 9807 return ec.fieldContext___Type_enumValues(ctx, field) 9808 case "inputFields": 9809 return ec.fieldContext___Type_inputFields(ctx, field) 9810 case "ofType": 9811 return ec.fieldContext___Type_ofType(ctx, field) 9812 case "specifiedByURL": 9813 return ec.fieldContext___Type_specifiedByURL(ctx, field) 9814 } 9815 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 9816 }, 9817 } 9818 return fc, nil 9819 } 9820 9821 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 9822 fc, err := ec.fieldContext___Schema_mutationType(ctx, field) 9823 if err != nil { 9824 return graphql.Null 9825 } 9826 ctx = graphql.WithFieldContext(ctx, fc) 9827 defer func() { 9828 if r := recover(); r != nil { 9829 ec.Error(ctx, ec.Recover(ctx, r)) 9830 ret = graphql.Null 9831 } 9832 }() 9833 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9834 ctx = rctx // use context from middleware stack in children 9835 return obj.MutationType(), nil 9836 }) 9837 if err != nil { 9838 ec.Error(ctx, err) 9839 return graphql.Null 9840 } 9841 if resTmp == nil { 9842 return graphql.Null 9843 } 9844 res := resTmp.(*introspection.Type) 9845 fc.Result = res 9846 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 9847 } 9848 9849 func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9850 fc = &graphql.FieldContext{ 9851 Object: "__Schema", 9852 Field: field, 9853 IsMethod: true, 9854 IsResolver: false, 9855 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9856 switch field.Name { 9857 case "kind": 9858 return ec.fieldContext___Type_kind(ctx, field) 9859 case "name": 9860 return ec.fieldContext___Type_name(ctx, field) 9861 case "description": 9862 return ec.fieldContext___Type_description(ctx, field) 9863 case "fields": 9864 return ec.fieldContext___Type_fields(ctx, field) 9865 case "interfaces": 9866 return ec.fieldContext___Type_interfaces(ctx, field) 9867 case "possibleTypes": 9868 return ec.fieldContext___Type_possibleTypes(ctx, field) 9869 case "enumValues": 9870 return ec.fieldContext___Type_enumValues(ctx, field) 9871 case "inputFields": 9872 return ec.fieldContext___Type_inputFields(ctx, field) 9873 case "ofType": 9874 return ec.fieldContext___Type_ofType(ctx, field) 9875 case "specifiedByURL": 9876 return ec.fieldContext___Type_specifiedByURL(ctx, field) 9877 } 9878 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 9879 }, 9880 } 9881 return fc, nil 9882 } 9883 9884 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 9885 fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) 9886 if err != nil { 9887 return graphql.Null 9888 } 9889 ctx = graphql.WithFieldContext(ctx, fc) 9890 defer func() { 9891 if r := recover(); r != nil { 9892 ec.Error(ctx, ec.Recover(ctx, r)) 9893 ret = graphql.Null 9894 } 9895 }() 9896 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9897 ctx = rctx // use context from middleware stack in children 9898 return obj.SubscriptionType(), nil 9899 }) 9900 if err != nil { 9901 ec.Error(ctx, err) 9902 return graphql.Null 9903 } 9904 if resTmp == nil { 9905 return graphql.Null 9906 } 9907 res := resTmp.(*introspection.Type) 9908 fc.Result = res 9909 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 9910 } 9911 9912 func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9913 fc = &graphql.FieldContext{ 9914 Object: "__Schema", 9915 Field: field, 9916 IsMethod: true, 9917 IsResolver: false, 9918 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9919 switch field.Name { 9920 case "kind": 9921 return ec.fieldContext___Type_kind(ctx, field) 9922 case "name": 9923 return ec.fieldContext___Type_name(ctx, field) 9924 case "description": 9925 return ec.fieldContext___Type_description(ctx, field) 9926 case "fields": 9927 return ec.fieldContext___Type_fields(ctx, field) 9928 case "interfaces": 9929 return ec.fieldContext___Type_interfaces(ctx, field) 9930 case "possibleTypes": 9931 return ec.fieldContext___Type_possibleTypes(ctx, field) 9932 case "enumValues": 9933 return ec.fieldContext___Type_enumValues(ctx, field) 9934 case "inputFields": 9935 return ec.fieldContext___Type_inputFields(ctx, field) 9936 case "ofType": 9937 return ec.fieldContext___Type_ofType(ctx, field) 9938 case "specifiedByURL": 9939 return ec.fieldContext___Type_specifiedByURL(ctx, field) 9940 } 9941 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 9942 }, 9943 } 9944 return fc, nil 9945 } 9946 9947 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 9948 fc, err := ec.fieldContext___Schema_directives(ctx, field) 9949 if err != nil { 9950 return graphql.Null 9951 } 9952 ctx = graphql.WithFieldContext(ctx, fc) 9953 defer func() { 9954 if r := recover(); r != nil { 9955 ec.Error(ctx, ec.Recover(ctx, r)) 9956 ret = graphql.Null 9957 } 9958 }() 9959 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9960 ctx = rctx // use context from middleware stack in children 9961 return obj.Directives(), nil 9962 }) 9963 if err != nil { 9964 ec.Error(ctx, err) 9965 return graphql.Null 9966 } 9967 if resTmp == nil { 9968 if !graphql.HasFieldError(ctx, fc) { 9969 ec.Errorf(ctx, "must not be null") 9970 } 9971 return graphql.Null 9972 } 9973 res := resTmp.([]introspection.Directive) 9974 fc.Result = res 9975 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) 9976 } 9977 9978 func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9979 fc = &graphql.FieldContext{ 9980 Object: "__Schema", 9981 Field: field, 9982 IsMethod: true, 9983 IsResolver: false, 9984 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9985 switch field.Name { 9986 case "name": 9987 return ec.fieldContext___Directive_name(ctx, field) 9988 case "description": 9989 return ec.fieldContext___Directive_description(ctx, field) 9990 case "locations": 9991 return ec.fieldContext___Directive_locations(ctx, field) 9992 case "args": 9993 return ec.fieldContext___Directive_args(ctx, field) 9994 case "isRepeatable": 9995 return ec.fieldContext___Directive_isRepeatable(ctx, field) 9996 } 9997 return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) 9998 }, 9999 } 10000 return fc, nil 10001 } 10002 10003 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10004 fc, err := ec.fieldContext___Type_kind(ctx, field) 10005 if err != nil { 10006 return graphql.Null 10007 } 10008 ctx = graphql.WithFieldContext(ctx, fc) 10009 defer func() { 10010 if r := recover(); r != nil { 10011 ec.Error(ctx, ec.Recover(ctx, r)) 10012 ret = graphql.Null 10013 } 10014 }() 10015 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10016 ctx = rctx // use context from middleware stack in children 10017 return obj.Kind(), nil 10018 }) 10019 if err != nil { 10020 ec.Error(ctx, err) 10021 return graphql.Null 10022 } 10023 if resTmp == nil { 10024 if !graphql.HasFieldError(ctx, fc) { 10025 ec.Errorf(ctx, "must not be null") 10026 } 10027 return graphql.Null 10028 } 10029 res := resTmp.(string) 10030 fc.Result = res 10031 return ec.marshalN__TypeKind2string(ctx, field.Selections, res) 10032 } 10033 10034 func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10035 fc = &graphql.FieldContext{ 10036 Object: "__Type", 10037 Field: field, 10038 IsMethod: true, 10039 IsResolver: false, 10040 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10041 return nil, errors.New("field of type __TypeKind does not have child fields") 10042 }, 10043 } 10044 return fc, nil 10045 } 10046 10047 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10048 fc, err := ec.fieldContext___Type_name(ctx, field) 10049 if err != nil { 10050 return graphql.Null 10051 } 10052 ctx = graphql.WithFieldContext(ctx, fc) 10053 defer func() { 10054 if r := recover(); r != nil { 10055 ec.Error(ctx, ec.Recover(ctx, r)) 10056 ret = graphql.Null 10057 } 10058 }() 10059 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10060 ctx = rctx // use context from middleware stack in children 10061 return obj.Name(), nil 10062 }) 10063 if err != nil { 10064 ec.Error(ctx, err) 10065 return graphql.Null 10066 } 10067 if resTmp == nil { 10068 return graphql.Null 10069 } 10070 res := resTmp.(*string) 10071 fc.Result = res 10072 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 10073 } 10074 10075 func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10076 fc = &graphql.FieldContext{ 10077 Object: "__Type", 10078 Field: field, 10079 IsMethod: true, 10080 IsResolver: false, 10081 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10082 return nil, errors.New("field of type String does not have child fields") 10083 }, 10084 } 10085 return fc, nil 10086 } 10087 10088 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10089 fc, err := ec.fieldContext___Type_description(ctx, field) 10090 if err != nil { 10091 return graphql.Null 10092 } 10093 ctx = graphql.WithFieldContext(ctx, fc) 10094 defer func() { 10095 if r := recover(); r != nil { 10096 ec.Error(ctx, ec.Recover(ctx, r)) 10097 ret = graphql.Null 10098 } 10099 }() 10100 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10101 ctx = rctx // use context from middleware stack in children 10102 return obj.Description(), nil 10103 }) 10104 if err != nil { 10105 ec.Error(ctx, err) 10106 return graphql.Null 10107 } 10108 if resTmp == nil { 10109 return graphql.Null 10110 } 10111 res := resTmp.(*string) 10112 fc.Result = res 10113 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 10114 } 10115 10116 func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10117 fc = &graphql.FieldContext{ 10118 Object: "__Type", 10119 Field: field, 10120 IsMethod: true, 10121 IsResolver: false, 10122 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10123 return nil, errors.New("field of type String does not have child fields") 10124 }, 10125 } 10126 return fc, nil 10127 } 10128 10129 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10130 fc, err := ec.fieldContext___Type_fields(ctx, field) 10131 if err != nil { 10132 return graphql.Null 10133 } 10134 ctx = graphql.WithFieldContext(ctx, fc) 10135 defer func() { 10136 if r := recover(); r != nil { 10137 ec.Error(ctx, ec.Recover(ctx, r)) 10138 ret = graphql.Null 10139 } 10140 }() 10141 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10142 ctx = rctx // use context from middleware stack in children 10143 return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil 10144 }) 10145 if err != nil { 10146 ec.Error(ctx, err) 10147 return graphql.Null 10148 } 10149 if resTmp == nil { 10150 return graphql.Null 10151 } 10152 res := resTmp.([]introspection.Field) 10153 fc.Result = res 10154 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) 10155 } 10156 10157 func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10158 fc = &graphql.FieldContext{ 10159 Object: "__Type", 10160 Field: field, 10161 IsMethod: true, 10162 IsResolver: false, 10163 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10164 switch field.Name { 10165 case "name": 10166 return ec.fieldContext___Field_name(ctx, field) 10167 case "description": 10168 return ec.fieldContext___Field_description(ctx, field) 10169 case "args": 10170 return ec.fieldContext___Field_args(ctx, field) 10171 case "type": 10172 return ec.fieldContext___Field_type(ctx, field) 10173 case "isDeprecated": 10174 return ec.fieldContext___Field_isDeprecated(ctx, field) 10175 case "deprecationReason": 10176 return ec.fieldContext___Field_deprecationReason(ctx, field) 10177 } 10178 return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) 10179 }, 10180 } 10181 defer func() { 10182 if r := recover(); r != nil { 10183 err = ec.Recover(ctx, r) 10184 ec.Error(ctx, err) 10185 } 10186 }() 10187 ctx = graphql.WithFieldContext(ctx, fc) 10188 if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10189 ec.Error(ctx, err) 10190 return fc, err 10191 } 10192 return fc, nil 10193 } 10194 10195 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10196 fc, err := ec.fieldContext___Type_interfaces(ctx, field) 10197 if err != nil { 10198 return graphql.Null 10199 } 10200 ctx = graphql.WithFieldContext(ctx, fc) 10201 defer func() { 10202 if r := recover(); r != nil { 10203 ec.Error(ctx, ec.Recover(ctx, r)) 10204 ret = graphql.Null 10205 } 10206 }() 10207 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10208 ctx = rctx // use context from middleware stack in children 10209 return obj.Interfaces(), nil 10210 }) 10211 if err != nil { 10212 ec.Error(ctx, err) 10213 return graphql.Null 10214 } 10215 if resTmp == nil { 10216 return graphql.Null 10217 } 10218 res := resTmp.([]introspection.Type) 10219 fc.Result = res 10220 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 10221 } 10222 10223 func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10224 fc = &graphql.FieldContext{ 10225 Object: "__Type", 10226 Field: field, 10227 IsMethod: true, 10228 IsResolver: false, 10229 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10230 switch field.Name { 10231 case "kind": 10232 return ec.fieldContext___Type_kind(ctx, field) 10233 case "name": 10234 return ec.fieldContext___Type_name(ctx, field) 10235 case "description": 10236 return ec.fieldContext___Type_description(ctx, field) 10237 case "fields": 10238 return ec.fieldContext___Type_fields(ctx, field) 10239 case "interfaces": 10240 return ec.fieldContext___Type_interfaces(ctx, field) 10241 case "possibleTypes": 10242 return ec.fieldContext___Type_possibleTypes(ctx, field) 10243 case "enumValues": 10244 return ec.fieldContext___Type_enumValues(ctx, field) 10245 case "inputFields": 10246 return ec.fieldContext___Type_inputFields(ctx, field) 10247 case "ofType": 10248 return ec.fieldContext___Type_ofType(ctx, field) 10249 case "specifiedByURL": 10250 return ec.fieldContext___Type_specifiedByURL(ctx, field) 10251 } 10252 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 10253 }, 10254 } 10255 return fc, nil 10256 } 10257 10258 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10259 fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) 10260 if err != nil { 10261 return graphql.Null 10262 } 10263 ctx = graphql.WithFieldContext(ctx, fc) 10264 defer func() { 10265 if r := recover(); r != nil { 10266 ec.Error(ctx, ec.Recover(ctx, r)) 10267 ret = graphql.Null 10268 } 10269 }() 10270 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10271 ctx = rctx // use context from middleware stack in children 10272 return obj.PossibleTypes(), nil 10273 }) 10274 if err != nil { 10275 ec.Error(ctx, err) 10276 return graphql.Null 10277 } 10278 if resTmp == nil { 10279 return graphql.Null 10280 } 10281 res := resTmp.([]introspection.Type) 10282 fc.Result = res 10283 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 10284 } 10285 10286 func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10287 fc = &graphql.FieldContext{ 10288 Object: "__Type", 10289 Field: field, 10290 IsMethod: true, 10291 IsResolver: false, 10292 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10293 switch field.Name { 10294 case "kind": 10295 return ec.fieldContext___Type_kind(ctx, field) 10296 case "name": 10297 return ec.fieldContext___Type_name(ctx, field) 10298 case "description": 10299 return ec.fieldContext___Type_description(ctx, field) 10300 case "fields": 10301 return ec.fieldContext___Type_fields(ctx, field) 10302 case "interfaces": 10303 return ec.fieldContext___Type_interfaces(ctx, field) 10304 case "possibleTypes": 10305 return ec.fieldContext___Type_possibleTypes(ctx, field) 10306 case "enumValues": 10307 return ec.fieldContext___Type_enumValues(ctx, field) 10308 case "inputFields": 10309 return ec.fieldContext___Type_inputFields(ctx, field) 10310 case "ofType": 10311 return ec.fieldContext___Type_ofType(ctx, field) 10312 case "specifiedByURL": 10313 return ec.fieldContext___Type_specifiedByURL(ctx, field) 10314 } 10315 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 10316 }, 10317 } 10318 return fc, nil 10319 } 10320 10321 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10322 fc, err := ec.fieldContext___Type_enumValues(ctx, field) 10323 if err != nil { 10324 return graphql.Null 10325 } 10326 ctx = graphql.WithFieldContext(ctx, fc) 10327 defer func() { 10328 if r := recover(); r != nil { 10329 ec.Error(ctx, ec.Recover(ctx, r)) 10330 ret = graphql.Null 10331 } 10332 }() 10333 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10334 ctx = rctx // use context from middleware stack in children 10335 return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil 10336 }) 10337 if err != nil { 10338 ec.Error(ctx, err) 10339 return graphql.Null 10340 } 10341 if resTmp == nil { 10342 return graphql.Null 10343 } 10344 res := resTmp.([]introspection.EnumValue) 10345 fc.Result = res 10346 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) 10347 } 10348 10349 func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10350 fc = &graphql.FieldContext{ 10351 Object: "__Type", 10352 Field: field, 10353 IsMethod: true, 10354 IsResolver: false, 10355 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10356 switch field.Name { 10357 case "name": 10358 return ec.fieldContext___EnumValue_name(ctx, field) 10359 case "description": 10360 return ec.fieldContext___EnumValue_description(ctx, field) 10361 case "isDeprecated": 10362 return ec.fieldContext___EnumValue_isDeprecated(ctx, field) 10363 case "deprecationReason": 10364 return ec.fieldContext___EnumValue_deprecationReason(ctx, field) 10365 } 10366 return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) 10367 }, 10368 } 10369 defer func() { 10370 if r := recover(); r != nil { 10371 err = ec.Recover(ctx, r) 10372 ec.Error(ctx, err) 10373 } 10374 }() 10375 ctx = graphql.WithFieldContext(ctx, fc) 10376 if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10377 ec.Error(ctx, err) 10378 return fc, err 10379 } 10380 return fc, nil 10381 } 10382 10383 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10384 fc, err := ec.fieldContext___Type_inputFields(ctx, field) 10385 if err != nil { 10386 return graphql.Null 10387 } 10388 ctx = graphql.WithFieldContext(ctx, fc) 10389 defer func() { 10390 if r := recover(); r != nil { 10391 ec.Error(ctx, ec.Recover(ctx, r)) 10392 ret = graphql.Null 10393 } 10394 }() 10395 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10396 ctx = rctx // use context from middleware stack in children 10397 return obj.InputFields(), nil 10398 }) 10399 if err != nil { 10400 ec.Error(ctx, err) 10401 return graphql.Null 10402 } 10403 if resTmp == nil { 10404 return graphql.Null 10405 } 10406 res := resTmp.([]introspection.InputValue) 10407 fc.Result = res 10408 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 10409 } 10410 10411 func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10412 fc = &graphql.FieldContext{ 10413 Object: "__Type", 10414 Field: field, 10415 IsMethod: true, 10416 IsResolver: false, 10417 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10418 switch field.Name { 10419 case "name": 10420 return ec.fieldContext___InputValue_name(ctx, field) 10421 case "description": 10422 return ec.fieldContext___InputValue_description(ctx, field) 10423 case "type": 10424 return ec.fieldContext___InputValue_type(ctx, field) 10425 case "defaultValue": 10426 return ec.fieldContext___InputValue_defaultValue(ctx, field) 10427 } 10428 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 10429 }, 10430 } 10431 return fc, nil 10432 } 10433 10434 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10435 fc, err := ec.fieldContext___Type_ofType(ctx, field) 10436 if err != nil { 10437 return graphql.Null 10438 } 10439 ctx = graphql.WithFieldContext(ctx, fc) 10440 defer func() { 10441 if r := recover(); r != nil { 10442 ec.Error(ctx, ec.Recover(ctx, r)) 10443 ret = graphql.Null 10444 } 10445 }() 10446 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10447 ctx = rctx // use context from middleware stack in children 10448 return obj.OfType(), nil 10449 }) 10450 if err != nil { 10451 ec.Error(ctx, err) 10452 return graphql.Null 10453 } 10454 if resTmp == nil { 10455 return graphql.Null 10456 } 10457 res := resTmp.(*introspection.Type) 10458 fc.Result = res 10459 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 10460 } 10461 10462 func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10463 fc = &graphql.FieldContext{ 10464 Object: "__Type", 10465 Field: field, 10466 IsMethod: true, 10467 IsResolver: false, 10468 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10469 switch field.Name { 10470 case "kind": 10471 return ec.fieldContext___Type_kind(ctx, field) 10472 case "name": 10473 return ec.fieldContext___Type_name(ctx, field) 10474 case "description": 10475 return ec.fieldContext___Type_description(ctx, field) 10476 case "fields": 10477 return ec.fieldContext___Type_fields(ctx, field) 10478 case "interfaces": 10479 return ec.fieldContext___Type_interfaces(ctx, field) 10480 case "possibleTypes": 10481 return ec.fieldContext___Type_possibleTypes(ctx, field) 10482 case "enumValues": 10483 return ec.fieldContext___Type_enumValues(ctx, field) 10484 case "inputFields": 10485 return ec.fieldContext___Type_inputFields(ctx, field) 10486 case "ofType": 10487 return ec.fieldContext___Type_ofType(ctx, field) 10488 case "specifiedByURL": 10489 return ec.fieldContext___Type_specifiedByURL(ctx, field) 10490 } 10491 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 10492 }, 10493 } 10494 return fc, nil 10495 } 10496 10497 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 10498 fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) 10499 if err != nil { 10500 return graphql.Null 10501 } 10502 ctx = graphql.WithFieldContext(ctx, fc) 10503 defer func() { 10504 if r := recover(); r != nil { 10505 ec.Error(ctx, ec.Recover(ctx, r)) 10506 ret = graphql.Null 10507 } 10508 }() 10509 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10510 ctx = rctx // use context from middleware stack in children 10511 return obj.SpecifiedByURL(), nil 10512 }) 10513 if err != nil { 10514 ec.Error(ctx, err) 10515 return graphql.Null 10516 } 10517 if resTmp == nil { 10518 return graphql.Null 10519 } 10520 res := resTmp.(*string) 10521 fc.Result = res 10522 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 10523 } 10524 10525 func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10526 fc = &graphql.FieldContext{ 10527 Object: "__Type", 10528 Field: field, 10529 IsMethod: true, 10530 IsResolver: false, 10531 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10532 return nil, errors.New("field of type String does not have child fields") 10533 }, 10534 } 10535 return fc, nil 10536 } 10537 10538 // endregion **************************** field.gotpl ***************************** 10539 10540 // region **************************** input.gotpl ***************************** 10541 10542 func (ec *executionContext) unmarshalInputFilter(ctx context.Context, obj interface{}) (Filter, error) { 10543 var it Filter 10544 asMap := map[string]interface{}{} 10545 for k, v := range obj.(map[string]interface{}) { 10546 asMap[k] = v 10547 } 10548 10549 fieldsInOrder := [...]string{"Os", "Arch", "HasToBeSigned", "IsBookmarked", "IsStarred"} 10550 for _, k := range fieldsInOrder { 10551 v, ok := asMap[k] 10552 if !ok { 10553 continue 10554 } 10555 switch k { 10556 case "Os": 10557 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Os")) 10558 data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) 10559 if err != nil { 10560 return it, err 10561 } 10562 it.Os = data 10563 case "Arch": 10564 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Arch")) 10565 data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) 10566 if err != nil { 10567 return it, err 10568 } 10569 it.Arch = data 10570 case "HasToBeSigned": 10571 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("HasToBeSigned")) 10572 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) 10573 if err != nil { 10574 return it, err 10575 } 10576 it.HasToBeSigned = data 10577 case "IsBookmarked": 10578 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("IsBookmarked")) 10579 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) 10580 if err != nil { 10581 return it, err 10582 } 10583 it.IsBookmarked = data 10584 case "IsStarred": 10585 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("IsStarred")) 10586 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) 10587 if err != nil { 10588 return it, err 10589 } 10590 it.IsStarred = data 10591 } 10592 } 10593 10594 return it, nil 10595 } 10596 10597 func (ec *executionContext) unmarshalInputImageInput(ctx context.Context, obj interface{}) (ImageInput, error) { 10598 var it ImageInput 10599 asMap := map[string]interface{}{} 10600 for k, v := range obj.(map[string]interface{}) { 10601 asMap[k] = v 10602 } 10603 10604 fieldsInOrder := [...]string{"Repo", "Tag", "Digest", "Platform"} 10605 for _, k := range fieldsInOrder { 10606 v, ok := asMap[k] 10607 if !ok { 10608 continue 10609 } 10610 switch k { 10611 case "Repo": 10612 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Repo")) 10613 data, err := ec.unmarshalNString2string(ctx, v) 10614 if err != nil { 10615 return it, err 10616 } 10617 it.Repo = data 10618 case "Tag": 10619 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Tag")) 10620 data, err := ec.unmarshalNString2string(ctx, v) 10621 if err != nil { 10622 return it, err 10623 } 10624 it.Tag = data 10625 case "Digest": 10626 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Digest")) 10627 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 10628 if err != nil { 10629 return it, err 10630 } 10631 it.Digest = data 10632 case "Platform": 10633 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Platform")) 10634 data, err := ec.unmarshalOPlatformInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatformInput(ctx, v) 10635 if err != nil { 10636 return it, err 10637 } 10638 it.Platform = data 10639 } 10640 } 10641 10642 return it, nil 10643 } 10644 10645 func (ec *executionContext) unmarshalInputPageInput(ctx context.Context, obj interface{}) (PageInput, error) { 10646 var it PageInput 10647 asMap := map[string]interface{}{} 10648 for k, v := range obj.(map[string]interface{}) { 10649 asMap[k] = v 10650 } 10651 10652 fieldsInOrder := [...]string{"limit", "offset", "sortBy"} 10653 for _, k := range fieldsInOrder { 10654 v, ok := asMap[k] 10655 if !ok { 10656 continue 10657 } 10658 switch k { 10659 case "limit": 10660 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) 10661 data, err := ec.unmarshalOInt2ᚖint(ctx, v) 10662 if err != nil { 10663 return it, err 10664 } 10665 it.Limit = data 10666 case "offset": 10667 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) 10668 data, err := ec.unmarshalOInt2ᚖint(ctx, v) 10669 if err != nil { 10670 return it, err 10671 } 10672 it.Offset = data 10673 case "sortBy": 10674 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortBy")) 10675 data, err := ec.unmarshalOSortCriteria2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSortCriteria(ctx, v) 10676 if err != nil { 10677 return it, err 10678 } 10679 it.SortBy = data 10680 } 10681 } 10682 10683 return it, nil 10684 } 10685 10686 func (ec *executionContext) unmarshalInputPlatformInput(ctx context.Context, obj interface{}) (PlatformInput, error) { 10687 var it PlatformInput 10688 asMap := map[string]interface{}{} 10689 for k, v := range obj.(map[string]interface{}) { 10690 asMap[k] = v 10691 } 10692 10693 fieldsInOrder := [...]string{"Os", "Arch"} 10694 for _, k := range fieldsInOrder { 10695 v, ok := asMap[k] 10696 if !ok { 10697 continue 10698 } 10699 switch k { 10700 case "Os": 10701 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Os")) 10702 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 10703 if err != nil { 10704 return it, err 10705 } 10706 it.Os = data 10707 case "Arch": 10708 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Arch")) 10709 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 10710 if err != nil { 10711 return it, err 10712 } 10713 it.Arch = data 10714 } 10715 } 10716 10717 return it, nil 10718 } 10719 10720 // endregion **************************** input.gotpl ***************************** 10721 10722 // region ************************** interface.gotpl *************************** 10723 10724 // endregion ************************** interface.gotpl *************************** 10725 10726 // region **************************** object.gotpl **************************** 10727 10728 var annotationImplementors = []string{"Annotation"} 10729 10730 func (ec *executionContext) _Annotation(ctx context.Context, sel ast.SelectionSet, obj *Annotation) graphql.Marshaler { 10731 fields := graphql.CollectFields(ec.OperationContext, sel, annotationImplementors) 10732 10733 out := graphql.NewFieldSet(fields) 10734 deferred := make(map[string]*graphql.FieldSet) 10735 for i, field := range fields { 10736 switch field.Name { 10737 case "__typename": 10738 out.Values[i] = graphql.MarshalString("Annotation") 10739 case "Key": 10740 out.Values[i] = ec._Annotation_Key(ctx, field, obj) 10741 case "Value": 10742 out.Values[i] = ec._Annotation_Value(ctx, field, obj) 10743 default: 10744 panic("unknown field " + strconv.Quote(field.Name)) 10745 } 10746 } 10747 out.Dispatch(ctx) 10748 if out.Invalids > 0 { 10749 return graphql.Null 10750 } 10751 10752 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10753 10754 for label, dfs := range deferred { 10755 ec.processDeferredGroup(graphql.DeferredGroup{ 10756 Label: label, 10757 Path: graphql.GetPath(ctx), 10758 FieldSet: dfs, 10759 Context: ctx, 10760 }) 10761 } 10762 10763 return out 10764 } 10765 10766 var cVEImplementors = []string{"CVE"} 10767 10768 func (ec *executionContext) _CVE(ctx context.Context, sel ast.SelectionSet, obj *Cve) graphql.Marshaler { 10769 fields := graphql.CollectFields(ec.OperationContext, sel, cVEImplementors) 10770 10771 out := graphql.NewFieldSet(fields) 10772 deferred := make(map[string]*graphql.FieldSet) 10773 for i, field := range fields { 10774 switch field.Name { 10775 case "__typename": 10776 out.Values[i] = graphql.MarshalString("CVE") 10777 case "Id": 10778 out.Values[i] = ec._CVE_Id(ctx, field, obj) 10779 case "Title": 10780 out.Values[i] = ec._CVE_Title(ctx, field, obj) 10781 case "Description": 10782 out.Values[i] = ec._CVE_Description(ctx, field, obj) 10783 case "Reference": 10784 out.Values[i] = ec._CVE_Reference(ctx, field, obj) 10785 case "Severity": 10786 out.Values[i] = ec._CVE_Severity(ctx, field, obj) 10787 case "PackageList": 10788 out.Values[i] = ec._CVE_PackageList(ctx, field, obj) 10789 default: 10790 panic("unknown field " + strconv.Quote(field.Name)) 10791 } 10792 } 10793 out.Dispatch(ctx) 10794 if out.Invalids > 0 { 10795 return graphql.Null 10796 } 10797 10798 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10799 10800 for label, dfs := range deferred { 10801 ec.processDeferredGroup(graphql.DeferredGroup{ 10802 Label: label, 10803 Path: graphql.GetPath(ctx), 10804 FieldSet: dfs, 10805 Context: ctx, 10806 }) 10807 } 10808 10809 return out 10810 } 10811 10812 var cVEDiffResultImplementors = []string{"CVEDiffResult"} 10813 10814 func (ec *executionContext) _CVEDiffResult(ctx context.Context, sel ast.SelectionSet, obj *CVEDiffResult) graphql.Marshaler { 10815 fields := graphql.CollectFields(ec.OperationContext, sel, cVEDiffResultImplementors) 10816 10817 out := graphql.NewFieldSet(fields) 10818 deferred := make(map[string]*graphql.FieldSet) 10819 for i, field := range fields { 10820 switch field.Name { 10821 case "__typename": 10822 out.Values[i] = graphql.MarshalString("CVEDiffResult") 10823 case "Minuend": 10824 out.Values[i] = ec._CVEDiffResult_Minuend(ctx, field, obj) 10825 if out.Values[i] == graphql.Null { 10826 out.Invalids++ 10827 } 10828 case "Subtrahend": 10829 out.Values[i] = ec._CVEDiffResult_Subtrahend(ctx, field, obj) 10830 if out.Values[i] == graphql.Null { 10831 out.Invalids++ 10832 } 10833 case "CVEList": 10834 out.Values[i] = ec._CVEDiffResult_CVEList(ctx, field, obj) 10835 case "Summary": 10836 out.Values[i] = ec._CVEDiffResult_Summary(ctx, field, obj) 10837 case "Page": 10838 out.Values[i] = ec._CVEDiffResult_Page(ctx, field, obj) 10839 default: 10840 panic("unknown field " + strconv.Quote(field.Name)) 10841 } 10842 } 10843 out.Dispatch(ctx) 10844 if out.Invalids > 0 { 10845 return graphql.Null 10846 } 10847 10848 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10849 10850 for label, dfs := range deferred { 10851 ec.processDeferredGroup(graphql.DeferredGroup{ 10852 Label: label, 10853 Path: graphql.GetPath(ctx), 10854 FieldSet: dfs, 10855 Context: ctx, 10856 }) 10857 } 10858 10859 return out 10860 } 10861 10862 var cVEResultForImageImplementors = []string{"CVEResultForImage"} 10863 10864 func (ec *executionContext) _CVEResultForImage(ctx context.Context, sel ast.SelectionSet, obj *CVEResultForImage) graphql.Marshaler { 10865 fields := graphql.CollectFields(ec.OperationContext, sel, cVEResultForImageImplementors) 10866 10867 out := graphql.NewFieldSet(fields) 10868 deferred := make(map[string]*graphql.FieldSet) 10869 for i, field := range fields { 10870 switch field.Name { 10871 case "__typename": 10872 out.Values[i] = graphql.MarshalString("CVEResultForImage") 10873 case "Tag": 10874 out.Values[i] = ec._CVEResultForImage_Tag(ctx, field, obj) 10875 case "CVEList": 10876 out.Values[i] = ec._CVEResultForImage_CVEList(ctx, field, obj) 10877 case "Summary": 10878 out.Values[i] = ec._CVEResultForImage_Summary(ctx, field, obj) 10879 case "Page": 10880 out.Values[i] = ec._CVEResultForImage_Page(ctx, field, obj) 10881 default: 10882 panic("unknown field " + strconv.Quote(field.Name)) 10883 } 10884 } 10885 out.Dispatch(ctx) 10886 if out.Invalids > 0 { 10887 return graphql.Null 10888 } 10889 10890 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10891 10892 for label, dfs := range deferred { 10893 ec.processDeferredGroup(graphql.DeferredGroup{ 10894 Label: label, 10895 Path: graphql.GetPath(ctx), 10896 FieldSet: dfs, 10897 Context: ctx, 10898 }) 10899 } 10900 10901 return out 10902 } 10903 10904 var globalSearchResultImplementors = []string{"GlobalSearchResult"} 10905 10906 func (ec *executionContext) _GlobalSearchResult(ctx context.Context, sel ast.SelectionSet, obj *GlobalSearchResult) graphql.Marshaler { 10907 fields := graphql.CollectFields(ec.OperationContext, sel, globalSearchResultImplementors) 10908 10909 out := graphql.NewFieldSet(fields) 10910 deferred := make(map[string]*graphql.FieldSet) 10911 for i, field := range fields { 10912 switch field.Name { 10913 case "__typename": 10914 out.Values[i] = graphql.MarshalString("GlobalSearchResult") 10915 case "Page": 10916 out.Values[i] = ec._GlobalSearchResult_Page(ctx, field, obj) 10917 case "Images": 10918 out.Values[i] = ec._GlobalSearchResult_Images(ctx, field, obj) 10919 case "Repos": 10920 out.Values[i] = ec._GlobalSearchResult_Repos(ctx, field, obj) 10921 case "Layers": 10922 out.Values[i] = ec._GlobalSearchResult_Layers(ctx, field, obj) 10923 default: 10924 panic("unknown field " + strconv.Quote(field.Name)) 10925 } 10926 } 10927 out.Dispatch(ctx) 10928 if out.Invalids > 0 { 10929 return graphql.Null 10930 } 10931 10932 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10933 10934 for label, dfs := range deferred { 10935 ec.processDeferredGroup(graphql.DeferredGroup{ 10936 Label: label, 10937 Path: graphql.GetPath(ctx), 10938 FieldSet: dfs, 10939 Context: ctx, 10940 }) 10941 } 10942 10943 return out 10944 } 10945 10946 var historyDescriptionImplementors = []string{"HistoryDescription"} 10947 10948 func (ec *executionContext) _HistoryDescription(ctx context.Context, sel ast.SelectionSet, obj *HistoryDescription) graphql.Marshaler { 10949 fields := graphql.CollectFields(ec.OperationContext, sel, historyDescriptionImplementors) 10950 10951 out := graphql.NewFieldSet(fields) 10952 deferred := make(map[string]*graphql.FieldSet) 10953 for i, field := range fields { 10954 switch field.Name { 10955 case "__typename": 10956 out.Values[i] = graphql.MarshalString("HistoryDescription") 10957 case "Created": 10958 out.Values[i] = ec._HistoryDescription_Created(ctx, field, obj) 10959 case "CreatedBy": 10960 out.Values[i] = ec._HistoryDescription_CreatedBy(ctx, field, obj) 10961 case "Author": 10962 out.Values[i] = ec._HistoryDescription_Author(ctx, field, obj) 10963 case "Comment": 10964 out.Values[i] = ec._HistoryDescription_Comment(ctx, field, obj) 10965 case "EmptyLayer": 10966 out.Values[i] = ec._HistoryDescription_EmptyLayer(ctx, field, obj) 10967 default: 10968 panic("unknown field " + strconv.Quote(field.Name)) 10969 } 10970 } 10971 out.Dispatch(ctx) 10972 if out.Invalids > 0 { 10973 return graphql.Null 10974 } 10975 10976 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10977 10978 for label, dfs := range deferred { 10979 ec.processDeferredGroup(graphql.DeferredGroup{ 10980 Label: label, 10981 Path: graphql.GetPath(ctx), 10982 FieldSet: dfs, 10983 Context: ctx, 10984 }) 10985 } 10986 10987 return out 10988 } 10989 10990 var imageIdentifierImplementors = []string{"ImageIdentifier"} 10991 10992 func (ec *executionContext) _ImageIdentifier(ctx context.Context, sel ast.SelectionSet, obj *ImageIdentifier) graphql.Marshaler { 10993 fields := graphql.CollectFields(ec.OperationContext, sel, imageIdentifierImplementors) 10994 10995 out := graphql.NewFieldSet(fields) 10996 deferred := make(map[string]*graphql.FieldSet) 10997 for i, field := range fields { 10998 switch field.Name { 10999 case "__typename": 11000 out.Values[i] = graphql.MarshalString("ImageIdentifier") 11001 case "Repo": 11002 out.Values[i] = ec._ImageIdentifier_Repo(ctx, field, obj) 11003 if out.Values[i] == graphql.Null { 11004 out.Invalids++ 11005 } 11006 case "Tag": 11007 out.Values[i] = ec._ImageIdentifier_Tag(ctx, field, obj) 11008 if out.Values[i] == graphql.Null { 11009 out.Invalids++ 11010 } 11011 case "Digest": 11012 out.Values[i] = ec._ImageIdentifier_Digest(ctx, field, obj) 11013 case "Platform": 11014 out.Values[i] = ec._ImageIdentifier_Platform(ctx, field, obj) 11015 default: 11016 panic("unknown field " + strconv.Quote(field.Name)) 11017 } 11018 } 11019 out.Dispatch(ctx) 11020 if out.Invalids > 0 { 11021 return graphql.Null 11022 } 11023 11024 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11025 11026 for label, dfs := range deferred { 11027 ec.processDeferredGroup(graphql.DeferredGroup{ 11028 Label: label, 11029 Path: graphql.GetPath(ctx), 11030 FieldSet: dfs, 11031 Context: ctx, 11032 }) 11033 } 11034 11035 return out 11036 } 11037 11038 var imageSummaryImplementors = []string{"ImageSummary"} 11039 11040 func (ec *executionContext) _ImageSummary(ctx context.Context, sel ast.SelectionSet, obj *ImageSummary) graphql.Marshaler { 11041 fields := graphql.CollectFields(ec.OperationContext, sel, imageSummaryImplementors) 11042 11043 out := graphql.NewFieldSet(fields) 11044 deferred := make(map[string]*graphql.FieldSet) 11045 for i, field := range fields { 11046 switch field.Name { 11047 case "__typename": 11048 out.Values[i] = graphql.MarshalString("ImageSummary") 11049 case "RepoName": 11050 out.Values[i] = ec._ImageSummary_RepoName(ctx, field, obj) 11051 case "Tag": 11052 out.Values[i] = ec._ImageSummary_Tag(ctx, field, obj) 11053 case "Digest": 11054 out.Values[i] = ec._ImageSummary_Digest(ctx, field, obj) 11055 case "MediaType": 11056 out.Values[i] = ec._ImageSummary_MediaType(ctx, field, obj) 11057 case "Manifests": 11058 out.Values[i] = ec._ImageSummary_Manifests(ctx, field, obj) 11059 case "Size": 11060 out.Values[i] = ec._ImageSummary_Size(ctx, field, obj) 11061 case "DownloadCount": 11062 out.Values[i] = ec._ImageSummary_DownloadCount(ctx, field, obj) 11063 case "LastUpdated": 11064 out.Values[i] = ec._ImageSummary_LastUpdated(ctx, field, obj) 11065 case "Description": 11066 out.Values[i] = ec._ImageSummary_Description(ctx, field, obj) 11067 case "IsSigned": 11068 out.Values[i] = ec._ImageSummary_IsSigned(ctx, field, obj) 11069 case "SignatureInfo": 11070 out.Values[i] = ec._ImageSummary_SignatureInfo(ctx, field, obj) 11071 case "Licenses": 11072 out.Values[i] = ec._ImageSummary_Licenses(ctx, field, obj) 11073 case "Labels": 11074 out.Values[i] = ec._ImageSummary_Labels(ctx, field, obj) 11075 case "Title": 11076 out.Values[i] = ec._ImageSummary_Title(ctx, field, obj) 11077 case "Source": 11078 out.Values[i] = ec._ImageSummary_Source(ctx, field, obj) 11079 case "Documentation": 11080 out.Values[i] = ec._ImageSummary_Documentation(ctx, field, obj) 11081 case "Vendor": 11082 out.Values[i] = ec._ImageSummary_Vendor(ctx, field, obj) 11083 case "Authors": 11084 out.Values[i] = ec._ImageSummary_Authors(ctx, field, obj) 11085 case "Vulnerabilities": 11086 out.Values[i] = ec._ImageSummary_Vulnerabilities(ctx, field, obj) 11087 case "Referrers": 11088 out.Values[i] = ec._ImageSummary_Referrers(ctx, field, obj) 11089 case "IsDeletable": 11090 out.Values[i] = ec._ImageSummary_IsDeletable(ctx, field, obj) 11091 default: 11092 panic("unknown field " + strconv.Quote(field.Name)) 11093 } 11094 } 11095 out.Dispatch(ctx) 11096 if out.Invalids > 0 { 11097 return graphql.Null 11098 } 11099 11100 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11101 11102 for label, dfs := range deferred { 11103 ec.processDeferredGroup(graphql.DeferredGroup{ 11104 Label: label, 11105 Path: graphql.GetPath(ctx), 11106 FieldSet: dfs, 11107 Context: ctx, 11108 }) 11109 } 11110 11111 return out 11112 } 11113 11114 var imageVulnerabilitySummaryImplementors = []string{"ImageVulnerabilitySummary"} 11115 11116 func (ec *executionContext) _ImageVulnerabilitySummary(ctx context.Context, sel ast.SelectionSet, obj *ImageVulnerabilitySummary) graphql.Marshaler { 11117 fields := graphql.CollectFields(ec.OperationContext, sel, imageVulnerabilitySummaryImplementors) 11118 11119 out := graphql.NewFieldSet(fields) 11120 deferred := make(map[string]*graphql.FieldSet) 11121 for i, field := range fields { 11122 switch field.Name { 11123 case "__typename": 11124 out.Values[i] = graphql.MarshalString("ImageVulnerabilitySummary") 11125 case "MaxSeverity": 11126 out.Values[i] = ec._ImageVulnerabilitySummary_MaxSeverity(ctx, field, obj) 11127 case "Count": 11128 out.Values[i] = ec._ImageVulnerabilitySummary_Count(ctx, field, obj) 11129 case "UnknownCount": 11130 out.Values[i] = ec._ImageVulnerabilitySummary_UnknownCount(ctx, field, obj) 11131 case "LowCount": 11132 out.Values[i] = ec._ImageVulnerabilitySummary_LowCount(ctx, field, obj) 11133 case "MediumCount": 11134 out.Values[i] = ec._ImageVulnerabilitySummary_MediumCount(ctx, field, obj) 11135 case "HighCount": 11136 out.Values[i] = ec._ImageVulnerabilitySummary_HighCount(ctx, field, obj) 11137 case "CriticalCount": 11138 out.Values[i] = ec._ImageVulnerabilitySummary_CriticalCount(ctx, field, obj) 11139 default: 11140 panic("unknown field " + strconv.Quote(field.Name)) 11141 } 11142 } 11143 out.Dispatch(ctx) 11144 if out.Invalids > 0 { 11145 return graphql.Null 11146 } 11147 11148 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11149 11150 for label, dfs := range deferred { 11151 ec.processDeferredGroup(graphql.DeferredGroup{ 11152 Label: label, 11153 Path: graphql.GetPath(ctx), 11154 FieldSet: dfs, 11155 Context: ctx, 11156 }) 11157 } 11158 11159 return out 11160 } 11161 11162 var layerHistoryImplementors = []string{"LayerHistory"} 11163 11164 func (ec *executionContext) _LayerHistory(ctx context.Context, sel ast.SelectionSet, obj *LayerHistory) graphql.Marshaler { 11165 fields := graphql.CollectFields(ec.OperationContext, sel, layerHistoryImplementors) 11166 11167 out := graphql.NewFieldSet(fields) 11168 deferred := make(map[string]*graphql.FieldSet) 11169 for i, field := range fields { 11170 switch field.Name { 11171 case "__typename": 11172 out.Values[i] = graphql.MarshalString("LayerHistory") 11173 case "Layer": 11174 out.Values[i] = ec._LayerHistory_Layer(ctx, field, obj) 11175 case "HistoryDescription": 11176 out.Values[i] = ec._LayerHistory_HistoryDescription(ctx, field, obj) 11177 default: 11178 panic("unknown field " + strconv.Quote(field.Name)) 11179 } 11180 } 11181 out.Dispatch(ctx) 11182 if out.Invalids > 0 { 11183 return graphql.Null 11184 } 11185 11186 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11187 11188 for label, dfs := range deferred { 11189 ec.processDeferredGroup(graphql.DeferredGroup{ 11190 Label: label, 11191 Path: graphql.GetPath(ctx), 11192 FieldSet: dfs, 11193 Context: ctx, 11194 }) 11195 } 11196 11197 return out 11198 } 11199 11200 var layerSummaryImplementors = []string{"LayerSummary"} 11201 11202 func (ec *executionContext) _LayerSummary(ctx context.Context, sel ast.SelectionSet, obj *LayerSummary) graphql.Marshaler { 11203 fields := graphql.CollectFields(ec.OperationContext, sel, layerSummaryImplementors) 11204 11205 out := graphql.NewFieldSet(fields) 11206 deferred := make(map[string]*graphql.FieldSet) 11207 for i, field := range fields { 11208 switch field.Name { 11209 case "__typename": 11210 out.Values[i] = graphql.MarshalString("LayerSummary") 11211 case "Size": 11212 out.Values[i] = ec._LayerSummary_Size(ctx, field, obj) 11213 case "Digest": 11214 out.Values[i] = ec._LayerSummary_Digest(ctx, field, obj) 11215 default: 11216 panic("unknown field " + strconv.Quote(field.Name)) 11217 } 11218 } 11219 out.Dispatch(ctx) 11220 if out.Invalids > 0 { 11221 return graphql.Null 11222 } 11223 11224 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11225 11226 for label, dfs := range deferred { 11227 ec.processDeferredGroup(graphql.DeferredGroup{ 11228 Label: label, 11229 Path: graphql.GetPath(ctx), 11230 FieldSet: dfs, 11231 Context: ctx, 11232 }) 11233 } 11234 11235 return out 11236 } 11237 11238 var manifestSummaryImplementors = []string{"ManifestSummary"} 11239 11240 func (ec *executionContext) _ManifestSummary(ctx context.Context, sel ast.SelectionSet, obj *ManifestSummary) graphql.Marshaler { 11241 fields := graphql.CollectFields(ec.OperationContext, sel, manifestSummaryImplementors) 11242 11243 out := graphql.NewFieldSet(fields) 11244 deferred := make(map[string]*graphql.FieldSet) 11245 for i, field := range fields { 11246 switch field.Name { 11247 case "__typename": 11248 out.Values[i] = graphql.MarshalString("ManifestSummary") 11249 case "Digest": 11250 out.Values[i] = ec._ManifestSummary_Digest(ctx, field, obj) 11251 case "ConfigDigest": 11252 out.Values[i] = ec._ManifestSummary_ConfigDigest(ctx, field, obj) 11253 case "LastUpdated": 11254 out.Values[i] = ec._ManifestSummary_LastUpdated(ctx, field, obj) 11255 case "Size": 11256 out.Values[i] = ec._ManifestSummary_Size(ctx, field, obj) 11257 case "IsSigned": 11258 out.Values[i] = ec._ManifestSummary_IsSigned(ctx, field, obj) 11259 case "SignatureInfo": 11260 out.Values[i] = ec._ManifestSummary_SignatureInfo(ctx, field, obj) 11261 case "Platform": 11262 out.Values[i] = ec._ManifestSummary_Platform(ctx, field, obj) 11263 case "DownloadCount": 11264 out.Values[i] = ec._ManifestSummary_DownloadCount(ctx, field, obj) 11265 case "Layers": 11266 out.Values[i] = ec._ManifestSummary_Layers(ctx, field, obj) 11267 case "History": 11268 out.Values[i] = ec._ManifestSummary_History(ctx, field, obj) 11269 case "Vulnerabilities": 11270 out.Values[i] = ec._ManifestSummary_Vulnerabilities(ctx, field, obj) 11271 case "Referrers": 11272 out.Values[i] = ec._ManifestSummary_Referrers(ctx, field, obj) 11273 case "ArtifactType": 11274 out.Values[i] = ec._ManifestSummary_ArtifactType(ctx, field, obj) 11275 default: 11276 panic("unknown field " + strconv.Quote(field.Name)) 11277 } 11278 } 11279 out.Dispatch(ctx) 11280 if out.Invalids > 0 { 11281 return graphql.Null 11282 } 11283 11284 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11285 11286 for label, dfs := range deferred { 11287 ec.processDeferredGroup(graphql.DeferredGroup{ 11288 Label: label, 11289 Path: graphql.GetPath(ctx), 11290 FieldSet: dfs, 11291 Context: ctx, 11292 }) 11293 } 11294 11295 return out 11296 } 11297 11298 var packageInfoImplementors = []string{"PackageInfo"} 11299 11300 func (ec *executionContext) _PackageInfo(ctx context.Context, sel ast.SelectionSet, obj *PackageInfo) graphql.Marshaler { 11301 fields := graphql.CollectFields(ec.OperationContext, sel, packageInfoImplementors) 11302 11303 out := graphql.NewFieldSet(fields) 11304 deferred := make(map[string]*graphql.FieldSet) 11305 for i, field := range fields { 11306 switch field.Name { 11307 case "__typename": 11308 out.Values[i] = graphql.MarshalString("PackageInfo") 11309 case "Name": 11310 out.Values[i] = ec._PackageInfo_Name(ctx, field, obj) 11311 case "PackagePath": 11312 out.Values[i] = ec._PackageInfo_PackagePath(ctx, field, obj) 11313 case "InstalledVersion": 11314 out.Values[i] = ec._PackageInfo_InstalledVersion(ctx, field, obj) 11315 case "FixedVersion": 11316 out.Values[i] = ec._PackageInfo_FixedVersion(ctx, field, obj) 11317 default: 11318 panic("unknown field " + strconv.Quote(field.Name)) 11319 } 11320 } 11321 out.Dispatch(ctx) 11322 if out.Invalids > 0 { 11323 return graphql.Null 11324 } 11325 11326 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11327 11328 for label, dfs := range deferred { 11329 ec.processDeferredGroup(graphql.DeferredGroup{ 11330 Label: label, 11331 Path: graphql.GetPath(ctx), 11332 FieldSet: dfs, 11333 Context: ctx, 11334 }) 11335 } 11336 11337 return out 11338 } 11339 11340 var pageInfoImplementors = []string{"PageInfo"} 11341 11342 func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *PageInfo) graphql.Marshaler { 11343 fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors) 11344 11345 out := graphql.NewFieldSet(fields) 11346 deferred := make(map[string]*graphql.FieldSet) 11347 for i, field := range fields { 11348 switch field.Name { 11349 case "__typename": 11350 out.Values[i] = graphql.MarshalString("PageInfo") 11351 case "TotalCount": 11352 out.Values[i] = ec._PageInfo_TotalCount(ctx, field, obj) 11353 if out.Values[i] == graphql.Null { 11354 out.Invalids++ 11355 } 11356 case "ItemCount": 11357 out.Values[i] = ec._PageInfo_ItemCount(ctx, field, obj) 11358 if out.Values[i] == graphql.Null { 11359 out.Invalids++ 11360 } 11361 default: 11362 panic("unknown field " + strconv.Quote(field.Name)) 11363 } 11364 } 11365 out.Dispatch(ctx) 11366 if out.Invalids > 0 { 11367 return graphql.Null 11368 } 11369 11370 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11371 11372 for label, dfs := range deferred { 11373 ec.processDeferredGroup(graphql.DeferredGroup{ 11374 Label: label, 11375 Path: graphql.GetPath(ctx), 11376 FieldSet: dfs, 11377 Context: ctx, 11378 }) 11379 } 11380 11381 return out 11382 } 11383 11384 var paginatedImagesResultImplementors = []string{"PaginatedImagesResult"} 11385 11386 func (ec *executionContext) _PaginatedImagesResult(ctx context.Context, sel ast.SelectionSet, obj *PaginatedImagesResult) graphql.Marshaler { 11387 fields := graphql.CollectFields(ec.OperationContext, sel, paginatedImagesResultImplementors) 11388 11389 out := graphql.NewFieldSet(fields) 11390 deferred := make(map[string]*graphql.FieldSet) 11391 for i, field := range fields { 11392 switch field.Name { 11393 case "__typename": 11394 out.Values[i] = graphql.MarshalString("PaginatedImagesResult") 11395 case "Page": 11396 out.Values[i] = ec._PaginatedImagesResult_Page(ctx, field, obj) 11397 case "Results": 11398 out.Values[i] = ec._PaginatedImagesResult_Results(ctx, field, obj) 11399 if out.Values[i] == graphql.Null { 11400 out.Invalids++ 11401 } 11402 default: 11403 panic("unknown field " + strconv.Quote(field.Name)) 11404 } 11405 } 11406 out.Dispatch(ctx) 11407 if out.Invalids > 0 { 11408 return graphql.Null 11409 } 11410 11411 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11412 11413 for label, dfs := range deferred { 11414 ec.processDeferredGroup(graphql.DeferredGroup{ 11415 Label: label, 11416 Path: graphql.GetPath(ctx), 11417 FieldSet: dfs, 11418 Context: ctx, 11419 }) 11420 } 11421 11422 return out 11423 } 11424 11425 var paginatedReposResultImplementors = []string{"PaginatedReposResult"} 11426 11427 func (ec *executionContext) _PaginatedReposResult(ctx context.Context, sel ast.SelectionSet, obj *PaginatedReposResult) graphql.Marshaler { 11428 fields := graphql.CollectFields(ec.OperationContext, sel, paginatedReposResultImplementors) 11429 11430 out := graphql.NewFieldSet(fields) 11431 deferred := make(map[string]*graphql.FieldSet) 11432 for i, field := range fields { 11433 switch field.Name { 11434 case "__typename": 11435 out.Values[i] = graphql.MarshalString("PaginatedReposResult") 11436 case "Page": 11437 out.Values[i] = ec._PaginatedReposResult_Page(ctx, field, obj) 11438 case "Results": 11439 out.Values[i] = ec._PaginatedReposResult_Results(ctx, field, obj) 11440 if out.Values[i] == graphql.Null { 11441 out.Invalids++ 11442 } 11443 default: 11444 panic("unknown field " + strconv.Quote(field.Name)) 11445 } 11446 } 11447 out.Dispatch(ctx) 11448 if out.Invalids > 0 { 11449 return graphql.Null 11450 } 11451 11452 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11453 11454 for label, dfs := range deferred { 11455 ec.processDeferredGroup(graphql.DeferredGroup{ 11456 Label: label, 11457 Path: graphql.GetPath(ctx), 11458 FieldSet: dfs, 11459 Context: ctx, 11460 }) 11461 } 11462 11463 return out 11464 } 11465 11466 var platformImplementors = []string{"Platform"} 11467 11468 func (ec *executionContext) _Platform(ctx context.Context, sel ast.SelectionSet, obj *Platform) graphql.Marshaler { 11469 fields := graphql.CollectFields(ec.OperationContext, sel, platformImplementors) 11470 11471 out := graphql.NewFieldSet(fields) 11472 deferred := make(map[string]*graphql.FieldSet) 11473 for i, field := range fields { 11474 switch field.Name { 11475 case "__typename": 11476 out.Values[i] = graphql.MarshalString("Platform") 11477 case "Os": 11478 out.Values[i] = ec._Platform_Os(ctx, field, obj) 11479 case "Arch": 11480 out.Values[i] = ec._Platform_Arch(ctx, field, obj) 11481 default: 11482 panic("unknown field " + strconv.Quote(field.Name)) 11483 } 11484 } 11485 out.Dispatch(ctx) 11486 if out.Invalids > 0 { 11487 return graphql.Null 11488 } 11489 11490 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11491 11492 for label, dfs := range deferred { 11493 ec.processDeferredGroup(graphql.DeferredGroup{ 11494 Label: label, 11495 Path: graphql.GetPath(ctx), 11496 FieldSet: dfs, 11497 Context: ctx, 11498 }) 11499 } 11500 11501 return out 11502 } 11503 11504 var queryImplementors = []string{"Query"} 11505 11506 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 11507 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) 11508 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 11509 Object: "Query", 11510 }) 11511 11512 out := graphql.NewFieldSet(fields) 11513 deferred := make(map[string]*graphql.FieldSet) 11514 for i, field := range fields { 11515 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ 11516 Object: field.Name, 11517 Field: field, 11518 }) 11519 11520 switch field.Name { 11521 case "__typename": 11522 out.Values[i] = graphql.MarshalString("Query") 11523 case "CVEListForImage": 11524 field := field 11525 11526 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11527 defer func() { 11528 if r := recover(); r != nil { 11529 ec.Error(ctx, ec.Recover(ctx, r)) 11530 } 11531 }() 11532 res = ec._Query_CVEListForImage(ctx, field) 11533 if res == graphql.Null { 11534 atomic.AddUint32(&fs.Invalids, 1) 11535 } 11536 return res 11537 } 11538 11539 rrm := func(ctx context.Context) graphql.Marshaler { 11540 return ec.OperationContext.RootResolverMiddleware(ctx, 11541 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11542 } 11543 11544 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11545 case "CVEDiffListForImages": 11546 field := field 11547 11548 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11549 defer func() { 11550 if r := recover(); r != nil { 11551 ec.Error(ctx, ec.Recover(ctx, r)) 11552 } 11553 }() 11554 res = ec._Query_CVEDiffListForImages(ctx, field) 11555 if res == graphql.Null { 11556 atomic.AddUint32(&fs.Invalids, 1) 11557 } 11558 return res 11559 } 11560 11561 rrm := func(ctx context.Context) graphql.Marshaler { 11562 return ec.OperationContext.RootResolverMiddleware(ctx, 11563 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11564 } 11565 11566 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11567 case "ImageListForCVE": 11568 field := field 11569 11570 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11571 defer func() { 11572 if r := recover(); r != nil { 11573 ec.Error(ctx, ec.Recover(ctx, r)) 11574 } 11575 }() 11576 res = ec._Query_ImageListForCVE(ctx, field) 11577 if res == graphql.Null { 11578 atomic.AddUint32(&fs.Invalids, 1) 11579 } 11580 return res 11581 } 11582 11583 rrm := func(ctx context.Context) graphql.Marshaler { 11584 return ec.OperationContext.RootResolverMiddleware(ctx, 11585 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11586 } 11587 11588 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11589 case "ImageListWithCVEFixed": 11590 field := field 11591 11592 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11593 defer func() { 11594 if r := recover(); r != nil { 11595 ec.Error(ctx, ec.Recover(ctx, r)) 11596 } 11597 }() 11598 res = ec._Query_ImageListWithCVEFixed(ctx, field) 11599 if res == graphql.Null { 11600 atomic.AddUint32(&fs.Invalids, 1) 11601 } 11602 return res 11603 } 11604 11605 rrm := func(ctx context.Context) graphql.Marshaler { 11606 return ec.OperationContext.RootResolverMiddleware(ctx, 11607 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11608 } 11609 11610 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11611 case "ImageListForDigest": 11612 field := field 11613 11614 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11615 defer func() { 11616 if r := recover(); r != nil { 11617 ec.Error(ctx, ec.Recover(ctx, r)) 11618 } 11619 }() 11620 res = ec._Query_ImageListForDigest(ctx, field) 11621 if res == graphql.Null { 11622 atomic.AddUint32(&fs.Invalids, 1) 11623 } 11624 return res 11625 } 11626 11627 rrm := func(ctx context.Context) graphql.Marshaler { 11628 return ec.OperationContext.RootResolverMiddleware(ctx, 11629 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11630 } 11631 11632 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11633 case "RepoListWithNewestImage": 11634 field := field 11635 11636 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11637 defer func() { 11638 if r := recover(); r != nil { 11639 ec.Error(ctx, ec.Recover(ctx, r)) 11640 } 11641 }() 11642 res = ec._Query_RepoListWithNewestImage(ctx, field) 11643 if res == graphql.Null { 11644 atomic.AddUint32(&fs.Invalids, 1) 11645 } 11646 return res 11647 } 11648 11649 rrm := func(ctx context.Context) graphql.Marshaler { 11650 return ec.OperationContext.RootResolverMiddleware(ctx, 11651 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11652 } 11653 11654 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11655 case "ImageList": 11656 field := field 11657 11658 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11659 defer func() { 11660 if r := recover(); r != nil { 11661 ec.Error(ctx, ec.Recover(ctx, r)) 11662 } 11663 }() 11664 res = ec._Query_ImageList(ctx, field) 11665 if res == graphql.Null { 11666 atomic.AddUint32(&fs.Invalids, 1) 11667 } 11668 return res 11669 } 11670 11671 rrm := func(ctx context.Context) graphql.Marshaler { 11672 return ec.OperationContext.RootResolverMiddleware(ctx, 11673 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11674 } 11675 11676 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11677 case "ExpandedRepoInfo": 11678 field := field 11679 11680 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11681 defer func() { 11682 if r := recover(); r != nil { 11683 ec.Error(ctx, ec.Recover(ctx, r)) 11684 } 11685 }() 11686 res = ec._Query_ExpandedRepoInfo(ctx, field) 11687 if res == graphql.Null { 11688 atomic.AddUint32(&fs.Invalids, 1) 11689 } 11690 return res 11691 } 11692 11693 rrm := func(ctx context.Context) graphql.Marshaler { 11694 return ec.OperationContext.RootResolverMiddleware(ctx, 11695 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11696 } 11697 11698 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11699 case "GlobalSearch": 11700 field := field 11701 11702 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11703 defer func() { 11704 if r := recover(); r != nil { 11705 ec.Error(ctx, ec.Recover(ctx, r)) 11706 } 11707 }() 11708 res = ec._Query_GlobalSearch(ctx, field) 11709 if res == graphql.Null { 11710 atomic.AddUint32(&fs.Invalids, 1) 11711 } 11712 return res 11713 } 11714 11715 rrm := func(ctx context.Context) graphql.Marshaler { 11716 return ec.OperationContext.RootResolverMiddleware(ctx, 11717 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11718 } 11719 11720 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11721 case "DerivedImageList": 11722 field := field 11723 11724 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11725 defer func() { 11726 if r := recover(); r != nil { 11727 ec.Error(ctx, ec.Recover(ctx, r)) 11728 } 11729 }() 11730 res = ec._Query_DerivedImageList(ctx, field) 11731 if res == graphql.Null { 11732 atomic.AddUint32(&fs.Invalids, 1) 11733 } 11734 return res 11735 } 11736 11737 rrm := func(ctx context.Context) graphql.Marshaler { 11738 return ec.OperationContext.RootResolverMiddleware(ctx, 11739 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11740 } 11741 11742 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11743 case "BaseImageList": 11744 field := field 11745 11746 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11747 defer func() { 11748 if r := recover(); r != nil { 11749 ec.Error(ctx, ec.Recover(ctx, r)) 11750 } 11751 }() 11752 res = ec._Query_BaseImageList(ctx, field) 11753 if res == graphql.Null { 11754 atomic.AddUint32(&fs.Invalids, 1) 11755 } 11756 return res 11757 } 11758 11759 rrm := func(ctx context.Context) graphql.Marshaler { 11760 return ec.OperationContext.RootResolverMiddleware(ctx, 11761 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11762 } 11763 11764 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11765 case "Image": 11766 field := field 11767 11768 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11769 defer func() { 11770 if r := recover(); r != nil { 11771 ec.Error(ctx, ec.Recover(ctx, r)) 11772 } 11773 }() 11774 res = ec._Query_Image(ctx, field) 11775 if res == graphql.Null { 11776 atomic.AddUint32(&fs.Invalids, 1) 11777 } 11778 return res 11779 } 11780 11781 rrm := func(ctx context.Context) graphql.Marshaler { 11782 return ec.OperationContext.RootResolverMiddleware(ctx, 11783 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11784 } 11785 11786 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11787 case "Referrers": 11788 field := field 11789 11790 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11791 defer func() { 11792 if r := recover(); r != nil { 11793 ec.Error(ctx, ec.Recover(ctx, r)) 11794 } 11795 }() 11796 res = ec._Query_Referrers(ctx, field) 11797 if res == graphql.Null { 11798 atomic.AddUint32(&fs.Invalids, 1) 11799 } 11800 return res 11801 } 11802 11803 rrm := func(ctx context.Context) graphql.Marshaler { 11804 return ec.OperationContext.RootResolverMiddleware(ctx, 11805 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11806 } 11807 11808 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11809 case "StarredRepos": 11810 field := field 11811 11812 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11813 defer func() { 11814 if r := recover(); r != nil { 11815 ec.Error(ctx, ec.Recover(ctx, r)) 11816 } 11817 }() 11818 res = ec._Query_StarredRepos(ctx, field) 11819 if res == graphql.Null { 11820 atomic.AddUint32(&fs.Invalids, 1) 11821 } 11822 return res 11823 } 11824 11825 rrm := func(ctx context.Context) graphql.Marshaler { 11826 return ec.OperationContext.RootResolverMiddleware(ctx, 11827 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11828 } 11829 11830 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11831 case "BookmarkedRepos": 11832 field := field 11833 11834 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 11835 defer func() { 11836 if r := recover(); r != nil { 11837 ec.Error(ctx, ec.Recover(ctx, r)) 11838 } 11839 }() 11840 res = ec._Query_BookmarkedRepos(ctx, field) 11841 if res == graphql.Null { 11842 atomic.AddUint32(&fs.Invalids, 1) 11843 } 11844 return res 11845 } 11846 11847 rrm := func(ctx context.Context) graphql.Marshaler { 11848 return ec.OperationContext.RootResolverMiddleware(ctx, 11849 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 11850 } 11851 11852 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 11853 case "__type": 11854 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 11855 return ec._Query___type(ctx, field) 11856 }) 11857 case "__schema": 11858 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 11859 return ec._Query___schema(ctx, field) 11860 }) 11861 default: 11862 panic("unknown field " + strconv.Quote(field.Name)) 11863 } 11864 } 11865 out.Dispatch(ctx) 11866 if out.Invalids > 0 { 11867 return graphql.Null 11868 } 11869 11870 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11871 11872 for label, dfs := range deferred { 11873 ec.processDeferredGroup(graphql.DeferredGroup{ 11874 Label: label, 11875 Path: graphql.GetPath(ctx), 11876 FieldSet: dfs, 11877 Context: ctx, 11878 }) 11879 } 11880 11881 return out 11882 } 11883 11884 var referrerImplementors = []string{"Referrer"} 11885 11886 func (ec *executionContext) _Referrer(ctx context.Context, sel ast.SelectionSet, obj *Referrer) graphql.Marshaler { 11887 fields := graphql.CollectFields(ec.OperationContext, sel, referrerImplementors) 11888 11889 out := graphql.NewFieldSet(fields) 11890 deferred := make(map[string]*graphql.FieldSet) 11891 for i, field := range fields { 11892 switch field.Name { 11893 case "__typename": 11894 out.Values[i] = graphql.MarshalString("Referrer") 11895 case "MediaType": 11896 out.Values[i] = ec._Referrer_MediaType(ctx, field, obj) 11897 case "ArtifactType": 11898 out.Values[i] = ec._Referrer_ArtifactType(ctx, field, obj) 11899 case "Size": 11900 out.Values[i] = ec._Referrer_Size(ctx, field, obj) 11901 case "Digest": 11902 out.Values[i] = ec._Referrer_Digest(ctx, field, obj) 11903 case "Annotations": 11904 out.Values[i] = ec._Referrer_Annotations(ctx, field, obj) 11905 if out.Values[i] == graphql.Null { 11906 out.Invalids++ 11907 } 11908 default: 11909 panic("unknown field " + strconv.Quote(field.Name)) 11910 } 11911 } 11912 out.Dispatch(ctx) 11913 if out.Invalids > 0 { 11914 return graphql.Null 11915 } 11916 11917 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11918 11919 for label, dfs := range deferred { 11920 ec.processDeferredGroup(graphql.DeferredGroup{ 11921 Label: label, 11922 Path: graphql.GetPath(ctx), 11923 FieldSet: dfs, 11924 Context: ctx, 11925 }) 11926 } 11927 11928 return out 11929 } 11930 11931 var repoInfoImplementors = []string{"RepoInfo"} 11932 11933 func (ec *executionContext) _RepoInfo(ctx context.Context, sel ast.SelectionSet, obj *RepoInfo) graphql.Marshaler { 11934 fields := graphql.CollectFields(ec.OperationContext, sel, repoInfoImplementors) 11935 11936 out := graphql.NewFieldSet(fields) 11937 deferred := make(map[string]*graphql.FieldSet) 11938 for i, field := range fields { 11939 switch field.Name { 11940 case "__typename": 11941 out.Values[i] = graphql.MarshalString("RepoInfo") 11942 case "Images": 11943 out.Values[i] = ec._RepoInfo_Images(ctx, field, obj) 11944 case "Summary": 11945 out.Values[i] = ec._RepoInfo_Summary(ctx, field, obj) 11946 default: 11947 panic("unknown field " + strconv.Quote(field.Name)) 11948 } 11949 } 11950 out.Dispatch(ctx) 11951 if out.Invalids > 0 { 11952 return graphql.Null 11953 } 11954 11955 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 11956 11957 for label, dfs := range deferred { 11958 ec.processDeferredGroup(graphql.DeferredGroup{ 11959 Label: label, 11960 Path: graphql.GetPath(ctx), 11961 FieldSet: dfs, 11962 Context: ctx, 11963 }) 11964 } 11965 11966 return out 11967 } 11968 11969 var repoSummaryImplementors = []string{"RepoSummary"} 11970 11971 func (ec *executionContext) _RepoSummary(ctx context.Context, sel ast.SelectionSet, obj *RepoSummary) graphql.Marshaler { 11972 fields := graphql.CollectFields(ec.OperationContext, sel, repoSummaryImplementors) 11973 11974 out := graphql.NewFieldSet(fields) 11975 deferred := make(map[string]*graphql.FieldSet) 11976 for i, field := range fields { 11977 switch field.Name { 11978 case "__typename": 11979 out.Values[i] = graphql.MarshalString("RepoSummary") 11980 case "Name": 11981 out.Values[i] = ec._RepoSummary_Name(ctx, field, obj) 11982 case "LastUpdated": 11983 out.Values[i] = ec._RepoSummary_LastUpdated(ctx, field, obj) 11984 case "Size": 11985 out.Values[i] = ec._RepoSummary_Size(ctx, field, obj) 11986 case "Platforms": 11987 out.Values[i] = ec._RepoSummary_Platforms(ctx, field, obj) 11988 case "Vendors": 11989 out.Values[i] = ec._RepoSummary_Vendors(ctx, field, obj) 11990 case "NewestImage": 11991 out.Values[i] = ec._RepoSummary_NewestImage(ctx, field, obj) 11992 case "DownloadCount": 11993 out.Values[i] = ec._RepoSummary_DownloadCount(ctx, field, obj) 11994 case "StarCount": 11995 out.Values[i] = ec._RepoSummary_StarCount(ctx, field, obj) 11996 case "IsBookmarked": 11997 out.Values[i] = ec._RepoSummary_IsBookmarked(ctx, field, obj) 11998 case "IsStarred": 11999 out.Values[i] = ec._RepoSummary_IsStarred(ctx, field, obj) 12000 case "Rank": 12001 out.Values[i] = ec._RepoSummary_Rank(ctx, field, obj) 12002 default: 12003 panic("unknown field " + strconv.Quote(field.Name)) 12004 } 12005 } 12006 out.Dispatch(ctx) 12007 if out.Invalids > 0 { 12008 return graphql.Null 12009 } 12010 12011 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 12012 12013 for label, dfs := range deferred { 12014 ec.processDeferredGroup(graphql.DeferredGroup{ 12015 Label: label, 12016 Path: graphql.GetPath(ctx), 12017 FieldSet: dfs, 12018 Context: ctx, 12019 }) 12020 } 12021 12022 return out 12023 } 12024 12025 var signatureSummaryImplementors = []string{"SignatureSummary"} 12026 12027 func (ec *executionContext) _SignatureSummary(ctx context.Context, sel ast.SelectionSet, obj *SignatureSummary) graphql.Marshaler { 12028 fields := graphql.CollectFields(ec.OperationContext, sel, signatureSummaryImplementors) 12029 12030 out := graphql.NewFieldSet(fields) 12031 deferred := make(map[string]*graphql.FieldSet) 12032 for i, field := range fields { 12033 switch field.Name { 12034 case "__typename": 12035 out.Values[i] = graphql.MarshalString("SignatureSummary") 12036 case "Tool": 12037 out.Values[i] = ec._SignatureSummary_Tool(ctx, field, obj) 12038 case "IsTrusted": 12039 out.Values[i] = ec._SignatureSummary_IsTrusted(ctx, field, obj) 12040 case "Author": 12041 out.Values[i] = ec._SignatureSummary_Author(ctx, field, obj) 12042 default: 12043 panic("unknown field " + strconv.Quote(field.Name)) 12044 } 12045 } 12046 out.Dispatch(ctx) 12047 if out.Invalids > 0 { 12048 return graphql.Null 12049 } 12050 12051 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 12052 12053 for label, dfs := range deferred { 12054 ec.processDeferredGroup(graphql.DeferredGroup{ 12055 Label: label, 12056 Path: graphql.GetPath(ctx), 12057 FieldSet: dfs, 12058 Context: ctx, 12059 }) 12060 } 12061 12062 return out 12063 } 12064 12065 var __DirectiveImplementors = []string{"__Directive"} 12066 12067 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { 12068 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) 12069 12070 out := graphql.NewFieldSet(fields) 12071 deferred := make(map[string]*graphql.FieldSet) 12072 for i, field := range fields { 12073 switch field.Name { 12074 case "__typename": 12075 out.Values[i] = graphql.MarshalString("__Directive") 12076 case "name": 12077 out.Values[i] = ec.___Directive_name(ctx, field, obj) 12078 if out.Values[i] == graphql.Null { 12079 out.Invalids++ 12080 } 12081 case "description": 12082 out.Values[i] = ec.___Directive_description(ctx, field, obj) 12083 case "locations": 12084 out.Values[i] = ec.___Directive_locations(ctx, field, obj) 12085 if out.Values[i] == graphql.Null { 12086 out.Invalids++ 12087 } 12088 case "args": 12089 out.Values[i] = ec.___Directive_args(ctx, field, obj) 12090 if out.Values[i] == graphql.Null { 12091 out.Invalids++ 12092 } 12093 case "isRepeatable": 12094 out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) 12095 if out.Values[i] == graphql.Null { 12096 out.Invalids++ 12097 } 12098 default: 12099 panic("unknown field " + strconv.Quote(field.Name)) 12100 } 12101 } 12102 out.Dispatch(ctx) 12103 if out.Invalids > 0 { 12104 return graphql.Null 12105 } 12106 12107 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 12108 12109 for label, dfs := range deferred { 12110 ec.processDeferredGroup(graphql.DeferredGroup{ 12111 Label: label, 12112 Path: graphql.GetPath(ctx), 12113 FieldSet: dfs, 12114 Context: ctx, 12115 }) 12116 } 12117 12118 return out 12119 } 12120 12121 var __EnumValueImplementors = []string{"__EnumValue"} 12122 12123 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { 12124 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) 12125 12126 out := graphql.NewFieldSet(fields) 12127 deferred := make(map[string]*graphql.FieldSet) 12128 for i, field := range fields { 12129 switch field.Name { 12130 case "__typename": 12131 out.Values[i] = graphql.MarshalString("__EnumValue") 12132 case "name": 12133 out.Values[i] = ec.___EnumValue_name(ctx, field, obj) 12134 if out.Values[i] == graphql.Null { 12135 out.Invalids++ 12136 } 12137 case "description": 12138 out.Values[i] = ec.___EnumValue_description(ctx, field, obj) 12139 case "isDeprecated": 12140 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) 12141 if out.Values[i] == graphql.Null { 12142 out.Invalids++ 12143 } 12144 case "deprecationReason": 12145 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) 12146 default: 12147 panic("unknown field " + strconv.Quote(field.Name)) 12148 } 12149 } 12150 out.Dispatch(ctx) 12151 if out.Invalids > 0 { 12152 return graphql.Null 12153 } 12154 12155 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 12156 12157 for label, dfs := range deferred { 12158 ec.processDeferredGroup(graphql.DeferredGroup{ 12159 Label: label, 12160 Path: graphql.GetPath(ctx), 12161 FieldSet: dfs, 12162 Context: ctx, 12163 }) 12164 } 12165 12166 return out 12167 } 12168 12169 var __FieldImplementors = []string{"__Field"} 12170 12171 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { 12172 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) 12173 12174 out := graphql.NewFieldSet(fields) 12175 deferred := make(map[string]*graphql.FieldSet) 12176 for i, field := range fields { 12177 switch field.Name { 12178 case "__typename": 12179 out.Values[i] = graphql.MarshalString("__Field") 12180 case "name": 12181 out.Values[i] = ec.___Field_name(ctx, field, obj) 12182 if out.Values[i] == graphql.Null { 12183 out.Invalids++ 12184 } 12185 case "description": 12186 out.Values[i] = ec.___Field_description(ctx, field, obj) 12187 case "args": 12188 out.Values[i] = ec.___Field_args(ctx, field, obj) 12189 if out.Values[i] == graphql.Null { 12190 out.Invalids++ 12191 } 12192 case "type": 12193 out.Values[i] = ec.___Field_type(ctx, field, obj) 12194 if out.Values[i] == graphql.Null { 12195 out.Invalids++ 12196 } 12197 case "isDeprecated": 12198 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) 12199 if out.Values[i] == graphql.Null { 12200 out.Invalids++ 12201 } 12202 case "deprecationReason": 12203 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) 12204 default: 12205 panic("unknown field " + strconv.Quote(field.Name)) 12206 } 12207 } 12208 out.Dispatch(ctx) 12209 if out.Invalids > 0 { 12210 return graphql.Null 12211 } 12212 12213 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 12214 12215 for label, dfs := range deferred { 12216 ec.processDeferredGroup(graphql.DeferredGroup{ 12217 Label: label, 12218 Path: graphql.GetPath(ctx), 12219 FieldSet: dfs, 12220 Context: ctx, 12221 }) 12222 } 12223 12224 return out 12225 } 12226 12227 var __InputValueImplementors = []string{"__InputValue"} 12228 12229 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { 12230 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) 12231 12232 out := graphql.NewFieldSet(fields) 12233 deferred := make(map[string]*graphql.FieldSet) 12234 for i, field := range fields { 12235 switch field.Name { 12236 case "__typename": 12237 out.Values[i] = graphql.MarshalString("__InputValue") 12238 case "name": 12239 out.Values[i] = ec.___InputValue_name(ctx, field, obj) 12240 if out.Values[i] == graphql.Null { 12241 out.Invalids++ 12242 } 12243 case "description": 12244 out.Values[i] = ec.___InputValue_description(ctx, field, obj) 12245 case "type": 12246 out.Values[i] = ec.___InputValue_type(ctx, field, obj) 12247 if out.Values[i] == graphql.Null { 12248 out.Invalids++ 12249 } 12250 case "defaultValue": 12251 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) 12252 default: 12253 panic("unknown field " + strconv.Quote(field.Name)) 12254 } 12255 } 12256 out.Dispatch(ctx) 12257 if out.Invalids > 0 { 12258 return graphql.Null 12259 } 12260 12261 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 12262 12263 for label, dfs := range deferred { 12264 ec.processDeferredGroup(graphql.DeferredGroup{ 12265 Label: label, 12266 Path: graphql.GetPath(ctx), 12267 FieldSet: dfs, 12268 Context: ctx, 12269 }) 12270 } 12271 12272 return out 12273 } 12274 12275 var __SchemaImplementors = []string{"__Schema"} 12276 12277 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { 12278 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) 12279 12280 out := graphql.NewFieldSet(fields) 12281 deferred := make(map[string]*graphql.FieldSet) 12282 for i, field := range fields { 12283 switch field.Name { 12284 case "__typename": 12285 out.Values[i] = graphql.MarshalString("__Schema") 12286 case "description": 12287 out.Values[i] = ec.___Schema_description(ctx, field, obj) 12288 case "types": 12289 out.Values[i] = ec.___Schema_types(ctx, field, obj) 12290 if out.Values[i] == graphql.Null { 12291 out.Invalids++ 12292 } 12293 case "queryType": 12294 out.Values[i] = ec.___Schema_queryType(ctx, field, obj) 12295 if out.Values[i] == graphql.Null { 12296 out.Invalids++ 12297 } 12298 case "mutationType": 12299 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) 12300 case "subscriptionType": 12301 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) 12302 case "directives": 12303 out.Values[i] = ec.___Schema_directives(ctx, field, obj) 12304 if out.Values[i] == graphql.Null { 12305 out.Invalids++ 12306 } 12307 default: 12308 panic("unknown field " + strconv.Quote(field.Name)) 12309 } 12310 } 12311 out.Dispatch(ctx) 12312 if out.Invalids > 0 { 12313 return graphql.Null 12314 } 12315 12316 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 12317 12318 for label, dfs := range deferred { 12319 ec.processDeferredGroup(graphql.DeferredGroup{ 12320 Label: label, 12321 Path: graphql.GetPath(ctx), 12322 FieldSet: dfs, 12323 Context: ctx, 12324 }) 12325 } 12326 12327 return out 12328 } 12329 12330 var __TypeImplementors = []string{"__Type"} 12331 12332 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { 12333 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) 12334 12335 out := graphql.NewFieldSet(fields) 12336 deferred := make(map[string]*graphql.FieldSet) 12337 for i, field := range fields { 12338 switch field.Name { 12339 case "__typename": 12340 out.Values[i] = graphql.MarshalString("__Type") 12341 case "kind": 12342 out.Values[i] = ec.___Type_kind(ctx, field, obj) 12343 if out.Values[i] == graphql.Null { 12344 out.Invalids++ 12345 } 12346 case "name": 12347 out.Values[i] = ec.___Type_name(ctx, field, obj) 12348 case "description": 12349 out.Values[i] = ec.___Type_description(ctx, field, obj) 12350 case "fields": 12351 out.Values[i] = ec.___Type_fields(ctx, field, obj) 12352 case "interfaces": 12353 out.Values[i] = ec.___Type_interfaces(ctx, field, obj) 12354 case "possibleTypes": 12355 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) 12356 case "enumValues": 12357 out.Values[i] = ec.___Type_enumValues(ctx, field, obj) 12358 case "inputFields": 12359 out.Values[i] = ec.___Type_inputFields(ctx, field, obj) 12360 case "ofType": 12361 out.Values[i] = ec.___Type_ofType(ctx, field, obj) 12362 case "specifiedByURL": 12363 out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) 12364 default: 12365 panic("unknown field " + strconv.Quote(field.Name)) 12366 } 12367 } 12368 out.Dispatch(ctx) 12369 if out.Invalids > 0 { 12370 return graphql.Null 12371 } 12372 12373 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 12374 12375 for label, dfs := range deferred { 12376 ec.processDeferredGroup(graphql.DeferredGroup{ 12377 Label: label, 12378 Path: graphql.GetPath(ctx), 12379 FieldSet: dfs, 12380 Context: ctx, 12381 }) 12382 } 12383 12384 return out 12385 } 12386 12387 // endregion **************************** object.gotpl **************************** 12388 12389 // region ***************************** type.gotpl ***************************** 12390 12391 func (ec *executionContext) marshalNAnnotation2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v []*Annotation) graphql.Marshaler { 12392 ret := make(graphql.Array, len(v)) 12393 var wg sync.WaitGroup 12394 isLen1 := len(v) == 1 12395 if !isLen1 { 12396 wg.Add(len(v)) 12397 } 12398 for i := range v { 12399 i := i 12400 fc := &graphql.FieldContext{ 12401 Index: &i, 12402 Result: &v[i], 12403 } 12404 ctx := graphql.WithFieldContext(ctx, fc) 12405 f := func(i int) { 12406 defer func() { 12407 if r := recover(); r != nil { 12408 ec.Error(ctx, ec.Recover(ctx, r)) 12409 ret = nil 12410 } 12411 }() 12412 if !isLen1 { 12413 defer wg.Done() 12414 } 12415 ret[i] = ec.marshalOAnnotation2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐAnnotation(ctx, sel, v[i]) 12416 } 12417 if isLen1 { 12418 f(i) 12419 } else { 12420 go f(i) 12421 } 12422 12423 } 12424 wg.Wait() 12425 12426 return ret 12427 } 12428 12429 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 12430 res, err := graphql.UnmarshalBoolean(v) 12431 return res, graphql.ErrorOnPath(ctx, err) 12432 } 12433 12434 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 12435 res := graphql.MarshalBoolean(v) 12436 if res == graphql.Null { 12437 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12438 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12439 } 12440 } 12441 return res 12442 } 12443 12444 func (ec *executionContext) marshalNCVEDiffResult2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCVEDiffResult(ctx context.Context, sel ast.SelectionSet, v CVEDiffResult) graphql.Marshaler { 12445 return ec._CVEDiffResult(ctx, sel, &v) 12446 } 12447 12448 func (ec *executionContext) marshalNCVEDiffResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCVEDiffResult(ctx context.Context, sel ast.SelectionSet, v *CVEDiffResult) graphql.Marshaler { 12449 if v == nil { 12450 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12451 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12452 } 12453 return graphql.Null 12454 } 12455 return ec._CVEDiffResult(ctx, sel, v) 12456 } 12457 12458 func (ec *executionContext) marshalNCVEResultForImage2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCVEResultForImage(ctx context.Context, sel ast.SelectionSet, v CVEResultForImage) graphql.Marshaler { 12459 return ec._CVEResultForImage(ctx, sel, &v) 12460 } 12461 12462 func (ec *executionContext) marshalNCVEResultForImage2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCVEResultForImage(ctx context.Context, sel ast.SelectionSet, v *CVEResultForImage) graphql.Marshaler { 12463 if v == nil { 12464 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12465 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12466 } 12467 return graphql.Null 12468 } 12469 return ec._CVEResultForImage(ctx, sel, v) 12470 } 12471 12472 func (ec *executionContext) marshalNGlobalSearchResult2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐGlobalSearchResult(ctx context.Context, sel ast.SelectionSet, v GlobalSearchResult) graphql.Marshaler { 12473 return ec._GlobalSearchResult(ctx, sel, &v) 12474 } 12475 12476 func (ec *executionContext) marshalNGlobalSearchResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐGlobalSearchResult(ctx context.Context, sel ast.SelectionSet, v *GlobalSearchResult) graphql.Marshaler { 12477 if v == nil { 12478 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12479 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12480 } 12481 return graphql.Null 12482 } 12483 return ec._GlobalSearchResult(ctx, sel, v) 12484 } 12485 12486 func (ec *executionContext) marshalNImageIdentifier2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageIdentifier(ctx context.Context, sel ast.SelectionSet, v *ImageIdentifier) graphql.Marshaler { 12487 if v == nil { 12488 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12489 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12490 } 12491 return graphql.Null 12492 } 12493 return ec._ImageIdentifier(ctx, sel, v) 12494 } 12495 12496 func (ec *executionContext) unmarshalNImageInput2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageInput(ctx context.Context, v interface{}) (ImageInput, error) { 12497 res, err := ec.unmarshalInputImageInput(ctx, v) 12498 return res, graphql.ErrorOnPath(ctx, err) 12499 } 12500 12501 func (ec *executionContext) marshalNImageSummary2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx context.Context, sel ast.SelectionSet, v ImageSummary) graphql.Marshaler { 12502 return ec._ImageSummary(ctx, sel, &v) 12503 } 12504 12505 func (ec *executionContext) marshalNImageSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummaryᚄ(ctx context.Context, sel ast.SelectionSet, v []*ImageSummary) graphql.Marshaler { 12506 ret := make(graphql.Array, len(v)) 12507 var wg sync.WaitGroup 12508 isLen1 := len(v) == 1 12509 if !isLen1 { 12510 wg.Add(len(v)) 12511 } 12512 for i := range v { 12513 i := i 12514 fc := &graphql.FieldContext{ 12515 Index: &i, 12516 Result: &v[i], 12517 } 12518 ctx := graphql.WithFieldContext(ctx, fc) 12519 f := func(i int) { 12520 defer func() { 12521 if r := recover(); r != nil { 12522 ec.Error(ctx, ec.Recover(ctx, r)) 12523 ret = nil 12524 } 12525 }() 12526 if !isLen1 { 12527 defer wg.Done() 12528 } 12529 ret[i] = ec.marshalNImageSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, sel, v[i]) 12530 } 12531 if isLen1 { 12532 f(i) 12533 } else { 12534 go f(i) 12535 } 12536 12537 } 12538 wg.Wait() 12539 12540 for _, e := range ret { 12541 if e == graphql.Null { 12542 return graphql.Null 12543 } 12544 } 12545 12546 return ret 12547 } 12548 12549 func (ec *executionContext) marshalNImageSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx context.Context, sel ast.SelectionSet, v *ImageSummary) graphql.Marshaler { 12550 if v == nil { 12551 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12552 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12553 } 12554 return graphql.Null 12555 } 12556 return ec._ImageSummary(ctx, sel, v) 12557 } 12558 12559 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { 12560 res, err := graphql.UnmarshalInt(v) 12561 return res, graphql.ErrorOnPath(ctx, err) 12562 } 12563 12564 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 12565 res := graphql.MarshalInt(v) 12566 if res == graphql.Null { 12567 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12568 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12569 } 12570 } 12571 return res 12572 } 12573 12574 func (ec *executionContext) marshalNPaginatedImagesResult2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx context.Context, sel ast.SelectionSet, v PaginatedImagesResult) graphql.Marshaler { 12575 return ec._PaginatedImagesResult(ctx, sel, &v) 12576 } 12577 12578 func (ec *executionContext) marshalNPaginatedImagesResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx context.Context, sel ast.SelectionSet, v *PaginatedImagesResult) graphql.Marshaler { 12579 if v == nil { 12580 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12581 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12582 } 12583 return graphql.Null 12584 } 12585 return ec._PaginatedImagesResult(ctx, sel, v) 12586 } 12587 12588 func (ec *executionContext) marshalNPaginatedReposResult2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx context.Context, sel ast.SelectionSet, v PaginatedReposResult) graphql.Marshaler { 12589 return ec._PaginatedReposResult(ctx, sel, &v) 12590 } 12591 12592 func (ec *executionContext) marshalNPaginatedReposResult2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx context.Context, sel ast.SelectionSet, v *PaginatedReposResult) graphql.Marshaler { 12593 if v == nil { 12594 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12595 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12596 } 12597 return graphql.Null 12598 } 12599 return ec._PaginatedReposResult(ctx, sel, v) 12600 } 12601 12602 func (ec *executionContext) marshalNReferrer2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx context.Context, sel ast.SelectionSet, v []*Referrer) graphql.Marshaler { 12603 ret := make(graphql.Array, len(v)) 12604 var wg sync.WaitGroup 12605 isLen1 := len(v) == 1 12606 if !isLen1 { 12607 wg.Add(len(v)) 12608 } 12609 for i := range v { 12610 i := i 12611 fc := &graphql.FieldContext{ 12612 Index: &i, 12613 Result: &v[i], 12614 } 12615 ctx := graphql.WithFieldContext(ctx, fc) 12616 f := func(i int) { 12617 defer func() { 12618 if r := recover(); r != nil { 12619 ec.Error(ctx, ec.Recover(ctx, r)) 12620 ret = nil 12621 } 12622 }() 12623 if !isLen1 { 12624 defer wg.Done() 12625 } 12626 ret[i] = ec.marshalOReferrer2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, sel, v[i]) 12627 } 12628 if isLen1 { 12629 f(i) 12630 } else { 12631 go f(i) 12632 } 12633 12634 } 12635 wg.Wait() 12636 12637 return ret 12638 } 12639 12640 func (ec *executionContext) marshalNRepoInfo2zotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoInfo(ctx context.Context, sel ast.SelectionSet, v RepoInfo) graphql.Marshaler { 12641 return ec._RepoInfo(ctx, sel, &v) 12642 } 12643 12644 func (ec *executionContext) marshalNRepoInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoInfo(ctx context.Context, sel ast.SelectionSet, v *RepoInfo) graphql.Marshaler { 12645 if v == nil { 12646 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12647 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12648 } 12649 return graphql.Null 12650 } 12651 return ec._RepoInfo(ctx, sel, v) 12652 } 12653 12654 func (ec *executionContext) marshalNRepoSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummaryᚄ(ctx context.Context, sel ast.SelectionSet, v []*RepoSummary) graphql.Marshaler { 12655 ret := make(graphql.Array, len(v)) 12656 var wg sync.WaitGroup 12657 isLen1 := len(v) == 1 12658 if !isLen1 { 12659 wg.Add(len(v)) 12660 } 12661 for i := range v { 12662 i := i 12663 fc := &graphql.FieldContext{ 12664 Index: &i, 12665 Result: &v[i], 12666 } 12667 ctx := graphql.WithFieldContext(ctx, fc) 12668 f := func(i int) { 12669 defer func() { 12670 if r := recover(); r != nil { 12671 ec.Error(ctx, ec.Recover(ctx, r)) 12672 ret = nil 12673 } 12674 }() 12675 if !isLen1 { 12676 defer wg.Done() 12677 } 12678 ret[i] = ec.marshalNRepoSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx, sel, v[i]) 12679 } 12680 if isLen1 { 12681 f(i) 12682 } else { 12683 go f(i) 12684 } 12685 12686 } 12687 wg.Wait() 12688 12689 for _, e := range ret { 12690 if e == graphql.Null { 12691 return graphql.Null 12692 } 12693 } 12694 12695 return ret 12696 } 12697 12698 func (ec *executionContext) marshalNRepoSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx context.Context, sel ast.SelectionSet, v *RepoSummary) graphql.Marshaler { 12699 if v == nil { 12700 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12701 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12702 } 12703 return graphql.Null 12704 } 12705 return ec._RepoSummary(ctx, sel, v) 12706 } 12707 12708 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { 12709 res, err := graphql.UnmarshalString(v) 12710 return res, graphql.ErrorOnPath(ctx, err) 12711 } 12712 12713 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 12714 res := graphql.MarshalString(v) 12715 if res == graphql.Null { 12716 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12717 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12718 } 12719 } 12720 return res 12721 } 12722 12723 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { 12724 return ec.___Directive(ctx, sel, &v) 12725 } 12726 12727 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { 12728 ret := make(graphql.Array, len(v)) 12729 var wg sync.WaitGroup 12730 isLen1 := len(v) == 1 12731 if !isLen1 { 12732 wg.Add(len(v)) 12733 } 12734 for i := range v { 12735 i := i 12736 fc := &graphql.FieldContext{ 12737 Index: &i, 12738 Result: &v[i], 12739 } 12740 ctx := graphql.WithFieldContext(ctx, fc) 12741 f := func(i int) { 12742 defer func() { 12743 if r := recover(); r != nil { 12744 ec.Error(ctx, ec.Recover(ctx, r)) 12745 ret = nil 12746 } 12747 }() 12748 if !isLen1 { 12749 defer wg.Done() 12750 } 12751 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) 12752 } 12753 if isLen1 { 12754 f(i) 12755 } else { 12756 go f(i) 12757 } 12758 12759 } 12760 wg.Wait() 12761 12762 for _, e := range ret { 12763 if e == graphql.Null { 12764 return graphql.Null 12765 } 12766 } 12767 12768 return ret 12769 } 12770 12771 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { 12772 res, err := graphql.UnmarshalString(v) 12773 return res, graphql.ErrorOnPath(ctx, err) 12774 } 12775 12776 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 12777 res := graphql.MarshalString(v) 12778 if res == graphql.Null { 12779 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12780 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12781 } 12782 } 12783 return res 12784 } 12785 12786 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 12787 var vSlice []interface{} 12788 if v != nil { 12789 vSlice = graphql.CoerceList(v) 12790 } 12791 var err error 12792 res := make([]string, len(vSlice)) 12793 for i := range vSlice { 12794 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 12795 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) 12796 if err != nil { 12797 return nil, err 12798 } 12799 } 12800 return res, nil 12801 } 12802 12803 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 12804 ret := make(graphql.Array, len(v)) 12805 var wg sync.WaitGroup 12806 isLen1 := len(v) == 1 12807 if !isLen1 { 12808 wg.Add(len(v)) 12809 } 12810 for i := range v { 12811 i := i 12812 fc := &graphql.FieldContext{ 12813 Index: &i, 12814 Result: &v[i], 12815 } 12816 ctx := graphql.WithFieldContext(ctx, fc) 12817 f := func(i int) { 12818 defer func() { 12819 if r := recover(); r != nil { 12820 ec.Error(ctx, ec.Recover(ctx, r)) 12821 ret = nil 12822 } 12823 }() 12824 if !isLen1 { 12825 defer wg.Done() 12826 } 12827 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) 12828 } 12829 if isLen1 { 12830 f(i) 12831 } else { 12832 go f(i) 12833 } 12834 12835 } 12836 wg.Wait() 12837 12838 for _, e := range ret { 12839 if e == graphql.Null { 12840 return graphql.Null 12841 } 12842 } 12843 12844 return ret 12845 } 12846 12847 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { 12848 return ec.___EnumValue(ctx, sel, &v) 12849 } 12850 12851 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { 12852 return ec.___Field(ctx, sel, &v) 12853 } 12854 12855 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { 12856 return ec.___InputValue(ctx, sel, &v) 12857 } 12858 12859 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 12860 ret := make(graphql.Array, len(v)) 12861 var wg sync.WaitGroup 12862 isLen1 := len(v) == 1 12863 if !isLen1 { 12864 wg.Add(len(v)) 12865 } 12866 for i := range v { 12867 i := i 12868 fc := &graphql.FieldContext{ 12869 Index: &i, 12870 Result: &v[i], 12871 } 12872 ctx := graphql.WithFieldContext(ctx, fc) 12873 f := func(i int) { 12874 defer func() { 12875 if r := recover(); r != nil { 12876 ec.Error(ctx, ec.Recover(ctx, r)) 12877 ret = nil 12878 } 12879 }() 12880 if !isLen1 { 12881 defer wg.Done() 12882 } 12883 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 12884 } 12885 if isLen1 { 12886 f(i) 12887 } else { 12888 go f(i) 12889 } 12890 12891 } 12892 wg.Wait() 12893 12894 for _, e := range ret { 12895 if e == graphql.Null { 12896 return graphql.Null 12897 } 12898 } 12899 12900 return ret 12901 } 12902 12903 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { 12904 return ec.___Type(ctx, sel, &v) 12905 } 12906 12907 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 12908 ret := make(graphql.Array, len(v)) 12909 var wg sync.WaitGroup 12910 isLen1 := len(v) == 1 12911 if !isLen1 { 12912 wg.Add(len(v)) 12913 } 12914 for i := range v { 12915 i := i 12916 fc := &graphql.FieldContext{ 12917 Index: &i, 12918 Result: &v[i], 12919 } 12920 ctx := graphql.WithFieldContext(ctx, fc) 12921 f := func(i int) { 12922 defer func() { 12923 if r := recover(); r != nil { 12924 ec.Error(ctx, ec.Recover(ctx, r)) 12925 ret = nil 12926 } 12927 }() 12928 if !isLen1 { 12929 defer wg.Done() 12930 } 12931 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 12932 } 12933 if isLen1 { 12934 f(i) 12935 } else { 12936 go f(i) 12937 } 12938 12939 } 12940 wg.Wait() 12941 12942 for _, e := range ret { 12943 if e == graphql.Null { 12944 return graphql.Null 12945 } 12946 } 12947 12948 return ret 12949 } 12950 12951 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 12952 if v == nil { 12953 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12954 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12955 } 12956 return graphql.Null 12957 } 12958 return ec.___Type(ctx, sel, v) 12959 } 12960 12961 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { 12962 res, err := graphql.UnmarshalString(v) 12963 return res, graphql.ErrorOnPath(ctx, err) 12964 } 12965 12966 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 12967 res := graphql.MarshalString(v) 12968 if res == graphql.Null { 12969 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 12970 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 12971 } 12972 } 12973 return res 12974 } 12975 12976 func (ec *executionContext) marshalOAnnotation2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v *Annotation) graphql.Marshaler { 12977 if v == nil { 12978 return graphql.Null 12979 } 12980 return ec._Annotation(ctx, sel, v) 12981 } 12982 12983 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 12984 res, err := graphql.UnmarshalBoolean(v) 12985 return res, graphql.ErrorOnPath(ctx, err) 12986 } 12987 12988 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 12989 res := graphql.MarshalBoolean(v) 12990 return res 12991 } 12992 12993 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { 12994 if v == nil { 12995 return nil, nil 12996 } 12997 res, err := graphql.UnmarshalBoolean(v) 12998 return &res, graphql.ErrorOnPath(ctx, err) 12999 } 13000 13001 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { 13002 if v == nil { 13003 return graphql.Null 13004 } 13005 res := graphql.MarshalBoolean(*v) 13006 return res 13007 } 13008 13009 func (ec *executionContext) marshalOCVE2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCve(ctx context.Context, sel ast.SelectionSet, v []*Cve) graphql.Marshaler { 13010 if v == nil { 13011 return graphql.Null 13012 } 13013 ret := make(graphql.Array, len(v)) 13014 var wg sync.WaitGroup 13015 isLen1 := len(v) == 1 13016 if !isLen1 { 13017 wg.Add(len(v)) 13018 } 13019 for i := range v { 13020 i := i 13021 fc := &graphql.FieldContext{ 13022 Index: &i, 13023 Result: &v[i], 13024 } 13025 ctx := graphql.WithFieldContext(ctx, fc) 13026 f := func(i int) { 13027 defer func() { 13028 if r := recover(); r != nil { 13029 ec.Error(ctx, ec.Recover(ctx, r)) 13030 ret = nil 13031 } 13032 }() 13033 if !isLen1 { 13034 defer wg.Done() 13035 } 13036 ret[i] = ec.marshalOCVE2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCve(ctx, sel, v[i]) 13037 } 13038 if isLen1 { 13039 f(i) 13040 } else { 13041 go f(i) 13042 } 13043 13044 } 13045 wg.Wait() 13046 13047 return ret 13048 } 13049 13050 func (ec *executionContext) marshalOCVE2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCve(ctx context.Context, sel ast.SelectionSet, v *Cve) graphql.Marshaler { 13051 if v == nil { 13052 return graphql.Null 13053 } 13054 return ec._CVE(ctx, sel, v) 13055 } 13056 13057 func (ec *executionContext) unmarshalOFilter2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐFilter(ctx context.Context, v interface{}) (*Filter, error) { 13058 if v == nil { 13059 return nil, nil 13060 } 13061 res, err := ec.unmarshalInputFilter(ctx, v) 13062 return &res, graphql.ErrorOnPath(ctx, err) 13063 } 13064 13065 func (ec *executionContext) marshalOHistoryDescription2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐHistoryDescription(ctx context.Context, sel ast.SelectionSet, v *HistoryDescription) graphql.Marshaler { 13066 if v == nil { 13067 return graphql.Null 13068 } 13069 return ec._HistoryDescription(ctx, sel, v) 13070 } 13071 13072 func (ec *executionContext) marshalOImageSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx context.Context, sel ast.SelectionSet, v []*ImageSummary) graphql.Marshaler { 13073 if v == nil { 13074 return graphql.Null 13075 } 13076 ret := make(graphql.Array, len(v)) 13077 var wg sync.WaitGroup 13078 isLen1 := len(v) == 1 13079 if !isLen1 { 13080 wg.Add(len(v)) 13081 } 13082 for i := range v { 13083 i := i 13084 fc := &graphql.FieldContext{ 13085 Index: &i, 13086 Result: &v[i], 13087 } 13088 ctx := graphql.WithFieldContext(ctx, fc) 13089 f := func(i int) { 13090 defer func() { 13091 if r := recover(); r != nil { 13092 ec.Error(ctx, ec.Recover(ctx, r)) 13093 ret = nil 13094 } 13095 }() 13096 if !isLen1 { 13097 defer wg.Done() 13098 } 13099 ret[i] = ec.marshalOImageSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, sel, v[i]) 13100 } 13101 if isLen1 { 13102 f(i) 13103 } else { 13104 go f(i) 13105 } 13106 13107 } 13108 wg.Wait() 13109 13110 return ret 13111 } 13112 13113 func (ec *executionContext) marshalOImageSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx context.Context, sel ast.SelectionSet, v *ImageSummary) graphql.Marshaler { 13114 if v == nil { 13115 return graphql.Null 13116 } 13117 return ec._ImageSummary(ctx, sel, v) 13118 } 13119 13120 func (ec *executionContext) marshalOImageVulnerabilitySummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageVulnerabilitySummary(ctx context.Context, sel ast.SelectionSet, v *ImageVulnerabilitySummary) graphql.Marshaler { 13121 if v == nil { 13122 return graphql.Null 13123 } 13124 return ec._ImageVulnerabilitySummary(ctx, sel, v) 13125 } 13126 13127 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { 13128 if v == nil { 13129 return nil, nil 13130 } 13131 res, err := graphql.UnmarshalInt(v) 13132 return &res, graphql.ErrorOnPath(ctx, err) 13133 } 13134 13135 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { 13136 if v == nil { 13137 return graphql.Null 13138 } 13139 res := graphql.MarshalInt(*v) 13140 return res 13141 } 13142 13143 func (ec *executionContext) marshalOLayerHistory2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerHistory(ctx context.Context, sel ast.SelectionSet, v []*LayerHistory) graphql.Marshaler { 13144 if v == nil { 13145 return graphql.Null 13146 } 13147 ret := make(graphql.Array, len(v)) 13148 var wg sync.WaitGroup 13149 isLen1 := len(v) == 1 13150 if !isLen1 { 13151 wg.Add(len(v)) 13152 } 13153 for i := range v { 13154 i := i 13155 fc := &graphql.FieldContext{ 13156 Index: &i, 13157 Result: &v[i], 13158 } 13159 ctx := graphql.WithFieldContext(ctx, fc) 13160 f := func(i int) { 13161 defer func() { 13162 if r := recover(); r != nil { 13163 ec.Error(ctx, ec.Recover(ctx, r)) 13164 ret = nil 13165 } 13166 }() 13167 if !isLen1 { 13168 defer wg.Done() 13169 } 13170 ret[i] = ec.marshalOLayerHistory2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerHistory(ctx, sel, v[i]) 13171 } 13172 if isLen1 { 13173 f(i) 13174 } else { 13175 go f(i) 13176 } 13177 13178 } 13179 wg.Wait() 13180 13181 return ret 13182 } 13183 13184 func (ec *executionContext) marshalOLayerHistory2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerHistory(ctx context.Context, sel ast.SelectionSet, v *LayerHistory) graphql.Marshaler { 13185 if v == nil { 13186 return graphql.Null 13187 } 13188 return ec._LayerHistory(ctx, sel, v) 13189 } 13190 13191 func (ec *executionContext) marshalOLayerSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx context.Context, sel ast.SelectionSet, v []*LayerSummary) graphql.Marshaler { 13192 if v == nil { 13193 return graphql.Null 13194 } 13195 ret := make(graphql.Array, len(v)) 13196 var wg sync.WaitGroup 13197 isLen1 := len(v) == 1 13198 if !isLen1 { 13199 wg.Add(len(v)) 13200 } 13201 for i := range v { 13202 i := i 13203 fc := &graphql.FieldContext{ 13204 Index: &i, 13205 Result: &v[i], 13206 } 13207 ctx := graphql.WithFieldContext(ctx, fc) 13208 f := func(i int) { 13209 defer func() { 13210 if r := recover(); r != nil { 13211 ec.Error(ctx, ec.Recover(ctx, r)) 13212 ret = nil 13213 } 13214 }() 13215 if !isLen1 { 13216 defer wg.Done() 13217 } 13218 ret[i] = ec.marshalOLayerSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx, sel, v[i]) 13219 } 13220 if isLen1 { 13221 f(i) 13222 } else { 13223 go f(i) 13224 } 13225 13226 } 13227 wg.Wait() 13228 13229 return ret 13230 } 13231 13232 func (ec *executionContext) marshalOLayerSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx context.Context, sel ast.SelectionSet, v *LayerSummary) graphql.Marshaler { 13233 if v == nil { 13234 return graphql.Null 13235 } 13236 return ec._LayerSummary(ctx, sel, v) 13237 } 13238 13239 func (ec *executionContext) marshalOManifestSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐManifestSummary(ctx context.Context, sel ast.SelectionSet, v []*ManifestSummary) graphql.Marshaler { 13240 if v == nil { 13241 return graphql.Null 13242 } 13243 ret := make(graphql.Array, len(v)) 13244 var wg sync.WaitGroup 13245 isLen1 := len(v) == 1 13246 if !isLen1 { 13247 wg.Add(len(v)) 13248 } 13249 for i := range v { 13250 i := i 13251 fc := &graphql.FieldContext{ 13252 Index: &i, 13253 Result: &v[i], 13254 } 13255 ctx := graphql.WithFieldContext(ctx, fc) 13256 f := func(i int) { 13257 defer func() { 13258 if r := recover(); r != nil { 13259 ec.Error(ctx, ec.Recover(ctx, r)) 13260 ret = nil 13261 } 13262 }() 13263 if !isLen1 { 13264 defer wg.Done() 13265 } 13266 ret[i] = ec.marshalOManifestSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐManifestSummary(ctx, sel, v[i]) 13267 } 13268 if isLen1 { 13269 f(i) 13270 } else { 13271 go f(i) 13272 } 13273 13274 } 13275 wg.Wait() 13276 13277 return ret 13278 } 13279 13280 func (ec *executionContext) marshalOManifestSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐManifestSummary(ctx context.Context, sel ast.SelectionSet, v *ManifestSummary) graphql.Marshaler { 13281 if v == nil { 13282 return graphql.Null 13283 } 13284 return ec._ManifestSummary(ctx, sel, v) 13285 } 13286 13287 func (ec *executionContext) marshalOPackageInfo2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPackageInfo(ctx context.Context, sel ast.SelectionSet, v []*PackageInfo) graphql.Marshaler { 13288 if v == nil { 13289 return graphql.Null 13290 } 13291 ret := make(graphql.Array, len(v)) 13292 var wg sync.WaitGroup 13293 isLen1 := len(v) == 1 13294 if !isLen1 { 13295 wg.Add(len(v)) 13296 } 13297 for i := range v { 13298 i := i 13299 fc := &graphql.FieldContext{ 13300 Index: &i, 13301 Result: &v[i], 13302 } 13303 ctx := graphql.WithFieldContext(ctx, fc) 13304 f := func(i int) { 13305 defer func() { 13306 if r := recover(); r != nil { 13307 ec.Error(ctx, ec.Recover(ctx, r)) 13308 ret = nil 13309 } 13310 }() 13311 if !isLen1 { 13312 defer wg.Done() 13313 } 13314 ret[i] = ec.marshalOPackageInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPackageInfo(ctx, sel, v[i]) 13315 } 13316 if isLen1 { 13317 f(i) 13318 } else { 13319 go f(i) 13320 } 13321 13322 } 13323 wg.Wait() 13324 13325 return ret 13326 } 13327 13328 func (ec *executionContext) marshalOPackageInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPackageInfo(ctx context.Context, sel ast.SelectionSet, v *PackageInfo) graphql.Marshaler { 13329 if v == nil { 13330 return graphql.Null 13331 } 13332 return ec._PackageInfo(ctx, sel, v) 13333 } 13334 13335 func (ec *executionContext) marshalOPageInfo2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *PageInfo) graphql.Marshaler { 13336 if v == nil { 13337 return graphql.Null 13338 } 13339 return ec._PageInfo(ctx, sel, v) 13340 } 13341 13342 func (ec *executionContext) unmarshalOPageInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx context.Context, v interface{}) (*PageInput, error) { 13343 if v == nil { 13344 return nil, nil 13345 } 13346 res, err := ec.unmarshalInputPageInput(ctx, v) 13347 return &res, graphql.ErrorOnPath(ctx, err) 13348 } 13349 13350 func (ec *executionContext) marshalOPlatform2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx context.Context, sel ast.SelectionSet, v []*Platform) graphql.Marshaler { 13351 if v == nil { 13352 return graphql.Null 13353 } 13354 ret := make(graphql.Array, len(v)) 13355 var wg sync.WaitGroup 13356 isLen1 := len(v) == 1 13357 if !isLen1 { 13358 wg.Add(len(v)) 13359 } 13360 for i := range v { 13361 i := i 13362 fc := &graphql.FieldContext{ 13363 Index: &i, 13364 Result: &v[i], 13365 } 13366 ctx := graphql.WithFieldContext(ctx, fc) 13367 f := func(i int) { 13368 defer func() { 13369 if r := recover(); r != nil { 13370 ec.Error(ctx, ec.Recover(ctx, r)) 13371 ret = nil 13372 } 13373 }() 13374 if !isLen1 { 13375 defer wg.Done() 13376 } 13377 ret[i] = ec.marshalOPlatform2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx, sel, v[i]) 13378 } 13379 if isLen1 { 13380 f(i) 13381 } else { 13382 go f(i) 13383 } 13384 13385 } 13386 wg.Wait() 13387 13388 return ret 13389 } 13390 13391 func (ec *executionContext) marshalOPlatform2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx context.Context, sel ast.SelectionSet, v *Platform) graphql.Marshaler { 13392 if v == nil { 13393 return graphql.Null 13394 } 13395 return ec._Platform(ctx, sel, v) 13396 } 13397 13398 func (ec *executionContext) unmarshalOPlatformInput2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatformInput(ctx context.Context, v interface{}) (*PlatformInput, error) { 13399 if v == nil { 13400 return nil, nil 13401 } 13402 res, err := ec.unmarshalInputPlatformInput(ctx, v) 13403 return &res, graphql.ErrorOnPath(ctx, err) 13404 } 13405 13406 func (ec *executionContext) marshalOReferrer2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx context.Context, sel ast.SelectionSet, v []*Referrer) graphql.Marshaler { 13407 if v == nil { 13408 return graphql.Null 13409 } 13410 ret := make(graphql.Array, len(v)) 13411 var wg sync.WaitGroup 13412 isLen1 := len(v) == 1 13413 if !isLen1 { 13414 wg.Add(len(v)) 13415 } 13416 for i := range v { 13417 i := i 13418 fc := &graphql.FieldContext{ 13419 Index: &i, 13420 Result: &v[i], 13421 } 13422 ctx := graphql.WithFieldContext(ctx, fc) 13423 f := func(i int) { 13424 defer func() { 13425 if r := recover(); r != nil { 13426 ec.Error(ctx, ec.Recover(ctx, r)) 13427 ret = nil 13428 } 13429 }() 13430 if !isLen1 { 13431 defer wg.Done() 13432 } 13433 ret[i] = ec.marshalOReferrer2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, sel, v[i]) 13434 } 13435 if isLen1 { 13436 f(i) 13437 } else { 13438 go f(i) 13439 } 13440 13441 } 13442 wg.Wait() 13443 13444 return ret 13445 } 13446 13447 func (ec *executionContext) marshalOReferrer2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx context.Context, sel ast.SelectionSet, v *Referrer) graphql.Marshaler { 13448 if v == nil { 13449 return graphql.Null 13450 } 13451 return ec._Referrer(ctx, sel, v) 13452 } 13453 13454 func (ec *executionContext) marshalORepoSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx context.Context, sel ast.SelectionSet, v []*RepoSummary) graphql.Marshaler { 13455 if v == nil { 13456 return graphql.Null 13457 } 13458 ret := make(graphql.Array, len(v)) 13459 var wg sync.WaitGroup 13460 isLen1 := len(v) == 1 13461 if !isLen1 { 13462 wg.Add(len(v)) 13463 } 13464 for i := range v { 13465 i := i 13466 fc := &graphql.FieldContext{ 13467 Index: &i, 13468 Result: &v[i], 13469 } 13470 ctx := graphql.WithFieldContext(ctx, fc) 13471 f := func(i int) { 13472 defer func() { 13473 if r := recover(); r != nil { 13474 ec.Error(ctx, ec.Recover(ctx, r)) 13475 ret = nil 13476 } 13477 }() 13478 if !isLen1 { 13479 defer wg.Done() 13480 } 13481 ret[i] = ec.marshalORepoSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx, sel, v[i]) 13482 } 13483 if isLen1 { 13484 f(i) 13485 } else { 13486 go f(i) 13487 } 13488 13489 } 13490 wg.Wait() 13491 13492 return ret 13493 } 13494 13495 func (ec *executionContext) marshalORepoSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx context.Context, sel ast.SelectionSet, v *RepoSummary) graphql.Marshaler { 13496 if v == nil { 13497 return graphql.Null 13498 } 13499 return ec._RepoSummary(ctx, sel, v) 13500 } 13501 13502 func (ec *executionContext) marshalOSignatureSummary2ᚕᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx context.Context, sel ast.SelectionSet, v []*SignatureSummary) graphql.Marshaler { 13503 if v == nil { 13504 return graphql.Null 13505 } 13506 ret := make(graphql.Array, len(v)) 13507 var wg sync.WaitGroup 13508 isLen1 := len(v) == 1 13509 if !isLen1 { 13510 wg.Add(len(v)) 13511 } 13512 for i := range v { 13513 i := i 13514 fc := &graphql.FieldContext{ 13515 Index: &i, 13516 Result: &v[i], 13517 } 13518 ctx := graphql.WithFieldContext(ctx, fc) 13519 f := func(i int) { 13520 defer func() { 13521 if r := recover(); r != nil { 13522 ec.Error(ctx, ec.Recover(ctx, r)) 13523 ret = nil 13524 } 13525 }() 13526 if !isLen1 { 13527 defer wg.Done() 13528 } 13529 ret[i] = ec.marshalOSignatureSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx, sel, v[i]) 13530 } 13531 if isLen1 { 13532 f(i) 13533 } else { 13534 go f(i) 13535 } 13536 13537 } 13538 wg.Wait() 13539 13540 return ret 13541 } 13542 13543 func (ec *executionContext) marshalOSignatureSummary2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx context.Context, sel ast.SelectionSet, v *SignatureSummary) graphql.Marshaler { 13544 if v == nil { 13545 return graphql.Null 13546 } 13547 return ec._SignatureSummary(ctx, sel, v) 13548 } 13549 13550 func (ec *executionContext) unmarshalOSortCriteria2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSortCriteria(ctx context.Context, v interface{}) (*SortCriteria, error) { 13551 if v == nil { 13552 return nil, nil 13553 } 13554 var res = new(SortCriteria) 13555 err := res.UnmarshalGQL(v) 13556 return res, graphql.ErrorOnPath(ctx, err) 13557 } 13558 13559 func (ec *executionContext) marshalOSortCriteria2ᚖzotregistryᚗdevᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSortCriteria(ctx context.Context, sel ast.SelectionSet, v *SortCriteria) graphql.Marshaler { 13560 if v == nil { 13561 return graphql.Null 13562 } 13563 return v 13564 } 13565 13566 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 13567 if v == nil { 13568 return nil, nil 13569 } 13570 var vSlice []interface{} 13571 if v != nil { 13572 vSlice = graphql.CoerceList(v) 13573 } 13574 var err error 13575 res := make([]string, len(vSlice)) 13576 for i := range vSlice { 13577 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 13578 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 13579 if err != nil { 13580 return nil, err 13581 } 13582 } 13583 return res, nil 13584 } 13585 13586 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 13587 if v == nil { 13588 return graphql.Null 13589 } 13590 ret := make(graphql.Array, len(v)) 13591 for i := range v { 13592 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 13593 } 13594 13595 for _, e := range ret { 13596 if e == graphql.Null { 13597 return graphql.Null 13598 } 13599 } 13600 13601 return ret 13602 } 13603 13604 func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { 13605 if v == nil { 13606 return nil, nil 13607 } 13608 var vSlice []interface{} 13609 if v != nil { 13610 vSlice = graphql.CoerceList(v) 13611 } 13612 var err error 13613 res := make([]*string, len(vSlice)) 13614 for i := range vSlice { 13615 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 13616 res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i]) 13617 if err != nil { 13618 return nil, err 13619 } 13620 } 13621 return res, nil 13622 } 13623 13624 func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler { 13625 if v == nil { 13626 return graphql.Null 13627 } 13628 ret := make(graphql.Array, len(v)) 13629 for i := range v { 13630 ret[i] = ec.marshalOString2ᚖstring(ctx, sel, v[i]) 13631 } 13632 13633 return ret 13634 } 13635 13636 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 13637 if v == nil { 13638 return nil, nil 13639 } 13640 res, err := graphql.UnmarshalString(v) 13641 return &res, graphql.ErrorOnPath(ctx, err) 13642 } 13643 13644 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 13645 if v == nil { 13646 return graphql.Null 13647 } 13648 res := graphql.MarshalString(*v) 13649 return res 13650 } 13651 13652 func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { 13653 if v == nil { 13654 return nil, nil 13655 } 13656 res, err := graphql.UnmarshalTime(v) 13657 return &res, graphql.ErrorOnPath(ctx, err) 13658 } 13659 13660 func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { 13661 if v == nil { 13662 return graphql.Null 13663 } 13664 res := graphql.MarshalTime(*v) 13665 return res 13666 } 13667 13668 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { 13669 if v == nil { 13670 return graphql.Null 13671 } 13672 ret := make(graphql.Array, len(v)) 13673 var wg sync.WaitGroup 13674 isLen1 := len(v) == 1 13675 if !isLen1 { 13676 wg.Add(len(v)) 13677 } 13678 for i := range v { 13679 i := i 13680 fc := &graphql.FieldContext{ 13681 Index: &i, 13682 Result: &v[i], 13683 } 13684 ctx := graphql.WithFieldContext(ctx, fc) 13685 f := func(i int) { 13686 defer func() { 13687 if r := recover(); r != nil { 13688 ec.Error(ctx, ec.Recover(ctx, r)) 13689 ret = nil 13690 } 13691 }() 13692 if !isLen1 { 13693 defer wg.Done() 13694 } 13695 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) 13696 } 13697 if isLen1 { 13698 f(i) 13699 } else { 13700 go f(i) 13701 } 13702 13703 } 13704 wg.Wait() 13705 13706 for _, e := range ret { 13707 if e == graphql.Null { 13708 return graphql.Null 13709 } 13710 } 13711 13712 return ret 13713 } 13714 13715 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { 13716 if v == nil { 13717 return graphql.Null 13718 } 13719 ret := make(graphql.Array, len(v)) 13720 var wg sync.WaitGroup 13721 isLen1 := len(v) == 1 13722 if !isLen1 { 13723 wg.Add(len(v)) 13724 } 13725 for i := range v { 13726 i := i 13727 fc := &graphql.FieldContext{ 13728 Index: &i, 13729 Result: &v[i], 13730 } 13731 ctx := graphql.WithFieldContext(ctx, fc) 13732 f := func(i int) { 13733 defer func() { 13734 if r := recover(); r != nil { 13735 ec.Error(ctx, ec.Recover(ctx, r)) 13736 ret = nil 13737 } 13738 }() 13739 if !isLen1 { 13740 defer wg.Done() 13741 } 13742 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) 13743 } 13744 if isLen1 { 13745 f(i) 13746 } else { 13747 go f(i) 13748 } 13749 13750 } 13751 wg.Wait() 13752 13753 for _, e := range ret { 13754 if e == graphql.Null { 13755 return graphql.Null 13756 } 13757 } 13758 13759 return ret 13760 } 13761 13762 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 13763 if v == nil { 13764 return graphql.Null 13765 } 13766 ret := make(graphql.Array, len(v)) 13767 var wg sync.WaitGroup 13768 isLen1 := len(v) == 1 13769 if !isLen1 { 13770 wg.Add(len(v)) 13771 } 13772 for i := range v { 13773 i := i 13774 fc := &graphql.FieldContext{ 13775 Index: &i, 13776 Result: &v[i], 13777 } 13778 ctx := graphql.WithFieldContext(ctx, fc) 13779 f := func(i int) { 13780 defer func() { 13781 if r := recover(); r != nil { 13782 ec.Error(ctx, ec.Recover(ctx, r)) 13783 ret = nil 13784 } 13785 }() 13786 if !isLen1 { 13787 defer wg.Done() 13788 } 13789 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 13790 } 13791 if isLen1 { 13792 f(i) 13793 } else { 13794 go f(i) 13795 } 13796 13797 } 13798 wg.Wait() 13799 13800 for _, e := range ret { 13801 if e == graphql.Null { 13802 return graphql.Null 13803 } 13804 } 13805 13806 return ret 13807 } 13808 13809 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { 13810 if v == nil { 13811 return graphql.Null 13812 } 13813 return ec.___Schema(ctx, sel, v) 13814 } 13815 13816 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 13817 if v == nil { 13818 return graphql.Null 13819 } 13820 ret := make(graphql.Array, len(v)) 13821 var wg sync.WaitGroup 13822 isLen1 := len(v) == 1 13823 if !isLen1 { 13824 wg.Add(len(v)) 13825 } 13826 for i := range v { 13827 i := i 13828 fc := &graphql.FieldContext{ 13829 Index: &i, 13830 Result: &v[i], 13831 } 13832 ctx := graphql.WithFieldContext(ctx, fc) 13833 f := func(i int) { 13834 defer func() { 13835 if r := recover(); r != nil { 13836 ec.Error(ctx, ec.Recover(ctx, r)) 13837 ret = nil 13838 } 13839 }() 13840 if !isLen1 { 13841 defer wg.Done() 13842 } 13843 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 13844 } 13845 if isLen1 { 13846 f(i) 13847 } else { 13848 go f(i) 13849 } 13850 13851 } 13852 wg.Wait() 13853 13854 for _, e := range ret { 13855 if e == graphql.Null { 13856 return graphql.Null 13857 } 13858 } 13859 13860 return ret 13861 } 13862 13863 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 13864 if v == nil { 13865 return graphql.Null 13866 } 13867 return ec.___Type(ctx, sel, v) 13868 } 13869 13870 // endregion ***************************** type.gotpl *****************************