zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/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 Severity func(childComplexity int) int 58 Title func(childComplexity int) int 59 } 60 61 CVEResultForImage struct { 62 CVEList func(childComplexity int) int 63 Page func(childComplexity int) int 64 Tag func(childComplexity int) int 65 } 66 67 GlobalSearchResult struct { 68 Images func(childComplexity int) int 69 Layers func(childComplexity int) int 70 Page func(childComplexity int) int 71 Repos func(childComplexity int) int 72 } 73 74 HistoryDescription struct { 75 Author func(childComplexity int) int 76 Comment func(childComplexity int) int 77 Created func(childComplexity int) int 78 CreatedBy func(childComplexity int) int 79 EmptyLayer func(childComplexity int) int 80 } 81 82 ImageSummary struct { 83 Authors func(childComplexity int) int 84 Description func(childComplexity int) int 85 Digest func(childComplexity int) int 86 Documentation func(childComplexity int) int 87 DownloadCount func(childComplexity int) int 88 IsSigned func(childComplexity int) int 89 Labels func(childComplexity int) int 90 LastUpdated func(childComplexity int) int 91 Licenses func(childComplexity int) int 92 Manifests func(childComplexity int) int 93 MediaType func(childComplexity int) int 94 Referrers func(childComplexity int) int 95 RepoName func(childComplexity int) int 96 SignatureInfo func(childComplexity int) int 97 Size func(childComplexity int) int 98 Source func(childComplexity int) int 99 Tag func(childComplexity int) int 100 Title func(childComplexity int) int 101 Vendor func(childComplexity int) int 102 Vulnerabilities func(childComplexity int) int 103 } 104 105 ImageVulnerabilitySummary struct { 106 Count func(childComplexity int) int 107 MaxSeverity func(childComplexity int) int 108 } 109 110 LayerHistory struct { 111 HistoryDescription func(childComplexity int) int 112 Layer func(childComplexity int) int 113 } 114 115 LayerSummary struct { 116 Digest func(childComplexity int) int 117 Size func(childComplexity int) int 118 } 119 120 ManifestSummary struct { 121 ArtifactType func(childComplexity int) int 122 ConfigDigest func(childComplexity int) int 123 Digest func(childComplexity int) int 124 DownloadCount func(childComplexity int) int 125 History func(childComplexity int) int 126 IsSigned func(childComplexity int) int 127 LastUpdated func(childComplexity int) int 128 Layers func(childComplexity int) int 129 Platform func(childComplexity int) int 130 Referrers func(childComplexity int) int 131 SignatureInfo func(childComplexity int) int 132 Size func(childComplexity int) int 133 Vulnerabilities func(childComplexity int) int 134 } 135 136 PackageInfo struct { 137 FixedVersion func(childComplexity int) int 138 InstalledVersion func(childComplexity int) int 139 Name func(childComplexity int) int 140 } 141 142 PageInfo struct { 143 ItemCount func(childComplexity int) int 144 TotalCount func(childComplexity int) int 145 } 146 147 PaginatedImagesResult struct { 148 Page func(childComplexity int) int 149 Results func(childComplexity int) int 150 } 151 152 PaginatedReposResult struct { 153 Page func(childComplexity int) int 154 Results func(childComplexity int) int 155 } 156 157 Platform struct { 158 Arch func(childComplexity int) int 159 Os func(childComplexity int) int 160 } 161 162 Query struct { 163 BaseImageList func(childComplexity int, image string, digest *string, requestedPage *PageInput) int 164 BookmarkedRepos func(childComplexity int, requestedPage *PageInput) int 165 CVEListForImage func(childComplexity int, image string, requestedPage *PageInput, searchedCve *string) int 166 DerivedImageList func(childComplexity int, image string, digest *string, requestedPage *PageInput) int 167 ExpandedRepoInfo func(childComplexity int, repo string) int 168 GlobalSearch func(childComplexity int, query string, filter *Filter, requestedPage *PageInput) int 169 Image func(childComplexity int, image string) int 170 ImageList func(childComplexity int, repo string, requestedPage *PageInput) int 171 ImageListForCve func(childComplexity int, id string, filter *Filter, requestedPage *PageInput) int 172 ImageListForDigest func(childComplexity int, id string, requestedPage *PageInput) int 173 ImageListWithCVEFixed func(childComplexity int, id string, image string, filter *Filter, requestedPage *PageInput) int 174 Referrers func(childComplexity int, repo string, digest string, typeArg []string) int 175 RepoListWithNewestImage func(childComplexity int, requestedPage *PageInput) int 176 StarredRepos func(childComplexity int, requestedPage *PageInput) int 177 } 178 179 Referrer struct { 180 Annotations func(childComplexity int) int 181 ArtifactType func(childComplexity int) int 182 Digest func(childComplexity int) int 183 MediaType func(childComplexity int) int 184 Size func(childComplexity int) int 185 } 186 187 RepoInfo struct { 188 Images func(childComplexity int) int 189 Summary func(childComplexity int) int 190 } 191 192 RepoSummary struct { 193 DownloadCount func(childComplexity int) int 194 IsBookmarked func(childComplexity int) int 195 IsStarred func(childComplexity int) int 196 LastUpdated func(childComplexity int) int 197 Name func(childComplexity int) int 198 NewestImage func(childComplexity int) int 199 Platforms func(childComplexity int) int 200 Rank func(childComplexity int) int 201 Size func(childComplexity int) int 202 StarCount func(childComplexity int) int 203 Vendors func(childComplexity int) int 204 } 205 206 SignatureSummary struct { 207 Author func(childComplexity int) int 208 IsTrusted func(childComplexity int) int 209 Tool func(childComplexity int) int 210 } 211 } 212 213 type QueryResolver interface { 214 CVEListForImage(ctx context.Context, image string, requestedPage *PageInput, searchedCve *string) (*CVEResultForImage, error) 215 ImageListForCve(ctx context.Context, id string, filter *Filter, requestedPage *PageInput) (*PaginatedImagesResult, error) 216 ImageListWithCVEFixed(ctx context.Context, id string, image string, filter *Filter, requestedPage *PageInput) (*PaginatedImagesResult, error) 217 ImageListForDigest(ctx context.Context, id string, requestedPage *PageInput) (*PaginatedImagesResult, error) 218 RepoListWithNewestImage(ctx context.Context, requestedPage *PageInput) (*PaginatedReposResult, error) 219 ImageList(ctx context.Context, repo string, requestedPage *PageInput) (*PaginatedImagesResult, error) 220 ExpandedRepoInfo(ctx context.Context, repo string) (*RepoInfo, error) 221 GlobalSearch(ctx context.Context, query string, filter *Filter, requestedPage *PageInput) (*GlobalSearchResult, error) 222 DerivedImageList(ctx context.Context, image string, digest *string, requestedPage *PageInput) (*PaginatedImagesResult, error) 223 BaseImageList(ctx context.Context, image string, digest *string, requestedPage *PageInput) (*PaginatedImagesResult, error) 224 Image(ctx context.Context, image string) (*ImageSummary, error) 225 Referrers(ctx context.Context, repo string, digest string, typeArg []string) ([]*Referrer, error) 226 StarredRepos(ctx context.Context, requestedPage *PageInput) (*PaginatedReposResult, error) 227 BookmarkedRepos(ctx context.Context, requestedPage *PageInput) (*PaginatedReposResult, error) 228 } 229 230 type executableSchema struct { 231 schema *ast.Schema 232 resolvers ResolverRoot 233 directives DirectiveRoot 234 complexity ComplexityRoot 235 } 236 237 func (e *executableSchema) Schema() *ast.Schema { 238 if e.schema != nil { 239 return e.schema 240 } 241 return parsedSchema 242 } 243 244 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { 245 ec := executionContext{nil, e, 0, 0, nil} 246 _ = ec 247 switch typeName + "." + field { 248 249 case "Annotation.Key": 250 if e.complexity.Annotation.Key == nil { 251 break 252 } 253 254 return e.complexity.Annotation.Key(childComplexity), true 255 256 case "Annotation.Value": 257 if e.complexity.Annotation.Value == nil { 258 break 259 } 260 261 return e.complexity.Annotation.Value(childComplexity), true 262 263 case "CVE.Description": 264 if e.complexity.CVE.Description == nil { 265 break 266 } 267 268 return e.complexity.CVE.Description(childComplexity), true 269 270 case "CVE.Id": 271 if e.complexity.CVE.ID == nil { 272 break 273 } 274 275 return e.complexity.CVE.ID(childComplexity), true 276 277 case "CVE.PackageList": 278 if e.complexity.CVE.PackageList == nil { 279 break 280 } 281 282 return e.complexity.CVE.PackageList(childComplexity), true 283 284 case "CVE.Severity": 285 if e.complexity.CVE.Severity == nil { 286 break 287 } 288 289 return e.complexity.CVE.Severity(childComplexity), true 290 291 case "CVE.Title": 292 if e.complexity.CVE.Title == nil { 293 break 294 } 295 296 return e.complexity.CVE.Title(childComplexity), true 297 298 case "CVEResultForImage.CVEList": 299 if e.complexity.CVEResultForImage.CVEList == nil { 300 break 301 } 302 303 return e.complexity.CVEResultForImage.CVEList(childComplexity), true 304 305 case "CVEResultForImage.Page": 306 if e.complexity.CVEResultForImage.Page == nil { 307 break 308 } 309 310 return e.complexity.CVEResultForImage.Page(childComplexity), true 311 312 case "CVEResultForImage.Tag": 313 if e.complexity.CVEResultForImage.Tag == nil { 314 break 315 } 316 317 return e.complexity.CVEResultForImage.Tag(childComplexity), true 318 319 case "GlobalSearchResult.Images": 320 if e.complexity.GlobalSearchResult.Images == nil { 321 break 322 } 323 324 return e.complexity.GlobalSearchResult.Images(childComplexity), true 325 326 case "GlobalSearchResult.Layers": 327 if e.complexity.GlobalSearchResult.Layers == nil { 328 break 329 } 330 331 return e.complexity.GlobalSearchResult.Layers(childComplexity), true 332 333 case "GlobalSearchResult.Page": 334 if e.complexity.GlobalSearchResult.Page == nil { 335 break 336 } 337 338 return e.complexity.GlobalSearchResult.Page(childComplexity), true 339 340 case "GlobalSearchResult.Repos": 341 if e.complexity.GlobalSearchResult.Repos == nil { 342 break 343 } 344 345 return e.complexity.GlobalSearchResult.Repos(childComplexity), true 346 347 case "HistoryDescription.Author": 348 if e.complexity.HistoryDescription.Author == nil { 349 break 350 } 351 352 return e.complexity.HistoryDescription.Author(childComplexity), true 353 354 case "HistoryDescription.Comment": 355 if e.complexity.HistoryDescription.Comment == nil { 356 break 357 } 358 359 return e.complexity.HistoryDescription.Comment(childComplexity), true 360 361 case "HistoryDescription.Created": 362 if e.complexity.HistoryDescription.Created == nil { 363 break 364 } 365 366 return e.complexity.HistoryDescription.Created(childComplexity), true 367 368 case "HistoryDescription.CreatedBy": 369 if e.complexity.HistoryDescription.CreatedBy == nil { 370 break 371 } 372 373 return e.complexity.HistoryDescription.CreatedBy(childComplexity), true 374 375 case "HistoryDescription.EmptyLayer": 376 if e.complexity.HistoryDescription.EmptyLayer == nil { 377 break 378 } 379 380 return e.complexity.HistoryDescription.EmptyLayer(childComplexity), true 381 382 case "ImageSummary.Authors": 383 if e.complexity.ImageSummary.Authors == nil { 384 break 385 } 386 387 return e.complexity.ImageSummary.Authors(childComplexity), true 388 389 case "ImageSummary.Description": 390 if e.complexity.ImageSummary.Description == nil { 391 break 392 } 393 394 return e.complexity.ImageSummary.Description(childComplexity), true 395 396 case "ImageSummary.Digest": 397 if e.complexity.ImageSummary.Digest == nil { 398 break 399 } 400 401 return e.complexity.ImageSummary.Digest(childComplexity), true 402 403 case "ImageSummary.Documentation": 404 if e.complexity.ImageSummary.Documentation == nil { 405 break 406 } 407 408 return e.complexity.ImageSummary.Documentation(childComplexity), true 409 410 case "ImageSummary.DownloadCount": 411 if e.complexity.ImageSummary.DownloadCount == nil { 412 break 413 } 414 415 return e.complexity.ImageSummary.DownloadCount(childComplexity), true 416 417 case "ImageSummary.IsSigned": 418 if e.complexity.ImageSummary.IsSigned == nil { 419 break 420 } 421 422 return e.complexity.ImageSummary.IsSigned(childComplexity), true 423 424 case "ImageSummary.Labels": 425 if e.complexity.ImageSummary.Labels == nil { 426 break 427 } 428 429 return e.complexity.ImageSummary.Labels(childComplexity), true 430 431 case "ImageSummary.LastUpdated": 432 if e.complexity.ImageSummary.LastUpdated == nil { 433 break 434 } 435 436 return e.complexity.ImageSummary.LastUpdated(childComplexity), true 437 438 case "ImageSummary.Licenses": 439 if e.complexity.ImageSummary.Licenses == nil { 440 break 441 } 442 443 return e.complexity.ImageSummary.Licenses(childComplexity), true 444 445 case "ImageSummary.Manifests": 446 if e.complexity.ImageSummary.Manifests == nil { 447 break 448 } 449 450 return e.complexity.ImageSummary.Manifests(childComplexity), true 451 452 case "ImageSummary.MediaType": 453 if e.complexity.ImageSummary.MediaType == nil { 454 break 455 } 456 457 return e.complexity.ImageSummary.MediaType(childComplexity), true 458 459 case "ImageSummary.Referrers": 460 if e.complexity.ImageSummary.Referrers == nil { 461 break 462 } 463 464 return e.complexity.ImageSummary.Referrers(childComplexity), true 465 466 case "ImageSummary.RepoName": 467 if e.complexity.ImageSummary.RepoName == nil { 468 break 469 } 470 471 return e.complexity.ImageSummary.RepoName(childComplexity), true 472 473 case "ImageSummary.SignatureInfo": 474 if e.complexity.ImageSummary.SignatureInfo == nil { 475 break 476 } 477 478 return e.complexity.ImageSummary.SignatureInfo(childComplexity), true 479 480 case "ImageSummary.Size": 481 if e.complexity.ImageSummary.Size == nil { 482 break 483 } 484 485 return e.complexity.ImageSummary.Size(childComplexity), true 486 487 case "ImageSummary.Source": 488 if e.complexity.ImageSummary.Source == nil { 489 break 490 } 491 492 return e.complexity.ImageSummary.Source(childComplexity), true 493 494 case "ImageSummary.Tag": 495 if e.complexity.ImageSummary.Tag == nil { 496 break 497 } 498 499 return e.complexity.ImageSummary.Tag(childComplexity), true 500 501 case "ImageSummary.Title": 502 if e.complexity.ImageSummary.Title == nil { 503 break 504 } 505 506 return e.complexity.ImageSummary.Title(childComplexity), true 507 508 case "ImageSummary.Vendor": 509 if e.complexity.ImageSummary.Vendor == nil { 510 break 511 } 512 513 return e.complexity.ImageSummary.Vendor(childComplexity), true 514 515 case "ImageSummary.Vulnerabilities": 516 if e.complexity.ImageSummary.Vulnerabilities == nil { 517 break 518 } 519 520 return e.complexity.ImageSummary.Vulnerabilities(childComplexity), true 521 522 case "ImageVulnerabilitySummary.Count": 523 if e.complexity.ImageVulnerabilitySummary.Count == nil { 524 break 525 } 526 527 return e.complexity.ImageVulnerabilitySummary.Count(childComplexity), true 528 529 case "ImageVulnerabilitySummary.MaxSeverity": 530 if e.complexity.ImageVulnerabilitySummary.MaxSeverity == nil { 531 break 532 } 533 534 return e.complexity.ImageVulnerabilitySummary.MaxSeverity(childComplexity), true 535 536 case "LayerHistory.HistoryDescription": 537 if e.complexity.LayerHistory.HistoryDescription == nil { 538 break 539 } 540 541 return e.complexity.LayerHistory.HistoryDescription(childComplexity), true 542 543 case "LayerHistory.Layer": 544 if e.complexity.LayerHistory.Layer == nil { 545 break 546 } 547 548 return e.complexity.LayerHistory.Layer(childComplexity), true 549 550 case "LayerSummary.Digest": 551 if e.complexity.LayerSummary.Digest == nil { 552 break 553 } 554 555 return e.complexity.LayerSummary.Digest(childComplexity), true 556 557 case "LayerSummary.Size": 558 if e.complexity.LayerSummary.Size == nil { 559 break 560 } 561 562 return e.complexity.LayerSummary.Size(childComplexity), true 563 564 case "ManifestSummary.ArtifactType": 565 if e.complexity.ManifestSummary.ArtifactType == nil { 566 break 567 } 568 569 return e.complexity.ManifestSummary.ArtifactType(childComplexity), true 570 571 case "ManifestSummary.ConfigDigest": 572 if e.complexity.ManifestSummary.ConfigDigest == nil { 573 break 574 } 575 576 return e.complexity.ManifestSummary.ConfigDigest(childComplexity), true 577 578 case "ManifestSummary.Digest": 579 if e.complexity.ManifestSummary.Digest == nil { 580 break 581 } 582 583 return e.complexity.ManifestSummary.Digest(childComplexity), true 584 585 case "ManifestSummary.DownloadCount": 586 if e.complexity.ManifestSummary.DownloadCount == nil { 587 break 588 } 589 590 return e.complexity.ManifestSummary.DownloadCount(childComplexity), true 591 592 case "ManifestSummary.History": 593 if e.complexity.ManifestSummary.History == nil { 594 break 595 } 596 597 return e.complexity.ManifestSummary.History(childComplexity), true 598 599 case "ManifestSummary.IsSigned": 600 if e.complexity.ManifestSummary.IsSigned == nil { 601 break 602 } 603 604 return e.complexity.ManifestSummary.IsSigned(childComplexity), true 605 606 case "ManifestSummary.LastUpdated": 607 if e.complexity.ManifestSummary.LastUpdated == nil { 608 break 609 } 610 611 return e.complexity.ManifestSummary.LastUpdated(childComplexity), true 612 613 case "ManifestSummary.Layers": 614 if e.complexity.ManifestSummary.Layers == nil { 615 break 616 } 617 618 return e.complexity.ManifestSummary.Layers(childComplexity), true 619 620 case "ManifestSummary.Platform": 621 if e.complexity.ManifestSummary.Platform == nil { 622 break 623 } 624 625 return e.complexity.ManifestSummary.Platform(childComplexity), true 626 627 case "ManifestSummary.Referrers": 628 if e.complexity.ManifestSummary.Referrers == nil { 629 break 630 } 631 632 return e.complexity.ManifestSummary.Referrers(childComplexity), true 633 634 case "ManifestSummary.SignatureInfo": 635 if e.complexity.ManifestSummary.SignatureInfo == nil { 636 break 637 } 638 639 return e.complexity.ManifestSummary.SignatureInfo(childComplexity), true 640 641 case "ManifestSummary.Size": 642 if e.complexity.ManifestSummary.Size == nil { 643 break 644 } 645 646 return e.complexity.ManifestSummary.Size(childComplexity), true 647 648 case "ManifestSummary.Vulnerabilities": 649 if e.complexity.ManifestSummary.Vulnerabilities == nil { 650 break 651 } 652 653 return e.complexity.ManifestSummary.Vulnerabilities(childComplexity), true 654 655 case "PackageInfo.FixedVersion": 656 if e.complexity.PackageInfo.FixedVersion == nil { 657 break 658 } 659 660 return e.complexity.PackageInfo.FixedVersion(childComplexity), true 661 662 case "PackageInfo.InstalledVersion": 663 if e.complexity.PackageInfo.InstalledVersion == nil { 664 break 665 } 666 667 return e.complexity.PackageInfo.InstalledVersion(childComplexity), true 668 669 case "PackageInfo.Name": 670 if e.complexity.PackageInfo.Name == nil { 671 break 672 } 673 674 return e.complexity.PackageInfo.Name(childComplexity), true 675 676 case "PageInfo.ItemCount": 677 if e.complexity.PageInfo.ItemCount == nil { 678 break 679 } 680 681 return e.complexity.PageInfo.ItemCount(childComplexity), true 682 683 case "PageInfo.TotalCount": 684 if e.complexity.PageInfo.TotalCount == nil { 685 break 686 } 687 688 return e.complexity.PageInfo.TotalCount(childComplexity), true 689 690 case "PaginatedImagesResult.Page": 691 if e.complexity.PaginatedImagesResult.Page == nil { 692 break 693 } 694 695 return e.complexity.PaginatedImagesResult.Page(childComplexity), true 696 697 case "PaginatedImagesResult.Results": 698 if e.complexity.PaginatedImagesResult.Results == nil { 699 break 700 } 701 702 return e.complexity.PaginatedImagesResult.Results(childComplexity), true 703 704 case "PaginatedReposResult.Page": 705 if e.complexity.PaginatedReposResult.Page == nil { 706 break 707 } 708 709 return e.complexity.PaginatedReposResult.Page(childComplexity), true 710 711 case "PaginatedReposResult.Results": 712 if e.complexity.PaginatedReposResult.Results == nil { 713 break 714 } 715 716 return e.complexity.PaginatedReposResult.Results(childComplexity), true 717 718 case "Platform.Arch": 719 if e.complexity.Platform.Arch == nil { 720 break 721 } 722 723 return e.complexity.Platform.Arch(childComplexity), true 724 725 case "Platform.Os": 726 if e.complexity.Platform.Os == nil { 727 break 728 } 729 730 return e.complexity.Platform.Os(childComplexity), true 731 732 case "Query.BaseImageList": 733 if e.complexity.Query.BaseImageList == nil { 734 break 735 } 736 737 args, err := ec.field_Query_BaseImageList_args(context.TODO(), rawArgs) 738 if err != nil { 739 return 0, false 740 } 741 742 return e.complexity.Query.BaseImageList(childComplexity, args["image"].(string), args["digest"].(*string), args["requestedPage"].(*PageInput)), true 743 744 case "Query.BookmarkedRepos": 745 if e.complexity.Query.BookmarkedRepos == nil { 746 break 747 } 748 749 args, err := ec.field_Query_BookmarkedRepos_args(context.TODO(), rawArgs) 750 if err != nil { 751 return 0, false 752 } 753 754 return e.complexity.Query.BookmarkedRepos(childComplexity, args["requestedPage"].(*PageInput)), true 755 756 case "Query.CVEListForImage": 757 if e.complexity.Query.CVEListForImage == nil { 758 break 759 } 760 761 args, err := ec.field_Query_CVEListForImage_args(context.TODO(), rawArgs) 762 if err != nil { 763 return 0, false 764 } 765 766 return e.complexity.Query.CVEListForImage(childComplexity, args["image"].(string), args["requestedPage"].(*PageInput), args["searchedCVE"].(*string)), true 767 768 case "Query.DerivedImageList": 769 if e.complexity.Query.DerivedImageList == nil { 770 break 771 } 772 773 args, err := ec.field_Query_DerivedImageList_args(context.TODO(), rawArgs) 774 if err != nil { 775 return 0, false 776 } 777 778 return e.complexity.Query.DerivedImageList(childComplexity, args["image"].(string), args["digest"].(*string), args["requestedPage"].(*PageInput)), true 779 780 case "Query.ExpandedRepoInfo": 781 if e.complexity.Query.ExpandedRepoInfo == nil { 782 break 783 } 784 785 args, err := ec.field_Query_ExpandedRepoInfo_args(context.TODO(), rawArgs) 786 if err != nil { 787 return 0, false 788 } 789 790 return e.complexity.Query.ExpandedRepoInfo(childComplexity, args["repo"].(string)), true 791 792 case "Query.GlobalSearch": 793 if e.complexity.Query.GlobalSearch == nil { 794 break 795 } 796 797 args, err := ec.field_Query_GlobalSearch_args(context.TODO(), rawArgs) 798 if err != nil { 799 return 0, false 800 } 801 802 return e.complexity.Query.GlobalSearch(childComplexity, args["query"].(string), args["filter"].(*Filter), args["requestedPage"].(*PageInput)), true 803 804 case "Query.Image": 805 if e.complexity.Query.Image == nil { 806 break 807 } 808 809 args, err := ec.field_Query_Image_args(context.TODO(), rawArgs) 810 if err != nil { 811 return 0, false 812 } 813 814 return e.complexity.Query.Image(childComplexity, args["image"].(string)), true 815 816 case "Query.ImageList": 817 if e.complexity.Query.ImageList == nil { 818 break 819 } 820 821 args, err := ec.field_Query_ImageList_args(context.TODO(), rawArgs) 822 if err != nil { 823 return 0, false 824 } 825 826 return e.complexity.Query.ImageList(childComplexity, args["repo"].(string), args["requestedPage"].(*PageInput)), true 827 828 case "Query.ImageListForCVE": 829 if e.complexity.Query.ImageListForCve == nil { 830 break 831 } 832 833 args, err := ec.field_Query_ImageListForCVE_args(context.TODO(), rawArgs) 834 if err != nil { 835 return 0, false 836 } 837 838 return e.complexity.Query.ImageListForCve(childComplexity, args["id"].(string), args["filter"].(*Filter), args["requestedPage"].(*PageInput)), true 839 840 case "Query.ImageListForDigest": 841 if e.complexity.Query.ImageListForDigest == nil { 842 break 843 } 844 845 args, err := ec.field_Query_ImageListForDigest_args(context.TODO(), rawArgs) 846 if err != nil { 847 return 0, false 848 } 849 850 return e.complexity.Query.ImageListForDigest(childComplexity, args["id"].(string), args["requestedPage"].(*PageInput)), true 851 852 case "Query.ImageListWithCVEFixed": 853 if e.complexity.Query.ImageListWithCVEFixed == nil { 854 break 855 } 856 857 args, err := ec.field_Query_ImageListWithCVEFixed_args(context.TODO(), rawArgs) 858 if err != nil { 859 return 0, false 860 } 861 862 return e.complexity.Query.ImageListWithCVEFixed(childComplexity, args["id"].(string), args["image"].(string), args["filter"].(*Filter), args["requestedPage"].(*PageInput)), true 863 864 case "Query.Referrers": 865 if e.complexity.Query.Referrers == nil { 866 break 867 } 868 869 args, err := ec.field_Query_Referrers_args(context.TODO(), rawArgs) 870 if err != nil { 871 return 0, false 872 } 873 874 return e.complexity.Query.Referrers(childComplexity, args["repo"].(string), args["digest"].(string), args["type"].([]string)), true 875 876 case "Query.RepoListWithNewestImage": 877 if e.complexity.Query.RepoListWithNewestImage == nil { 878 break 879 } 880 881 args, err := ec.field_Query_RepoListWithNewestImage_args(context.TODO(), rawArgs) 882 if err != nil { 883 return 0, false 884 } 885 886 return e.complexity.Query.RepoListWithNewestImage(childComplexity, args["requestedPage"].(*PageInput)), true 887 888 case "Query.StarredRepos": 889 if e.complexity.Query.StarredRepos == nil { 890 break 891 } 892 893 args, err := ec.field_Query_StarredRepos_args(context.TODO(), rawArgs) 894 if err != nil { 895 return 0, false 896 } 897 898 return e.complexity.Query.StarredRepos(childComplexity, args["requestedPage"].(*PageInput)), true 899 900 case "Referrer.Annotations": 901 if e.complexity.Referrer.Annotations == nil { 902 break 903 } 904 905 return e.complexity.Referrer.Annotations(childComplexity), true 906 907 case "Referrer.ArtifactType": 908 if e.complexity.Referrer.ArtifactType == nil { 909 break 910 } 911 912 return e.complexity.Referrer.ArtifactType(childComplexity), true 913 914 case "Referrer.Digest": 915 if e.complexity.Referrer.Digest == nil { 916 break 917 } 918 919 return e.complexity.Referrer.Digest(childComplexity), true 920 921 case "Referrer.MediaType": 922 if e.complexity.Referrer.MediaType == nil { 923 break 924 } 925 926 return e.complexity.Referrer.MediaType(childComplexity), true 927 928 case "Referrer.Size": 929 if e.complexity.Referrer.Size == nil { 930 break 931 } 932 933 return e.complexity.Referrer.Size(childComplexity), true 934 935 case "RepoInfo.Images": 936 if e.complexity.RepoInfo.Images == nil { 937 break 938 } 939 940 return e.complexity.RepoInfo.Images(childComplexity), true 941 942 case "RepoInfo.Summary": 943 if e.complexity.RepoInfo.Summary == nil { 944 break 945 } 946 947 return e.complexity.RepoInfo.Summary(childComplexity), true 948 949 case "RepoSummary.DownloadCount": 950 if e.complexity.RepoSummary.DownloadCount == nil { 951 break 952 } 953 954 return e.complexity.RepoSummary.DownloadCount(childComplexity), true 955 956 case "RepoSummary.IsBookmarked": 957 if e.complexity.RepoSummary.IsBookmarked == nil { 958 break 959 } 960 961 return e.complexity.RepoSummary.IsBookmarked(childComplexity), true 962 963 case "RepoSummary.IsStarred": 964 if e.complexity.RepoSummary.IsStarred == nil { 965 break 966 } 967 968 return e.complexity.RepoSummary.IsStarred(childComplexity), true 969 970 case "RepoSummary.LastUpdated": 971 if e.complexity.RepoSummary.LastUpdated == nil { 972 break 973 } 974 975 return e.complexity.RepoSummary.LastUpdated(childComplexity), true 976 977 case "RepoSummary.Name": 978 if e.complexity.RepoSummary.Name == nil { 979 break 980 } 981 982 return e.complexity.RepoSummary.Name(childComplexity), true 983 984 case "RepoSummary.NewestImage": 985 if e.complexity.RepoSummary.NewestImage == nil { 986 break 987 } 988 989 return e.complexity.RepoSummary.NewestImage(childComplexity), true 990 991 case "RepoSummary.Platforms": 992 if e.complexity.RepoSummary.Platforms == nil { 993 break 994 } 995 996 return e.complexity.RepoSummary.Platforms(childComplexity), true 997 998 case "RepoSummary.Rank": 999 if e.complexity.RepoSummary.Rank == nil { 1000 break 1001 } 1002 1003 return e.complexity.RepoSummary.Rank(childComplexity), true 1004 1005 case "RepoSummary.Size": 1006 if e.complexity.RepoSummary.Size == nil { 1007 break 1008 } 1009 1010 return e.complexity.RepoSummary.Size(childComplexity), true 1011 1012 case "RepoSummary.StarCount": 1013 if e.complexity.RepoSummary.StarCount == nil { 1014 break 1015 } 1016 1017 return e.complexity.RepoSummary.StarCount(childComplexity), true 1018 1019 case "RepoSummary.Vendors": 1020 if e.complexity.RepoSummary.Vendors == nil { 1021 break 1022 } 1023 1024 return e.complexity.RepoSummary.Vendors(childComplexity), true 1025 1026 case "SignatureSummary.Author": 1027 if e.complexity.SignatureSummary.Author == nil { 1028 break 1029 } 1030 1031 return e.complexity.SignatureSummary.Author(childComplexity), true 1032 1033 case "SignatureSummary.IsTrusted": 1034 if e.complexity.SignatureSummary.IsTrusted == nil { 1035 break 1036 } 1037 1038 return e.complexity.SignatureSummary.IsTrusted(childComplexity), true 1039 1040 case "SignatureSummary.Tool": 1041 if e.complexity.SignatureSummary.Tool == nil { 1042 break 1043 } 1044 1045 return e.complexity.SignatureSummary.Tool(childComplexity), true 1046 1047 } 1048 return 0, false 1049 } 1050 1051 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { 1052 rc := graphql.GetOperationContext(ctx) 1053 ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} 1054 inputUnmarshalMap := graphql.BuildUnmarshalerMap( 1055 ec.unmarshalInputFilter, 1056 ec.unmarshalInputPageInput, 1057 ) 1058 first := true 1059 1060 switch rc.Operation.Operation { 1061 case ast.Query: 1062 return func(ctx context.Context) *graphql.Response { 1063 var response graphql.Response 1064 var data graphql.Marshaler 1065 if first { 1066 first = false 1067 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) 1068 data = ec._Query(ctx, rc.Operation.SelectionSet) 1069 } else { 1070 if atomic.LoadInt32(&ec.pendingDeferred) > 0 { 1071 result := <-ec.deferredResults 1072 atomic.AddInt32(&ec.pendingDeferred, -1) 1073 data = result.Result 1074 response.Path = result.Path 1075 response.Label = result.Label 1076 response.Errors = result.Errors 1077 } else { 1078 return nil 1079 } 1080 } 1081 var buf bytes.Buffer 1082 data.MarshalGQL(&buf) 1083 response.Data = buf.Bytes() 1084 if atomic.LoadInt32(&ec.deferred) > 0 { 1085 hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 1086 response.HasNext = &hasNext 1087 } 1088 1089 return &response 1090 } 1091 1092 default: 1093 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) 1094 } 1095 } 1096 1097 type executionContext struct { 1098 *graphql.OperationContext 1099 *executableSchema 1100 deferred int32 1101 pendingDeferred int32 1102 deferredResults chan graphql.DeferredResult 1103 } 1104 1105 func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { 1106 atomic.AddInt32(&ec.pendingDeferred, 1) 1107 go func() { 1108 ctx := graphql.WithFreshResponseContext(dg.Context) 1109 dg.FieldSet.Dispatch(ctx) 1110 ds := graphql.DeferredResult{ 1111 Path: dg.Path, 1112 Label: dg.Label, 1113 Result: dg.FieldSet, 1114 Errors: graphql.GetErrors(ctx), 1115 } 1116 // null fields should bubble up 1117 if dg.FieldSet.Invalids > 0 { 1118 ds.Result = graphql.Null 1119 } 1120 ec.deferredResults <- ds 1121 }() 1122 } 1123 1124 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { 1125 if ec.DisableIntrospection { 1126 return nil, errors.New("introspection disabled") 1127 } 1128 return introspection.WrapSchema(ec.Schema()), nil 1129 } 1130 1131 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { 1132 if ec.DisableIntrospection { 1133 return nil, errors.New("introspection disabled") 1134 } 1135 return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil 1136 } 1137 1138 var sources = []*ast.Source{ 1139 {Name: "../schema.graphql", Input: `# Exclude these linters because current implementation of the clients would need an update 1140 # lint-disable fields-are-camel-cased, input-object-values-are-camel-cased 1141 # Exclude this linter as we have a different implementation for pagination 1142 # lint-disable relay-page-info-spec 1143 # Exclude this linters and fix the issues later 1144 # lint-disable type-fields-sorted-alphabetically, input-object-fields-sorted-alphabetically, enum-values-sorted-alphabetically 1145 1146 """ 1147 A timestamp 1148 """ 1149 scalar Time 1150 1151 """ 1152 Contains the tag of the image and a list of CVEs 1153 """ 1154 type CVEResultForImage { 1155 """ 1156 Tag affected by the CVEs 1157 """ 1158 Tag: String 1159 """ 1160 List of CVE objects which affect this specific image:tag 1161 """ 1162 CVEList: [CVE] 1163 """ 1164 The CVE pagination information, see PageInfo object for more details 1165 """ 1166 Page: PageInfo 1167 } 1168 1169 """ 1170 Contains various details about the CVE (Common Vulnerabilities and Exposures) 1171 and a list of PackageInfo about the affected packages 1172 """ 1173 type CVE { 1174 """ 1175 CVE ID 1176 """ 1177 Id: String 1178 """ 1179 A short title describing the CVE 1180 """ 1181 Title: String 1182 """ 1183 A detailed description of the CVE 1184 """ 1185 Description: String 1186 """ 1187 The impact the CVE has, one of "UNKNOWN", "LOW", "MEDIUM", "HIGH", "CRITICAL" 1188 """ 1189 Severity: String 1190 """ 1191 Information on the packages in which the CVE was found 1192 """ 1193 PackageList: [PackageInfo] 1194 } 1195 1196 """ 1197 Contains the name of the package, the current installed version and the version where the CVE was fixed 1198 """ 1199 type PackageInfo { 1200 """ 1201 Name of the package affected by a CVE 1202 """ 1203 Name: String 1204 """ 1205 Current version of the package, typically affected by the CVE 1206 """ 1207 InstalledVersion: String 1208 """ 1209 Minimum version of the package in which the CVE is fixed 1210 """ 1211 FixedVersion: String 1212 } 1213 1214 """ 1215 Contains details about the repo: both general information on the repo, and the list of images 1216 """ 1217 type RepoInfo { 1218 """ 1219 List of images in the repo 1220 """ 1221 Images: [ImageSummary] 1222 """ 1223 Details about the repository itself 1224 """ 1225 Summary: RepoSummary 1226 } 1227 1228 """ 1229 Search results, can contain images, repositories and layers 1230 """ 1231 type GlobalSearchResult { 1232 """ 1233 Pagination information 1234 """ 1235 Page: PageInfo 1236 """ 1237 List of images matching the search criteria 1238 """ 1239 Images: [ImageSummary] 1240 """ 1241 List of repositories matching the search criteria 1242 """ 1243 Repos: [RepoSummary] 1244 """ 1245 List of layers matching the search criteria 1246 NOTE: the actual search logic for layers is not implemented at the moment 1247 """ 1248 Layers: [LayerSummary] 1249 } 1250 1251 """ 1252 Details about a specific image, it is used by queries returning a list of images 1253 We define an image as a pairing or a repository and a tag belonging to that repository 1254 """ 1255 type ImageSummary { 1256 """ 1257 Name of the repository where the image is found 1258 """ 1259 RepoName: String 1260 """ 1261 Tag identifying the image within the repository 1262 """ 1263 Tag: String 1264 """ 1265 The digest of the descriptor of this image 1266 """ 1267 Digest: String 1268 """ 1269 The media type of the descriptor of this image 1270 """ 1271 MediaType: String 1272 """ 1273 List of manifests for all supported versions of the image for different operating systems and architectures 1274 """ 1275 Manifests: [ManifestSummary] 1276 """ 1277 Total size of the files associated with all images (manifest, config, layers) 1278 """ 1279 Size: String 1280 """ 1281 Number of downloads of the manifest of this image 1282 """ 1283 DownloadCount: Int 1284 """ 1285 Timestamp of the last modification done to the image (from config or the last updated layer) 1286 """ 1287 LastUpdated: Time 1288 """ 1289 Human-readable description of the software packaged in the image 1290 """ 1291 Description: String 1292 """ 1293 True if the image has a signature associated with it, false otherwise 1294 """ 1295 IsSigned: Boolean 1296 """ 1297 Info about signature validity 1298 """ 1299 SignatureInfo: [SignatureSummary] 1300 """ 1301 License(s) under which contained software is distributed as an SPDX License Expression 1302 """ 1303 Licenses: String # The value of the annotation if present, 'unknown' otherwise). 1304 """ 1305 Labels associated with this image 1306 NOTE: currently this field is unused 1307 """ 1308 Labels: String 1309 """ 1310 Human-readable title of the image 1311 """ 1312 Title: String 1313 """ 1314 URL to get source code for building the image 1315 """ 1316 Source: String 1317 """ 1318 URL to get documentation on the image 1319 """ 1320 Documentation: String 1321 """ 1322 Vendor associated with this image, the distributing entity, organization or individual 1323 """ 1324 Vendor: String 1325 """ 1326 Contact details of the people or organization responsible for the image 1327 """ 1328 Authors: String 1329 """ 1330 Short summary of the identified CVEs 1331 """ 1332 Vulnerabilities: ImageVulnerabilitySummary 1333 """ 1334 Information about objects that reference this image 1335 """ 1336 Referrers: [Referrer] 1337 } 1338 """ 1339 Details about a specific version of an image for a certain operating system and architecture. 1340 """ 1341 type ManifestSummary { 1342 """ 1343 Digest of the manifest file associated with this image 1344 """ 1345 Digest: String 1346 """ 1347 Digest of the config file associated with this image 1348 """ 1349 ConfigDigest: String 1350 """ 1351 Timestamp of the last update to an image inside this repository 1352 """ 1353 LastUpdated: Time 1354 """ 1355 Total size of the files associated with this manifest (manifest, config, layers) 1356 """ 1357 Size: String 1358 """ 1359 True if the manifest has a signature associated with it, false otherwise 1360 """ 1361 IsSigned: Boolean 1362 """ 1363 Info about signature validity 1364 """ 1365 SignatureInfo: [SignatureSummary] 1366 """ 1367 OS and architecture supported by this image 1368 """ 1369 Platform: Platform 1370 """ 1371 Total number of image manifest downloads from this repository 1372 """ 1373 DownloadCount: Int 1374 """ 1375 List of layers matching the search criteria 1376 NOTE: the actual search logic for layers is not implemented at the moment 1377 """ 1378 Layers: [LayerSummary] 1379 """ 1380 Information about the history of the specific image, see LayerHistory 1381 """ 1382 History: [LayerHistory] 1383 """ 1384 Short summary of the identified CVEs 1385 """ 1386 Vulnerabilities: ImageVulnerabilitySummary 1387 """ 1388 Information about objects that reference this image 1389 """ 1390 Referrers: [Referrer] 1391 """ 1392 Value of the artifactType field if present else the value of the config media type 1393 """ 1394 ArtifactType: String 1395 } 1396 1397 """ 1398 Contains summary of vulnerabilities found in a specific image 1399 """ 1400 type ImageVulnerabilitySummary { 1401 """ 1402 Maximum severity of all CVEs found in this image 1403 """ 1404 MaxSeverity: String 1405 """ 1406 Count of all CVEs found in this image 1407 """ 1408 Count: Int 1409 } 1410 1411 """ 1412 Details of a specific repo, it is used by queries returning a list of repos 1413 """ 1414 type RepoSummary { 1415 """ 1416 Name of the repository 1417 """ 1418 Name: String 1419 """ 1420 Timestamp of the last update to an image inside this repository 1421 """ 1422 LastUpdated: Time 1423 """ 1424 Total size of the files within this repository 1425 """ 1426 Size: String 1427 """ 1428 List of platforms supported by this repository 1429 """ 1430 Platforms: [Platform] 1431 """ 1432 Vendors associated with this image, the distributing entities, organizations or individuals 1433 """ 1434 Vendors: [String] 1435 """ 1436 Details of the newest image inside the repository 1437 NOTE: not the image with the ` + "`" + `latest` + "`" + ` tag, the one with the most recent created timestamp 1438 """ 1439 NewestImage: ImageSummary 1440 """ 1441 Total number of image manifest downloads from this repository 1442 """ 1443 DownloadCount: Int 1444 """ 1445 Number of stars attributed to this repository by users 1446 """ 1447 StarCount: Int 1448 """ 1449 True if the repository is bookmarked by the current user, false otherwise 1450 """ 1451 IsBookmarked: Boolean 1452 """ 1453 True if the repository is starred by the current user, false otherwise 1454 """ 1455 IsStarred: Boolean 1456 """ 1457 Rank represents how good the match was between the queried repo name and this repo summary. 1458 """ 1459 Rank: Int 1460 } 1461 1462 """ 1463 Contains details about a specific layer which is part of an image 1464 """ 1465 type LayerSummary { 1466 """ 1467 The size of the layer in bytes 1468 """ 1469 Size: String # Int64 is not supported. 1470 """ 1471 Digest of the layer content 1472 """ 1473 Digest: String 1474 } 1475 1476 """ 1477 Information on how a layer was created 1478 """ 1479 type HistoryDescription { 1480 """ 1481 Created is the time when the layer was created. 1482 """ 1483 Created: Time 1484 """ 1485 CreatedBy is the command which created the layer. 1486 """ 1487 CreatedBy: String 1488 """ 1489 Author is the author of the build point. 1490 """ 1491 Author: String 1492 """ 1493 Comment is a custom message set when creating the layer. 1494 """ 1495 Comment: String 1496 """ 1497 EmptyLayer is used to mark if the history item created a filesystem diff. 1498 """ 1499 EmptyLayer: Boolean 1500 } 1501 1502 """ 1503 Information about how/when a layer was built 1504 """ 1505 type LayerHistory { 1506 """ 1507 Information specific to the layer such as size and digest. 1508 """ 1509 Layer: LayerSummary 1510 """ 1511 Additional information about how the layer was created. 1512 """ 1513 HistoryDescription: HistoryDescription 1514 } 1515 1516 """ 1517 Annotation is Key:Value pair representing custom data which is otherwise 1518 not available in other fields. 1519 """ 1520 type Annotation { 1521 """ 1522 Custom key 1523 """ 1524 Key: String 1525 """ 1526 Value associated with the custom key 1527 """ 1528 Value: String 1529 } 1530 1531 """ 1532 A referrer is an object which has a reference to a another object 1533 """ 1534 type Referrer { 1535 """ 1536 Referrer MediaType 1537 See https://github.com/opencontainers/artifacts for more details 1538 """ 1539 MediaType: String 1540 """ 1541 Referrer ArtifactType 1542 See https://github.com/opencontainers/artifacts for more details 1543 """ 1544 ArtifactType: String 1545 """ 1546 Total size of the referrer files in bytes 1547 """ 1548 Size: Int 1549 """ 1550 Digest of the manifest file of the referrer 1551 """ 1552 Digest: String 1553 """ 1554 A list of annotations associated with this referrer 1555 """ 1556 Annotations: [Annotation]! 1557 } 1558 1559 """ 1560 Contains details about the OS and architecture of the image 1561 """ 1562 type Platform { 1563 """ 1564 The name of the operating system which the image is built to run on, 1565 Should be values listed in the Go Language document https://go.dev/doc/install/source#environment 1566 """ 1567 Os: String 1568 """ 1569 The name of the compilation architecture which the image is built to run on, 1570 Should be values listed in the Go Language document https://go.dev/doc/install/source#environment 1571 """ 1572 Arch: String 1573 } 1574 1575 """ 1576 Contains details about the signature 1577 """ 1578 type SignatureSummary { 1579 """ 1580 Tool is the tool used for signing image 1581 """ 1582 Tool: String 1583 """ 1584 True if the signature is trusted, false otherwise 1585 """ 1586 IsTrusted: Boolean 1587 """ 1588 Author is the author of the signature 1589 """ 1590 Author: String 1591 } 1592 1593 """ 1594 All sort criteria usable with pagination, some of these criteria applies only 1595 to certain queries. For example sort by severity is available for CVEs but not 1596 for repositories 1597 """ 1598 enum SortCriteria { 1599 """ 1600 How relevant the result is based on the user input used while searching 1601 Applies to: images and repositories 1602 """ 1603 RELEVANCE 1604 """ 1605 Sort by the most recently created timestamp of the images 1606 Applies to: images and repositories 1607 """ 1608 UPDATE_TIME 1609 """ 1610 Sort alphabetically ascending 1611 Applies to: images, repositories and CVEs 1612 """ 1613 ALPHABETIC_ASC 1614 """ 1615 Sort alphabetically descending 1616 Applies to: images, repositories and CVEs 1617 """ 1618 ALPHABETIC_DSC 1619 """ 1620 Sort from the most severe to the least severe 1621 Applies to: CVEs 1622 """ 1623 SEVERITY 1624 """ 1625 Sort by the total number of stars given by users 1626 Applies to: repositories 1627 """ 1628 STARS 1629 """ 1630 Sort by the total download count 1631 Applies to: repositories and images 1632 """ 1633 DOWNLOADS 1634 } 1635 1636 """ 1637 Information on current page returned by the API 1638 """ 1639 type PageInfo { 1640 """ 1641 The total number of objects on all pages 1642 """ 1643 TotalCount: Int! 1644 """ 1645 The number of objects in this page 1646 """ 1647 ItemCount: Int! 1648 } 1649 1650 """ 1651 Pagination parameters 1652 If PageInput is empty, the request should return all objects. 1653 """ 1654 input PageInput { 1655 """ 1656 The maximum amount of results to return for this page 1657 Negative values are not allowed 1658 """ 1659 limit: Int 1660 """ 1661 The results page number you want to receive 1662 Negative values are not allowed 1663 """ 1664 offset: Int 1665 """ 1666 The criteria used to sort the results on the page 1667 """ 1668 sortBy: SortCriteria 1669 } 1670 1671 """ 1672 Paginated list of RepoSummary objects 1673 """ 1674 type PaginatedReposResult { 1675 """ 1676 Information on the returned page 1677 """ 1678 Page: PageInfo 1679 """ 1680 List of repositories 1681 """ 1682 Results: [RepoSummary!]! 1683 } 1684 1685 """ 1686 Paginated list of ImageSummary objects 1687 """ 1688 type PaginatedImagesResult { 1689 """ 1690 Information on the returned page 1691 """ 1692 Page: PageInfo 1693 """ 1694 List of images 1695 """ 1696 Results: [ImageSummary!]! 1697 } 1698 1699 """ 1700 Apply various types of filters to the queries made for repositories and images 1701 For example we only want to display repositories which contain images with 1702 a certain OS ar Architecture. 1703 """ 1704 input Filter { 1705 """ 1706 Only return images or repositories supporting the operating systems in the list 1707 Should be values listed in the Go Language document https://go.dev/doc/install/source#environment 1708 """ 1709 Os: [String] 1710 """ 1711 Only return images or repositories supporting the build architectures in the list 1712 Should be values listed in the Go Language document https://go.dev/doc/install/source#environment 1713 """ 1714 Arch: [String] 1715 """ 1716 Only return images or repositories with at least one signature 1717 """ 1718 HasToBeSigned: Boolean 1719 """ 1720 Only returns images or repositories that are bookmarked or not bookmarked 1721 """ 1722 IsBookmarked: Boolean 1723 """ 1724 Only returns images or repositories that are starred or not starred 1725 """ 1726 IsStarred: Boolean 1727 } 1728 1729 """ 1730 Queries supported by the zot server 1731 """ 1732 type Query { 1733 """ 1734 Returns a CVE list for the image specified in the argument 1735 """ 1736 CVEListForImage( 1737 "Image name in format ` + "`" + `repository:tag` + "`" + ` or ` + "`" + `repository@digest` + "`" + `" 1738 image: String!, 1739 "Sets the parameters of the requested page" 1740 requestedPage: PageInput 1741 "Search term for specific CVE by title/id" 1742 searchedCVE: String 1743 ): CVEResultForImage! 1744 1745 """ 1746 Returns a list of images vulnerable to the CVE of the specified ID 1747 """ 1748 ImageListForCVE( 1749 "CVE ID" 1750 id: String!, 1751 "Filter to apply before returning the results" 1752 filter: Filter, 1753 "Sets the parameters of the requested page" 1754 requestedPage: PageInput 1755 ): PaginatedImagesResult! 1756 1757 """ 1758 Returns a list of images that are no longer vulnerable to the CVE of the specified ID, 1759 from the specified repository 1760 """ 1761 ImageListWithCVEFixed( 1762 "CVE ID" 1763 id: String!, 1764 "Repository name" 1765 image: String!, 1766 "Filter to apply before returning the results" 1767 filter: Filter, 1768 "Sets the parameters of the requested page" 1769 requestedPage: PageInput 1770 ): PaginatedImagesResult! 1771 1772 """ 1773 Returns a list of images which contain the specified digest 1774 """ 1775 ImageListForDigest( 1776 "Digest to be used in searching for images" 1777 id: String!, 1778 "Sets the parameters of the requested page" 1779 requestedPage: PageInput 1780 ): PaginatedImagesResult! 1781 1782 """ 1783 Returns a list of repositories with the newest tag (most recently created timestamp) 1784 """ 1785 RepoListWithNewestImage( 1786 "Sets the parameters of the requested page" 1787 requestedPage: PageInput 1788 ): PaginatedReposResult! 1789 1790 """ 1791 Returns all the images from the specified repository | from all repositories if specified repository is "" 1792 """ 1793 ImageList( 1794 "Repository name" 1795 repo: String!, 1796 "Sets the parameters of the requested page" 1797 requestedPage: PageInput 1798 ): PaginatedImagesResult! 1799 1800 """ 1801 Obtain detailed information about a repository and container images within 1802 """ 1803 ExpandedRepoInfo( 1804 "Repository name" 1805 repo: String! 1806 ): RepoInfo! 1807 1808 """ 1809 Searches within repos, images, and layers 1810 """ 1811 GlobalSearch( 1812 """ 1813 Query string, searches for repository names by default, 1814 when containing ` + "`" + `:` + "`" + ` it searches for tags inside a repository 1815 """ 1816 query: String!, 1817 "Filter to apply on the matches" 1818 filter: Filter, 1819 "Sets the parameters of the requested page" 1820 requestedPage: PageInput 1821 ): GlobalSearchResult! 1822 1823 """ 1824 List of images which use the argument image 1825 """ 1826 DerivedImageList( 1827 "Image name in the format ` + "`" + `repository:tag` + "`" + `" 1828 image: String!, 1829 "Digest of a specific manifest inside the image. When null whole image is considered" 1830 digest: String, 1831 "Sets the parameters of the requested page" 1832 requestedPage: PageInput 1833 ): PaginatedImagesResult! 1834 1835 """ 1836 List of images on which the argument image depends on 1837 """ 1838 BaseImageList( 1839 "Image name in the format ` + "`" + `repository:tag` + "`" + `" 1840 image: String!, 1841 "Digest of a specific manifest inside the image. When null whole image is considered" 1842 digest: String, 1843 "Sets the parameters of the requested page" 1844 requestedPage: PageInput 1845 ): PaginatedImagesResult! 1846 1847 """ 1848 Search for a specific image using its name 1849 """ 1850 Image( 1851 "Image name in the format ` + "`" + `repository:tag` + "`" + `" 1852 image: String! 1853 ): ImageSummary! 1854 1855 """ 1856 Returns a list of descriptors of an image or artifact manifest that are found in a <repo> and have a subject field of <digest> 1857 Can be filtered based on a specific artifact type <type> 1858 """ 1859 Referrers( 1860 "Repository name" 1861 repo: String!, 1862 "Digest the referrers are referring to" 1863 digest: String!, 1864 "Types of artifacts to return in the referrer list" 1865 type: [String!] 1866 ): [Referrer]! 1867 1868 """ 1869 Receive RepoSummaries of repos starred by current user 1870 """ 1871 StarredRepos( 1872 "Sets the parameters of the requested page (how many to include and offset)" 1873 requestedPage: PageInput 1874 ): PaginatedReposResult! 1875 1876 """ 1877 Receive RepoSummaries of repos bookmarked by current user 1878 """ 1879 BookmarkedRepos( 1880 "Sets the parameters of the requested page (how many to include and offset)" 1881 requestedPage: PageInput 1882 ): PaginatedReposResult! 1883 } 1884 `, BuiltIn: false}, 1885 } 1886 var parsedSchema = gqlparser.MustLoadSchema(sources...) 1887 1888 // endregion ************************** generated!.gotpl ************************** 1889 1890 // region ***************************** args.gotpl ***************************** 1891 1892 func (ec *executionContext) field_Query_BaseImageList_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 1893 var err error 1894 args := map[string]interface{}{} 1895 var arg0 string 1896 if tmp, ok := rawArgs["image"]; ok { 1897 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 1898 arg0, err = ec.unmarshalNString2string(ctx, tmp) 1899 if err != nil { 1900 return nil, err 1901 } 1902 } 1903 args["image"] = arg0 1904 var arg1 *string 1905 if tmp, ok := rawArgs["digest"]; ok { 1906 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("digest")) 1907 arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 1908 if err != nil { 1909 return nil, err 1910 } 1911 } 1912 args["digest"] = arg1 1913 var arg2 *PageInput 1914 if tmp, ok := rawArgs["requestedPage"]; ok { 1915 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 1916 arg2, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 1917 if err != nil { 1918 return nil, err 1919 } 1920 } 1921 args["requestedPage"] = arg2 1922 return args, nil 1923 } 1924 1925 func (ec *executionContext) field_Query_BookmarkedRepos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 1926 var err error 1927 args := map[string]interface{}{} 1928 var arg0 *PageInput 1929 if tmp, ok := rawArgs["requestedPage"]; ok { 1930 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 1931 arg0, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 1932 if err != nil { 1933 return nil, err 1934 } 1935 } 1936 args["requestedPage"] = arg0 1937 return args, nil 1938 } 1939 1940 func (ec *executionContext) field_Query_CVEListForImage_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 1941 var err error 1942 args := map[string]interface{}{} 1943 var arg0 string 1944 if tmp, ok := rawArgs["image"]; ok { 1945 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 1946 arg0, err = ec.unmarshalNString2string(ctx, tmp) 1947 if err != nil { 1948 return nil, err 1949 } 1950 } 1951 args["image"] = arg0 1952 var arg1 *PageInput 1953 if tmp, ok := rawArgs["requestedPage"]; ok { 1954 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 1955 arg1, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 1956 if err != nil { 1957 return nil, err 1958 } 1959 } 1960 args["requestedPage"] = arg1 1961 var arg2 *string 1962 if tmp, ok := rawArgs["searchedCVE"]; ok { 1963 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("searchedCVE")) 1964 arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 1965 if err != nil { 1966 return nil, err 1967 } 1968 } 1969 args["searchedCVE"] = arg2 1970 return args, nil 1971 } 1972 1973 func (ec *executionContext) field_Query_DerivedImageList_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 1974 var err error 1975 args := map[string]interface{}{} 1976 var arg0 string 1977 if tmp, ok := rawArgs["image"]; ok { 1978 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 1979 arg0, err = ec.unmarshalNString2string(ctx, tmp) 1980 if err != nil { 1981 return nil, err 1982 } 1983 } 1984 args["image"] = arg0 1985 var arg1 *string 1986 if tmp, ok := rawArgs["digest"]; ok { 1987 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("digest")) 1988 arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 1989 if err != nil { 1990 return nil, err 1991 } 1992 } 1993 args["digest"] = arg1 1994 var arg2 *PageInput 1995 if tmp, ok := rawArgs["requestedPage"]; ok { 1996 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 1997 arg2, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 1998 if err != nil { 1999 return nil, err 2000 } 2001 } 2002 args["requestedPage"] = arg2 2003 return args, nil 2004 } 2005 2006 func (ec *executionContext) field_Query_ExpandedRepoInfo_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2007 var err error 2008 args := map[string]interface{}{} 2009 var arg0 string 2010 if tmp, ok := rawArgs["repo"]; ok { 2011 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repo")) 2012 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2013 if err != nil { 2014 return nil, err 2015 } 2016 } 2017 args["repo"] = arg0 2018 return args, nil 2019 } 2020 2021 func (ec *executionContext) field_Query_GlobalSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2022 var err error 2023 args := map[string]interface{}{} 2024 var arg0 string 2025 if tmp, ok := rawArgs["query"]; ok { 2026 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) 2027 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2028 if err != nil { 2029 return nil, err 2030 } 2031 } 2032 args["query"] = arg0 2033 var arg1 *Filter 2034 if tmp, ok := rawArgs["filter"]; ok { 2035 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) 2036 arg1, err = ec.unmarshalOFilter2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐFilter(ctx, tmp) 2037 if err != nil { 2038 return nil, err 2039 } 2040 } 2041 args["filter"] = arg1 2042 var arg2 *PageInput 2043 if tmp, ok := rawArgs["requestedPage"]; ok { 2044 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2045 arg2, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2046 if err != nil { 2047 return nil, err 2048 } 2049 } 2050 args["requestedPage"] = arg2 2051 return args, nil 2052 } 2053 2054 func (ec *executionContext) field_Query_ImageListForCVE_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2055 var err error 2056 args := map[string]interface{}{} 2057 var arg0 string 2058 if tmp, ok := rawArgs["id"]; ok { 2059 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 2060 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2061 if err != nil { 2062 return nil, err 2063 } 2064 } 2065 args["id"] = arg0 2066 var arg1 *Filter 2067 if tmp, ok := rawArgs["filter"]; ok { 2068 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) 2069 arg1, err = ec.unmarshalOFilter2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐFilter(ctx, tmp) 2070 if err != nil { 2071 return nil, err 2072 } 2073 } 2074 args["filter"] = arg1 2075 var arg2 *PageInput 2076 if tmp, ok := rawArgs["requestedPage"]; ok { 2077 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2078 arg2, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2079 if err != nil { 2080 return nil, err 2081 } 2082 } 2083 args["requestedPage"] = arg2 2084 return args, nil 2085 } 2086 2087 func (ec *executionContext) field_Query_ImageListForDigest_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2088 var err error 2089 args := map[string]interface{}{} 2090 var arg0 string 2091 if tmp, ok := rawArgs["id"]; ok { 2092 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 2093 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2094 if err != nil { 2095 return nil, err 2096 } 2097 } 2098 args["id"] = arg0 2099 var arg1 *PageInput 2100 if tmp, ok := rawArgs["requestedPage"]; ok { 2101 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2102 arg1, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2103 if err != nil { 2104 return nil, err 2105 } 2106 } 2107 args["requestedPage"] = arg1 2108 return args, nil 2109 } 2110 2111 func (ec *executionContext) field_Query_ImageListWithCVEFixed_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2112 var err error 2113 args := map[string]interface{}{} 2114 var arg0 string 2115 if tmp, ok := rawArgs["id"]; ok { 2116 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 2117 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2118 if err != nil { 2119 return nil, err 2120 } 2121 } 2122 args["id"] = arg0 2123 var arg1 string 2124 if tmp, ok := rawArgs["image"]; ok { 2125 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 2126 arg1, err = ec.unmarshalNString2string(ctx, tmp) 2127 if err != nil { 2128 return nil, err 2129 } 2130 } 2131 args["image"] = arg1 2132 var arg2 *Filter 2133 if tmp, ok := rawArgs["filter"]; ok { 2134 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) 2135 arg2, err = ec.unmarshalOFilter2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐFilter(ctx, tmp) 2136 if err != nil { 2137 return nil, err 2138 } 2139 } 2140 args["filter"] = arg2 2141 var arg3 *PageInput 2142 if tmp, ok := rawArgs["requestedPage"]; ok { 2143 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2144 arg3, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2145 if err != nil { 2146 return nil, err 2147 } 2148 } 2149 args["requestedPage"] = arg3 2150 return args, nil 2151 } 2152 2153 func (ec *executionContext) field_Query_ImageList_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2154 var err error 2155 args := map[string]interface{}{} 2156 var arg0 string 2157 if tmp, ok := rawArgs["repo"]; ok { 2158 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repo")) 2159 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2160 if err != nil { 2161 return nil, err 2162 } 2163 } 2164 args["repo"] = arg0 2165 var arg1 *PageInput 2166 if tmp, ok := rawArgs["requestedPage"]; ok { 2167 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2168 arg1, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2169 if err != nil { 2170 return nil, err 2171 } 2172 } 2173 args["requestedPage"] = arg1 2174 return args, nil 2175 } 2176 2177 func (ec *executionContext) field_Query_Image_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2178 var err error 2179 args := map[string]interface{}{} 2180 var arg0 string 2181 if tmp, ok := rawArgs["image"]; ok { 2182 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) 2183 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2184 if err != nil { 2185 return nil, err 2186 } 2187 } 2188 args["image"] = arg0 2189 return args, nil 2190 } 2191 2192 func (ec *executionContext) field_Query_Referrers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2193 var err error 2194 args := map[string]interface{}{} 2195 var arg0 string 2196 if tmp, ok := rawArgs["repo"]; ok { 2197 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repo")) 2198 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2199 if err != nil { 2200 return nil, err 2201 } 2202 } 2203 args["repo"] = arg0 2204 var arg1 string 2205 if tmp, ok := rawArgs["digest"]; ok { 2206 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("digest")) 2207 arg1, err = ec.unmarshalNString2string(ctx, tmp) 2208 if err != nil { 2209 return nil, err 2210 } 2211 } 2212 args["digest"] = arg1 2213 var arg2 []string 2214 if tmp, ok := rawArgs["type"]; ok { 2215 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) 2216 arg2, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) 2217 if err != nil { 2218 return nil, err 2219 } 2220 } 2221 args["type"] = arg2 2222 return args, nil 2223 } 2224 2225 func (ec *executionContext) field_Query_RepoListWithNewestImage_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2226 var err error 2227 args := map[string]interface{}{} 2228 var arg0 *PageInput 2229 if tmp, ok := rawArgs["requestedPage"]; ok { 2230 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2231 arg0, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2232 if err != nil { 2233 return nil, err 2234 } 2235 } 2236 args["requestedPage"] = arg0 2237 return args, nil 2238 } 2239 2240 func (ec *executionContext) field_Query_StarredRepos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2241 var err error 2242 args := map[string]interface{}{} 2243 var arg0 *PageInput 2244 if tmp, ok := rawArgs["requestedPage"]; ok { 2245 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestedPage")) 2246 arg0, err = ec.unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx, tmp) 2247 if err != nil { 2248 return nil, err 2249 } 2250 } 2251 args["requestedPage"] = arg0 2252 return args, nil 2253 } 2254 2255 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2256 var err error 2257 args := map[string]interface{}{} 2258 var arg0 string 2259 if tmp, ok := rawArgs["name"]; ok { 2260 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 2261 arg0, err = ec.unmarshalNString2string(ctx, tmp) 2262 if err != nil { 2263 return nil, err 2264 } 2265 } 2266 args["name"] = arg0 2267 return args, nil 2268 } 2269 2270 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2271 var err error 2272 args := map[string]interface{}{} 2273 var arg0 bool 2274 if tmp, ok := rawArgs["includeDeprecated"]; ok { 2275 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 2276 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 2277 if err != nil { 2278 return nil, err 2279 } 2280 } 2281 args["includeDeprecated"] = arg0 2282 return args, nil 2283 } 2284 2285 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 2286 var err error 2287 args := map[string]interface{}{} 2288 var arg0 bool 2289 if tmp, ok := rawArgs["includeDeprecated"]; ok { 2290 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 2291 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 2292 if err != nil { 2293 return nil, err 2294 } 2295 } 2296 args["includeDeprecated"] = arg0 2297 return args, nil 2298 } 2299 2300 // endregion ***************************** args.gotpl ***************************** 2301 2302 // region ************************** directives.gotpl ************************** 2303 2304 // endregion ************************** directives.gotpl ************************** 2305 2306 // region **************************** field.gotpl ***************************** 2307 2308 func (ec *executionContext) _Annotation_Key(ctx context.Context, field graphql.CollectedField, obj *Annotation) (ret graphql.Marshaler) { 2309 fc, err := ec.fieldContext_Annotation_Key(ctx, field) 2310 if err != nil { 2311 return graphql.Null 2312 } 2313 ctx = graphql.WithFieldContext(ctx, fc) 2314 defer func() { 2315 if r := recover(); r != nil { 2316 ec.Error(ctx, ec.Recover(ctx, r)) 2317 ret = graphql.Null 2318 } 2319 }() 2320 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2321 ctx = rctx // use context from middleware stack in children 2322 return obj.Key, nil 2323 }) 2324 if err != nil { 2325 ec.Error(ctx, err) 2326 return graphql.Null 2327 } 2328 if resTmp == nil { 2329 return graphql.Null 2330 } 2331 res := resTmp.(*string) 2332 fc.Result = res 2333 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2334 } 2335 2336 func (ec *executionContext) fieldContext_Annotation_Key(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2337 fc = &graphql.FieldContext{ 2338 Object: "Annotation", 2339 Field: field, 2340 IsMethod: false, 2341 IsResolver: false, 2342 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2343 return nil, errors.New("field of type String does not have child fields") 2344 }, 2345 } 2346 return fc, nil 2347 } 2348 2349 func (ec *executionContext) _Annotation_Value(ctx context.Context, field graphql.CollectedField, obj *Annotation) (ret graphql.Marshaler) { 2350 fc, err := ec.fieldContext_Annotation_Value(ctx, field) 2351 if err != nil { 2352 return graphql.Null 2353 } 2354 ctx = graphql.WithFieldContext(ctx, fc) 2355 defer func() { 2356 if r := recover(); r != nil { 2357 ec.Error(ctx, ec.Recover(ctx, r)) 2358 ret = graphql.Null 2359 } 2360 }() 2361 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2362 ctx = rctx // use context from middleware stack in children 2363 return obj.Value, nil 2364 }) 2365 if err != nil { 2366 ec.Error(ctx, err) 2367 return graphql.Null 2368 } 2369 if resTmp == nil { 2370 return graphql.Null 2371 } 2372 res := resTmp.(*string) 2373 fc.Result = res 2374 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2375 } 2376 2377 func (ec *executionContext) fieldContext_Annotation_Value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2378 fc = &graphql.FieldContext{ 2379 Object: "Annotation", 2380 Field: field, 2381 IsMethod: false, 2382 IsResolver: false, 2383 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2384 return nil, errors.New("field of type String does not have child fields") 2385 }, 2386 } 2387 return fc, nil 2388 } 2389 2390 func (ec *executionContext) _CVE_Id(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2391 fc, err := ec.fieldContext_CVE_Id(ctx, field) 2392 if err != nil { 2393 return graphql.Null 2394 } 2395 ctx = graphql.WithFieldContext(ctx, fc) 2396 defer func() { 2397 if r := recover(); r != nil { 2398 ec.Error(ctx, ec.Recover(ctx, r)) 2399 ret = graphql.Null 2400 } 2401 }() 2402 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2403 ctx = rctx // use context from middleware stack in children 2404 return obj.ID, nil 2405 }) 2406 if err != nil { 2407 ec.Error(ctx, err) 2408 return graphql.Null 2409 } 2410 if resTmp == nil { 2411 return graphql.Null 2412 } 2413 res := resTmp.(*string) 2414 fc.Result = res 2415 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2416 } 2417 2418 func (ec *executionContext) fieldContext_CVE_Id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2419 fc = &graphql.FieldContext{ 2420 Object: "CVE", 2421 Field: field, 2422 IsMethod: false, 2423 IsResolver: false, 2424 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2425 return nil, errors.New("field of type String does not have child fields") 2426 }, 2427 } 2428 return fc, nil 2429 } 2430 2431 func (ec *executionContext) _CVE_Title(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2432 fc, err := ec.fieldContext_CVE_Title(ctx, field) 2433 if err != nil { 2434 return graphql.Null 2435 } 2436 ctx = graphql.WithFieldContext(ctx, fc) 2437 defer func() { 2438 if r := recover(); r != nil { 2439 ec.Error(ctx, ec.Recover(ctx, r)) 2440 ret = graphql.Null 2441 } 2442 }() 2443 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2444 ctx = rctx // use context from middleware stack in children 2445 return obj.Title, nil 2446 }) 2447 if err != nil { 2448 ec.Error(ctx, err) 2449 return graphql.Null 2450 } 2451 if resTmp == nil { 2452 return graphql.Null 2453 } 2454 res := resTmp.(*string) 2455 fc.Result = res 2456 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2457 } 2458 2459 func (ec *executionContext) fieldContext_CVE_Title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2460 fc = &graphql.FieldContext{ 2461 Object: "CVE", 2462 Field: field, 2463 IsMethod: false, 2464 IsResolver: false, 2465 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2466 return nil, errors.New("field of type String does not have child fields") 2467 }, 2468 } 2469 return fc, nil 2470 } 2471 2472 func (ec *executionContext) _CVE_Description(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2473 fc, err := ec.fieldContext_CVE_Description(ctx, field) 2474 if err != nil { 2475 return graphql.Null 2476 } 2477 ctx = graphql.WithFieldContext(ctx, fc) 2478 defer func() { 2479 if r := recover(); r != nil { 2480 ec.Error(ctx, ec.Recover(ctx, r)) 2481 ret = graphql.Null 2482 } 2483 }() 2484 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2485 ctx = rctx // use context from middleware stack in children 2486 return obj.Description, nil 2487 }) 2488 if err != nil { 2489 ec.Error(ctx, err) 2490 return graphql.Null 2491 } 2492 if resTmp == nil { 2493 return graphql.Null 2494 } 2495 res := resTmp.(*string) 2496 fc.Result = res 2497 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2498 } 2499 2500 func (ec *executionContext) fieldContext_CVE_Description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2501 fc = &graphql.FieldContext{ 2502 Object: "CVE", 2503 Field: field, 2504 IsMethod: false, 2505 IsResolver: false, 2506 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2507 return nil, errors.New("field of type String does not have child fields") 2508 }, 2509 } 2510 return fc, nil 2511 } 2512 2513 func (ec *executionContext) _CVE_Severity(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2514 fc, err := ec.fieldContext_CVE_Severity(ctx, field) 2515 if err != nil { 2516 return graphql.Null 2517 } 2518 ctx = graphql.WithFieldContext(ctx, fc) 2519 defer func() { 2520 if r := recover(); r != nil { 2521 ec.Error(ctx, ec.Recover(ctx, r)) 2522 ret = graphql.Null 2523 } 2524 }() 2525 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2526 ctx = rctx // use context from middleware stack in children 2527 return obj.Severity, nil 2528 }) 2529 if err != nil { 2530 ec.Error(ctx, err) 2531 return graphql.Null 2532 } 2533 if resTmp == nil { 2534 return graphql.Null 2535 } 2536 res := resTmp.(*string) 2537 fc.Result = res 2538 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2539 } 2540 2541 func (ec *executionContext) fieldContext_CVE_Severity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2542 fc = &graphql.FieldContext{ 2543 Object: "CVE", 2544 Field: field, 2545 IsMethod: false, 2546 IsResolver: false, 2547 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2548 return nil, errors.New("field of type String does not have child fields") 2549 }, 2550 } 2551 return fc, nil 2552 } 2553 2554 func (ec *executionContext) _CVE_PackageList(ctx context.Context, field graphql.CollectedField, obj *Cve) (ret graphql.Marshaler) { 2555 fc, err := ec.fieldContext_CVE_PackageList(ctx, field) 2556 if err != nil { 2557 return graphql.Null 2558 } 2559 ctx = graphql.WithFieldContext(ctx, fc) 2560 defer func() { 2561 if r := recover(); r != nil { 2562 ec.Error(ctx, ec.Recover(ctx, r)) 2563 ret = graphql.Null 2564 } 2565 }() 2566 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2567 ctx = rctx // use context from middleware stack in children 2568 return obj.PackageList, nil 2569 }) 2570 if err != nil { 2571 ec.Error(ctx, err) 2572 return graphql.Null 2573 } 2574 if resTmp == nil { 2575 return graphql.Null 2576 } 2577 res := resTmp.([]*PackageInfo) 2578 fc.Result = res 2579 return ec.marshalOPackageInfo2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPackageInfo(ctx, field.Selections, res) 2580 } 2581 2582 func (ec *executionContext) fieldContext_CVE_PackageList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2583 fc = &graphql.FieldContext{ 2584 Object: "CVE", 2585 Field: field, 2586 IsMethod: false, 2587 IsResolver: false, 2588 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2589 switch field.Name { 2590 case "Name": 2591 return ec.fieldContext_PackageInfo_Name(ctx, field) 2592 case "InstalledVersion": 2593 return ec.fieldContext_PackageInfo_InstalledVersion(ctx, field) 2594 case "FixedVersion": 2595 return ec.fieldContext_PackageInfo_FixedVersion(ctx, field) 2596 } 2597 return nil, fmt.Errorf("no field named %q was found under type PackageInfo", field.Name) 2598 }, 2599 } 2600 return fc, nil 2601 } 2602 2603 func (ec *executionContext) _CVEResultForImage_Tag(ctx context.Context, field graphql.CollectedField, obj *CVEResultForImage) (ret graphql.Marshaler) { 2604 fc, err := ec.fieldContext_CVEResultForImage_Tag(ctx, field) 2605 if err != nil { 2606 return graphql.Null 2607 } 2608 ctx = graphql.WithFieldContext(ctx, fc) 2609 defer func() { 2610 if r := recover(); r != nil { 2611 ec.Error(ctx, ec.Recover(ctx, r)) 2612 ret = graphql.Null 2613 } 2614 }() 2615 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2616 ctx = rctx // use context from middleware stack in children 2617 return obj.Tag, nil 2618 }) 2619 if err != nil { 2620 ec.Error(ctx, err) 2621 return graphql.Null 2622 } 2623 if resTmp == nil { 2624 return graphql.Null 2625 } 2626 res := resTmp.(*string) 2627 fc.Result = res 2628 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 2629 } 2630 2631 func (ec *executionContext) fieldContext_CVEResultForImage_Tag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2632 fc = &graphql.FieldContext{ 2633 Object: "CVEResultForImage", 2634 Field: field, 2635 IsMethod: false, 2636 IsResolver: false, 2637 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2638 return nil, errors.New("field of type String does not have child fields") 2639 }, 2640 } 2641 return fc, nil 2642 } 2643 2644 func (ec *executionContext) _CVEResultForImage_CVEList(ctx context.Context, field graphql.CollectedField, obj *CVEResultForImage) (ret graphql.Marshaler) { 2645 fc, err := ec.fieldContext_CVEResultForImage_CVEList(ctx, field) 2646 if err != nil { 2647 return graphql.Null 2648 } 2649 ctx = graphql.WithFieldContext(ctx, fc) 2650 defer func() { 2651 if r := recover(); r != nil { 2652 ec.Error(ctx, ec.Recover(ctx, r)) 2653 ret = graphql.Null 2654 } 2655 }() 2656 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2657 ctx = rctx // use context from middleware stack in children 2658 return obj.CVEList, nil 2659 }) 2660 if err != nil { 2661 ec.Error(ctx, err) 2662 return graphql.Null 2663 } 2664 if resTmp == nil { 2665 return graphql.Null 2666 } 2667 res := resTmp.([]*Cve) 2668 fc.Result = res 2669 return ec.marshalOCVE2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCve(ctx, field.Selections, res) 2670 } 2671 2672 func (ec *executionContext) fieldContext_CVEResultForImage_CVEList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2673 fc = &graphql.FieldContext{ 2674 Object: "CVEResultForImage", 2675 Field: field, 2676 IsMethod: false, 2677 IsResolver: false, 2678 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2679 switch field.Name { 2680 case "Id": 2681 return ec.fieldContext_CVE_Id(ctx, field) 2682 case "Title": 2683 return ec.fieldContext_CVE_Title(ctx, field) 2684 case "Description": 2685 return ec.fieldContext_CVE_Description(ctx, field) 2686 case "Severity": 2687 return ec.fieldContext_CVE_Severity(ctx, field) 2688 case "PackageList": 2689 return ec.fieldContext_CVE_PackageList(ctx, field) 2690 } 2691 return nil, fmt.Errorf("no field named %q was found under type CVE", field.Name) 2692 }, 2693 } 2694 return fc, nil 2695 } 2696 2697 func (ec *executionContext) _CVEResultForImage_Page(ctx context.Context, field graphql.CollectedField, obj *CVEResultForImage) (ret graphql.Marshaler) { 2698 fc, err := ec.fieldContext_CVEResultForImage_Page(ctx, field) 2699 if err != nil { 2700 return graphql.Null 2701 } 2702 ctx = graphql.WithFieldContext(ctx, fc) 2703 defer func() { 2704 if r := recover(); r != nil { 2705 ec.Error(ctx, ec.Recover(ctx, r)) 2706 ret = graphql.Null 2707 } 2708 }() 2709 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2710 ctx = rctx // use context from middleware stack in children 2711 return obj.Page, nil 2712 }) 2713 if err != nil { 2714 ec.Error(ctx, err) 2715 return graphql.Null 2716 } 2717 if resTmp == nil { 2718 return graphql.Null 2719 } 2720 res := resTmp.(*PageInfo) 2721 fc.Result = res 2722 return ec.marshalOPageInfo2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx, field.Selections, res) 2723 } 2724 2725 func (ec *executionContext) fieldContext_CVEResultForImage_Page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2726 fc = &graphql.FieldContext{ 2727 Object: "CVEResultForImage", 2728 Field: field, 2729 IsMethod: false, 2730 IsResolver: false, 2731 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2732 switch field.Name { 2733 case "TotalCount": 2734 return ec.fieldContext_PageInfo_TotalCount(ctx, field) 2735 case "ItemCount": 2736 return ec.fieldContext_PageInfo_ItemCount(ctx, field) 2737 } 2738 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) 2739 }, 2740 } 2741 return fc, nil 2742 } 2743 2744 func (ec *executionContext) _GlobalSearchResult_Page(ctx context.Context, field graphql.CollectedField, obj *GlobalSearchResult) (ret graphql.Marshaler) { 2745 fc, err := ec.fieldContext_GlobalSearchResult_Page(ctx, field) 2746 if err != nil { 2747 return graphql.Null 2748 } 2749 ctx = graphql.WithFieldContext(ctx, fc) 2750 defer func() { 2751 if r := recover(); r != nil { 2752 ec.Error(ctx, ec.Recover(ctx, r)) 2753 ret = graphql.Null 2754 } 2755 }() 2756 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2757 ctx = rctx // use context from middleware stack in children 2758 return obj.Page, nil 2759 }) 2760 if err != nil { 2761 ec.Error(ctx, err) 2762 return graphql.Null 2763 } 2764 if resTmp == nil { 2765 return graphql.Null 2766 } 2767 res := resTmp.(*PageInfo) 2768 fc.Result = res 2769 return ec.marshalOPageInfo2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx, field.Selections, res) 2770 } 2771 2772 func (ec *executionContext) fieldContext_GlobalSearchResult_Page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2773 fc = &graphql.FieldContext{ 2774 Object: "GlobalSearchResult", 2775 Field: field, 2776 IsMethod: false, 2777 IsResolver: false, 2778 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2779 switch field.Name { 2780 case "TotalCount": 2781 return ec.fieldContext_PageInfo_TotalCount(ctx, field) 2782 case "ItemCount": 2783 return ec.fieldContext_PageInfo_ItemCount(ctx, field) 2784 } 2785 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) 2786 }, 2787 } 2788 return fc, nil 2789 } 2790 2791 func (ec *executionContext) _GlobalSearchResult_Images(ctx context.Context, field graphql.CollectedField, obj *GlobalSearchResult) (ret graphql.Marshaler) { 2792 fc, err := ec.fieldContext_GlobalSearchResult_Images(ctx, field) 2793 if err != nil { 2794 return graphql.Null 2795 } 2796 ctx = graphql.WithFieldContext(ctx, fc) 2797 defer func() { 2798 if r := recover(); r != nil { 2799 ec.Error(ctx, ec.Recover(ctx, r)) 2800 ret = graphql.Null 2801 } 2802 }() 2803 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2804 ctx = rctx // use context from middleware stack in children 2805 return obj.Images, nil 2806 }) 2807 if err != nil { 2808 ec.Error(ctx, err) 2809 return graphql.Null 2810 } 2811 if resTmp == nil { 2812 return graphql.Null 2813 } 2814 res := resTmp.([]*ImageSummary) 2815 fc.Result = res 2816 return ec.marshalOImageSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, field.Selections, res) 2817 } 2818 2819 func (ec *executionContext) fieldContext_GlobalSearchResult_Images(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2820 fc = &graphql.FieldContext{ 2821 Object: "GlobalSearchResult", 2822 Field: field, 2823 IsMethod: false, 2824 IsResolver: false, 2825 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2826 switch field.Name { 2827 case "RepoName": 2828 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 2829 case "Tag": 2830 return ec.fieldContext_ImageSummary_Tag(ctx, field) 2831 case "Digest": 2832 return ec.fieldContext_ImageSummary_Digest(ctx, field) 2833 case "MediaType": 2834 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 2835 case "Manifests": 2836 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 2837 case "Size": 2838 return ec.fieldContext_ImageSummary_Size(ctx, field) 2839 case "DownloadCount": 2840 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 2841 case "LastUpdated": 2842 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 2843 case "Description": 2844 return ec.fieldContext_ImageSummary_Description(ctx, field) 2845 case "IsSigned": 2846 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 2847 case "SignatureInfo": 2848 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 2849 case "Licenses": 2850 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 2851 case "Labels": 2852 return ec.fieldContext_ImageSummary_Labels(ctx, field) 2853 case "Title": 2854 return ec.fieldContext_ImageSummary_Title(ctx, field) 2855 case "Source": 2856 return ec.fieldContext_ImageSummary_Source(ctx, field) 2857 case "Documentation": 2858 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 2859 case "Vendor": 2860 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 2861 case "Authors": 2862 return ec.fieldContext_ImageSummary_Authors(ctx, field) 2863 case "Vulnerabilities": 2864 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 2865 case "Referrers": 2866 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 2867 } 2868 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 2869 }, 2870 } 2871 return fc, nil 2872 } 2873 2874 func (ec *executionContext) _GlobalSearchResult_Repos(ctx context.Context, field graphql.CollectedField, obj *GlobalSearchResult) (ret graphql.Marshaler) { 2875 fc, err := ec.fieldContext_GlobalSearchResult_Repos(ctx, field) 2876 if err != nil { 2877 return graphql.Null 2878 } 2879 ctx = graphql.WithFieldContext(ctx, fc) 2880 defer func() { 2881 if r := recover(); r != nil { 2882 ec.Error(ctx, ec.Recover(ctx, r)) 2883 ret = graphql.Null 2884 } 2885 }() 2886 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2887 ctx = rctx // use context from middleware stack in children 2888 return obj.Repos, nil 2889 }) 2890 if err != nil { 2891 ec.Error(ctx, err) 2892 return graphql.Null 2893 } 2894 if resTmp == nil { 2895 return graphql.Null 2896 } 2897 res := resTmp.([]*RepoSummary) 2898 fc.Result = res 2899 return ec.marshalORepoSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx, field.Selections, res) 2900 } 2901 2902 func (ec *executionContext) fieldContext_GlobalSearchResult_Repos(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2903 fc = &graphql.FieldContext{ 2904 Object: "GlobalSearchResult", 2905 Field: field, 2906 IsMethod: false, 2907 IsResolver: false, 2908 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2909 switch field.Name { 2910 case "Name": 2911 return ec.fieldContext_RepoSummary_Name(ctx, field) 2912 case "LastUpdated": 2913 return ec.fieldContext_RepoSummary_LastUpdated(ctx, field) 2914 case "Size": 2915 return ec.fieldContext_RepoSummary_Size(ctx, field) 2916 case "Platforms": 2917 return ec.fieldContext_RepoSummary_Platforms(ctx, field) 2918 case "Vendors": 2919 return ec.fieldContext_RepoSummary_Vendors(ctx, field) 2920 case "NewestImage": 2921 return ec.fieldContext_RepoSummary_NewestImage(ctx, field) 2922 case "DownloadCount": 2923 return ec.fieldContext_RepoSummary_DownloadCount(ctx, field) 2924 case "StarCount": 2925 return ec.fieldContext_RepoSummary_StarCount(ctx, field) 2926 case "IsBookmarked": 2927 return ec.fieldContext_RepoSummary_IsBookmarked(ctx, field) 2928 case "IsStarred": 2929 return ec.fieldContext_RepoSummary_IsStarred(ctx, field) 2930 case "Rank": 2931 return ec.fieldContext_RepoSummary_Rank(ctx, field) 2932 } 2933 return nil, fmt.Errorf("no field named %q was found under type RepoSummary", field.Name) 2934 }, 2935 } 2936 return fc, nil 2937 } 2938 2939 func (ec *executionContext) _GlobalSearchResult_Layers(ctx context.Context, field graphql.CollectedField, obj *GlobalSearchResult) (ret graphql.Marshaler) { 2940 fc, err := ec.fieldContext_GlobalSearchResult_Layers(ctx, field) 2941 if err != nil { 2942 return graphql.Null 2943 } 2944 ctx = graphql.WithFieldContext(ctx, fc) 2945 defer func() { 2946 if r := recover(); r != nil { 2947 ec.Error(ctx, ec.Recover(ctx, r)) 2948 ret = graphql.Null 2949 } 2950 }() 2951 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2952 ctx = rctx // use context from middleware stack in children 2953 return obj.Layers, nil 2954 }) 2955 if err != nil { 2956 ec.Error(ctx, err) 2957 return graphql.Null 2958 } 2959 if resTmp == nil { 2960 return graphql.Null 2961 } 2962 res := resTmp.([]*LayerSummary) 2963 fc.Result = res 2964 return ec.marshalOLayerSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx, field.Selections, res) 2965 } 2966 2967 func (ec *executionContext) fieldContext_GlobalSearchResult_Layers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 2968 fc = &graphql.FieldContext{ 2969 Object: "GlobalSearchResult", 2970 Field: field, 2971 IsMethod: false, 2972 IsResolver: false, 2973 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 2974 switch field.Name { 2975 case "Size": 2976 return ec.fieldContext_LayerSummary_Size(ctx, field) 2977 case "Digest": 2978 return ec.fieldContext_LayerSummary_Digest(ctx, field) 2979 } 2980 return nil, fmt.Errorf("no field named %q was found under type LayerSummary", field.Name) 2981 }, 2982 } 2983 return fc, nil 2984 } 2985 2986 func (ec *executionContext) _HistoryDescription_Created(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 2987 fc, err := ec.fieldContext_HistoryDescription_Created(ctx, field) 2988 if err != nil { 2989 return graphql.Null 2990 } 2991 ctx = graphql.WithFieldContext(ctx, fc) 2992 defer func() { 2993 if r := recover(); r != nil { 2994 ec.Error(ctx, ec.Recover(ctx, r)) 2995 ret = graphql.Null 2996 } 2997 }() 2998 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 2999 ctx = rctx // use context from middleware stack in children 3000 return obj.Created, nil 3001 }) 3002 if err != nil { 3003 ec.Error(ctx, err) 3004 return graphql.Null 3005 } 3006 if resTmp == nil { 3007 return graphql.Null 3008 } 3009 res := resTmp.(*time.Time) 3010 fc.Result = res 3011 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 3012 } 3013 3014 func (ec *executionContext) fieldContext_HistoryDescription_Created(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3015 fc = &graphql.FieldContext{ 3016 Object: "HistoryDescription", 3017 Field: field, 3018 IsMethod: false, 3019 IsResolver: false, 3020 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3021 return nil, errors.New("field of type Time does not have child fields") 3022 }, 3023 } 3024 return fc, nil 3025 } 3026 3027 func (ec *executionContext) _HistoryDescription_CreatedBy(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 3028 fc, err := ec.fieldContext_HistoryDescription_CreatedBy(ctx, field) 3029 if err != nil { 3030 return graphql.Null 3031 } 3032 ctx = graphql.WithFieldContext(ctx, fc) 3033 defer func() { 3034 if r := recover(); r != nil { 3035 ec.Error(ctx, ec.Recover(ctx, r)) 3036 ret = graphql.Null 3037 } 3038 }() 3039 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3040 ctx = rctx // use context from middleware stack in children 3041 return obj.CreatedBy, nil 3042 }) 3043 if err != nil { 3044 ec.Error(ctx, err) 3045 return graphql.Null 3046 } 3047 if resTmp == nil { 3048 return graphql.Null 3049 } 3050 res := resTmp.(*string) 3051 fc.Result = res 3052 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3053 } 3054 3055 func (ec *executionContext) fieldContext_HistoryDescription_CreatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3056 fc = &graphql.FieldContext{ 3057 Object: "HistoryDescription", 3058 Field: field, 3059 IsMethod: false, 3060 IsResolver: false, 3061 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3062 return nil, errors.New("field of type String does not have child fields") 3063 }, 3064 } 3065 return fc, nil 3066 } 3067 3068 func (ec *executionContext) _HistoryDescription_Author(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 3069 fc, err := ec.fieldContext_HistoryDescription_Author(ctx, field) 3070 if err != nil { 3071 return graphql.Null 3072 } 3073 ctx = graphql.WithFieldContext(ctx, fc) 3074 defer func() { 3075 if r := recover(); r != nil { 3076 ec.Error(ctx, ec.Recover(ctx, r)) 3077 ret = graphql.Null 3078 } 3079 }() 3080 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3081 ctx = rctx // use context from middleware stack in children 3082 return obj.Author, nil 3083 }) 3084 if err != nil { 3085 ec.Error(ctx, err) 3086 return graphql.Null 3087 } 3088 if resTmp == nil { 3089 return graphql.Null 3090 } 3091 res := resTmp.(*string) 3092 fc.Result = res 3093 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3094 } 3095 3096 func (ec *executionContext) fieldContext_HistoryDescription_Author(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3097 fc = &graphql.FieldContext{ 3098 Object: "HistoryDescription", 3099 Field: field, 3100 IsMethod: false, 3101 IsResolver: false, 3102 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3103 return nil, errors.New("field of type String does not have child fields") 3104 }, 3105 } 3106 return fc, nil 3107 } 3108 3109 func (ec *executionContext) _HistoryDescription_Comment(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 3110 fc, err := ec.fieldContext_HistoryDescription_Comment(ctx, field) 3111 if err != nil { 3112 return graphql.Null 3113 } 3114 ctx = graphql.WithFieldContext(ctx, fc) 3115 defer func() { 3116 if r := recover(); r != nil { 3117 ec.Error(ctx, ec.Recover(ctx, r)) 3118 ret = graphql.Null 3119 } 3120 }() 3121 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3122 ctx = rctx // use context from middleware stack in children 3123 return obj.Comment, nil 3124 }) 3125 if err != nil { 3126 ec.Error(ctx, err) 3127 return graphql.Null 3128 } 3129 if resTmp == nil { 3130 return graphql.Null 3131 } 3132 res := resTmp.(*string) 3133 fc.Result = res 3134 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3135 } 3136 3137 func (ec *executionContext) fieldContext_HistoryDescription_Comment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3138 fc = &graphql.FieldContext{ 3139 Object: "HistoryDescription", 3140 Field: field, 3141 IsMethod: false, 3142 IsResolver: false, 3143 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3144 return nil, errors.New("field of type String does not have child fields") 3145 }, 3146 } 3147 return fc, nil 3148 } 3149 3150 func (ec *executionContext) _HistoryDescription_EmptyLayer(ctx context.Context, field graphql.CollectedField, obj *HistoryDescription) (ret graphql.Marshaler) { 3151 fc, err := ec.fieldContext_HistoryDescription_EmptyLayer(ctx, field) 3152 if err != nil { 3153 return graphql.Null 3154 } 3155 ctx = graphql.WithFieldContext(ctx, fc) 3156 defer func() { 3157 if r := recover(); r != nil { 3158 ec.Error(ctx, ec.Recover(ctx, r)) 3159 ret = graphql.Null 3160 } 3161 }() 3162 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3163 ctx = rctx // use context from middleware stack in children 3164 return obj.EmptyLayer, nil 3165 }) 3166 if err != nil { 3167 ec.Error(ctx, err) 3168 return graphql.Null 3169 } 3170 if resTmp == nil { 3171 return graphql.Null 3172 } 3173 res := resTmp.(*bool) 3174 fc.Result = res 3175 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 3176 } 3177 3178 func (ec *executionContext) fieldContext_HistoryDescription_EmptyLayer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3179 fc = &graphql.FieldContext{ 3180 Object: "HistoryDescription", 3181 Field: field, 3182 IsMethod: false, 3183 IsResolver: false, 3184 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3185 return nil, errors.New("field of type Boolean does not have child fields") 3186 }, 3187 } 3188 return fc, nil 3189 } 3190 3191 func (ec *executionContext) _ImageSummary_RepoName(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3192 fc, err := ec.fieldContext_ImageSummary_RepoName(ctx, field) 3193 if err != nil { 3194 return graphql.Null 3195 } 3196 ctx = graphql.WithFieldContext(ctx, fc) 3197 defer func() { 3198 if r := recover(); r != nil { 3199 ec.Error(ctx, ec.Recover(ctx, r)) 3200 ret = graphql.Null 3201 } 3202 }() 3203 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3204 ctx = rctx // use context from middleware stack in children 3205 return obj.RepoName, nil 3206 }) 3207 if err != nil { 3208 ec.Error(ctx, err) 3209 return graphql.Null 3210 } 3211 if resTmp == nil { 3212 return graphql.Null 3213 } 3214 res := resTmp.(*string) 3215 fc.Result = res 3216 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3217 } 3218 3219 func (ec *executionContext) fieldContext_ImageSummary_RepoName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3220 fc = &graphql.FieldContext{ 3221 Object: "ImageSummary", 3222 Field: field, 3223 IsMethod: false, 3224 IsResolver: false, 3225 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3226 return nil, errors.New("field of type String does not have child fields") 3227 }, 3228 } 3229 return fc, nil 3230 } 3231 3232 func (ec *executionContext) _ImageSummary_Tag(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3233 fc, err := ec.fieldContext_ImageSummary_Tag(ctx, field) 3234 if err != nil { 3235 return graphql.Null 3236 } 3237 ctx = graphql.WithFieldContext(ctx, fc) 3238 defer func() { 3239 if r := recover(); r != nil { 3240 ec.Error(ctx, ec.Recover(ctx, r)) 3241 ret = graphql.Null 3242 } 3243 }() 3244 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3245 ctx = rctx // use context from middleware stack in children 3246 return obj.Tag, nil 3247 }) 3248 if err != nil { 3249 ec.Error(ctx, err) 3250 return graphql.Null 3251 } 3252 if resTmp == nil { 3253 return graphql.Null 3254 } 3255 res := resTmp.(*string) 3256 fc.Result = res 3257 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3258 } 3259 3260 func (ec *executionContext) fieldContext_ImageSummary_Tag(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3261 fc = &graphql.FieldContext{ 3262 Object: "ImageSummary", 3263 Field: field, 3264 IsMethod: false, 3265 IsResolver: false, 3266 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3267 return nil, errors.New("field of type String does not have child fields") 3268 }, 3269 } 3270 return fc, nil 3271 } 3272 3273 func (ec *executionContext) _ImageSummary_Digest(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3274 fc, err := ec.fieldContext_ImageSummary_Digest(ctx, field) 3275 if err != nil { 3276 return graphql.Null 3277 } 3278 ctx = graphql.WithFieldContext(ctx, fc) 3279 defer func() { 3280 if r := recover(); r != nil { 3281 ec.Error(ctx, ec.Recover(ctx, r)) 3282 ret = graphql.Null 3283 } 3284 }() 3285 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3286 ctx = rctx // use context from middleware stack in children 3287 return obj.Digest, nil 3288 }) 3289 if err != nil { 3290 ec.Error(ctx, err) 3291 return graphql.Null 3292 } 3293 if resTmp == nil { 3294 return graphql.Null 3295 } 3296 res := resTmp.(*string) 3297 fc.Result = res 3298 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3299 } 3300 3301 func (ec *executionContext) fieldContext_ImageSummary_Digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3302 fc = &graphql.FieldContext{ 3303 Object: "ImageSummary", 3304 Field: field, 3305 IsMethod: false, 3306 IsResolver: false, 3307 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3308 return nil, errors.New("field of type String does not have child fields") 3309 }, 3310 } 3311 return fc, nil 3312 } 3313 3314 func (ec *executionContext) _ImageSummary_MediaType(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3315 fc, err := ec.fieldContext_ImageSummary_MediaType(ctx, field) 3316 if err != nil { 3317 return graphql.Null 3318 } 3319 ctx = graphql.WithFieldContext(ctx, fc) 3320 defer func() { 3321 if r := recover(); r != nil { 3322 ec.Error(ctx, ec.Recover(ctx, r)) 3323 ret = graphql.Null 3324 } 3325 }() 3326 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3327 ctx = rctx // use context from middleware stack in children 3328 return obj.MediaType, nil 3329 }) 3330 if err != nil { 3331 ec.Error(ctx, err) 3332 return graphql.Null 3333 } 3334 if resTmp == nil { 3335 return graphql.Null 3336 } 3337 res := resTmp.(*string) 3338 fc.Result = res 3339 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3340 } 3341 3342 func (ec *executionContext) fieldContext_ImageSummary_MediaType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3343 fc = &graphql.FieldContext{ 3344 Object: "ImageSummary", 3345 Field: field, 3346 IsMethod: false, 3347 IsResolver: false, 3348 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3349 return nil, errors.New("field of type String does not have child fields") 3350 }, 3351 } 3352 return fc, nil 3353 } 3354 3355 func (ec *executionContext) _ImageSummary_Manifests(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3356 fc, err := ec.fieldContext_ImageSummary_Manifests(ctx, field) 3357 if err != nil { 3358 return graphql.Null 3359 } 3360 ctx = graphql.WithFieldContext(ctx, fc) 3361 defer func() { 3362 if r := recover(); r != nil { 3363 ec.Error(ctx, ec.Recover(ctx, r)) 3364 ret = graphql.Null 3365 } 3366 }() 3367 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3368 ctx = rctx // use context from middleware stack in children 3369 return obj.Manifests, nil 3370 }) 3371 if err != nil { 3372 ec.Error(ctx, err) 3373 return graphql.Null 3374 } 3375 if resTmp == nil { 3376 return graphql.Null 3377 } 3378 res := resTmp.([]*ManifestSummary) 3379 fc.Result = res 3380 return ec.marshalOManifestSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐManifestSummary(ctx, field.Selections, res) 3381 } 3382 3383 func (ec *executionContext) fieldContext_ImageSummary_Manifests(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3384 fc = &graphql.FieldContext{ 3385 Object: "ImageSummary", 3386 Field: field, 3387 IsMethod: false, 3388 IsResolver: false, 3389 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3390 switch field.Name { 3391 case "Digest": 3392 return ec.fieldContext_ManifestSummary_Digest(ctx, field) 3393 case "ConfigDigest": 3394 return ec.fieldContext_ManifestSummary_ConfigDigest(ctx, field) 3395 case "LastUpdated": 3396 return ec.fieldContext_ManifestSummary_LastUpdated(ctx, field) 3397 case "Size": 3398 return ec.fieldContext_ManifestSummary_Size(ctx, field) 3399 case "IsSigned": 3400 return ec.fieldContext_ManifestSummary_IsSigned(ctx, field) 3401 case "SignatureInfo": 3402 return ec.fieldContext_ManifestSummary_SignatureInfo(ctx, field) 3403 case "Platform": 3404 return ec.fieldContext_ManifestSummary_Platform(ctx, field) 3405 case "DownloadCount": 3406 return ec.fieldContext_ManifestSummary_DownloadCount(ctx, field) 3407 case "Layers": 3408 return ec.fieldContext_ManifestSummary_Layers(ctx, field) 3409 case "History": 3410 return ec.fieldContext_ManifestSummary_History(ctx, field) 3411 case "Vulnerabilities": 3412 return ec.fieldContext_ManifestSummary_Vulnerabilities(ctx, field) 3413 case "Referrers": 3414 return ec.fieldContext_ManifestSummary_Referrers(ctx, field) 3415 case "ArtifactType": 3416 return ec.fieldContext_ManifestSummary_ArtifactType(ctx, field) 3417 } 3418 return nil, fmt.Errorf("no field named %q was found under type ManifestSummary", field.Name) 3419 }, 3420 } 3421 return fc, nil 3422 } 3423 3424 func (ec *executionContext) _ImageSummary_Size(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3425 fc, err := ec.fieldContext_ImageSummary_Size(ctx, field) 3426 if err != nil { 3427 return graphql.Null 3428 } 3429 ctx = graphql.WithFieldContext(ctx, fc) 3430 defer func() { 3431 if r := recover(); r != nil { 3432 ec.Error(ctx, ec.Recover(ctx, r)) 3433 ret = graphql.Null 3434 } 3435 }() 3436 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3437 ctx = rctx // use context from middleware stack in children 3438 return obj.Size, nil 3439 }) 3440 if err != nil { 3441 ec.Error(ctx, err) 3442 return graphql.Null 3443 } 3444 if resTmp == nil { 3445 return graphql.Null 3446 } 3447 res := resTmp.(*string) 3448 fc.Result = res 3449 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3450 } 3451 3452 func (ec *executionContext) fieldContext_ImageSummary_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3453 fc = &graphql.FieldContext{ 3454 Object: "ImageSummary", 3455 Field: field, 3456 IsMethod: false, 3457 IsResolver: false, 3458 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3459 return nil, errors.New("field of type String does not have child fields") 3460 }, 3461 } 3462 return fc, nil 3463 } 3464 3465 func (ec *executionContext) _ImageSummary_DownloadCount(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3466 fc, err := ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 3467 if err != nil { 3468 return graphql.Null 3469 } 3470 ctx = graphql.WithFieldContext(ctx, fc) 3471 defer func() { 3472 if r := recover(); r != nil { 3473 ec.Error(ctx, ec.Recover(ctx, r)) 3474 ret = graphql.Null 3475 } 3476 }() 3477 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3478 ctx = rctx // use context from middleware stack in children 3479 return obj.DownloadCount, nil 3480 }) 3481 if err != nil { 3482 ec.Error(ctx, err) 3483 return graphql.Null 3484 } 3485 if resTmp == nil { 3486 return graphql.Null 3487 } 3488 res := resTmp.(*int) 3489 fc.Result = res 3490 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 3491 } 3492 3493 func (ec *executionContext) fieldContext_ImageSummary_DownloadCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3494 fc = &graphql.FieldContext{ 3495 Object: "ImageSummary", 3496 Field: field, 3497 IsMethod: false, 3498 IsResolver: false, 3499 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3500 return nil, errors.New("field of type Int does not have child fields") 3501 }, 3502 } 3503 return fc, nil 3504 } 3505 3506 func (ec *executionContext) _ImageSummary_LastUpdated(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3507 fc, err := ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 3508 if err != nil { 3509 return graphql.Null 3510 } 3511 ctx = graphql.WithFieldContext(ctx, fc) 3512 defer func() { 3513 if r := recover(); r != nil { 3514 ec.Error(ctx, ec.Recover(ctx, r)) 3515 ret = graphql.Null 3516 } 3517 }() 3518 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3519 ctx = rctx // use context from middleware stack in children 3520 return obj.LastUpdated, nil 3521 }) 3522 if err != nil { 3523 ec.Error(ctx, err) 3524 return graphql.Null 3525 } 3526 if resTmp == nil { 3527 return graphql.Null 3528 } 3529 res := resTmp.(*time.Time) 3530 fc.Result = res 3531 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 3532 } 3533 3534 func (ec *executionContext) fieldContext_ImageSummary_LastUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3535 fc = &graphql.FieldContext{ 3536 Object: "ImageSummary", 3537 Field: field, 3538 IsMethod: false, 3539 IsResolver: false, 3540 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3541 return nil, errors.New("field of type Time does not have child fields") 3542 }, 3543 } 3544 return fc, nil 3545 } 3546 3547 func (ec *executionContext) _ImageSummary_Description(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3548 fc, err := ec.fieldContext_ImageSummary_Description(ctx, field) 3549 if err != nil { 3550 return graphql.Null 3551 } 3552 ctx = graphql.WithFieldContext(ctx, fc) 3553 defer func() { 3554 if r := recover(); r != nil { 3555 ec.Error(ctx, ec.Recover(ctx, r)) 3556 ret = graphql.Null 3557 } 3558 }() 3559 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3560 ctx = rctx // use context from middleware stack in children 3561 return obj.Description, nil 3562 }) 3563 if err != nil { 3564 ec.Error(ctx, err) 3565 return graphql.Null 3566 } 3567 if resTmp == nil { 3568 return graphql.Null 3569 } 3570 res := resTmp.(*string) 3571 fc.Result = res 3572 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3573 } 3574 3575 func (ec *executionContext) fieldContext_ImageSummary_Description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3576 fc = &graphql.FieldContext{ 3577 Object: "ImageSummary", 3578 Field: field, 3579 IsMethod: false, 3580 IsResolver: false, 3581 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3582 return nil, errors.New("field of type String does not have child fields") 3583 }, 3584 } 3585 return fc, nil 3586 } 3587 3588 func (ec *executionContext) _ImageSummary_IsSigned(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3589 fc, err := ec.fieldContext_ImageSummary_IsSigned(ctx, field) 3590 if err != nil { 3591 return graphql.Null 3592 } 3593 ctx = graphql.WithFieldContext(ctx, fc) 3594 defer func() { 3595 if r := recover(); r != nil { 3596 ec.Error(ctx, ec.Recover(ctx, r)) 3597 ret = graphql.Null 3598 } 3599 }() 3600 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3601 ctx = rctx // use context from middleware stack in children 3602 return obj.IsSigned, nil 3603 }) 3604 if err != nil { 3605 ec.Error(ctx, err) 3606 return graphql.Null 3607 } 3608 if resTmp == nil { 3609 return graphql.Null 3610 } 3611 res := resTmp.(*bool) 3612 fc.Result = res 3613 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 3614 } 3615 3616 func (ec *executionContext) fieldContext_ImageSummary_IsSigned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3617 fc = &graphql.FieldContext{ 3618 Object: "ImageSummary", 3619 Field: field, 3620 IsMethod: false, 3621 IsResolver: false, 3622 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3623 return nil, errors.New("field of type Boolean does not have child fields") 3624 }, 3625 } 3626 return fc, nil 3627 } 3628 3629 func (ec *executionContext) _ImageSummary_SignatureInfo(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3630 fc, err := ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 3631 if err != nil { 3632 return graphql.Null 3633 } 3634 ctx = graphql.WithFieldContext(ctx, fc) 3635 defer func() { 3636 if r := recover(); r != nil { 3637 ec.Error(ctx, ec.Recover(ctx, r)) 3638 ret = graphql.Null 3639 } 3640 }() 3641 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3642 ctx = rctx // use context from middleware stack in children 3643 return obj.SignatureInfo, nil 3644 }) 3645 if err != nil { 3646 ec.Error(ctx, err) 3647 return graphql.Null 3648 } 3649 if resTmp == nil { 3650 return graphql.Null 3651 } 3652 res := resTmp.([]*SignatureSummary) 3653 fc.Result = res 3654 return ec.marshalOSignatureSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx, field.Selections, res) 3655 } 3656 3657 func (ec *executionContext) fieldContext_ImageSummary_SignatureInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3658 fc = &graphql.FieldContext{ 3659 Object: "ImageSummary", 3660 Field: field, 3661 IsMethod: false, 3662 IsResolver: false, 3663 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3664 switch field.Name { 3665 case "Tool": 3666 return ec.fieldContext_SignatureSummary_Tool(ctx, field) 3667 case "IsTrusted": 3668 return ec.fieldContext_SignatureSummary_IsTrusted(ctx, field) 3669 case "Author": 3670 return ec.fieldContext_SignatureSummary_Author(ctx, field) 3671 } 3672 return nil, fmt.Errorf("no field named %q was found under type SignatureSummary", field.Name) 3673 }, 3674 } 3675 return fc, nil 3676 } 3677 3678 func (ec *executionContext) _ImageSummary_Licenses(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3679 fc, err := ec.fieldContext_ImageSummary_Licenses(ctx, field) 3680 if err != nil { 3681 return graphql.Null 3682 } 3683 ctx = graphql.WithFieldContext(ctx, fc) 3684 defer func() { 3685 if r := recover(); r != nil { 3686 ec.Error(ctx, ec.Recover(ctx, r)) 3687 ret = graphql.Null 3688 } 3689 }() 3690 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3691 ctx = rctx // use context from middleware stack in children 3692 return obj.Licenses, nil 3693 }) 3694 if err != nil { 3695 ec.Error(ctx, err) 3696 return graphql.Null 3697 } 3698 if resTmp == nil { 3699 return graphql.Null 3700 } 3701 res := resTmp.(*string) 3702 fc.Result = res 3703 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3704 } 3705 3706 func (ec *executionContext) fieldContext_ImageSummary_Licenses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3707 fc = &graphql.FieldContext{ 3708 Object: "ImageSummary", 3709 Field: field, 3710 IsMethod: false, 3711 IsResolver: false, 3712 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3713 return nil, errors.New("field of type String does not have child fields") 3714 }, 3715 } 3716 return fc, nil 3717 } 3718 3719 func (ec *executionContext) _ImageSummary_Labels(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3720 fc, err := ec.fieldContext_ImageSummary_Labels(ctx, field) 3721 if err != nil { 3722 return graphql.Null 3723 } 3724 ctx = graphql.WithFieldContext(ctx, fc) 3725 defer func() { 3726 if r := recover(); r != nil { 3727 ec.Error(ctx, ec.Recover(ctx, r)) 3728 ret = graphql.Null 3729 } 3730 }() 3731 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3732 ctx = rctx // use context from middleware stack in children 3733 return obj.Labels, nil 3734 }) 3735 if err != nil { 3736 ec.Error(ctx, err) 3737 return graphql.Null 3738 } 3739 if resTmp == nil { 3740 return graphql.Null 3741 } 3742 res := resTmp.(*string) 3743 fc.Result = res 3744 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3745 } 3746 3747 func (ec *executionContext) fieldContext_ImageSummary_Labels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3748 fc = &graphql.FieldContext{ 3749 Object: "ImageSummary", 3750 Field: field, 3751 IsMethod: false, 3752 IsResolver: false, 3753 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3754 return nil, errors.New("field of type String does not have child fields") 3755 }, 3756 } 3757 return fc, nil 3758 } 3759 3760 func (ec *executionContext) _ImageSummary_Title(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3761 fc, err := ec.fieldContext_ImageSummary_Title(ctx, field) 3762 if err != nil { 3763 return graphql.Null 3764 } 3765 ctx = graphql.WithFieldContext(ctx, fc) 3766 defer func() { 3767 if r := recover(); r != nil { 3768 ec.Error(ctx, ec.Recover(ctx, r)) 3769 ret = graphql.Null 3770 } 3771 }() 3772 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3773 ctx = rctx // use context from middleware stack in children 3774 return obj.Title, nil 3775 }) 3776 if err != nil { 3777 ec.Error(ctx, err) 3778 return graphql.Null 3779 } 3780 if resTmp == nil { 3781 return graphql.Null 3782 } 3783 res := resTmp.(*string) 3784 fc.Result = res 3785 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3786 } 3787 3788 func (ec *executionContext) fieldContext_ImageSummary_Title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3789 fc = &graphql.FieldContext{ 3790 Object: "ImageSummary", 3791 Field: field, 3792 IsMethod: false, 3793 IsResolver: false, 3794 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3795 return nil, errors.New("field of type String does not have child fields") 3796 }, 3797 } 3798 return fc, nil 3799 } 3800 3801 func (ec *executionContext) _ImageSummary_Source(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3802 fc, err := ec.fieldContext_ImageSummary_Source(ctx, field) 3803 if err != nil { 3804 return graphql.Null 3805 } 3806 ctx = graphql.WithFieldContext(ctx, fc) 3807 defer func() { 3808 if r := recover(); r != nil { 3809 ec.Error(ctx, ec.Recover(ctx, r)) 3810 ret = graphql.Null 3811 } 3812 }() 3813 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3814 ctx = rctx // use context from middleware stack in children 3815 return obj.Source, nil 3816 }) 3817 if err != nil { 3818 ec.Error(ctx, err) 3819 return graphql.Null 3820 } 3821 if resTmp == nil { 3822 return graphql.Null 3823 } 3824 res := resTmp.(*string) 3825 fc.Result = res 3826 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3827 } 3828 3829 func (ec *executionContext) fieldContext_ImageSummary_Source(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3830 fc = &graphql.FieldContext{ 3831 Object: "ImageSummary", 3832 Field: field, 3833 IsMethod: false, 3834 IsResolver: false, 3835 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3836 return nil, errors.New("field of type String does not have child fields") 3837 }, 3838 } 3839 return fc, nil 3840 } 3841 3842 func (ec *executionContext) _ImageSummary_Documentation(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3843 fc, err := ec.fieldContext_ImageSummary_Documentation(ctx, field) 3844 if err != nil { 3845 return graphql.Null 3846 } 3847 ctx = graphql.WithFieldContext(ctx, fc) 3848 defer func() { 3849 if r := recover(); r != nil { 3850 ec.Error(ctx, ec.Recover(ctx, r)) 3851 ret = graphql.Null 3852 } 3853 }() 3854 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3855 ctx = rctx // use context from middleware stack in children 3856 return obj.Documentation, nil 3857 }) 3858 if err != nil { 3859 ec.Error(ctx, err) 3860 return graphql.Null 3861 } 3862 if resTmp == nil { 3863 return graphql.Null 3864 } 3865 res := resTmp.(*string) 3866 fc.Result = res 3867 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3868 } 3869 3870 func (ec *executionContext) fieldContext_ImageSummary_Documentation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3871 fc = &graphql.FieldContext{ 3872 Object: "ImageSummary", 3873 Field: field, 3874 IsMethod: false, 3875 IsResolver: false, 3876 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3877 return nil, errors.New("field of type String does not have child fields") 3878 }, 3879 } 3880 return fc, nil 3881 } 3882 3883 func (ec *executionContext) _ImageSummary_Vendor(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3884 fc, err := ec.fieldContext_ImageSummary_Vendor(ctx, field) 3885 if err != nil { 3886 return graphql.Null 3887 } 3888 ctx = graphql.WithFieldContext(ctx, fc) 3889 defer func() { 3890 if r := recover(); r != nil { 3891 ec.Error(ctx, ec.Recover(ctx, r)) 3892 ret = graphql.Null 3893 } 3894 }() 3895 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3896 ctx = rctx // use context from middleware stack in children 3897 return obj.Vendor, nil 3898 }) 3899 if err != nil { 3900 ec.Error(ctx, err) 3901 return graphql.Null 3902 } 3903 if resTmp == nil { 3904 return graphql.Null 3905 } 3906 res := resTmp.(*string) 3907 fc.Result = res 3908 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3909 } 3910 3911 func (ec *executionContext) fieldContext_ImageSummary_Vendor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3912 fc = &graphql.FieldContext{ 3913 Object: "ImageSummary", 3914 Field: field, 3915 IsMethod: false, 3916 IsResolver: false, 3917 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3918 return nil, errors.New("field of type String does not have child fields") 3919 }, 3920 } 3921 return fc, nil 3922 } 3923 3924 func (ec *executionContext) _ImageSummary_Authors(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3925 fc, err := ec.fieldContext_ImageSummary_Authors(ctx, field) 3926 if err != nil { 3927 return graphql.Null 3928 } 3929 ctx = graphql.WithFieldContext(ctx, fc) 3930 defer func() { 3931 if r := recover(); r != nil { 3932 ec.Error(ctx, ec.Recover(ctx, r)) 3933 ret = graphql.Null 3934 } 3935 }() 3936 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3937 ctx = rctx // use context from middleware stack in children 3938 return obj.Authors, nil 3939 }) 3940 if err != nil { 3941 ec.Error(ctx, err) 3942 return graphql.Null 3943 } 3944 if resTmp == nil { 3945 return graphql.Null 3946 } 3947 res := resTmp.(*string) 3948 fc.Result = res 3949 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 3950 } 3951 3952 func (ec *executionContext) fieldContext_ImageSummary_Authors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3953 fc = &graphql.FieldContext{ 3954 Object: "ImageSummary", 3955 Field: field, 3956 IsMethod: false, 3957 IsResolver: false, 3958 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 3959 return nil, errors.New("field of type String does not have child fields") 3960 }, 3961 } 3962 return fc, nil 3963 } 3964 3965 func (ec *executionContext) _ImageSummary_Vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 3966 fc, err := ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 3967 if err != nil { 3968 return graphql.Null 3969 } 3970 ctx = graphql.WithFieldContext(ctx, fc) 3971 defer func() { 3972 if r := recover(); r != nil { 3973 ec.Error(ctx, ec.Recover(ctx, r)) 3974 ret = graphql.Null 3975 } 3976 }() 3977 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 3978 ctx = rctx // use context from middleware stack in children 3979 return obj.Vulnerabilities, nil 3980 }) 3981 if err != nil { 3982 ec.Error(ctx, err) 3983 return graphql.Null 3984 } 3985 if resTmp == nil { 3986 return graphql.Null 3987 } 3988 res := resTmp.(*ImageVulnerabilitySummary) 3989 fc.Result = res 3990 return ec.marshalOImageVulnerabilitySummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageVulnerabilitySummary(ctx, field.Selections, res) 3991 } 3992 3993 func (ec *executionContext) fieldContext_ImageSummary_Vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 3994 fc = &graphql.FieldContext{ 3995 Object: "ImageSummary", 3996 Field: field, 3997 IsMethod: false, 3998 IsResolver: false, 3999 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4000 switch field.Name { 4001 case "MaxSeverity": 4002 return ec.fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx, field) 4003 case "Count": 4004 return ec.fieldContext_ImageVulnerabilitySummary_Count(ctx, field) 4005 } 4006 return nil, fmt.Errorf("no field named %q was found under type ImageVulnerabilitySummary", field.Name) 4007 }, 4008 } 4009 return fc, nil 4010 } 4011 4012 func (ec *executionContext) _ImageSummary_Referrers(ctx context.Context, field graphql.CollectedField, obj *ImageSummary) (ret graphql.Marshaler) { 4013 fc, err := ec.fieldContext_ImageSummary_Referrers(ctx, field) 4014 if err != nil { 4015 return graphql.Null 4016 } 4017 ctx = graphql.WithFieldContext(ctx, fc) 4018 defer func() { 4019 if r := recover(); r != nil { 4020 ec.Error(ctx, ec.Recover(ctx, r)) 4021 ret = graphql.Null 4022 } 4023 }() 4024 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4025 ctx = rctx // use context from middleware stack in children 4026 return obj.Referrers, nil 4027 }) 4028 if err != nil { 4029 ec.Error(ctx, err) 4030 return graphql.Null 4031 } 4032 if resTmp == nil { 4033 return graphql.Null 4034 } 4035 res := resTmp.([]*Referrer) 4036 fc.Result = res 4037 return ec.marshalOReferrer2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, field.Selections, res) 4038 } 4039 4040 func (ec *executionContext) fieldContext_ImageSummary_Referrers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4041 fc = &graphql.FieldContext{ 4042 Object: "ImageSummary", 4043 Field: field, 4044 IsMethod: false, 4045 IsResolver: false, 4046 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4047 switch field.Name { 4048 case "MediaType": 4049 return ec.fieldContext_Referrer_MediaType(ctx, field) 4050 case "ArtifactType": 4051 return ec.fieldContext_Referrer_ArtifactType(ctx, field) 4052 case "Size": 4053 return ec.fieldContext_Referrer_Size(ctx, field) 4054 case "Digest": 4055 return ec.fieldContext_Referrer_Digest(ctx, field) 4056 case "Annotations": 4057 return ec.fieldContext_Referrer_Annotations(ctx, field) 4058 } 4059 return nil, fmt.Errorf("no field named %q was found under type Referrer", field.Name) 4060 }, 4061 } 4062 return fc, nil 4063 } 4064 4065 func (ec *executionContext) _ImageVulnerabilitySummary_MaxSeverity(ctx context.Context, field graphql.CollectedField, obj *ImageVulnerabilitySummary) (ret graphql.Marshaler) { 4066 fc, err := ec.fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx, field) 4067 if err != nil { 4068 return graphql.Null 4069 } 4070 ctx = graphql.WithFieldContext(ctx, fc) 4071 defer func() { 4072 if r := recover(); r != nil { 4073 ec.Error(ctx, ec.Recover(ctx, r)) 4074 ret = graphql.Null 4075 } 4076 }() 4077 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4078 ctx = rctx // use context from middleware stack in children 4079 return obj.MaxSeverity, nil 4080 }) 4081 if err != nil { 4082 ec.Error(ctx, err) 4083 return graphql.Null 4084 } 4085 if resTmp == nil { 4086 return graphql.Null 4087 } 4088 res := resTmp.(*string) 4089 fc.Result = res 4090 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4091 } 4092 4093 func (ec *executionContext) fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4094 fc = &graphql.FieldContext{ 4095 Object: "ImageVulnerabilitySummary", 4096 Field: field, 4097 IsMethod: false, 4098 IsResolver: false, 4099 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4100 return nil, errors.New("field of type String does not have child fields") 4101 }, 4102 } 4103 return fc, nil 4104 } 4105 4106 func (ec *executionContext) _ImageVulnerabilitySummary_Count(ctx context.Context, field graphql.CollectedField, obj *ImageVulnerabilitySummary) (ret graphql.Marshaler) { 4107 fc, err := ec.fieldContext_ImageVulnerabilitySummary_Count(ctx, field) 4108 if err != nil { 4109 return graphql.Null 4110 } 4111 ctx = graphql.WithFieldContext(ctx, fc) 4112 defer func() { 4113 if r := recover(); r != nil { 4114 ec.Error(ctx, ec.Recover(ctx, r)) 4115 ret = graphql.Null 4116 } 4117 }() 4118 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4119 ctx = rctx // use context from middleware stack in children 4120 return obj.Count, nil 4121 }) 4122 if err != nil { 4123 ec.Error(ctx, err) 4124 return graphql.Null 4125 } 4126 if resTmp == nil { 4127 return graphql.Null 4128 } 4129 res := resTmp.(*int) 4130 fc.Result = res 4131 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 4132 } 4133 4134 func (ec *executionContext) fieldContext_ImageVulnerabilitySummary_Count(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4135 fc = &graphql.FieldContext{ 4136 Object: "ImageVulnerabilitySummary", 4137 Field: field, 4138 IsMethod: false, 4139 IsResolver: false, 4140 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4141 return nil, errors.New("field of type Int does not have child fields") 4142 }, 4143 } 4144 return fc, nil 4145 } 4146 4147 func (ec *executionContext) _LayerHistory_Layer(ctx context.Context, field graphql.CollectedField, obj *LayerHistory) (ret graphql.Marshaler) { 4148 fc, err := ec.fieldContext_LayerHistory_Layer(ctx, field) 4149 if err != nil { 4150 return graphql.Null 4151 } 4152 ctx = graphql.WithFieldContext(ctx, fc) 4153 defer func() { 4154 if r := recover(); r != nil { 4155 ec.Error(ctx, ec.Recover(ctx, r)) 4156 ret = graphql.Null 4157 } 4158 }() 4159 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4160 ctx = rctx // use context from middleware stack in children 4161 return obj.Layer, nil 4162 }) 4163 if err != nil { 4164 ec.Error(ctx, err) 4165 return graphql.Null 4166 } 4167 if resTmp == nil { 4168 return graphql.Null 4169 } 4170 res := resTmp.(*LayerSummary) 4171 fc.Result = res 4172 return ec.marshalOLayerSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx, field.Selections, res) 4173 } 4174 4175 func (ec *executionContext) fieldContext_LayerHistory_Layer(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4176 fc = &graphql.FieldContext{ 4177 Object: "LayerHistory", 4178 Field: field, 4179 IsMethod: false, 4180 IsResolver: false, 4181 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4182 switch field.Name { 4183 case "Size": 4184 return ec.fieldContext_LayerSummary_Size(ctx, field) 4185 case "Digest": 4186 return ec.fieldContext_LayerSummary_Digest(ctx, field) 4187 } 4188 return nil, fmt.Errorf("no field named %q was found under type LayerSummary", field.Name) 4189 }, 4190 } 4191 return fc, nil 4192 } 4193 4194 func (ec *executionContext) _LayerHistory_HistoryDescription(ctx context.Context, field graphql.CollectedField, obj *LayerHistory) (ret graphql.Marshaler) { 4195 fc, err := ec.fieldContext_LayerHistory_HistoryDescription(ctx, field) 4196 if err != nil { 4197 return graphql.Null 4198 } 4199 ctx = graphql.WithFieldContext(ctx, fc) 4200 defer func() { 4201 if r := recover(); r != nil { 4202 ec.Error(ctx, ec.Recover(ctx, r)) 4203 ret = graphql.Null 4204 } 4205 }() 4206 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4207 ctx = rctx // use context from middleware stack in children 4208 return obj.HistoryDescription, nil 4209 }) 4210 if err != nil { 4211 ec.Error(ctx, err) 4212 return graphql.Null 4213 } 4214 if resTmp == nil { 4215 return graphql.Null 4216 } 4217 res := resTmp.(*HistoryDescription) 4218 fc.Result = res 4219 return ec.marshalOHistoryDescription2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐHistoryDescription(ctx, field.Selections, res) 4220 } 4221 4222 func (ec *executionContext) fieldContext_LayerHistory_HistoryDescription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4223 fc = &graphql.FieldContext{ 4224 Object: "LayerHistory", 4225 Field: field, 4226 IsMethod: false, 4227 IsResolver: false, 4228 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4229 switch field.Name { 4230 case "Created": 4231 return ec.fieldContext_HistoryDescription_Created(ctx, field) 4232 case "CreatedBy": 4233 return ec.fieldContext_HistoryDescription_CreatedBy(ctx, field) 4234 case "Author": 4235 return ec.fieldContext_HistoryDescription_Author(ctx, field) 4236 case "Comment": 4237 return ec.fieldContext_HistoryDescription_Comment(ctx, field) 4238 case "EmptyLayer": 4239 return ec.fieldContext_HistoryDescription_EmptyLayer(ctx, field) 4240 } 4241 return nil, fmt.Errorf("no field named %q was found under type HistoryDescription", field.Name) 4242 }, 4243 } 4244 return fc, nil 4245 } 4246 4247 func (ec *executionContext) _LayerSummary_Size(ctx context.Context, field graphql.CollectedField, obj *LayerSummary) (ret graphql.Marshaler) { 4248 fc, err := ec.fieldContext_LayerSummary_Size(ctx, field) 4249 if err != nil { 4250 return graphql.Null 4251 } 4252 ctx = graphql.WithFieldContext(ctx, fc) 4253 defer func() { 4254 if r := recover(); r != nil { 4255 ec.Error(ctx, ec.Recover(ctx, r)) 4256 ret = graphql.Null 4257 } 4258 }() 4259 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4260 ctx = rctx // use context from middleware stack in children 4261 return obj.Size, nil 4262 }) 4263 if err != nil { 4264 ec.Error(ctx, err) 4265 return graphql.Null 4266 } 4267 if resTmp == nil { 4268 return graphql.Null 4269 } 4270 res := resTmp.(*string) 4271 fc.Result = res 4272 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4273 } 4274 4275 func (ec *executionContext) fieldContext_LayerSummary_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4276 fc = &graphql.FieldContext{ 4277 Object: "LayerSummary", 4278 Field: field, 4279 IsMethod: false, 4280 IsResolver: false, 4281 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4282 return nil, errors.New("field of type String does not have child fields") 4283 }, 4284 } 4285 return fc, nil 4286 } 4287 4288 func (ec *executionContext) _LayerSummary_Digest(ctx context.Context, field graphql.CollectedField, obj *LayerSummary) (ret graphql.Marshaler) { 4289 fc, err := ec.fieldContext_LayerSummary_Digest(ctx, field) 4290 if err != nil { 4291 return graphql.Null 4292 } 4293 ctx = graphql.WithFieldContext(ctx, fc) 4294 defer func() { 4295 if r := recover(); r != nil { 4296 ec.Error(ctx, ec.Recover(ctx, r)) 4297 ret = graphql.Null 4298 } 4299 }() 4300 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4301 ctx = rctx // use context from middleware stack in children 4302 return obj.Digest, nil 4303 }) 4304 if err != nil { 4305 ec.Error(ctx, err) 4306 return graphql.Null 4307 } 4308 if resTmp == nil { 4309 return graphql.Null 4310 } 4311 res := resTmp.(*string) 4312 fc.Result = res 4313 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4314 } 4315 4316 func (ec *executionContext) fieldContext_LayerSummary_Digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4317 fc = &graphql.FieldContext{ 4318 Object: "LayerSummary", 4319 Field: field, 4320 IsMethod: false, 4321 IsResolver: false, 4322 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4323 return nil, errors.New("field of type String does not have child fields") 4324 }, 4325 } 4326 return fc, nil 4327 } 4328 4329 func (ec *executionContext) _ManifestSummary_Digest(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4330 fc, err := ec.fieldContext_ManifestSummary_Digest(ctx, field) 4331 if err != nil { 4332 return graphql.Null 4333 } 4334 ctx = graphql.WithFieldContext(ctx, fc) 4335 defer func() { 4336 if r := recover(); r != nil { 4337 ec.Error(ctx, ec.Recover(ctx, r)) 4338 ret = graphql.Null 4339 } 4340 }() 4341 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4342 ctx = rctx // use context from middleware stack in children 4343 return obj.Digest, nil 4344 }) 4345 if err != nil { 4346 ec.Error(ctx, err) 4347 return graphql.Null 4348 } 4349 if resTmp == nil { 4350 return graphql.Null 4351 } 4352 res := resTmp.(*string) 4353 fc.Result = res 4354 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4355 } 4356 4357 func (ec *executionContext) fieldContext_ManifestSummary_Digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4358 fc = &graphql.FieldContext{ 4359 Object: "ManifestSummary", 4360 Field: field, 4361 IsMethod: false, 4362 IsResolver: false, 4363 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4364 return nil, errors.New("field of type String does not have child fields") 4365 }, 4366 } 4367 return fc, nil 4368 } 4369 4370 func (ec *executionContext) _ManifestSummary_ConfigDigest(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4371 fc, err := ec.fieldContext_ManifestSummary_ConfigDigest(ctx, field) 4372 if err != nil { 4373 return graphql.Null 4374 } 4375 ctx = graphql.WithFieldContext(ctx, fc) 4376 defer func() { 4377 if r := recover(); r != nil { 4378 ec.Error(ctx, ec.Recover(ctx, r)) 4379 ret = graphql.Null 4380 } 4381 }() 4382 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4383 ctx = rctx // use context from middleware stack in children 4384 return obj.ConfigDigest, nil 4385 }) 4386 if err != nil { 4387 ec.Error(ctx, err) 4388 return graphql.Null 4389 } 4390 if resTmp == nil { 4391 return graphql.Null 4392 } 4393 res := resTmp.(*string) 4394 fc.Result = res 4395 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4396 } 4397 4398 func (ec *executionContext) fieldContext_ManifestSummary_ConfigDigest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4399 fc = &graphql.FieldContext{ 4400 Object: "ManifestSummary", 4401 Field: field, 4402 IsMethod: false, 4403 IsResolver: false, 4404 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4405 return nil, errors.New("field of type String does not have child fields") 4406 }, 4407 } 4408 return fc, nil 4409 } 4410 4411 func (ec *executionContext) _ManifestSummary_LastUpdated(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4412 fc, err := ec.fieldContext_ManifestSummary_LastUpdated(ctx, field) 4413 if err != nil { 4414 return graphql.Null 4415 } 4416 ctx = graphql.WithFieldContext(ctx, fc) 4417 defer func() { 4418 if r := recover(); r != nil { 4419 ec.Error(ctx, ec.Recover(ctx, r)) 4420 ret = graphql.Null 4421 } 4422 }() 4423 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4424 ctx = rctx // use context from middleware stack in children 4425 return obj.LastUpdated, nil 4426 }) 4427 if err != nil { 4428 ec.Error(ctx, err) 4429 return graphql.Null 4430 } 4431 if resTmp == nil { 4432 return graphql.Null 4433 } 4434 res := resTmp.(*time.Time) 4435 fc.Result = res 4436 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 4437 } 4438 4439 func (ec *executionContext) fieldContext_ManifestSummary_LastUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4440 fc = &graphql.FieldContext{ 4441 Object: "ManifestSummary", 4442 Field: field, 4443 IsMethod: false, 4444 IsResolver: false, 4445 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4446 return nil, errors.New("field of type Time does not have child fields") 4447 }, 4448 } 4449 return fc, nil 4450 } 4451 4452 func (ec *executionContext) _ManifestSummary_Size(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4453 fc, err := ec.fieldContext_ManifestSummary_Size(ctx, field) 4454 if err != nil { 4455 return graphql.Null 4456 } 4457 ctx = graphql.WithFieldContext(ctx, fc) 4458 defer func() { 4459 if r := recover(); r != nil { 4460 ec.Error(ctx, ec.Recover(ctx, r)) 4461 ret = graphql.Null 4462 } 4463 }() 4464 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4465 ctx = rctx // use context from middleware stack in children 4466 return obj.Size, nil 4467 }) 4468 if err != nil { 4469 ec.Error(ctx, err) 4470 return graphql.Null 4471 } 4472 if resTmp == nil { 4473 return graphql.Null 4474 } 4475 res := resTmp.(*string) 4476 fc.Result = res 4477 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4478 } 4479 4480 func (ec *executionContext) fieldContext_ManifestSummary_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4481 fc = &graphql.FieldContext{ 4482 Object: "ManifestSummary", 4483 Field: field, 4484 IsMethod: false, 4485 IsResolver: false, 4486 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4487 return nil, errors.New("field of type String does not have child fields") 4488 }, 4489 } 4490 return fc, nil 4491 } 4492 4493 func (ec *executionContext) _ManifestSummary_IsSigned(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4494 fc, err := ec.fieldContext_ManifestSummary_IsSigned(ctx, field) 4495 if err != nil { 4496 return graphql.Null 4497 } 4498 ctx = graphql.WithFieldContext(ctx, fc) 4499 defer func() { 4500 if r := recover(); r != nil { 4501 ec.Error(ctx, ec.Recover(ctx, r)) 4502 ret = graphql.Null 4503 } 4504 }() 4505 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4506 ctx = rctx // use context from middleware stack in children 4507 return obj.IsSigned, nil 4508 }) 4509 if err != nil { 4510 ec.Error(ctx, err) 4511 return graphql.Null 4512 } 4513 if resTmp == nil { 4514 return graphql.Null 4515 } 4516 res := resTmp.(*bool) 4517 fc.Result = res 4518 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 4519 } 4520 4521 func (ec *executionContext) fieldContext_ManifestSummary_IsSigned(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4522 fc = &graphql.FieldContext{ 4523 Object: "ManifestSummary", 4524 Field: field, 4525 IsMethod: false, 4526 IsResolver: false, 4527 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4528 return nil, errors.New("field of type Boolean does not have child fields") 4529 }, 4530 } 4531 return fc, nil 4532 } 4533 4534 func (ec *executionContext) _ManifestSummary_SignatureInfo(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4535 fc, err := ec.fieldContext_ManifestSummary_SignatureInfo(ctx, field) 4536 if err != nil { 4537 return graphql.Null 4538 } 4539 ctx = graphql.WithFieldContext(ctx, fc) 4540 defer func() { 4541 if r := recover(); r != nil { 4542 ec.Error(ctx, ec.Recover(ctx, r)) 4543 ret = graphql.Null 4544 } 4545 }() 4546 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4547 ctx = rctx // use context from middleware stack in children 4548 return obj.SignatureInfo, nil 4549 }) 4550 if err != nil { 4551 ec.Error(ctx, err) 4552 return graphql.Null 4553 } 4554 if resTmp == nil { 4555 return graphql.Null 4556 } 4557 res := resTmp.([]*SignatureSummary) 4558 fc.Result = res 4559 return ec.marshalOSignatureSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx, field.Selections, res) 4560 } 4561 4562 func (ec *executionContext) fieldContext_ManifestSummary_SignatureInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4563 fc = &graphql.FieldContext{ 4564 Object: "ManifestSummary", 4565 Field: field, 4566 IsMethod: false, 4567 IsResolver: false, 4568 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4569 switch field.Name { 4570 case "Tool": 4571 return ec.fieldContext_SignatureSummary_Tool(ctx, field) 4572 case "IsTrusted": 4573 return ec.fieldContext_SignatureSummary_IsTrusted(ctx, field) 4574 case "Author": 4575 return ec.fieldContext_SignatureSummary_Author(ctx, field) 4576 } 4577 return nil, fmt.Errorf("no field named %q was found under type SignatureSummary", field.Name) 4578 }, 4579 } 4580 return fc, nil 4581 } 4582 4583 func (ec *executionContext) _ManifestSummary_Platform(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4584 fc, err := ec.fieldContext_ManifestSummary_Platform(ctx, field) 4585 if err != nil { 4586 return graphql.Null 4587 } 4588 ctx = graphql.WithFieldContext(ctx, fc) 4589 defer func() { 4590 if r := recover(); r != nil { 4591 ec.Error(ctx, ec.Recover(ctx, r)) 4592 ret = graphql.Null 4593 } 4594 }() 4595 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4596 ctx = rctx // use context from middleware stack in children 4597 return obj.Platform, nil 4598 }) 4599 if err != nil { 4600 ec.Error(ctx, err) 4601 return graphql.Null 4602 } 4603 if resTmp == nil { 4604 return graphql.Null 4605 } 4606 res := resTmp.(*Platform) 4607 fc.Result = res 4608 return ec.marshalOPlatform2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx, field.Selections, res) 4609 } 4610 4611 func (ec *executionContext) fieldContext_ManifestSummary_Platform(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4612 fc = &graphql.FieldContext{ 4613 Object: "ManifestSummary", 4614 Field: field, 4615 IsMethod: false, 4616 IsResolver: false, 4617 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4618 switch field.Name { 4619 case "Os": 4620 return ec.fieldContext_Platform_Os(ctx, field) 4621 case "Arch": 4622 return ec.fieldContext_Platform_Arch(ctx, field) 4623 } 4624 return nil, fmt.Errorf("no field named %q was found under type Platform", field.Name) 4625 }, 4626 } 4627 return fc, nil 4628 } 4629 4630 func (ec *executionContext) _ManifestSummary_DownloadCount(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4631 fc, err := ec.fieldContext_ManifestSummary_DownloadCount(ctx, field) 4632 if err != nil { 4633 return graphql.Null 4634 } 4635 ctx = graphql.WithFieldContext(ctx, fc) 4636 defer func() { 4637 if r := recover(); r != nil { 4638 ec.Error(ctx, ec.Recover(ctx, r)) 4639 ret = graphql.Null 4640 } 4641 }() 4642 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4643 ctx = rctx // use context from middleware stack in children 4644 return obj.DownloadCount, nil 4645 }) 4646 if err != nil { 4647 ec.Error(ctx, err) 4648 return graphql.Null 4649 } 4650 if resTmp == nil { 4651 return graphql.Null 4652 } 4653 res := resTmp.(*int) 4654 fc.Result = res 4655 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 4656 } 4657 4658 func (ec *executionContext) fieldContext_ManifestSummary_DownloadCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4659 fc = &graphql.FieldContext{ 4660 Object: "ManifestSummary", 4661 Field: field, 4662 IsMethod: false, 4663 IsResolver: false, 4664 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4665 return nil, errors.New("field of type Int does not have child fields") 4666 }, 4667 } 4668 return fc, nil 4669 } 4670 4671 func (ec *executionContext) _ManifestSummary_Layers(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4672 fc, err := ec.fieldContext_ManifestSummary_Layers(ctx, field) 4673 if err != nil { 4674 return graphql.Null 4675 } 4676 ctx = graphql.WithFieldContext(ctx, fc) 4677 defer func() { 4678 if r := recover(); r != nil { 4679 ec.Error(ctx, ec.Recover(ctx, r)) 4680 ret = graphql.Null 4681 } 4682 }() 4683 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4684 ctx = rctx // use context from middleware stack in children 4685 return obj.Layers, nil 4686 }) 4687 if err != nil { 4688 ec.Error(ctx, err) 4689 return graphql.Null 4690 } 4691 if resTmp == nil { 4692 return graphql.Null 4693 } 4694 res := resTmp.([]*LayerSummary) 4695 fc.Result = res 4696 return ec.marshalOLayerSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx, field.Selections, res) 4697 } 4698 4699 func (ec *executionContext) fieldContext_ManifestSummary_Layers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4700 fc = &graphql.FieldContext{ 4701 Object: "ManifestSummary", 4702 Field: field, 4703 IsMethod: false, 4704 IsResolver: false, 4705 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4706 switch field.Name { 4707 case "Size": 4708 return ec.fieldContext_LayerSummary_Size(ctx, field) 4709 case "Digest": 4710 return ec.fieldContext_LayerSummary_Digest(ctx, field) 4711 } 4712 return nil, fmt.Errorf("no field named %q was found under type LayerSummary", field.Name) 4713 }, 4714 } 4715 return fc, nil 4716 } 4717 4718 func (ec *executionContext) _ManifestSummary_History(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4719 fc, err := ec.fieldContext_ManifestSummary_History(ctx, field) 4720 if err != nil { 4721 return graphql.Null 4722 } 4723 ctx = graphql.WithFieldContext(ctx, fc) 4724 defer func() { 4725 if r := recover(); r != nil { 4726 ec.Error(ctx, ec.Recover(ctx, r)) 4727 ret = graphql.Null 4728 } 4729 }() 4730 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4731 ctx = rctx // use context from middleware stack in children 4732 return obj.History, nil 4733 }) 4734 if err != nil { 4735 ec.Error(ctx, err) 4736 return graphql.Null 4737 } 4738 if resTmp == nil { 4739 return graphql.Null 4740 } 4741 res := resTmp.([]*LayerHistory) 4742 fc.Result = res 4743 return ec.marshalOLayerHistory2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerHistory(ctx, field.Selections, res) 4744 } 4745 4746 func (ec *executionContext) fieldContext_ManifestSummary_History(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4747 fc = &graphql.FieldContext{ 4748 Object: "ManifestSummary", 4749 Field: field, 4750 IsMethod: false, 4751 IsResolver: false, 4752 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4753 switch field.Name { 4754 case "Layer": 4755 return ec.fieldContext_LayerHistory_Layer(ctx, field) 4756 case "HistoryDescription": 4757 return ec.fieldContext_LayerHistory_HistoryDescription(ctx, field) 4758 } 4759 return nil, fmt.Errorf("no field named %q was found under type LayerHistory", field.Name) 4760 }, 4761 } 4762 return fc, nil 4763 } 4764 4765 func (ec *executionContext) _ManifestSummary_Vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4766 fc, err := ec.fieldContext_ManifestSummary_Vulnerabilities(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.Vulnerabilities, 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.(*ImageVulnerabilitySummary) 4789 fc.Result = res 4790 return ec.marshalOImageVulnerabilitySummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageVulnerabilitySummary(ctx, field.Selections, res) 4791 } 4792 4793 func (ec *executionContext) fieldContext_ManifestSummary_Vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4794 fc = &graphql.FieldContext{ 4795 Object: "ManifestSummary", 4796 Field: field, 4797 IsMethod: false, 4798 IsResolver: false, 4799 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4800 switch field.Name { 4801 case "MaxSeverity": 4802 return ec.fieldContext_ImageVulnerabilitySummary_MaxSeverity(ctx, field) 4803 case "Count": 4804 return ec.fieldContext_ImageVulnerabilitySummary_Count(ctx, field) 4805 } 4806 return nil, fmt.Errorf("no field named %q was found under type ImageVulnerabilitySummary", field.Name) 4807 }, 4808 } 4809 return fc, nil 4810 } 4811 4812 func (ec *executionContext) _ManifestSummary_Referrers(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4813 fc, err := ec.fieldContext_ManifestSummary_Referrers(ctx, field) 4814 if err != nil { 4815 return graphql.Null 4816 } 4817 ctx = graphql.WithFieldContext(ctx, fc) 4818 defer func() { 4819 if r := recover(); r != nil { 4820 ec.Error(ctx, ec.Recover(ctx, r)) 4821 ret = graphql.Null 4822 } 4823 }() 4824 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4825 ctx = rctx // use context from middleware stack in children 4826 return obj.Referrers, nil 4827 }) 4828 if err != nil { 4829 ec.Error(ctx, err) 4830 return graphql.Null 4831 } 4832 if resTmp == nil { 4833 return graphql.Null 4834 } 4835 res := resTmp.([]*Referrer) 4836 fc.Result = res 4837 return ec.marshalOReferrer2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, field.Selections, res) 4838 } 4839 4840 func (ec *executionContext) fieldContext_ManifestSummary_Referrers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4841 fc = &graphql.FieldContext{ 4842 Object: "ManifestSummary", 4843 Field: field, 4844 IsMethod: false, 4845 IsResolver: false, 4846 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4847 switch field.Name { 4848 case "MediaType": 4849 return ec.fieldContext_Referrer_MediaType(ctx, field) 4850 case "ArtifactType": 4851 return ec.fieldContext_Referrer_ArtifactType(ctx, field) 4852 case "Size": 4853 return ec.fieldContext_Referrer_Size(ctx, field) 4854 case "Digest": 4855 return ec.fieldContext_Referrer_Digest(ctx, field) 4856 case "Annotations": 4857 return ec.fieldContext_Referrer_Annotations(ctx, field) 4858 } 4859 return nil, fmt.Errorf("no field named %q was found under type Referrer", field.Name) 4860 }, 4861 } 4862 return fc, nil 4863 } 4864 4865 func (ec *executionContext) _ManifestSummary_ArtifactType(ctx context.Context, field graphql.CollectedField, obj *ManifestSummary) (ret graphql.Marshaler) { 4866 fc, err := ec.fieldContext_ManifestSummary_ArtifactType(ctx, field) 4867 if err != nil { 4868 return graphql.Null 4869 } 4870 ctx = graphql.WithFieldContext(ctx, fc) 4871 defer func() { 4872 if r := recover(); r != nil { 4873 ec.Error(ctx, ec.Recover(ctx, r)) 4874 ret = graphql.Null 4875 } 4876 }() 4877 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4878 ctx = rctx // use context from middleware stack in children 4879 return obj.ArtifactType, nil 4880 }) 4881 if err != nil { 4882 ec.Error(ctx, err) 4883 return graphql.Null 4884 } 4885 if resTmp == nil { 4886 return graphql.Null 4887 } 4888 res := resTmp.(*string) 4889 fc.Result = res 4890 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4891 } 4892 4893 func (ec *executionContext) fieldContext_ManifestSummary_ArtifactType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4894 fc = &graphql.FieldContext{ 4895 Object: "ManifestSummary", 4896 Field: field, 4897 IsMethod: false, 4898 IsResolver: false, 4899 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4900 return nil, errors.New("field of type String does not have child fields") 4901 }, 4902 } 4903 return fc, nil 4904 } 4905 4906 func (ec *executionContext) _PackageInfo_Name(ctx context.Context, field graphql.CollectedField, obj *PackageInfo) (ret graphql.Marshaler) { 4907 fc, err := ec.fieldContext_PackageInfo_Name(ctx, field) 4908 if err != nil { 4909 return graphql.Null 4910 } 4911 ctx = graphql.WithFieldContext(ctx, fc) 4912 defer func() { 4913 if r := recover(); r != nil { 4914 ec.Error(ctx, ec.Recover(ctx, r)) 4915 ret = graphql.Null 4916 } 4917 }() 4918 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4919 ctx = rctx // use context from middleware stack in children 4920 return obj.Name, nil 4921 }) 4922 if err != nil { 4923 ec.Error(ctx, err) 4924 return graphql.Null 4925 } 4926 if resTmp == nil { 4927 return graphql.Null 4928 } 4929 res := resTmp.(*string) 4930 fc.Result = res 4931 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4932 } 4933 4934 func (ec *executionContext) fieldContext_PackageInfo_Name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4935 fc = &graphql.FieldContext{ 4936 Object: "PackageInfo", 4937 Field: field, 4938 IsMethod: false, 4939 IsResolver: false, 4940 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4941 return nil, errors.New("field of type String does not have child fields") 4942 }, 4943 } 4944 return fc, nil 4945 } 4946 4947 func (ec *executionContext) _PackageInfo_InstalledVersion(ctx context.Context, field graphql.CollectedField, obj *PackageInfo) (ret graphql.Marshaler) { 4948 fc, err := ec.fieldContext_PackageInfo_InstalledVersion(ctx, field) 4949 if err != nil { 4950 return graphql.Null 4951 } 4952 ctx = graphql.WithFieldContext(ctx, fc) 4953 defer func() { 4954 if r := recover(); r != nil { 4955 ec.Error(ctx, ec.Recover(ctx, r)) 4956 ret = graphql.Null 4957 } 4958 }() 4959 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 4960 ctx = rctx // use context from middleware stack in children 4961 return obj.InstalledVersion, nil 4962 }) 4963 if err != nil { 4964 ec.Error(ctx, err) 4965 return graphql.Null 4966 } 4967 if resTmp == nil { 4968 return graphql.Null 4969 } 4970 res := resTmp.(*string) 4971 fc.Result = res 4972 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 4973 } 4974 4975 func (ec *executionContext) fieldContext_PackageInfo_InstalledVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 4976 fc = &graphql.FieldContext{ 4977 Object: "PackageInfo", 4978 Field: field, 4979 IsMethod: false, 4980 IsResolver: false, 4981 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 4982 return nil, errors.New("field of type String does not have child fields") 4983 }, 4984 } 4985 return fc, nil 4986 } 4987 4988 func (ec *executionContext) _PackageInfo_FixedVersion(ctx context.Context, field graphql.CollectedField, obj *PackageInfo) (ret graphql.Marshaler) { 4989 fc, err := ec.fieldContext_PackageInfo_FixedVersion(ctx, field) 4990 if err != nil { 4991 return graphql.Null 4992 } 4993 ctx = graphql.WithFieldContext(ctx, fc) 4994 defer func() { 4995 if r := recover(); r != nil { 4996 ec.Error(ctx, ec.Recover(ctx, r)) 4997 ret = graphql.Null 4998 } 4999 }() 5000 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5001 ctx = rctx // use context from middleware stack in children 5002 return obj.FixedVersion, nil 5003 }) 5004 if err != nil { 5005 ec.Error(ctx, err) 5006 return graphql.Null 5007 } 5008 if resTmp == nil { 5009 return graphql.Null 5010 } 5011 res := resTmp.(*string) 5012 fc.Result = res 5013 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5014 } 5015 5016 func (ec *executionContext) fieldContext_PackageInfo_FixedVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5017 fc = &graphql.FieldContext{ 5018 Object: "PackageInfo", 5019 Field: field, 5020 IsMethod: false, 5021 IsResolver: false, 5022 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5023 return nil, errors.New("field of type String does not have child fields") 5024 }, 5025 } 5026 return fc, nil 5027 } 5028 5029 func (ec *executionContext) _PageInfo_TotalCount(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) { 5030 fc, err := ec.fieldContext_PageInfo_TotalCount(ctx, field) 5031 if err != nil { 5032 return graphql.Null 5033 } 5034 ctx = graphql.WithFieldContext(ctx, fc) 5035 defer func() { 5036 if r := recover(); r != nil { 5037 ec.Error(ctx, ec.Recover(ctx, r)) 5038 ret = graphql.Null 5039 } 5040 }() 5041 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5042 ctx = rctx // use context from middleware stack in children 5043 return obj.TotalCount, nil 5044 }) 5045 if err != nil { 5046 ec.Error(ctx, err) 5047 return graphql.Null 5048 } 5049 if resTmp == nil { 5050 if !graphql.HasFieldError(ctx, fc) { 5051 ec.Errorf(ctx, "must not be null") 5052 } 5053 return graphql.Null 5054 } 5055 res := resTmp.(int) 5056 fc.Result = res 5057 return ec.marshalNInt2int(ctx, field.Selections, res) 5058 } 5059 5060 func (ec *executionContext) fieldContext_PageInfo_TotalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5061 fc = &graphql.FieldContext{ 5062 Object: "PageInfo", 5063 Field: field, 5064 IsMethod: false, 5065 IsResolver: false, 5066 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5067 return nil, errors.New("field of type Int does not have child fields") 5068 }, 5069 } 5070 return fc, nil 5071 } 5072 5073 func (ec *executionContext) _PageInfo_ItemCount(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) { 5074 fc, err := ec.fieldContext_PageInfo_ItemCount(ctx, field) 5075 if err != nil { 5076 return graphql.Null 5077 } 5078 ctx = graphql.WithFieldContext(ctx, fc) 5079 defer func() { 5080 if r := recover(); r != nil { 5081 ec.Error(ctx, ec.Recover(ctx, r)) 5082 ret = graphql.Null 5083 } 5084 }() 5085 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5086 ctx = rctx // use context from middleware stack in children 5087 return obj.ItemCount, nil 5088 }) 5089 if err != nil { 5090 ec.Error(ctx, err) 5091 return graphql.Null 5092 } 5093 if resTmp == nil { 5094 if !graphql.HasFieldError(ctx, fc) { 5095 ec.Errorf(ctx, "must not be null") 5096 } 5097 return graphql.Null 5098 } 5099 res := resTmp.(int) 5100 fc.Result = res 5101 return ec.marshalNInt2int(ctx, field.Selections, res) 5102 } 5103 5104 func (ec *executionContext) fieldContext_PageInfo_ItemCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5105 fc = &graphql.FieldContext{ 5106 Object: "PageInfo", 5107 Field: field, 5108 IsMethod: false, 5109 IsResolver: false, 5110 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5111 return nil, errors.New("field of type Int does not have child fields") 5112 }, 5113 } 5114 return fc, nil 5115 } 5116 5117 func (ec *executionContext) _PaginatedImagesResult_Page(ctx context.Context, field graphql.CollectedField, obj *PaginatedImagesResult) (ret graphql.Marshaler) { 5118 fc, err := ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 5119 if err != nil { 5120 return graphql.Null 5121 } 5122 ctx = graphql.WithFieldContext(ctx, fc) 5123 defer func() { 5124 if r := recover(); r != nil { 5125 ec.Error(ctx, ec.Recover(ctx, r)) 5126 ret = graphql.Null 5127 } 5128 }() 5129 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5130 ctx = rctx // use context from middleware stack in children 5131 return obj.Page, nil 5132 }) 5133 if err != nil { 5134 ec.Error(ctx, err) 5135 return graphql.Null 5136 } 5137 if resTmp == nil { 5138 return graphql.Null 5139 } 5140 res := resTmp.(*PageInfo) 5141 fc.Result = res 5142 return ec.marshalOPageInfo2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx, field.Selections, res) 5143 } 5144 5145 func (ec *executionContext) fieldContext_PaginatedImagesResult_Page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5146 fc = &graphql.FieldContext{ 5147 Object: "PaginatedImagesResult", 5148 Field: field, 5149 IsMethod: false, 5150 IsResolver: false, 5151 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5152 switch field.Name { 5153 case "TotalCount": 5154 return ec.fieldContext_PageInfo_TotalCount(ctx, field) 5155 case "ItemCount": 5156 return ec.fieldContext_PageInfo_ItemCount(ctx, field) 5157 } 5158 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) 5159 }, 5160 } 5161 return fc, nil 5162 } 5163 5164 func (ec *executionContext) _PaginatedImagesResult_Results(ctx context.Context, field graphql.CollectedField, obj *PaginatedImagesResult) (ret graphql.Marshaler) { 5165 fc, err := ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 5166 if err != nil { 5167 return graphql.Null 5168 } 5169 ctx = graphql.WithFieldContext(ctx, fc) 5170 defer func() { 5171 if r := recover(); r != nil { 5172 ec.Error(ctx, ec.Recover(ctx, r)) 5173 ret = graphql.Null 5174 } 5175 }() 5176 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5177 ctx = rctx // use context from middleware stack in children 5178 return obj.Results, nil 5179 }) 5180 if err != nil { 5181 ec.Error(ctx, err) 5182 return graphql.Null 5183 } 5184 if resTmp == nil { 5185 if !graphql.HasFieldError(ctx, fc) { 5186 ec.Errorf(ctx, "must not be null") 5187 } 5188 return graphql.Null 5189 } 5190 res := resTmp.([]*ImageSummary) 5191 fc.Result = res 5192 return ec.marshalNImageSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummaryᚄ(ctx, field.Selections, res) 5193 } 5194 5195 func (ec *executionContext) fieldContext_PaginatedImagesResult_Results(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5196 fc = &graphql.FieldContext{ 5197 Object: "PaginatedImagesResult", 5198 Field: field, 5199 IsMethod: false, 5200 IsResolver: false, 5201 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5202 switch field.Name { 5203 case "RepoName": 5204 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 5205 case "Tag": 5206 return ec.fieldContext_ImageSummary_Tag(ctx, field) 5207 case "Digest": 5208 return ec.fieldContext_ImageSummary_Digest(ctx, field) 5209 case "MediaType": 5210 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 5211 case "Manifests": 5212 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 5213 case "Size": 5214 return ec.fieldContext_ImageSummary_Size(ctx, field) 5215 case "DownloadCount": 5216 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 5217 case "LastUpdated": 5218 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 5219 case "Description": 5220 return ec.fieldContext_ImageSummary_Description(ctx, field) 5221 case "IsSigned": 5222 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 5223 case "SignatureInfo": 5224 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 5225 case "Licenses": 5226 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 5227 case "Labels": 5228 return ec.fieldContext_ImageSummary_Labels(ctx, field) 5229 case "Title": 5230 return ec.fieldContext_ImageSummary_Title(ctx, field) 5231 case "Source": 5232 return ec.fieldContext_ImageSummary_Source(ctx, field) 5233 case "Documentation": 5234 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 5235 case "Vendor": 5236 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 5237 case "Authors": 5238 return ec.fieldContext_ImageSummary_Authors(ctx, field) 5239 case "Vulnerabilities": 5240 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 5241 case "Referrers": 5242 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 5243 } 5244 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 5245 }, 5246 } 5247 return fc, nil 5248 } 5249 5250 func (ec *executionContext) _PaginatedReposResult_Page(ctx context.Context, field graphql.CollectedField, obj *PaginatedReposResult) (ret graphql.Marshaler) { 5251 fc, err := ec.fieldContext_PaginatedReposResult_Page(ctx, field) 5252 if err != nil { 5253 return graphql.Null 5254 } 5255 ctx = graphql.WithFieldContext(ctx, fc) 5256 defer func() { 5257 if r := recover(); r != nil { 5258 ec.Error(ctx, ec.Recover(ctx, r)) 5259 ret = graphql.Null 5260 } 5261 }() 5262 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5263 ctx = rctx // use context from middleware stack in children 5264 return obj.Page, nil 5265 }) 5266 if err != nil { 5267 ec.Error(ctx, err) 5268 return graphql.Null 5269 } 5270 if resTmp == nil { 5271 return graphql.Null 5272 } 5273 res := resTmp.(*PageInfo) 5274 fc.Result = res 5275 return ec.marshalOPageInfo2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx, field.Selections, res) 5276 } 5277 5278 func (ec *executionContext) fieldContext_PaginatedReposResult_Page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5279 fc = &graphql.FieldContext{ 5280 Object: "PaginatedReposResult", 5281 Field: field, 5282 IsMethod: false, 5283 IsResolver: false, 5284 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5285 switch field.Name { 5286 case "TotalCount": 5287 return ec.fieldContext_PageInfo_TotalCount(ctx, field) 5288 case "ItemCount": 5289 return ec.fieldContext_PageInfo_ItemCount(ctx, field) 5290 } 5291 return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) 5292 }, 5293 } 5294 return fc, nil 5295 } 5296 5297 func (ec *executionContext) _PaginatedReposResult_Results(ctx context.Context, field graphql.CollectedField, obj *PaginatedReposResult) (ret graphql.Marshaler) { 5298 fc, err := ec.fieldContext_PaginatedReposResult_Results(ctx, field) 5299 if err != nil { 5300 return graphql.Null 5301 } 5302 ctx = graphql.WithFieldContext(ctx, fc) 5303 defer func() { 5304 if r := recover(); r != nil { 5305 ec.Error(ctx, ec.Recover(ctx, r)) 5306 ret = graphql.Null 5307 } 5308 }() 5309 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5310 ctx = rctx // use context from middleware stack in children 5311 return obj.Results, nil 5312 }) 5313 if err != nil { 5314 ec.Error(ctx, err) 5315 return graphql.Null 5316 } 5317 if resTmp == nil { 5318 if !graphql.HasFieldError(ctx, fc) { 5319 ec.Errorf(ctx, "must not be null") 5320 } 5321 return graphql.Null 5322 } 5323 res := resTmp.([]*RepoSummary) 5324 fc.Result = res 5325 return ec.marshalNRepoSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummaryᚄ(ctx, field.Selections, res) 5326 } 5327 5328 func (ec *executionContext) fieldContext_PaginatedReposResult_Results(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5329 fc = &graphql.FieldContext{ 5330 Object: "PaginatedReposResult", 5331 Field: field, 5332 IsMethod: false, 5333 IsResolver: false, 5334 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5335 switch field.Name { 5336 case "Name": 5337 return ec.fieldContext_RepoSummary_Name(ctx, field) 5338 case "LastUpdated": 5339 return ec.fieldContext_RepoSummary_LastUpdated(ctx, field) 5340 case "Size": 5341 return ec.fieldContext_RepoSummary_Size(ctx, field) 5342 case "Platforms": 5343 return ec.fieldContext_RepoSummary_Platforms(ctx, field) 5344 case "Vendors": 5345 return ec.fieldContext_RepoSummary_Vendors(ctx, field) 5346 case "NewestImage": 5347 return ec.fieldContext_RepoSummary_NewestImage(ctx, field) 5348 case "DownloadCount": 5349 return ec.fieldContext_RepoSummary_DownloadCount(ctx, field) 5350 case "StarCount": 5351 return ec.fieldContext_RepoSummary_StarCount(ctx, field) 5352 case "IsBookmarked": 5353 return ec.fieldContext_RepoSummary_IsBookmarked(ctx, field) 5354 case "IsStarred": 5355 return ec.fieldContext_RepoSummary_IsStarred(ctx, field) 5356 case "Rank": 5357 return ec.fieldContext_RepoSummary_Rank(ctx, field) 5358 } 5359 return nil, fmt.Errorf("no field named %q was found under type RepoSummary", field.Name) 5360 }, 5361 } 5362 return fc, nil 5363 } 5364 5365 func (ec *executionContext) _Platform_Os(ctx context.Context, field graphql.CollectedField, obj *Platform) (ret graphql.Marshaler) { 5366 fc, err := ec.fieldContext_Platform_Os(ctx, field) 5367 if err != nil { 5368 return graphql.Null 5369 } 5370 ctx = graphql.WithFieldContext(ctx, fc) 5371 defer func() { 5372 if r := recover(); r != nil { 5373 ec.Error(ctx, ec.Recover(ctx, r)) 5374 ret = graphql.Null 5375 } 5376 }() 5377 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5378 ctx = rctx // use context from middleware stack in children 5379 return obj.Os, nil 5380 }) 5381 if err != nil { 5382 ec.Error(ctx, err) 5383 return graphql.Null 5384 } 5385 if resTmp == nil { 5386 return graphql.Null 5387 } 5388 res := resTmp.(*string) 5389 fc.Result = res 5390 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5391 } 5392 5393 func (ec *executionContext) fieldContext_Platform_Os(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5394 fc = &graphql.FieldContext{ 5395 Object: "Platform", 5396 Field: field, 5397 IsMethod: false, 5398 IsResolver: false, 5399 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5400 return nil, errors.New("field of type String does not have child fields") 5401 }, 5402 } 5403 return fc, nil 5404 } 5405 5406 func (ec *executionContext) _Platform_Arch(ctx context.Context, field graphql.CollectedField, obj *Platform) (ret graphql.Marshaler) { 5407 fc, err := ec.fieldContext_Platform_Arch(ctx, field) 5408 if err != nil { 5409 return graphql.Null 5410 } 5411 ctx = graphql.WithFieldContext(ctx, fc) 5412 defer func() { 5413 if r := recover(); r != nil { 5414 ec.Error(ctx, ec.Recover(ctx, r)) 5415 ret = graphql.Null 5416 } 5417 }() 5418 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5419 ctx = rctx // use context from middleware stack in children 5420 return obj.Arch, nil 5421 }) 5422 if err != nil { 5423 ec.Error(ctx, err) 5424 return graphql.Null 5425 } 5426 if resTmp == nil { 5427 return graphql.Null 5428 } 5429 res := resTmp.(*string) 5430 fc.Result = res 5431 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 5432 } 5433 5434 func (ec *executionContext) fieldContext_Platform_Arch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5435 fc = &graphql.FieldContext{ 5436 Object: "Platform", 5437 Field: field, 5438 IsMethod: false, 5439 IsResolver: false, 5440 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5441 return nil, errors.New("field of type String does not have child fields") 5442 }, 5443 } 5444 return fc, nil 5445 } 5446 5447 func (ec *executionContext) _Query_CVEListForImage(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5448 fc, err := ec.fieldContext_Query_CVEListForImage(ctx, field) 5449 if err != nil { 5450 return graphql.Null 5451 } 5452 ctx = graphql.WithFieldContext(ctx, fc) 5453 defer func() { 5454 if r := recover(); r != nil { 5455 ec.Error(ctx, ec.Recover(ctx, r)) 5456 ret = graphql.Null 5457 } 5458 }() 5459 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5460 ctx = rctx // use context from middleware stack in children 5461 return ec.resolvers.Query().CVEListForImage(rctx, fc.Args["image"].(string), fc.Args["requestedPage"].(*PageInput), fc.Args["searchedCVE"].(*string)) 5462 }) 5463 if err != nil { 5464 ec.Error(ctx, err) 5465 return graphql.Null 5466 } 5467 if resTmp == nil { 5468 if !graphql.HasFieldError(ctx, fc) { 5469 ec.Errorf(ctx, "must not be null") 5470 } 5471 return graphql.Null 5472 } 5473 res := resTmp.(*CVEResultForImage) 5474 fc.Result = res 5475 return ec.marshalNCVEResultForImage2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCVEResultForImage(ctx, field.Selections, res) 5476 } 5477 5478 func (ec *executionContext) fieldContext_Query_CVEListForImage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5479 fc = &graphql.FieldContext{ 5480 Object: "Query", 5481 Field: field, 5482 IsMethod: true, 5483 IsResolver: true, 5484 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5485 switch field.Name { 5486 case "Tag": 5487 return ec.fieldContext_CVEResultForImage_Tag(ctx, field) 5488 case "CVEList": 5489 return ec.fieldContext_CVEResultForImage_CVEList(ctx, field) 5490 case "Page": 5491 return ec.fieldContext_CVEResultForImage_Page(ctx, field) 5492 } 5493 return nil, fmt.Errorf("no field named %q was found under type CVEResultForImage", field.Name) 5494 }, 5495 } 5496 defer func() { 5497 if r := recover(); r != nil { 5498 err = ec.Recover(ctx, r) 5499 ec.Error(ctx, err) 5500 } 5501 }() 5502 ctx = graphql.WithFieldContext(ctx, fc) 5503 if fc.Args, err = ec.field_Query_CVEListForImage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5504 ec.Error(ctx, err) 5505 return fc, err 5506 } 5507 return fc, nil 5508 } 5509 5510 func (ec *executionContext) _Query_ImageListForCVE(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5511 fc, err := ec.fieldContext_Query_ImageListForCVE(ctx, field) 5512 if err != nil { 5513 return graphql.Null 5514 } 5515 ctx = graphql.WithFieldContext(ctx, fc) 5516 defer func() { 5517 if r := recover(); r != nil { 5518 ec.Error(ctx, ec.Recover(ctx, r)) 5519 ret = graphql.Null 5520 } 5521 }() 5522 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5523 ctx = rctx // use context from middleware stack in children 5524 return ec.resolvers.Query().ImageListForCve(rctx, fc.Args["id"].(string), fc.Args["filter"].(*Filter), fc.Args["requestedPage"].(*PageInput)) 5525 }) 5526 if err != nil { 5527 ec.Error(ctx, err) 5528 return graphql.Null 5529 } 5530 if resTmp == nil { 5531 if !graphql.HasFieldError(ctx, fc) { 5532 ec.Errorf(ctx, "must not be null") 5533 } 5534 return graphql.Null 5535 } 5536 res := resTmp.(*PaginatedImagesResult) 5537 fc.Result = res 5538 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 5539 } 5540 5541 func (ec *executionContext) fieldContext_Query_ImageListForCVE(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5542 fc = &graphql.FieldContext{ 5543 Object: "Query", 5544 Field: field, 5545 IsMethod: true, 5546 IsResolver: true, 5547 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5548 switch field.Name { 5549 case "Page": 5550 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 5551 case "Results": 5552 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 5553 } 5554 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 5555 }, 5556 } 5557 defer func() { 5558 if r := recover(); r != nil { 5559 err = ec.Recover(ctx, r) 5560 ec.Error(ctx, err) 5561 } 5562 }() 5563 ctx = graphql.WithFieldContext(ctx, fc) 5564 if fc.Args, err = ec.field_Query_ImageListForCVE_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5565 ec.Error(ctx, err) 5566 return fc, err 5567 } 5568 return fc, nil 5569 } 5570 5571 func (ec *executionContext) _Query_ImageListWithCVEFixed(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5572 fc, err := ec.fieldContext_Query_ImageListWithCVEFixed(ctx, field) 5573 if err != nil { 5574 return graphql.Null 5575 } 5576 ctx = graphql.WithFieldContext(ctx, fc) 5577 defer func() { 5578 if r := recover(); r != nil { 5579 ec.Error(ctx, ec.Recover(ctx, r)) 5580 ret = graphql.Null 5581 } 5582 }() 5583 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5584 ctx = rctx // use context from middleware stack in children 5585 return ec.resolvers.Query().ImageListWithCVEFixed(rctx, fc.Args["id"].(string), fc.Args["image"].(string), fc.Args["filter"].(*Filter), fc.Args["requestedPage"].(*PageInput)) 5586 }) 5587 if err != nil { 5588 ec.Error(ctx, err) 5589 return graphql.Null 5590 } 5591 if resTmp == nil { 5592 if !graphql.HasFieldError(ctx, fc) { 5593 ec.Errorf(ctx, "must not be null") 5594 } 5595 return graphql.Null 5596 } 5597 res := resTmp.(*PaginatedImagesResult) 5598 fc.Result = res 5599 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 5600 } 5601 5602 func (ec *executionContext) fieldContext_Query_ImageListWithCVEFixed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5603 fc = &graphql.FieldContext{ 5604 Object: "Query", 5605 Field: field, 5606 IsMethod: true, 5607 IsResolver: true, 5608 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5609 switch field.Name { 5610 case "Page": 5611 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 5612 case "Results": 5613 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 5614 } 5615 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 5616 }, 5617 } 5618 defer func() { 5619 if r := recover(); r != nil { 5620 err = ec.Recover(ctx, r) 5621 ec.Error(ctx, err) 5622 } 5623 }() 5624 ctx = graphql.WithFieldContext(ctx, fc) 5625 if fc.Args, err = ec.field_Query_ImageListWithCVEFixed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5626 ec.Error(ctx, err) 5627 return fc, err 5628 } 5629 return fc, nil 5630 } 5631 5632 func (ec *executionContext) _Query_ImageListForDigest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5633 fc, err := ec.fieldContext_Query_ImageListForDigest(ctx, field) 5634 if err != nil { 5635 return graphql.Null 5636 } 5637 ctx = graphql.WithFieldContext(ctx, fc) 5638 defer func() { 5639 if r := recover(); r != nil { 5640 ec.Error(ctx, ec.Recover(ctx, r)) 5641 ret = graphql.Null 5642 } 5643 }() 5644 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5645 ctx = rctx // use context from middleware stack in children 5646 return ec.resolvers.Query().ImageListForDigest(rctx, fc.Args["id"].(string), fc.Args["requestedPage"].(*PageInput)) 5647 }) 5648 if err != nil { 5649 ec.Error(ctx, err) 5650 return graphql.Null 5651 } 5652 if resTmp == nil { 5653 if !graphql.HasFieldError(ctx, fc) { 5654 ec.Errorf(ctx, "must not be null") 5655 } 5656 return graphql.Null 5657 } 5658 res := resTmp.(*PaginatedImagesResult) 5659 fc.Result = res 5660 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 5661 } 5662 5663 func (ec *executionContext) fieldContext_Query_ImageListForDigest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5664 fc = &graphql.FieldContext{ 5665 Object: "Query", 5666 Field: field, 5667 IsMethod: true, 5668 IsResolver: true, 5669 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5670 switch field.Name { 5671 case "Page": 5672 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 5673 case "Results": 5674 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 5675 } 5676 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 5677 }, 5678 } 5679 defer func() { 5680 if r := recover(); r != nil { 5681 err = ec.Recover(ctx, r) 5682 ec.Error(ctx, err) 5683 } 5684 }() 5685 ctx = graphql.WithFieldContext(ctx, fc) 5686 if fc.Args, err = ec.field_Query_ImageListForDigest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5687 ec.Error(ctx, err) 5688 return fc, err 5689 } 5690 return fc, nil 5691 } 5692 5693 func (ec *executionContext) _Query_RepoListWithNewestImage(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5694 fc, err := ec.fieldContext_Query_RepoListWithNewestImage(ctx, field) 5695 if err != nil { 5696 return graphql.Null 5697 } 5698 ctx = graphql.WithFieldContext(ctx, fc) 5699 defer func() { 5700 if r := recover(); r != nil { 5701 ec.Error(ctx, ec.Recover(ctx, r)) 5702 ret = graphql.Null 5703 } 5704 }() 5705 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5706 ctx = rctx // use context from middleware stack in children 5707 return ec.resolvers.Query().RepoListWithNewestImage(rctx, fc.Args["requestedPage"].(*PageInput)) 5708 }) 5709 if err != nil { 5710 ec.Error(ctx, err) 5711 return graphql.Null 5712 } 5713 if resTmp == nil { 5714 if !graphql.HasFieldError(ctx, fc) { 5715 ec.Errorf(ctx, "must not be null") 5716 } 5717 return graphql.Null 5718 } 5719 res := resTmp.(*PaginatedReposResult) 5720 fc.Result = res 5721 return ec.marshalNPaginatedReposResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx, field.Selections, res) 5722 } 5723 5724 func (ec *executionContext) fieldContext_Query_RepoListWithNewestImage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5725 fc = &graphql.FieldContext{ 5726 Object: "Query", 5727 Field: field, 5728 IsMethod: true, 5729 IsResolver: true, 5730 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5731 switch field.Name { 5732 case "Page": 5733 return ec.fieldContext_PaginatedReposResult_Page(ctx, field) 5734 case "Results": 5735 return ec.fieldContext_PaginatedReposResult_Results(ctx, field) 5736 } 5737 return nil, fmt.Errorf("no field named %q was found under type PaginatedReposResult", field.Name) 5738 }, 5739 } 5740 defer func() { 5741 if r := recover(); r != nil { 5742 err = ec.Recover(ctx, r) 5743 ec.Error(ctx, err) 5744 } 5745 }() 5746 ctx = graphql.WithFieldContext(ctx, fc) 5747 if fc.Args, err = ec.field_Query_RepoListWithNewestImage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5748 ec.Error(ctx, err) 5749 return fc, err 5750 } 5751 return fc, nil 5752 } 5753 5754 func (ec *executionContext) _Query_ImageList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5755 fc, err := ec.fieldContext_Query_ImageList(ctx, field) 5756 if err != nil { 5757 return graphql.Null 5758 } 5759 ctx = graphql.WithFieldContext(ctx, fc) 5760 defer func() { 5761 if r := recover(); r != nil { 5762 ec.Error(ctx, ec.Recover(ctx, r)) 5763 ret = graphql.Null 5764 } 5765 }() 5766 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5767 ctx = rctx // use context from middleware stack in children 5768 return ec.resolvers.Query().ImageList(rctx, fc.Args["repo"].(string), fc.Args["requestedPage"].(*PageInput)) 5769 }) 5770 if err != nil { 5771 ec.Error(ctx, err) 5772 return graphql.Null 5773 } 5774 if resTmp == nil { 5775 if !graphql.HasFieldError(ctx, fc) { 5776 ec.Errorf(ctx, "must not be null") 5777 } 5778 return graphql.Null 5779 } 5780 res := resTmp.(*PaginatedImagesResult) 5781 fc.Result = res 5782 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 5783 } 5784 5785 func (ec *executionContext) fieldContext_Query_ImageList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5786 fc = &graphql.FieldContext{ 5787 Object: "Query", 5788 Field: field, 5789 IsMethod: true, 5790 IsResolver: true, 5791 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5792 switch field.Name { 5793 case "Page": 5794 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 5795 case "Results": 5796 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 5797 } 5798 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 5799 }, 5800 } 5801 defer func() { 5802 if r := recover(); r != nil { 5803 err = ec.Recover(ctx, r) 5804 ec.Error(ctx, err) 5805 } 5806 }() 5807 ctx = graphql.WithFieldContext(ctx, fc) 5808 if fc.Args, err = ec.field_Query_ImageList_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5809 ec.Error(ctx, err) 5810 return fc, err 5811 } 5812 return fc, nil 5813 } 5814 5815 func (ec *executionContext) _Query_ExpandedRepoInfo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5816 fc, err := ec.fieldContext_Query_ExpandedRepoInfo(ctx, field) 5817 if err != nil { 5818 return graphql.Null 5819 } 5820 ctx = graphql.WithFieldContext(ctx, fc) 5821 defer func() { 5822 if r := recover(); r != nil { 5823 ec.Error(ctx, ec.Recover(ctx, r)) 5824 ret = graphql.Null 5825 } 5826 }() 5827 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5828 ctx = rctx // use context from middleware stack in children 5829 return ec.resolvers.Query().ExpandedRepoInfo(rctx, fc.Args["repo"].(string)) 5830 }) 5831 if err != nil { 5832 ec.Error(ctx, err) 5833 return graphql.Null 5834 } 5835 if resTmp == nil { 5836 if !graphql.HasFieldError(ctx, fc) { 5837 ec.Errorf(ctx, "must not be null") 5838 } 5839 return graphql.Null 5840 } 5841 res := resTmp.(*RepoInfo) 5842 fc.Result = res 5843 return ec.marshalNRepoInfo2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoInfo(ctx, field.Selections, res) 5844 } 5845 5846 func (ec *executionContext) fieldContext_Query_ExpandedRepoInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5847 fc = &graphql.FieldContext{ 5848 Object: "Query", 5849 Field: field, 5850 IsMethod: true, 5851 IsResolver: true, 5852 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5853 switch field.Name { 5854 case "Images": 5855 return ec.fieldContext_RepoInfo_Images(ctx, field) 5856 case "Summary": 5857 return ec.fieldContext_RepoInfo_Summary(ctx, field) 5858 } 5859 return nil, fmt.Errorf("no field named %q was found under type RepoInfo", field.Name) 5860 }, 5861 } 5862 defer func() { 5863 if r := recover(); r != nil { 5864 err = ec.Recover(ctx, r) 5865 ec.Error(ctx, err) 5866 } 5867 }() 5868 ctx = graphql.WithFieldContext(ctx, fc) 5869 if fc.Args, err = ec.field_Query_ExpandedRepoInfo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5870 ec.Error(ctx, err) 5871 return fc, err 5872 } 5873 return fc, nil 5874 } 5875 5876 func (ec *executionContext) _Query_GlobalSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5877 fc, err := ec.fieldContext_Query_GlobalSearch(ctx, field) 5878 if err != nil { 5879 return graphql.Null 5880 } 5881 ctx = graphql.WithFieldContext(ctx, fc) 5882 defer func() { 5883 if r := recover(); r != nil { 5884 ec.Error(ctx, ec.Recover(ctx, r)) 5885 ret = graphql.Null 5886 } 5887 }() 5888 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5889 ctx = rctx // use context from middleware stack in children 5890 return ec.resolvers.Query().GlobalSearch(rctx, fc.Args["query"].(string), fc.Args["filter"].(*Filter), fc.Args["requestedPage"].(*PageInput)) 5891 }) 5892 if err != nil { 5893 ec.Error(ctx, err) 5894 return graphql.Null 5895 } 5896 if resTmp == nil { 5897 if !graphql.HasFieldError(ctx, fc) { 5898 ec.Errorf(ctx, "must not be null") 5899 } 5900 return graphql.Null 5901 } 5902 res := resTmp.(*GlobalSearchResult) 5903 fc.Result = res 5904 return ec.marshalNGlobalSearchResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐGlobalSearchResult(ctx, field.Selections, res) 5905 } 5906 5907 func (ec *executionContext) fieldContext_Query_GlobalSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5908 fc = &graphql.FieldContext{ 5909 Object: "Query", 5910 Field: field, 5911 IsMethod: true, 5912 IsResolver: true, 5913 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5914 switch field.Name { 5915 case "Page": 5916 return ec.fieldContext_GlobalSearchResult_Page(ctx, field) 5917 case "Images": 5918 return ec.fieldContext_GlobalSearchResult_Images(ctx, field) 5919 case "Repos": 5920 return ec.fieldContext_GlobalSearchResult_Repos(ctx, field) 5921 case "Layers": 5922 return ec.fieldContext_GlobalSearchResult_Layers(ctx, field) 5923 } 5924 return nil, fmt.Errorf("no field named %q was found under type GlobalSearchResult", field.Name) 5925 }, 5926 } 5927 defer func() { 5928 if r := recover(); r != nil { 5929 err = ec.Recover(ctx, r) 5930 ec.Error(ctx, err) 5931 } 5932 }() 5933 ctx = graphql.WithFieldContext(ctx, fc) 5934 if fc.Args, err = ec.field_Query_GlobalSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5935 ec.Error(ctx, err) 5936 return fc, err 5937 } 5938 return fc, nil 5939 } 5940 5941 func (ec *executionContext) _Query_DerivedImageList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 5942 fc, err := ec.fieldContext_Query_DerivedImageList(ctx, field) 5943 if err != nil { 5944 return graphql.Null 5945 } 5946 ctx = graphql.WithFieldContext(ctx, fc) 5947 defer func() { 5948 if r := recover(); r != nil { 5949 ec.Error(ctx, ec.Recover(ctx, r)) 5950 ret = graphql.Null 5951 } 5952 }() 5953 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 5954 ctx = rctx // use context from middleware stack in children 5955 return ec.resolvers.Query().DerivedImageList(rctx, fc.Args["image"].(string), fc.Args["digest"].(*string), fc.Args["requestedPage"].(*PageInput)) 5956 }) 5957 if err != nil { 5958 ec.Error(ctx, err) 5959 return graphql.Null 5960 } 5961 if resTmp == nil { 5962 if !graphql.HasFieldError(ctx, fc) { 5963 ec.Errorf(ctx, "must not be null") 5964 } 5965 return graphql.Null 5966 } 5967 res := resTmp.(*PaginatedImagesResult) 5968 fc.Result = res 5969 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 5970 } 5971 5972 func (ec *executionContext) fieldContext_Query_DerivedImageList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 5973 fc = &graphql.FieldContext{ 5974 Object: "Query", 5975 Field: field, 5976 IsMethod: true, 5977 IsResolver: true, 5978 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 5979 switch field.Name { 5980 case "Page": 5981 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 5982 case "Results": 5983 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 5984 } 5985 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 5986 }, 5987 } 5988 defer func() { 5989 if r := recover(); r != nil { 5990 err = ec.Recover(ctx, r) 5991 ec.Error(ctx, err) 5992 } 5993 }() 5994 ctx = graphql.WithFieldContext(ctx, fc) 5995 if fc.Args, err = ec.field_Query_DerivedImageList_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 5996 ec.Error(ctx, err) 5997 return fc, err 5998 } 5999 return fc, nil 6000 } 6001 6002 func (ec *executionContext) _Query_BaseImageList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6003 fc, err := ec.fieldContext_Query_BaseImageList(ctx, field) 6004 if err != nil { 6005 return graphql.Null 6006 } 6007 ctx = graphql.WithFieldContext(ctx, fc) 6008 defer func() { 6009 if r := recover(); r != nil { 6010 ec.Error(ctx, ec.Recover(ctx, r)) 6011 ret = graphql.Null 6012 } 6013 }() 6014 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6015 ctx = rctx // use context from middleware stack in children 6016 return ec.resolvers.Query().BaseImageList(rctx, fc.Args["image"].(string), fc.Args["digest"].(*string), fc.Args["requestedPage"].(*PageInput)) 6017 }) 6018 if err != nil { 6019 ec.Error(ctx, err) 6020 return graphql.Null 6021 } 6022 if resTmp == nil { 6023 if !graphql.HasFieldError(ctx, fc) { 6024 ec.Errorf(ctx, "must not be null") 6025 } 6026 return graphql.Null 6027 } 6028 res := resTmp.(*PaginatedImagesResult) 6029 fc.Result = res 6030 return ec.marshalNPaginatedImagesResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx, field.Selections, res) 6031 } 6032 6033 func (ec *executionContext) fieldContext_Query_BaseImageList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6034 fc = &graphql.FieldContext{ 6035 Object: "Query", 6036 Field: field, 6037 IsMethod: true, 6038 IsResolver: true, 6039 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6040 switch field.Name { 6041 case "Page": 6042 return ec.fieldContext_PaginatedImagesResult_Page(ctx, field) 6043 case "Results": 6044 return ec.fieldContext_PaginatedImagesResult_Results(ctx, field) 6045 } 6046 return nil, fmt.Errorf("no field named %q was found under type PaginatedImagesResult", field.Name) 6047 }, 6048 } 6049 defer func() { 6050 if r := recover(); r != nil { 6051 err = ec.Recover(ctx, r) 6052 ec.Error(ctx, err) 6053 } 6054 }() 6055 ctx = graphql.WithFieldContext(ctx, fc) 6056 if fc.Args, err = ec.field_Query_BaseImageList_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6057 ec.Error(ctx, err) 6058 return fc, err 6059 } 6060 return fc, nil 6061 } 6062 6063 func (ec *executionContext) _Query_Image(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6064 fc, err := ec.fieldContext_Query_Image(ctx, field) 6065 if err != nil { 6066 return graphql.Null 6067 } 6068 ctx = graphql.WithFieldContext(ctx, fc) 6069 defer func() { 6070 if r := recover(); r != nil { 6071 ec.Error(ctx, ec.Recover(ctx, r)) 6072 ret = graphql.Null 6073 } 6074 }() 6075 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6076 ctx = rctx // use context from middleware stack in children 6077 return ec.resolvers.Query().Image(rctx, fc.Args["image"].(string)) 6078 }) 6079 if err != nil { 6080 ec.Error(ctx, err) 6081 return graphql.Null 6082 } 6083 if resTmp == nil { 6084 if !graphql.HasFieldError(ctx, fc) { 6085 ec.Errorf(ctx, "must not be null") 6086 } 6087 return graphql.Null 6088 } 6089 res := resTmp.(*ImageSummary) 6090 fc.Result = res 6091 return ec.marshalNImageSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, field.Selections, res) 6092 } 6093 6094 func (ec *executionContext) fieldContext_Query_Image(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6095 fc = &graphql.FieldContext{ 6096 Object: "Query", 6097 Field: field, 6098 IsMethod: true, 6099 IsResolver: true, 6100 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6101 switch field.Name { 6102 case "RepoName": 6103 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 6104 case "Tag": 6105 return ec.fieldContext_ImageSummary_Tag(ctx, field) 6106 case "Digest": 6107 return ec.fieldContext_ImageSummary_Digest(ctx, field) 6108 case "MediaType": 6109 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 6110 case "Manifests": 6111 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 6112 case "Size": 6113 return ec.fieldContext_ImageSummary_Size(ctx, field) 6114 case "DownloadCount": 6115 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 6116 case "LastUpdated": 6117 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 6118 case "Description": 6119 return ec.fieldContext_ImageSummary_Description(ctx, field) 6120 case "IsSigned": 6121 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 6122 case "SignatureInfo": 6123 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 6124 case "Licenses": 6125 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 6126 case "Labels": 6127 return ec.fieldContext_ImageSummary_Labels(ctx, field) 6128 case "Title": 6129 return ec.fieldContext_ImageSummary_Title(ctx, field) 6130 case "Source": 6131 return ec.fieldContext_ImageSummary_Source(ctx, field) 6132 case "Documentation": 6133 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 6134 case "Vendor": 6135 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 6136 case "Authors": 6137 return ec.fieldContext_ImageSummary_Authors(ctx, field) 6138 case "Vulnerabilities": 6139 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 6140 case "Referrers": 6141 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 6142 } 6143 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 6144 }, 6145 } 6146 defer func() { 6147 if r := recover(); r != nil { 6148 err = ec.Recover(ctx, r) 6149 ec.Error(ctx, err) 6150 } 6151 }() 6152 ctx = graphql.WithFieldContext(ctx, fc) 6153 if fc.Args, err = ec.field_Query_Image_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6154 ec.Error(ctx, err) 6155 return fc, err 6156 } 6157 return fc, nil 6158 } 6159 6160 func (ec *executionContext) _Query_Referrers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6161 fc, err := ec.fieldContext_Query_Referrers(ctx, field) 6162 if err != nil { 6163 return graphql.Null 6164 } 6165 ctx = graphql.WithFieldContext(ctx, fc) 6166 defer func() { 6167 if r := recover(); r != nil { 6168 ec.Error(ctx, ec.Recover(ctx, r)) 6169 ret = graphql.Null 6170 } 6171 }() 6172 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6173 ctx = rctx // use context from middleware stack in children 6174 return ec.resolvers.Query().Referrers(rctx, fc.Args["repo"].(string), fc.Args["digest"].(string), fc.Args["type"].([]string)) 6175 }) 6176 if err != nil { 6177 ec.Error(ctx, err) 6178 return graphql.Null 6179 } 6180 if resTmp == nil { 6181 if !graphql.HasFieldError(ctx, fc) { 6182 ec.Errorf(ctx, "must not be null") 6183 } 6184 return graphql.Null 6185 } 6186 res := resTmp.([]*Referrer) 6187 fc.Result = res 6188 return ec.marshalNReferrer2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, field.Selections, res) 6189 } 6190 6191 func (ec *executionContext) fieldContext_Query_Referrers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6192 fc = &graphql.FieldContext{ 6193 Object: "Query", 6194 Field: field, 6195 IsMethod: true, 6196 IsResolver: true, 6197 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6198 switch field.Name { 6199 case "MediaType": 6200 return ec.fieldContext_Referrer_MediaType(ctx, field) 6201 case "ArtifactType": 6202 return ec.fieldContext_Referrer_ArtifactType(ctx, field) 6203 case "Size": 6204 return ec.fieldContext_Referrer_Size(ctx, field) 6205 case "Digest": 6206 return ec.fieldContext_Referrer_Digest(ctx, field) 6207 case "Annotations": 6208 return ec.fieldContext_Referrer_Annotations(ctx, field) 6209 } 6210 return nil, fmt.Errorf("no field named %q was found under type Referrer", field.Name) 6211 }, 6212 } 6213 defer func() { 6214 if r := recover(); r != nil { 6215 err = ec.Recover(ctx, r) 6216 ec.Error(ctx, err) 6217 } 6218 }() 6219 ctx = graphql.WithFieldContext(ctx, fc) 6220 if fc.Args, err = ec.field_Query_Referrers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6221 ec.Error(ctx, err) 6222 return fc, err 6223 } 6224 return fc, nil 6225 } 6226 6227 func (ec *executionContext) _Query_StarredRepos(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6228 fc, err := ec.fieldContext_Query_StarredRepos(ctx, field) 6229 if err != nil { 6230 return graphql.Null 6231 } 6232 ctx = graphql.WithFieldContext(ctx, fc) 6233 defer func() { 6234 if r := recover(); r != nil { 6235 ec.Error(ctx, ec.Recover(ctx, r)) 6236 ret = graphql.Null 6237 } 6238 }() 6239 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6240 ctx = rctx // use context from middleware stack in children 6241 return ec.resolvers.Query().StarredRepos(rctx, fc.Args["requestedPage"].(*PageInput)) 6242 }) 6243 if err != nil { 6244 ec.Error(ctx, err) 6245 return graphql.Null 6246 } 6247 if resTmp == nil { 6248 if !graphql.HasFieldError(ctx, fc) { 6249 ec.Errorf(ctx, "must not be null") 6250 } 6251 return graphql.Null 6252 } 6253 res := resTmp.(*PaginatedReposResult) 6254 fc.Result = res 6255 return ec.marshalNPaginatedReposResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx, field.Selections, res) 6256 } 6257 6258 func (ec *executionContext) fieldContext_Query_StarredRepos(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6259 fc = &graphql.FieldContext{ 6260 Object: "Query", 6261 Field: field, 6262 IsMethod: true, 6263 IsResolver: true, 6264 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6265 switch field.Name { 6266 case "Page": 6267 return ec.fieldContext_PaginatedReposResult_Page(ctx, field) 6268 case "Results": 6269 return ec.fieldContext_PaginatedReposResult_Results(ctx, field) 6270 } 6271 return nil, fmt.Errorf("no field named %q was found under type PaginatedReposResult", field.Name) 6272 }, 6273 } 6274 defer func() { 6275 if r := recover(); r != nil { 6276 err = ec.Recover(ctx, r) 6277 ec.Error(ctx, err) 6278 } 6279 }() 6280 ctx = graphql.WithFieldContext(ctx, fc) 6281 if fc.Args, err = ec.field_Query_StarredRepos_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6282 ec.Error(ctx, err) 6283 return fc, err 6284 } 6285 return fc, nil 6286 } 6287 6288 func (ec *executionContext) _Query_BookmarkedRepos(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6289 fc, err := ec.fieldContext_Query_BookmarkedRepos(ctx, field) 6290 if err != nil { 6291 return graphql.Null 6292 } 6293 ctx = graphql.WithFieldContext(ctx, fc) 6294 defer func() { 6295 if r := recover(); r != nil { 6296 ec.Error(ctx, ec.Recover(ctx, r)) 6297 ret = graphql.Null 6298 } 6299 }() 6300 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6301 ctx = rctx // use context from middleware stack in children 6302 return ec.resolvers.Query().BookmarkedRepos(rctx, fc.Args["requestedPage"].(*PageInput)) 6303 }) 6304 if err != nil { 6305 ec.Error(ctx, err) 6306 return graphql.Null 6307 } 6308 if resTmp == nil { 6309 if !graphql.HasFieldError(ctx, fc) { 6310 ec.Errorf(ctx, "must not be null") 6311 } 6312 return graphql.Null 6313 } 6314 res := resTmp.(*PaginatedReposResult) 6315 fc.Result = res 6316 return ec.marshalNPaginatedReposResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx, field.Selections, res) 6317 } 6318 6319 func (ec *executionContext) fieldContext_Query_BookmarkedRepos(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6320 fc = &graphql.FieldContext{ 6321 Object: "Query", 6322 Field: field, 6323 IsMethod: true, 6324 IsResolver: true, 6325 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6326 switch field.Name { 6327 case "Page": 6328 return ec.fieldContext_PaginatedReposResult_Page(ctx, field) 6329 case "Results": 6330 return ec.fieldContext_PaginatedReposResult_Results(ctx, field) 6331 } 6332 return nil, fmt.Errorf("no field named %q was found under type PaginatedReposResult", field.Name) 6333 }, 6334 } 6335 defer func() { 6336 if r := recover(); r != nil { 6337 err = ec.Recover(ctx, r) 6338 ec.Error(ctx, err) 6339 } 6340 }() 6341 ctx = graphql.WithFieldContext(ctx, fc) 6342 if fc.Args, err = ec.field_Query_BookmarkedRepos_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6343 ec.Error(ctx, err) 6344 return fc, err 6345 } 6346 return fc, nil 6347 } 6348 6349 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6350 fc, err := ec.fieldContext_Query___type(ctx, field) 6351 if err != nil { 6352 return graphql.Null 6353 } 6354 ctx = graphql.WithFieldContext(ctx, fc) 6355 defer func() { 6356 if r := recover(); r != nil { 6357 ec.Error(ctx, ec.Recover(ctx, r)) 6358 ret = graphql.Null 6359 } 6360 }() 6361 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6362 ctx = rctx // use context from middleware stack in children 6363 return ec.introspectType(fc.Args["name"].(string)) 6364 }) 6365 if err != nil { 6366 ec.Error(ctx, err) 6367 return graphql.Null 6368 } 6369 if resTmp == nil { 6370 return graphql.Null 6371 } 6372 res := resTmp.(*introspection.Type) 6373 fc.Result = res 6374 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 6375 } 6376 6377 func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6378 fc = &graphql.FieldContext{ 6379 Object: "Query", 6380 Field: field, 6381 IsMethod: true, 6382 IsResolver: false, 6383 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6384 switch field.Name { 6385 case "kind": 6386 return ec.fieldContext___Type_kind(ctx, field) 6387 case "name": 6388 return ec.fieldContext___Type_name(ctx, field) 6389 case "description": 6390 return ec.fieldContext___Type_description(ctx, field) 6391 case "fields": 6392 return ec.fieldContext___Type_fields(ctx, field) 6393 case "interfaces": 6394 return ec.fieldContext___Type_interfaces(ctx, field) 6395 case "possibleTypes": 6396 return ec.fieldContext___Type_possibleTypes(ctx, field) 6397 case "enumValues": 6398 return ec.fieldContext___Type_enumValues(ctx, field) 6399 case "inputFields": 6400 return ec.fieldContext___Type_inputFields(ctx, field) 6401 case "ofType": 6402 return ec.fieldContext___Type_ofType(ctx, field) 6403 case "specifiedByURL": 6404 return ec.fieldContext___Type_specifiedByURL(ctx, field) 6405 } 6406 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 6407 }, 6408 } 6409 defer func() { 6410 if r := recover(); r != nil { 6411 err = ec.Recover(ctx, r) 6412 ec.Error(ctx, err) 6413 } 6414 }() 6415 ctx = graphql.WithFieldContext(ctx, fc) 6416 if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 6417 ec.Error(ctx, err) 6418 return fc, err 6419 } 6420 return fc, nil 6421 } 6422 6423 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 6424 fc, err := ec.fieldContext_Query___schema(ctx, field) 6425 if err != nil { 6426 return graphql.Null 6427 } 6428 ctx = graphql.WithFieldContext(ctx, fc) 6429 defer func() { 6430 if r := recover(); r != nil { 6431 ec.Error(ctx, ec.Recover(ctx, r)) 6432 ret = graphql.Null 6433 } 6434 }() 6435 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6436 ctx = rctx // use context from middleware stack in children 6437 return ec.introspectSchema() 6438 }) 6439 if err != nil { 6440 ec.Error(ctx, err) 6441 return graphql.Null 6442 } 6443 if resTmp == nil { 6444 return graphql.Null 6445 } 6446 res := resTmp.(*introspection.Schema) 6447 fc.Result = res 6448 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) 6449 } 6450 6451 func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6452 fc = &graphql.FieldContext{ 6453 Object: "Query", 6454 Field: field, 6455 IsMethod: true, 6456 IsResolver: false, 6457 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6458 switch field.Name { 6459 case "description": 6460 return ec.fieldContext___Schema_description(ctx, field) 6461 case "types": 6462 return ec.fieldContext___Schema_types(ctx, field) 6463 case "queryType": 6464 return ec.fieldContext___Schema_queryType(ctx, field) 6465 case "mutationType": 6466 return ec.fieldContext___Schema_mutationType(ctx, field) 6467 case "subscriptionType": 6468 return ec.fieldContext___Schema_subscriptionType(ctx, field) 6469 case "directives": 6470 return ec.fieldContext___Schema_directives(ctx, field) 6471 } 6472 return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) 6473 }, 6474 } 6475 return fc, nil 6476 } 6477 6478 func (ec *executionContext) _Referrer_MediaType(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 6479 fc, err := ec.fieldContext_Referrer_MediaType(ctx, field) 6480 if err != nil { 6481 return graphql.Null 6482 } 6483 ctx = graphql.WithFieldContext(ctx, fc) 6484 defer func() { 6485 if r := recover(); r != nil { 6486 ec.Error(ctx, ec.Recover(ctx, r)) 6487 ret = graphql.Null 6488 } 6489 }() 6490 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6491 ctx = rctx // use context from middleware stack in children 6492 return obj.MediaType, nil 6493 }) 6494 if err != nil { 6495 ec.Error(ctx, err) 6496 return graphql.Null 6497 } 6498 if resTmp == nil { 6499 return graphql.Null 6500 } 6501 res := resTmp.(*string) 6502 fc.Result = res 6503 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6504 } 6505 6506 func (ec *executionContext) fieldContext_Referrer_MediaType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6507 fc = &graphql.FieldContext{ 6508 Object: "Referrer", 6509 Field: field, 6510 IsMethod: false, 6511 IsResolver: false, 6512 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6513 return nil, errors.New("field of type String does not have child fields") 6514 }, 6515 } 6516 return fc, nil 6517 } 6518 6519 func (ec *executionContext) _Referrer_ArtifactType(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 6520 fc, err := ec.fieldContext_Referrer_ArtifactType(ctx, field) 6521 if err != nil { 6522 return graphql.Null 6523 } 6524 ctx = graphql.WithFieldContext(ctx, fc) 6525 defer func() { 6526 if r := recover(); r != nil { 6527 ec.Error(ctx, ec.Recover(ctx, r)) 6528 ret = graphql.Null 6529 } 6530 }() 6531 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6532 ctx = rctx // use context from middleware stack in children 6533 return obj.ArtifactType, nil 6534 }) 6535 if err != nil { 6536 ec.Error(ctx, err) 6537 return graphql.Null 6538 } 6539 if resTmp == nil { 6540 return graphql.Null 6541 } 6542 res := resTmp.(*string) 6543 fc.Result = res 6544 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6545 } 6546 6547 func (ec *executionContext) fieldContext_Referrer_ArtifactType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6548 fc = &graphql.FieldContext{ 6549 Object: "Referrer", 6550 Field: field, 6551 IsMethod: false, 6552 IsResolver: false, 6553 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6554 return nil, errors.New("field of type String does not have child fields") 6555 }, 6556 } 6557 return fc, nil 6558 } 6559 6560 func (ec *executionContext) _Referrer_Size(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 6561 fc, err := ec.fieldContext_Referrer_Size(ctx, field) 6562 if err != nil { 6563 return graphql.Null 6564 } 6565 ctx = graphql.WithFieldContext(ctx, fc) 6566 defer func() { 6567 if r := recover(); r != nil { 6568 ec.Error(ctx, ec.Recover(ctx, r)) 6569 ret = graphql.Null 6570 } 6571 }() 6572 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6573 ctx = rctx // use context from middleware stack in children 6574 return obj.Size, nil 6575 }) 6576 if err != nil { 6577 ec.Error(ctx, err) 6578 return graphql.Null 6579 } 6580 if resTmp == nil { 6581 return graphql.Null 6582 } 6583 res := resTmp.(*int) 6584 fc.Result = res 6585 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 6586 } 6587 6588 func (ec *executionContext) fieldContext_Referrer_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6589 fc = &graphql.FieldContext{ 6590 Object: "Referrer", 6591 Field: field, 6592 IsMethod: false, 6593 IsResolver: false, 6594 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6595 return nil, errors.New("field of type Int does not have child fields") 6596 }, 6597 } 6598 return fc, nil 6599 } 6600 6601 func (ec *executionContext) _Referrer_Digest(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 6602 fc, err := ec.fieldContext_Referrer_Digest(ctx, field) 6603 if err != nil { 6604 return graphql.Null 6605 } 6606 ctx = graphql.WithFieldContext(ctx, fc) 6607 defer func() { 6608 if r := recover(); r != nil { 6609 ec.Error(ctx, ec.Recover(ctx, r)) 6610 ret = graphql.Null 6611 } 6612 }() 6613 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6614 ctx = rctx // use context from middleware stack in children 6615 return obj.Digest, nil 6616 }) 6617 if err != nil { 6618 ec.Error(ctx, err) 6619 return graphql.Null 6620 } 6621 if resTmp == nil { 6622 return graphql.Null 6623 } 6624 res := resTmp.(*string) 6625 fc.Result = res 6626 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6627 } 6628 6629 func (ec *executionContext) fieldContext_Referrer_Digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6630 fc = &graphql.FieldContext{ 6631 Object: "Referrer", 6632 Field: field, 6633 IsMethod: false, 6634 IsResolver: false, 6635 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6636 return nil, errors.New("field of type String does not have child fields") 6637 }, 6638 } 6639 return fc, nil 6640 } 6641 6642 func (ec *executionContext) _Referrer_Annotations(ctx context.Context, field graphql.CollectedField, obj *Referrer) (ret graphql.Marshaler) { 6643 fc, err := ec.fieldContext_Referrer_Annotations(ctx, field) 6644 if err != nil { 6645 return graphql.Null 6646 } 6647 ctx = graphql.WithFieldContext(ctx, fc) 6648 defer func() { 6649 if r := recover(); r != nil { 6650 ec.Error(ctx, ec.Recover(ctx, r)) 6651 ret = graphql.Null 6652 } 6653 }() 6654 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6655 ctx = rctx // use context from middleware stack in children 6656 return obj.Annotations, nil 6657 }) 6658 if err != nil { 6659 ec.Error(ctx, err) 6660 return graphql.Null 6661 } 6662 if resTmp == nil { 6663 if !graphql.HasFieldError(ctx, fc) { 6664 ec.Errorf(ctx, "must not be null") 6665 } 6666 return graphql.Null 6667 } 6668 res := resTmp.([]*Annotation) 6669 fc.Result = res 6670 return ec.marshalNAnnotation2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐAnnotation(ctx, field.Selections, res) 6671 } 6672 6673 func (ec *executionContext) fieldContext_Referrer_Annotations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6674 fc = &graphql.FieldContext{ 6675 Object: "Referrer", 6676 Field: field, 6677 IsMethod: false, 6678 IsResolver: false, 6679 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6680 switch field.Name { 6681 case "Key": 6682 return ec.fieldContext_Annotation_Key(ctx, field) 6683 case "Value": 6684 return ec.fieldContext_Annotation_Value(ctx, field) 6685 } 6686 return nil, fmt.Errorf("no field named %q was found under type Annotation", field.Name) 6687 }, 6688 } 6689 return fc, nil 6690 } 6691 6692 func (ec *executionContext) _RepoInfo_Images(ctx context.Context, field graphql.CollectedField, obj *RepoInfo) (ret graphql.Marshaler) { 6693 fc, err := ec.fieldContext_RepoInfo_Images(ctx, field) 6694 if err != nil { 6695 return graphql.Null 6696 } 6697 ctx = graphql.WithFieldContext(ctx, fc) 6698 defer func() { 6699 if r := recover(); r != nil { 6700 ec.Error(ctx, ec.Recover(ctx, r)) 6701 ret = graphql.Null 6702 } 6703 }() 6704 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6705 ctx = rctx // use context from middleware stack in children 6706 return obj.Images, nil 6707 }) 6708 if err != nil { 6709 ec.Error(ctx, err) 6710 return graphql.Null 6711 } 6712 if resTmp == nil { 6713 return graphql.Null 6714 } 6715 res := resTmp.([]*ImageSummary) 6716 fc.Result = res 6717 return ec.marshalOImageSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, field.Selections, res) 6718 } 6719 6720 func (ec *executionContext) fieldContext_RepoInfo_Images(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6721 fc = &graphql.FieldContext{ 6722 Object: "RepoInfo", 6723 Field: field, 6724 IsMethod: false, 6725 IsResolver: false, 6726 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6727 switch field.Name { 6728 case "RepoName": 6729 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 6730 case "Tag": 6731 return ec.fieldContext_ImageSummary_Tag(ctx, field) 6732 case "Digest": 6733 return ec.fieldContext_ImageSummary_Digest(ctx, field) 6734 case "MediaType": 6735 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 6736 case "Manifests": 6737 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 6738 case "Size": 6739 return ec.fieldContext_ImageSummary_Size(ctx, field) 6740 case "DownloadCount": 6741 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 6742 case "LastUpdated": 6743 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 6744 case "Description": 6745 return ec.fieldContext_ImageSummary_Description(ctx, field) 6746 case "IsSigned": 6747 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 6748 case "SignatureInfo": 6749 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 6750 case "Licenses": 6751 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 6752 case "Labels": 6753 return ec.fieldContext_ImageSummary_Labels(ctx, field) 6754 case "Title": 6755 return ec.fieldContext_ImageSummary_Title(ctx, field) 6756 case "Source": 6757 return ec.fieldContext_ImageSummary_Source(ctx, field) 6758 case "Documentation": 6759 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 6760 case "Vendor": 6761 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 6762 case "Authors": 6763 return ec.fieldContext_ImageSummary_Authors(ctx, field) 6764 case "Vulnerabilities": 6765 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 6766 case "Referrers": 6767 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 6768 } 6769 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 6770 }, 6771 } 6772 return fc, nil 6773 } 6774 6775 func (ec *executionContext) _RepoInfo_Summary(ctx context.Context, field graphql.CollectedField, obj *RepoInfo) (ret graphql.Marshaler) { 6776 fc, err := ec.fieldContext_RepoInfo_Summary(ctx, field) 6777 if err != nil { 6778 return graphql.Null 6779 } 6780 ctx = graphql.WithFieldContext(ctx, fc) 6781 defer func() { 6782 if r := recover(); r != nil { 6783 ec.Error(ctx, ec.Recover(ctx, r)) 6784 ret = graphql.Null 6785 } 6786 }() 6787 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6788 ctx = rctx // use context from middleware stack in children 6789 return obj.Summary, nil 6790 }) 6791 if err != nil { 6792 ec.Error(ctx, err) 6793 return graphql.Null 6794 } 6795 if resTmp == nil { 6796 return graphql.Null 6797 } 6798 res := resTmp.(*RepoSummary) 6799 fc.Result = res 6800 return ec.marshalORepoSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx, field.Selections, res) 6801 } 6802 6803 func (ec *executionContext) fieldContext_RepoInfo_Summary(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6804 fc = &graphql.FieldContext{ 6805 Object: "RepoInfo", 6806 Field: field, 6807 IsMethod: false, 6808 IsResolver: false, 6809 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6810 switch field.Name { 6811 case "Name": 6812 return ec.fieldContext_RepoSummary_Name(ctx, field) 6813 case "LastUpdated": 6814 return ec.fieldContext_RepoSummary_LastUpdated(ctx, field) 6815 case "Size": 6816 return ec.fieldContext_RepoSummary_Size(ctx, field) 6817 case "Platforms": 6818 return ec.fieldContext_RepoSummary_Platforms(ctx, field) 6819 case "Vendors": 6820 return ec.fieldContext_RepoSummary_Vendors(ctx, field) 6821 case "NewestImage": 6822 return ec.fieldContext_RepoSummary_NewestImage(ctx, field) 6823 case "DownloadCount": 6824 return ec.fieldContext_RepoSummary_DownloadCount(ctx, field) 6825 case "StarCount": 6826 return ec.fieldContext_RepoSummary_StarCount(ctx, field) 6827 case "IsBookmarked": 6828 return ec.fieldContext_RepoSummary_IsBookmarked(ctx, field) 6829 case "IsStarred": 6830 return ec.fieldContext_RepoSummary_IsStarred(ctx, field) 6831 case "Rank": 6832 return ec.fieldContext_RepoSummary_Rank(ctx, field) 6833 } 6834 return nil, fmt.Errorf("no field named %q was found under type RepoSummary", field.Name) 6835 }, 6836 } 6837 return fc, nil 6838 } 6839 6840 func (ec *executionContext) _RepoSummary_Name(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 6841 fc, err := ec.fieldContext_RepoSummary_Name(ctx, field) 6842 if err != nil { 6843 return graphql.Null 6844 } 6845 ctx = graphql.WithFieldContext(ctx, fc) 6846 defer func() { 6847 if r := recover(); r != nil { 6848 ec.Error(ctx, ec.Recover(ctx, r)) 6849 ret = graphql.Null 6850 } 6851 }() 6852 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6853 ctx = rctx // use context from middleware stack in children 6854 return obj.Name, nil 6855 }) 6856 if err != nil { 6857 ec.Error(ctx, err) 6858 return graphql.Null 6859 } 6860 if resTmp == nil { 6861 return graphql.Null 6862 } 6863 res := resTmp.(*string) 6864 fc.Result = res 6865 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6866 } 6867 6868 func (ec *executionContext) fieldContext_RepoSummary_Name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6869 fc = &graphql.FieldContext{ 6870 Object: "RepoSummary", 6871 Field: field, 6872 IsMethod: false, 6873 IsResolver: false, 6874 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6875 return nil, errors.New("field of type String does not have child fields") 6876 }, 6877 } 6878 return fc, nil 6879 } 6880 6881 func (ec *executionContext) _RepoSummary_LastUpdated(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 6882 fc, err := ec.fieldContext_RepoSummary_LastUpdated(ctx, field) 6883 if err != nil { 6884 return graphql.Null 6885 } 6886 ctx = graphql.WithFieldContext(ctx, fc) 6887 defer func() { 6888 if r := recover(); r != nil { 6889 ec.Error(ctx, ec.Recover(ctx, r)) 6890 ret = graphql.Null 6891 } 6892 }() 6893 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6894 ctx = rctx // use context from middleware stack in children 6895 return obj.LastUpdated, nil 6896 }) 6897 if err != nil { 6898 ec.Error(ctx, err) 6899 return graphql.Null 6900 } 6901 if resTmp == nil { 6902 return graphql.Null 6903 } 6904 res := resTmp.(*time.Time) 6905 fc.Result = res 6906 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) 6907 } 6908 6909 func (ec *executionContext) fieldContext_RepoSummary_LastUpdated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6910 fc = &graphql.FieldContext{ 6911 Object: "RepoSummary", 6912 Field: field, 6913 IsMethod: false, 6914 IsResolver: false, 6915 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6916 return nil, errors.New("field of type Time does not have child fields") 6917 }, 6918 } 6919 return fc, nil 6920 } 6921 6922 func (ec *executionContext) _RepoSummary_Size(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 6923 fc, err := ec.fieldContext_RepoSummary_Size(ctx, field) 6924 if err != nil { 6925 return graphql.Null 6926 } 6927 ctx = graphql.WithFieldContext(ctx, fc) 6928 defer func() { 6929 if r := recover(); r != nil { 6930 ec.Error(ctx, ec.Recover(ctx, r)) 6931 ret = graphql.Null 6932 } 6933 }() 6934 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6935 ctx = rctx // use context from middleware stack in children 6936 return obj.Size, nil 6937 }) 6938 if err != nil { 6939 ec.Error(ctx, err) 6940 return graphql.Null 6941 } 6942 if resTmp == nil { 6943 return graphql.Null 6944 } 6945 res := resTmp.(*string) 6946 fc.Result = res 6947 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 6948 } 6949 6950 func (ec *executionContext) fieldContext_RepoSummary_Size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6951 fc = &graphql.FieldContext{ 6952 Object: "RepoSummary", 6953 Field: field, 6954 IsMethod: false, 6955 IsResolver: false, 6956 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6957 return nil, errors.New("field of type String does not have child fields") 6958 }, 6959 } 6960 return fc, nil 6961 } 6962 6963 func (ec *executionContext) _RepoSummary_Platforms(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 6964 fc, err := ec.fieldContext_RepoSummary_Platforms(ctx, field) 6965 if err != nil { 6966 return graphql.Null 6967 } 6968 ctx = graphql.WithFieldContext(ctx, fc) 6969 defer func() { 6970 if r := recover(); r != nil { 6971 ec.Error(ctx, ec.Recover(ctx, r)) 6972 ret = graphql.Null 6973 } 6974 }() 6975 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6976 ctx = rctx // use context from middleware stack in children 6977 return obj.Platforms, nil 6978 }) 6979 if err != nil { 6980 ec.Error(ctx, err) 6981 return graphql.Null 6982 } 6983 if resTmp == nil { 6984 return graphql.Null 6985 } 6986 res := resTmp.([]*Platform) 6987 fc.Result = res 6988 return ec.marshalOPlatform2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx, field.Selections, res) 6989 } 6990 6991 func (ec *executionContext) fieldContext_RepoSummary_Platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6992 fc = &graphql.FieldContext{ 6993 Object: "RepoSummary", 6994 Field: field, 6995 IsMethod: false, 6996 IsResolver: false, 6997 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6998 switch field.Name { 6999 case "Os": 7000 return ec.fieldContext_Platform_Os(ctx, field) 7001 case "Arch": 7002 return ec.fieldContext_Platform_Arch(ctx, field) 7003 } 7004 return nil, fmt.Errorf("no field named %q was found under type Platform", field.Name) 7005 }, 7006 } 7007 return fc, nil 7008 } 7009 7010 func (ec *executionContext) _RepoSummary_Vendors(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 7011 fc, err := ec.fieldContext_RepoSummary_Vendors(ctx, field) 7012 if err != nil { 7013 return graphql.Null 7014 } 7015 ctx = graphql.WithFieldContext(ctx, fc) 7016 defer func() { 7017 if r := recover(); r != nil { 7018 ec.Error(ctx, ec.Recover(ctx, r)) 7019 ret = graphql.Null 7020 } 7021 }() 7022 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7023 ctx = rctx // use context from middleware stack in children 7024 return obj.Vendors, nil 7025 }) 7026 if err != nil { 7027 ec.Error(ctx, err) 7028 return graphql.Null 7029 } 7030 if resTmp == nil { 7031 return graphql.Null 7032 } 7033 res := resTmp.([]*string) 7034 fc.Result = res 7035 return ec.marshalOString2ᚕᚖstring(ctx, field.Selections, res) 7036 } 7037 7038 func (ec *executionContext) fieldContext_RepoSummary_Vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7039 fc = &graphql.FieldContext{ 7040 Object: "RepoSummary", 7041 Field: field, 7042 IsMethod: false, 7043 IsResolver: false, 7044 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7045 return nil, errors.New("field of type String does not have child fields") 7046 }, 7047 } 7048 return fc, nil 7049 } 7050 7051 func (ec *executionContext) _RepoSummary_NewestImage(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 7052 fc, err := ec.fieldContext_RepoSummary_NewestImage(ctx, field) 7053 if err != nil { 7054 return graphql.Null 7055 } 7056 ctx = graphql.WithFieldContext(ctx, fc) 7057 defer func() { 7058 if r := recover(); r != nil { 7059 ec.Error(ctx, ec.Recover(ctx, r)) 7060 ret = graphql.Null 7061 } 7062 }() 7063 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7064 ctx = rctx // use context from middleware stack in children 7065 return obj.NewestImage, nil 7066 }) 7067 if err != nil { 7068 ec.Error(ctx, err) 7069 return graphql.Null 7070 } 7071 if resTmp == nil { 7072 return graphql.Null 7073 } 7074 res := resTmp.(*ImageSummary) 7075 fc.Result = res 7076 return ec.marshalOImageSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, field.Selections, res) 7077 } 7078 7079 func (ec *executionContext) fieldContext_RepoSummary_NewestImage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7080 fc = &graphql.FieldContext{ 7081 Object: "RepoSummary", 7082 Field: field, 7083 IsMethod: false, 7084 IsResolver: false, 7085 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7086 switch field.Name { 7087 case "RepoName": 7088 return ec.fieldContext_ImageSummary_RepoName(ctx, field) 7089 case "Tag": 7090 return ec.fieldContext_ImageSummary_Tag(ctx, field) 7091 case "Digest": 7092 return ec.fieldContext_ImageSummary_Digest(ctx, field) 7093 case "MediaType": 7094 return ec.fieldContext_ImageSummary_MediaType(ctx, field) 7095 case "Manifests": 7096 return ec.fieldContext_ImageSummary_Manifests(ctx, field) 7097 case "Size": 7098 return ec.fieldContext_ImageSummary_Size(ctx, field) 7099 case "DownloadCount": 7100 return ec.fieldContext_ImageSummary_DownloadCount(ctx, field) 7101 case "LastUpdated": 7102 return ec.fieldContext_ImageSummary_LastUpdated(ctx, field) 7103 case "Description": 7104 return ec.fieldContext_ImageSummary_Description(ctx, field) 7105 case "IsSigned": 7106 return ec.fieldContext_ImageSummary_IsSigned(ctx, field) 7107 case "SignatureInfo": 7108 return ec.fieldContext_ImageSummary_SignatureInfo(ctx, field) 7109 case "Licenses": 7110 return ec.fieldContext_ImageSummary_Licenses(ctx, field) 7111 case "Labels": 7112 return ec.fieldContext_ImageSummary_Labels(ctx, field) 7113 case "Title": 7114 return ec.fieldContext_ImageSummary_Title(ctx, field) 7115 case "Source": 7116 return ec.fieldContext_ImageSummary_Source(ctx, field) 7117 case "Documentation": 7118 return ec.fieldContext_ImageSummary_Documentation(ctx, field) 7119 case "Vendor": 7120 return ec.fieldContext_ImageSummary_Vendor(ctx, field) 7121 case "Authors": 7122 return ec.fieldContext_ImageSummary_Authors(ctx, field) 7123 case "Vulnerabilities": 7124 return ec.fieldContext_ImageSummary_Vulnerabilities(ctx, field) 7125 case "Referrers": 7126 return ec.fieldContext_ImageSummary_Referrers(ctx, field) 7127 } 7128 return nil, fmt.Errorf("no field named %q was found under type ImageSummary", field.Name) 7129 }, 7130 } 7131 return fc, nil 7132 } 7133 7134 func (ec *executionContext) _RepoSummary_DownloadCount(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 7135 fc, err := ec.fieldContext_RepoSummary_DownloadCount(ctx, field) 7136 if err != nil { 7137 return graphql.Null 7138 } 7139 ctx = graphql.WithFieldContext(ctx, fc) 7140 defer func() { 7141 if r := recover(); r != nil { 7142 ec.Error(ctx, ec.Recover(ctx, r)) 7143 ret = graphql.Null 7144 } 7145 }() 7146 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7147 ctx = rctx // use context from middleware stack in children 7148 return obj.DownloadCount, nil 7149 }) 7150 if err != nil { 7151 ec.Error(ctx, err) 7152 return graphql.Null 7153 } 7154 if resTmp == nil { 7155 return graphql.Null 7156 } 7157 res := resTmp.(*int) 7158 fc.Result = res 7159 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 7160 } 7161 7162 func (ec *executionContext) fieldContext_RepoSummary_DownloadCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7163 fc = &graphql.FieldContext{ 7164 Object: "RepoSummary", 7165 Field: field, 7166 IsMethod: false, 7167 IsResolver: false, 7168 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7169 return nil, errors.New("field of type Int does not have child fields") 7170 }, 7171 } 7172 return fc, nil 7173 } 7174 7175 func (ec *executionContext) _RepoSummary_StarCount(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 7176 fc, err := ec.fieldContext_RepoSummary_StarCount(ctx, field) 7177 if err != nil { 7178 return graphql.Null 7179 } 7180 ctx = graphql.WithFieldContext(ctx, fc) 7181 defer func() { 7182 if r := recover(); r != nil { 7183 ec.Error(ctx, ec.Recover(ctx, r)) 7184 ret = graphql.Null 7185 } 7186 }() 7187 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7188 ctx = rctx // use context from middleware stack in children 7189 return obj.StarCount, nil 7190 }) 7191 if err != nil { 7192 ec.Error(ctx, err) 7193 return graphql.Null 7194 } 7195 if resTmp == nil { 7196 return graphql.Null 7197 } 7198 res := resTmp.(*int) 7199 fc.Result = res 7200 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 7201 } 7202 7203 func (ec *executionContext) fieldContext_RepoSummary_StarCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7204 fc = &graphql.FieldContext{ 7205 Object: "RepoSummary", 7206 Field: field, 7207 IsMethod: false, 7208 IsResolver: false, 7209 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7210 return nil, errors.New("field of type Int does not have child fields") 7211 }, 7212 } 7213 return fc, nil 7214 } 7215 7216 func (ec *executionContext) _RepoSummary_IsBookmarked(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 7217 fc, err := ec.fieldContext_RepoSummary_IsBookmarked(ctx, field) 7218 if err != nil { 7219 return graphql.Null 7220 } 7221 ctx = graphql.WithFieldContext(ctx, fc) 7222 defer func() { 7223 if r := recover(); r != nil { 7224 ec.Error(ctx, ec.Recover(ctx, r)) 7225 ret = graphql.Null 7226 } 7227 }() 7228 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7229 ctx = rctx // use context from middleware stack in children 7230 return obj.IsBookmarked, nil 7231 }) 7232 if err != nil { 7233 ec.Error(ctx, err) 7234 return graphql.Null 7235 } 7236 if resTmp == nil { 7237 return graphql.Null 7238 } 7239 res := resTmp.(*bool) 7240 fc.Result = res 7241 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 7242 } 7243 7244 func (ec *executionContext) fieldContext_RepoSummary_IsBookmarked(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7245 fc = &graphql.FieldContext{ 7246 Object: "RepoSummary", 7247 Field: field, 7248 IsMethod: false, 7249 IsResolver: false, 7250 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7251 return nil, errors.New("field of type Boolean does not have child fields") 7252 }, 7253 } 7254 return fc, nil 7255 } 7256 7257 func (ec *executionContext) _RepoSummary_IsStarred(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 7258 fc, err := ec.fieldContext_RepoSummary_IsStarred(ctx, field) 7259 if err != nil { 7260 return graphql.Null 7261 } 7262 ctx = graphql.WithFieldContext(ctx, fc) 7263 defer func() { 7264 if r := recover(); r != nil { 7265 ec.Error(ctx, ec.Recover(ctx, r)) 7266 ret = graphql.Null 7267 } 7268 }() 7269 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7270 ctx = rctx // use context from middleware stack in children 7271 return obj.IsStarred, nil 7272 }) 7273 if err != nil { 7274 ec.Error(ctx, err) 7275 return graphql.Null 7276 } 7277 if resTmp == nil { 7278 return graphql.Null 7279 } 7280 res := resTmp.(*bool) 7281 fc.Result = res 7282 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 7283 } 7284 7285 func (ec *executionContext) fieldContext_RepoSummary_IsStarred(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7286 fc = &graphql.FieldContext{ 7287 Object: "RepoSummary", 7288 Field: field, 7289 IsMethod: false, 7290 IsResolver: false, 7291 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7292 return nil, errors.New("field of type Boolean does not have child fields") 7293 }, 7294 } 7295 return fc, nil 7296 } 7297 7298 func (ec *executionContext) _RepoSummary_Rank(ctx context.Context, field graphql.CollectedField, obj *RepoSummary) (ret graphql.Marshaler) { 7299 fc, err := ec.fieldContext_RepoSummary_Rank(ctx, field) 7300 if err != nil { 7301 return graphql.Null 7302 } 7303 ctx = graphql.WithFieldContext(ctx, fc) 7304 defer func() { 7305 if r := recover(); r != nil { 7306 ec.Error(ctx, ec.Recover(ctx, r)) 7307 ret = graphql.Null 7308 } 7309 }() 7310 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7311 ctx = rctx // use context from middleware stack in children 7312 return obj.Rank, nil 7313 }) 7314 if err != nil { 7315 ec.Error(ctx, err) 7316 return graphql.Null 7317 } 7318 if resTmp == nil { 7319 return graphql.Null 7320 } 7321 res := resTmp.(*int) 7322 fc.Result = res 7323 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 7324 } 7325 7326 func (ec *executionContext) fieldContext_RepoSummary_Rank(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7327 fc = &graphql.FieldContext{ 7328 Object: "RepoSummary", 7329 Field: field, 7330 IsMethod: false, 7331 IsResolver: false, 7332 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7333 return nil, errors.New("field of type Int does not have child fields") 7334 }, 7335 } 7336 return fc, nil 7337 } 7338 7339 func (ec *executionContext) _SignatureSummary_Tool(ctx context.Context, field graphql.CollectedField, obj *SignatureSummary) (ret graphql.Marshaler) { 7340 fc, err := ec.fieldContext_SignatureSummary_Tool(ctx, field) 7341 if err != nil { 7342 return graphql.Null 7343 } 7344 ctx = graphql.WithFieldContext(ctx, fc) 7345 defer func() { 7346 if r := recover(); r != nil { 7347 ec.Error(ctx, ec.Recover(ctx, r)) 7348 ret = graphql.Null 7349 } 7350 }() 7351 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7352 ctx = rctx // use context from middleware stack in children 7353 return obj.Tool, nil 7354 }) 7355 if err != nil { 7356 ec.Error(ctx, err) 7357 return graphql.Null 7358 } 7359 if resTmp == nil { 7360 return graphql.Null 7361 } 7362 res := resTmp.(*string) 7363 fc.Result = res 7364 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7365 } 7366 7367 func (ec *executionContext) fieldContext_SignatureSummary_Tool(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7368 fc = &graphql.FieldContext{ 7369 Object: "SignatureSummary", 7370 Field: field, 7371 IsMethod: false, 7372 IsResolver: false, 7373 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7374 return nil, errors.New("field of type String does not have child fields") 7375 }, 7376 } 7377 return fc, nil 7378 } 7379 7380 func (ec *executionContext) _SignatureSummary_IsTrusted(ctx context.Context, field graphql.CollectedField, obj *SignatureSummary) (ret graphql.Marshaler) { 7381 fc, err := ec.fieldContext_SignatureSummary_IsTrusted(ctx, field) 7382 if err != nil { 7383 return graphql.Null 7384 } 7385 ctx = graphql.WithFieldContext(ctx, fc) 7386 defer func() { 7387 if r := recover(); r != nil { 7388 ec.Error(ctx, ec.Recover(ctx, r)) 7389 ret = graphql.Null 7390 } 7391 }() 7392 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7393 ctx = rctx // use context from middleware stack in children 7394 return obj.IsTrusted, nil 7395 }) 7396 if err != nil { 7397 ec.Error(ctx, err) 7398 return graphql.Null 7399 } 7400 if resTmp == nil { 7401 return graphql.Null 7402 } 7403 res := resTmp.(*bool) 7404 fc.Result = res 7405 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 7406 } 7407 7408 func (ec *executionContext) fieldContext_SignatureSummary_IsTrusted(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7409 fc = &graphql.FieldContext{ 7410 Object: "SignatureSummary", 7411 Field: field, 7412 IsMethod: false, 7413 IsResolver: false, 7414 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7415 return nil, errors.New("field of type Boolean does not have child fields") 7416 }, 7417 } 7418 return fc, nil 7419 } 7420 7421 func (ec *executionContext) _SignatureSummary_Author(ctx context.Context, field graphql.CollectedField, obj *SignatureSummary) (ret graphql.Marshaler) { 7422 fc, err := ec.fieldContext_SignatureSummary_Author(ctx, field) 7423 if err != nil { 7424 return graphql.Null 7425 } 7426 ctx = graphql.WithFieldContext(ctx, fc) 7427 defer func() { 7428 if r := recover(); r != nil { 7429 ec.Error(ctx, ec.Recover(ctx, r)) 7430 ret = graphql.Null 7431 } 7432 }() 7433 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7434 ctx = rctx // use context from middleware stack in children 7435 return obj.Author, nil 7436 }) 7437 if err != nil { 7438 ec.Error(ctx, err) 7439 return graphql.Null 7440 } 7441 if resTmp == nil { 7442 return graphql.Null 7443 } 7444 res := resTmp.(*string) 7445 fc.Result = res 7446 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7447 } 7448 7449 func (ec *executionContext) fieldContext_SignatureSummary_Author(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7450 fc = &graphql.FieldContext{ 7451 Object: "SignatureSummary", 7452 Field: field, 7453 IsMethod: false, 7454 IsResolver: false, 7455 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7456 return nil, errors.New("field of type String does not have child fields") 7457 }, 7458 } 7459 return fc, nil 7460 } 7461 7462 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 7463 fc, err := ec.fieldContext___Directive_name(ctx, field) 7464 if err != nil { 7465 return graphql.Null 7466 } 7467 ctx = graphql.WithFieldContext(ctx, fc) 7468 defer func() { 7469 if r := recover(); r != nil { 7470 ec.Error(ctx, ec.Recover(ctx, r)) 7471 ret = graphql.Null 7472 } 7473 }() 7474 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7475 ctx = rctx // use context from middleware stack in children 7476 return obj.Name, nil 7477 }) 7478 if err != nil { 7479 ec.Error(ctx, err) 7480 return graphql.Null 7481 } 7482 if resTmp == nil { 7483 if !graphql.HasFieldError(ctx, fc) { 7484 ec.Errorf(ctx, "must not be null") 7485 } 7486 return graphql.Null 7487 } 7488 res := resTmp.(string) 7489 fc.Result = res 7490 return ec.marshalNString2string(ctx, field.Selections, res) 7491 } 7492 7493 func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7494 fc = &graphql.FieldContext{ 7495 Object: "__Directive", 7496 Field: field, 7497 IsMethod: false, 7498 IsResolver: false, 7499 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7500 return nil, errors.New("field of type String does not have child fields") 7501 }, 7502 } 7503 return fc, nil 7504 } 7505 7506 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 7507 fc, err := ec.fieldContext___Directive_description(ctx, field) 7508 if err != nil { 7509 return graphql.Null 7510 } 7511 ctx = graphql.WithFieldContext(ctx, fc) 7512 defer func() { 7513 if r := recover(); r != nil { 7514 ec.Error(ctx, ec.Recover(ctx, r)) 7515 ret = graphql.Null 7516 } 7517 }() 7518 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7519 ctx = rctx // use context from middleware stack in children 7520 return obj.Description(), nil 7521 }) 7522 if err != nil { 7523 ec.Error(ctx, err) 7524 return graphql.Null 7525 } 7526 if resTmp == nil { 7527 return graphql.Null 7528 } 7529 res := resTmp.(*string) 7530 fc.Result = res 7531 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7532 } 7533 7534 func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7535 fc = &graphql.FieldContext{ 7536 Object: "__Directive", 7537 Field: field, 7538 IsMethod: true, 7539 IsResolver: false, 7540 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7541 return nil, errors.New("field of type String does not have child fields") 7542 }, 7543 } 7544 return fc, nil 7545 } 7546 7547 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 7548 fc, err := ec.fieldContext___Directive_locations(ctx, field) 7549 if err != nil { 7550 return graphql.Null 7551 } 7552 ctx = graphql.WithFieldContext(ctx, fc) 7553 defer func() { 7554 if r := recover(); r != nil { 7555 ec.Error(ctx, ec.Recover(ctx, r)) 7556 ret = graphql.Null 7557 } 7558 }() 7559 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7560 ctx = rctx // use context from middleware stack in children 7561 return obj.Locations, nil 7562 }) 7563 if err != nil { 7564 ec.Error(ctx, err) 7565 return graphql.Null 7566 } 7567 if resTmp == nil { 7568 if !graphql.HasFieldError(ctx, fc) { 7569 ec.Errorf(ctx, "must not be null") 7570 } 7571 return graphql.Null 7572 } 7573 res := resTmp.([]string) 7574 fc.Result = res 7575 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) 7576 } 7577 7578 func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7579 fc = &graphql.FieldContext{ 7580 Object: "__Directive", 7581 Field: field, 7582 IsMethod: false, 7583 IsResolver: false, 7584 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7585 return nil, errors.New("field of type __DirectiveLocation does not have child fields") 7586 }, 7587 } 7588 return fc, nil 7589 } 7590 7591 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 7592 fc, err := ec.fieldContext___Directive_args(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 obj.Args, nil 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.([]introspection.InputValue) 7618 fc.Result = res 7619 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 7620 } 7621 7622 func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7623 fc = &graphql.FieldContext{ 7624 Object: "__Directive", 7625 Field: field, 7626 IsMethod: false, 7627 IsResolver: false, 7628 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7629 switch field.Name { 7630 case "name": 7631 return ec.fieldContext___InputValue_name(ctx, field) 7632 case "description": 7633 return ec.fieldContext___InputValue_description(ctx, field) 7634 case "type": 7635 return ec.fieldContext___InputValue_type(ctx, field) 7636 case "defaultValue": 7637 return ec.fieldContext___InputValue_defaultValue(ctx, field) 7638 } 7639 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 7640 }, 7641 } 7642 return fc, nil 7643 } 7644 7645 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 7646 fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) 7647 if err != nil { 7648 return graphql.Null 7649 } 7650 ctx = graphql.WithFieldContext(ctx, fc) 7651 defer func() { 7652 if r := recover(); r != nil { 7653 ec.Error(ctx, ec.Recover(ctx, r)) 7654 ret = graphql.Null 7655 } 7656 }() 7657 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7658 ctx = rctx // use context from middleware stack in children 7659 return obj.IsRepeatable, nil 7660 }) 7661 if err != nil { 7662 ec.Error(ctx, err) 7663 return graphql.Null 7664 } 7665 if resTmp == nil { 7666 if !graphql.HasFieldError(ctx, fc) { 7667 ec.Errorf(ctx, "must not be null") 7668 } 7669 return graphql.Null 7670 } 7671 res := resTmp.(bool) 7672 fc.Result = res 7673 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 7674 } 7675 7676 func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7677 fc = &graphql.FieldContext{ 7678 Object: "__Directive", 7679 Field: field, 7680 IsMethod: false, 7681 IsResolver: false, 7682 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7683 return nil, errors.New("field of type Boolean does not have child fields") 7684 }, 7685 } 7686 return fc, nil 7687 } 7688 7689 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 7690 fc, err := ec.fieldContext___EnumValue_name(ctx, field) 7691 if err != nil { 7692 return graphql.Null 7693 } 7694 ctx = graphql.WithFieldContext(ctx, fc) 7695 defer func() { 7696 if r := recover(); r != nil { 7697 ec.Error(ctx, ec.Recover(ctx, r)) 7698 ret = graphql.Null 7699 } 7700 }() 7701 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7702 ctx = rctx // use context from middleware stack in children 7703 return obj.Name, nil 7704 }) 7705 if err != nil { 7706 ec.Error(ctx, err) 7707 return graphql.Null 7708 } 7709 if resTmp == nil { 7710 if !graphql.HasFieldError(ctx, fc) { 7711 ec.Errorf(ctx, "must not be null") 7712 } 7713 return graphql.Null 7714 } 7715 res := resTmp.(string) 7716 fc.Result = res 7717 return ec.marshalNString2string(ctx, field.Selections, res) 7718 } 7719 7720 func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7721 fc = &graphql.FieldContext{ 7722 Object: "__EnumValue", 7723 Field: field, 7724 IsMethod: false, 7725 IsResolver: false, 7726 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7727 return nil, errors.New("field of type String does not have child fields") 7728 }, 7729 } 7730 return fc, nil 7731 } 7732 7733 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 7734 fc, err := ec.fieldContext___EnumValue_description(ctx, field) 7735 if err != nil { 7736 return graphql.Null 7737 } 7738 ctx = graphql.WithFieldContext(ctx, fc) 7739 defer func() { 7740 if r := recover(); r != nil { 7741 ec.Error(ctx, ec.Recover(ctx, r)) 7742 ret = graphql.Null 7743 } 7744 }() 7745 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7746 ctx = rctx // use context from middleware stack in children 7747 return obj.Description(), nil 7748 }) 7749 if err != nil { 7750 ec.Error(ctx, err) 7751 return graphql.Null 7752 } 7753 if resTmp == nil { 7754 return graphql.Null 7755 } 7756 res := resTmp.(*string) 7757 fc.Result = res 7758 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7759 } 7760 7761 func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7762 fc = &graphql.FieldContext{ 7763 Object: "__EnumValue", 7764 Field: field, 7765 IsMethod: true, 7766 IsResolver: false, 7767 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7768 return nil, errors.New("field of type String does not have child fields") 7769 }, 7770 } 7771 return fc, nil 7772 } 7773 7774 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 7775 fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) 7776 if err != nil { 7777 return graphql.Null 7778 } 7779 ctx = graphql.WithFieldContext(ctx, fc) 7780 defer func() { 7781 if r := recover(); r != nil { 7782 ec.Error(ctx, ec.Recover(ctx, r)) 7783 ret = graphql.Null 7784 } 7785 }() 7786 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7787 ctx = rctx // use context from middleware stack in children 7788 return obj.IsDeprecated(), nil 7789 }) 7790 if err != nil { 7791 ec.Error(ctx, err) 7792 return graphql.Null 7793 } 7794 if resTmp == nil { 7795 if !graphql.HasFieldError(ctx, fc) { 7796 ec.Errorf(ctx, "must not be null") 7797 } 7798 return graphql.Null 7799 } 7800 res := resTmp.(bool) 7801 fc.Result = res 7802 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 7803 } 7804 7805 func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7806 fc = &graphql.FieldContext{ 7807 Object: "__EnumValue", 7808 Field: field, 7809 IsMethod: true, 7810 IsResolver: false, 7811 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7812 return nil, errors.New("field of type Boolean does not have child fields") 7813 }, 7814 } 7815 return fc, nil 7816 } 7817 7818 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 7819 fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) 7820 if err != nil { 7821 return graphql.Null 7822 } 7823 ctx = graphql.WithFieldContext(ctx, fc) 7824 defer func() { 7825 if r := recover(); r != nil { 7826 ec.Error(ctx, ec.Recover(ctx, r)) 7827 ret = graphql.Null 7828 } 7829 }() 7830 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7831 ctx = rctx // use context from middleware stack in children 7832 return obj.DeprecationReason(), nil 7833 }) 7834 if err != nil { 7835 ec.Error(ctx, err) 7836 return graphql.Null 7837 } 7838 if resTmp == nil { 7839 return graphql.Null 7840 } 7841 res := resTmp.(*string) 7842 fc.Result = res 7843 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7844 } 7845 7846 func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7847 fc = &graphql.FieldContext{ 7848 Object: "__EnumValue", 7849 Field: field, 7850 IsMethod: true, 7851 IsResolver: false, 7852 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7853 return nil, errors.New("field of type String does not have child fields") 7854 }, 7855 } 7856 return fc, nil 7857 } 7858 7859 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 7860 fc, err := ec.fieldContext___Field_name(ctx, field) 7861 if err != nil { 7862 return graphql.Null 7863 } 7864 ctx = graphql.WithFieldContext(ctx, fc) 7865 defer func() { 7866 if r := recover(); r != nil { 7867 ec.Error(ctx, ec.Recover(ctx, r)) 7868 ret = graphql.Null 7869 } 7870 }() 7871 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7872 ctx = rctx // use context from middleware stack in children 7873 return obj.Name, nil 7874 }) 7875 if err != nil { 7876 ec.Error(ctx, err) 7877 return graphql.Null 7878 } 7879 if resTmp == nil { 7880 if !graphql.HasFieldError(ctx, fc) { 7881 ec.Errorf(ctx, "must not be null") 7882 } 7883 return graphql.Null 7884 } 7885 res := resTmp.(string) 7886 fc.Result = res 7887 return ec.marshalNString2string(ctx, field.Selections, res) 7888 } 7889 7890 func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7891 fc = &graphql.FieldContext{ 7892 Object: "__Field", 7893 Field: field, 7894 IsMethod: false, 7895 IsResolver: false, 7896 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7897 return nil, errors.New("field of type String does not have child fields") 7898 }, 7899 } 7900 return fc, nil 7901 } 7902 7903 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 7904 fc, err := ec.fieldContext___Field_description(ctx, field) 7905 if err != nil { 7906 return graphql.Null 7907 } 7908 ctx = graphql.WithFieldContext(ctx, fc) 7909 defer func() { 7910 if r := recover(); r != nil { 7911 ec.Error(ctx, ec.Recover(ctx, r)) 7912 ret = graphql.Null 7913 } 7914 }() 7915 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7916 ctx = rctx // use context from middleware stack in children 7917 return obj.Description(), nil 7918 }) 7919 if err != nil { 7920 ec.Error(ctx, err) 7921 return graphql.Null 7922 } 7923 if resTmp == nil { 7924 return graphql.Null 7925 } 7926 res := resTmp.(*string) 7927 fc.Result = res 7928 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 7929 } 7930 7931 func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7932 fc = &graphql.FieldContext{ 7933 Object: "__Field", 7934 Field: field, 7935 IsMethod: true, 7936 IsResolver: false, 7937 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7938 return nil, errors.New("field of type String does not have child fields") 7939 }, 7940 } 7941 return fc, nil 7942 } 7943 7944 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 7945 fc, err := ec.fieldContext___Field_args(ctx, field) 7946 if err != nil { 7947 return graphql.Null 7948 } 7949 ctx = graphql.WithFieldContext(ctx, fc) 7950 defer func() { 7951 if r := recover(); r != nil { 7952 ec.Error(ctx, ec.Recover(ctx, r)) 7953 ret = graphql.Null 7954 } 7955 }() 7956 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7957 ctx = rctx // use context from middleware stack in children 7958 return obj.Args, nil 7959 }) 7960 if err != nil { 7961 ec.Error(ctx, err) 7962 return graphql.Null 7963 } 7964 if resTmp == nil { 7965 if !graphql.HasFieldError(ctx, fc) { 7966 ec.Errorf(ctx, "must not be null") 7967 } 7968 return graphql.Null 7969 } 7970 res := resTmp.([]introspection.InputValue) 7971 fc.Result = res 7972 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 7973 } 7974 7975 func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7976 fc = &graphql.FieldContext{ 7977 Object: "__Field", 7978 Field: field, 7979 IsMethod: false, 7980 IsResolver: false, 7981 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7982 switch field.Name { 7983 case "name": 7984 return ec.fieldContext___InputValue_name(ctx, field) 7985 case "description": 7986 return ec.fieldContext___InputValue_description(ctx, field) 7987 case "type": 7988 return ec.fieldContext___InputValue_type(ctx, field) 7989 case "defaultValue": 7990 return ec.fieldContext___InputValue_defaultValue(ctx, field) 7991 } 7992 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 7993 }, 7994 } 7995 return fc, nil 7996 } 7997 7998 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 7999 fc, err := ec.fieldContext___Field_type(ctx, field) 8000 if err != nil { 8001 return graphql.Null 8002 } 8003 ctx = graphql.WithFieldContext(ctx, fc) 8004 defer func() { 8005 if r := recover(); r != nil { 8006 ec.Error(ctx, ec.Recover(ctx, r)) 8007 ret = graphql.Null 8008 } 8009 }() 8010 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8011 ctx = rctx // use context from middleware stack in children 8012 return obj.Type, nil 8013 }) 8014 if err != nil { 8015 ec.Error(ctx, err) 8016 return graphql.Null 8017 } 8018 if resTmp == nil { 8019 if !graphql.HasFieldError(ctx, fc) { 8020 ec.Errorf(ctx, "must not be null") 8021 } 8022 return graphql.Null 8023 } 8024 res := resTmp.(*introspection.Type) 8025 fc.Result = res 8026 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 8027 } 8028 8029 func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8030 fc = &graphql.FieldContext{ 8031 Object: "__Field", 8032 Field: field, 8033 IsMethod: false, 8034 IsResolver: false, 8035 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8036 switch field.Name { 8037 case "kind": 8038 return ec.fieldContext___Type_kind(ctx, field) 8039 case "name": 8040 return ec.fieldContext___Type_name(ctx, field) 8041 case "description": 8042 return ec.fieldContext___Type_description(ctx, field) 8043 case "fields": 8044 return ec.fieldContext___Type_fields(ctx, field) 8045 case "interfaces": 8046 return ec.fieldContext___Type_interfaces(ctx, field) 8047 case "possibleTypes": 8048 return ec.fieldContext___Type_possibleTypes(ctx, field) 8049 case "enumValues": 8050 return ec.fieldContext___Type_enumValues(ctx, field) 8051 case "inputFields": 8052 return ec.fieldContext___Type_inputFields(ctx, field) 8053 case "ofType": 8054 return ec.fieldContext___Type_ofType(ctx, field) 8055 case "specifiedByURL": 8056 return ec.fieldContext___Type_specifiedByURL(ctx, field) 8057 } 8058 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 8059 }, 8060 } 8061 return fc, nil 8062 } 8063 8064 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 8065 fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) 8066 if err != nil { 8067 return graphql.Null 8068 } 8069 ctx = graphql.WithFieldContext(ctx, fc) 8070 defer func() { 8071 if r := recover(); r != nil { 8072 ec.Error(ctx, ec.Recover(ctx, r)) 8073 ret = graphql.Null 8074 } 8075 }() 8076 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8077 ctx = rctx // use context from middleware stack in children 8078 return obj.IsDeprecated(), nil 8079 }) 8080 if err != nil { 8081 ec.Error(ctx, err) 8082 return graphql.Null 8083 } 8084 if resTmp == nil { 8085 if !graphql.HasFieldError(ctx, fc) { 8086 ec.Errorf(ctx, "must not be null") 8087 } 8088 return graphql.Null 8089 } 8090 res := resTmp.(bool) 8091 fc.Result = res 8092 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 8093 } 8094 8095 func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8096 fc = &graphql.FieldContext{ 8097 Object: "__Field", 8098 Field: field, 8099 IsMethod: true, 8100 IsResolver: false, 8101 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8102 return nil, errors.New("field of type Boolean does not have child fields") 8103 }, 8104 } 8105 return fc, nil 8106 } 8107 8108 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 8109 fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) 8110 if err != nil { 8111 return graphql.Null 8112 } 8113 ctx = graphql.WithFieldContext(ctx, fc) 8114 defer func() { 8115 if r := recover(); r != nil { 8116 ec.Error(ctx, ec.Recover(ctx, r)) 8117 ret = graphql.Null 8118 } 8119 }() 8120 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8121 ctx = rctx // use context from middleware stack in children 8122 return obj.DeprecationReason(), nil 8123 }) 8124 if err != nil { 8125 ec.Error(ctx, err) 8126 return graphql.Null 8127 } 8128 if resTmp == nil { 8129 return graphql.Null 8130 } 8131 res := resTmp.(*string) 8132 fc.Result = res 8133 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8134 } 8135 8136 func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8137 fc = &graphql.FieldContext{ 8138 Object: "__Field", 8139 Field: field, 8140 IsMethod: true, 8141 IsResolver: false, 8142 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8143 return nil, errors.New("field of type String does not have child fields") 8144 }, 8145 } 8146 return fc, nil 8147 } 8148 8149 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 8150 fc, err := ec.fieldContext___InputValue_name(ctx, field) 8151 if err != nil { 8152 return graphql.Null 8153 } 8154 ctx = graphql.WithFieldContext(ctx, fc) 8155 defer func() { 8156 if r := recover(); r != nil { 8157 ec.Error(ctx, ec.Recover(ctx, r)) 8158 ret = graphql.Null 8159 } 8160 }() 8161 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8162 ctx = rctx // use context from middleware stack in children 8163 return obj.Name, nil 8164 }) 8165 if err != nil { 8166 ec.Error(ctx, err) 8167 return graphql.Null 8168 } 8169 if resTmp == nil { 8170 if !graphql.HasFieldError(ctx, fc) { 8171 ec.Errorf(ctx, "must not be null") 8172 } 8173 return graphql.Null 8174 } 8175 res := resTmp.(string) 8176 fc.Result = res 8177 return ec.marshalNString2string(ctx, field.Selections, res) 8178 } 8179 8180 func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8181 fc = &graphql.FieldContext{ 8182 Object: "__InputValue", 8183 Field: field, 8184 IsMethod: false, 8185 IsResolver: false, 8186 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8187 return nil, errors.New("field of type String does not have child fields") 8188 }, 8189 } 8190 return fc, nil 8191 } 8192 8193 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 8194 fc, err := ec.fieldContext___InputValue_description(ctx, field) 8195 if err != nil { 8196 return graphql.Null 8197 } 8198 ctx = graphql.WithFieldContext(ctx, fc) 8199 defer func() { 8200 if r := recover(); r != nil { 8201 ec.Error(ctx, ec.Recover(ctx, r)) 8202 ret = graphql.Null 8203 } 8204 }() 8205 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8206 ctx = rctx // use context from middleware stack in children 8207 return obj.Description(), nil 8208 }) 8209 if err != nil { 8210 ec.Error(ctx, err) 8211 return graphql.Null 8212 } 8213 if resTmp == nil { 8214 return graphql.Null 8215 } 8216 res := resTmp.(*string) 8217 fc.Result = res 8218 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8219 } 8220 8221 func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8222 fc = &graphql.FieldContext{ 8223 Object: "__InputValue", 8224 Field: field, 8225 IsMethod: true, 8226 IsResolver: false, 8227 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8228 return nil, errors.New("field of type String does not have child fields") 8229 }, 8230 } 8231 return fc, nil 8232 } 8233 8234 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 8235 fc, err := ec.fieldContext___InputValue_type(ctx, field) 8236 if err != nil { 8237 return graphql.Null 8238 } 8239 ctx = graphql.WithFieldContext(ctx, fc) 8240 defer func() { 8241 if r := recover(); r != nil { 8242 ec.Error(ctx, ec.Recover(ctx, r)) 8243 ret = graphql.Null 8244 } 8245 }() 8246 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8247 ctx = rctx // use context from middleware stack in children 8248 return obj.Type, nil 8249 }) 8250 if err != nil { 8251 ec.Error(ctx, err) 8252 return graphql.Null 8253 } 8254 if resTmp == nil { 8255 if !graphql.HasFieldError(ctx, fc) { 8256 ec.Errorf(ctx, "must not be null") 8257 } 8258 return graphql.Null 8259 } 8260 res := resTmp.(*introspection.Type) 8261 fc.Result = res 8262 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 8263 } 8264 8265 func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8266 fc = &graphql.FieldContext{ 8267 Object: "__InputValue", 8268 Field: field, 8269 IsMethod: false, 8270 IsResolver: false, 8271 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8272 switch field.Name { 8273 case "kind": 8274 return ec.fieldContext___Type_kind(ctx, field) 8275 case "name": 8276 return ec.fieldContext___Type_name(ctx, field) 8277 case "description": 8278 return ec.fieldContext___Type_description(ctx, field) 8279 case "fields": 8280 return ec.fieldContext___Type_fields(ctx, field) 8281 case "interfaces": 8282 return ec.fieldContext___Type_interfaces(ctx, field) 8283 case "possibleTypes": 8284 return ec.fieldContext___Type_possibleTypes(ctx, field) 8285 case "enumValues": 8286 return ec.fieldContext___Type_enumValues(ctx, field) 8287 case "inputFields": 8288 return ec.fieldContext___Type_inputFields(ctx, field) 8289 case "ofType": 8290 return ec.fieldContext___Type_ofType(ctx, field) 8291 case "specifiedByURL": 8292 return ec.fieldContext___Type_specifiedByURL(ctx, field) 8293 } 8294 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 8295 }, 8296 } 8297 return fc, nil 8298 } 8299 8300 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 8301 fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) 8302 if err != nil { 8303 return graphql.Null 8304 } 8305 ctx = graphql.WithFieldContext(ctx, fc) 8306 defer func() { 8307 if r := recover(); r != nil { 8308 ec.Error(ctx, ec.Recover(ctx, r)) 8309 ret = graphql.Null 8310 } 8311 }() 8312 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8313 ctx = rctx // use context from middleware stack in children 8314 return obj.DefaultValue, nil 8315 }) 8316 if err != nil { 8317 ec.Error(ctx, err) 8318 return graphql.Null 8319 } 8320 if resTmp == nil { 8321 return graphql.Null 8322 } 8323 res := resTmp.(*string) 8324 fc.Result = res 8325 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8326 } 8327 8328 func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8329 fc = &graphql.FieldContext{ 8330 Object: "__InputValue", 8331 Field: field, 8332 IsMethod: false, 8333 IsResolver: false, 8334 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8335 return nil, errors.New("field of type String does not have child fields") 8336 }, 8337 } 8338 return fc, nil 8339 } 8340 8341 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 8342 fc, err := ec.fieldContext___Schema_description(ctx, field) 8343 if err != nil { 8344 return graphql.Null 8345 } 8346 ctx = graphql.WithFieldContext(ctx, fc) 8347 defer func() { 8348 if r := recover(); r != nil { 8349 ec.Error(ctx, ec.Recover(ctx, r)) 8350 ret = graphql.Null 8351 } 8352 }() 8353 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8354 ctx = rctx // use context from middleware stack in children 8355 return obj.Description(), nil 8356 }) 8357 if err != nil { 8358 ec.Error(ctx, err) 8359 return graphql.Null 8360 } 8361 if resTmp == nil { 8362 return graphql.Null 8363 } 8364 res := resTmp.(*string) 8365 fc.Result = res 8366 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8367 } 8368 8369 func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8370 fc = &graphql.FieldContext{ 8371 Object: "__Schema", 8372 Field: field, 8373 IsMethod: true, 8374 IsResolver: false, 8375 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8376 return nil, errors.New("field of type String does not have child fields") 8377 }, 8378 } 8379 return fc, nil 8380 } 8381 8382 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 8383 fc, err := ec.fieldContext___Schema_types(ctx, field) 8384 if err != nil { 8385 return graphql.Null 8386 } 8387 ctx = graphql.WithFieldContext(ctx, fc) 8388 defer func() { 8389 if r := recover(); r != nil { 8390 ec.Error(ctx, ec.Recover(ctx, r)) 8391 ret = graphql.Null 8392 } 8393 }() 8394 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8395 ctx = rctx // use context from middleware stack in children 8396 return obj.Types(), nil 8397 }) 8398 if err != nil { 8399 ec.Error(ctx, err) 8400 return graphql.Null 8401 } 8402 if resTmp == nil { 8403 if !graphql.HasFieldError(ctx, fc) { 8404 ec.Errorf(ctx, "must not be null") 8405 } 8406 return graphql.Null 8407 } 8408 res := resTmp.([]introspection.Type) 8409 fc.Result = res 8410 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 8411 } 8412 8413 func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8414 fc = &graphql.FieldContext{ 8415 Object: "__Schema", 8416 Field: field, 8417 IsMethod: true, 8418 IsResolver: false, 8419 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8420 switch field.Name { 8421 case "kind": 8422 return ec.fieldContext___Type_kind(ctx, field) 8423 case "name": 8424 return ec.fieldContext___Type_name(ctx, field) 8425 case "description": 8426 return ec.fieldContext___Type_description(ctx, field) 8427 case "fields": 8428 return ec.fieldContext___Type_fields(ctx, field) 8429 case "interfaces": 8430 return ec.fieldContext___Type_interfaces(ctx, field) 8431 case "possibleTypes": 8432 return ec.fieldContext___Type_possibleTypes(ctx, field) 8433 case "enumValues": 8434 return ec.fieldContext___Type_enumValues(ctx, field) 8435 case "inputFields": 8436 return ec.fieldContext___Type_inputFields(ctx, field) 8437 case "ofType": 8438 return ec.fieldContext___Type_ofType(ctx, field) 8439 case "specifiedByURL": 8440 return ec.fieldContext___Type_specifiedByURL(ctx, field) 8441 } 8442 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 8443 }, 8444 } 8445 return fc, nil 8446 } 8447 8448 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 8449 fc, err := ec.fieldContext___Schema_queryType(ctx, field) 8450 if err != nil { 8451 return graphql.Null 8452 } 8453 ctx = graphql.WithFieldContext(ctx, fc) 8454 defer func() { 8455 if r := recover(); r != nil { 8456 ec.Error(ctx, ec.Recover(ctx, r)) 8457 ret = graphql.Null 8458 } 8459 }() 8460 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8461 ctx = rctx // use context from middleware stack in children 8462 return obj.QueryType(), nil 8463 }) 8464 if err != nil { 8465 ec.Error(ctx, err) 8466 return graphql.Null 8467 } 8468 if resTmp == nil { 8469 if !graphql.HasFieldError(ctx, fc) { 8470 ec.Errorf(ctx, "must not be null") 8471 } 8472 return graphql.Null 8473 } 8474 res := resTmp.(*introspection.Type) 8475 fc.Result = res 8476 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 8477 } 8478 8479 func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8480 fc = &graphql.FieldContext{ 8481 Object: "__Schema", 8482 Field: field, 8483 IsMethod: true, 8484 IsResolver: false, 8485 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8486 switch field.Name { 8487 case "kind": 8488 return ec.fieldContext___Type_kind(ctx, field) 8489 case "name": 8490 return ec.fieldContext___Type_name(ctx, field) 8491 case "description": 8492 return ec.fieldContext___Type_description(ctx, field) 8493 case "fields": 8494 return ec.fieldContext___Type_fields(ctx, field) 8495 case "interfaces": 8496 return ec.fieldContext___Type_interfaces(ctx, field) 8497 case "possibleTypes": 8498 return ec.fieldContext___Type_possibleTypes(ctx, field) 8499 case "enumValues": 8500 return ec.fieldContext___Type_enumValues(ctx, field) 8501 case "inputFields": 8502 return ec.fieldContext___Type_inputFields(ctx, field) 8503 case "ofType": 8504 return ec.fieldContext___Type_ofType(ctx, field) 8505 case "specifiedByURL": 8506 return ec.fieldContext___Type_specifiedByURL(ctx, field) 8507 } 8508 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 8509 }, 8510 } 8511 return fc, nil 8512 } 8513 8514 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 8515 fc, err := ec.fieldContext___Schema_mutationType(ctx, field) 8516 if err != nil { 8517 return graphql.Null 8518 } 8519 ctx = graphql.WithFieldContext(ctx, fc) 8520 defer func() { 8521 if r := recover(); r != nil { 8522 ec.Error(ctx, ec.Recover(ctx, r)) 8523 ret = graphql.Null 8524 } 8525 }() 8526 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8527 ctx = rctx // use context from middleware stack in children 8528 return obj.MutationType(), nil 8529 }) 8530 if err != nil { 8531 ec.Error(ctx, err) 8532 return graphql.Null 8533 } 8534 if resTmp == nil { 8535 return graphql.Null 8536 } 8537 res := resTmp.(*introspection.Type) 8538 fc.Result = res 8539 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 8540 } 8541 8542 func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8543 fc = &graphql.FieldContext{ 8544 Object: "__Schema", 8545 Field: field, 8546 IsMethod: true, 8547 IsResolver: false, 8548 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8549 switch field.Name { 8550 case "kind": 8551 return ec.fieldContext___Type_kind(ctx, field) 8552 case "name": 8553 return ec.fieldContext___Type_name(ctx, field) 8554 case "description": 8555 return ec.fieldContext___Type_description(ctx, field) 8556 case "fields": 8557 return ec.fieldContext___Type_fields(ctx, field) 8558 case "interfaces": 8559 return ec.fieldContext___Type_interfaces(ctx, field) 8560 case "possibleTypes": 8561 return ec.fieldContext___Type_possibleTypes(ctx, field) 8562 case "enumValues": 8563 return ec.fieldContext___Type_enumValues(ctx, field) 8564 case "inputFields": 8565 return ec.fieldContext___Type_inputFields(ctx, field) 8566 case "ofType": 8567 return ec.fieldContext___Type_ofType(ctx, field) 8568 case "specifiedByURL": 8569 return ec.fieldContext___Type_specifiedByURL(ctx, field) 8570 } 8571 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 8572 }, 8573 } 8574 return fc, nil 8575 } 8576 8577 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 8578 fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) 8579 if err != nil { 8580 return graphql.Null 8581 } 8582 ctx = graphql.WithFieldContext(ctx, fc) 8583 defer func() { 8584 if r := recover(); r != nil { 8585 ec.Error(ctx, ec.Recover(ctx, r)) 8586 ret = graphql.Null 8587 } 8588 }() 8589 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8590 ctx = rctx // use context from middleware stack in children 8591 return obj.SubscriptionType(), nil 8592 }) 8593 if err != nil { 8594 ec.Error(ctx, err) 8595 return graphql.Null 8596 } 8597 if resTmp == nil { 8598 return graphql.Null 8599 } 8600 res := resTmp.(*introspection.Type) 8601 fc.Result = res 8602 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 8603 } 8604 8605 func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8606 fc = &graphql.FieldContext{ 8607 Object: "__Schema", 8608 Field: field, 8609 IsMethod: true, 8610 IsResolver: false, 8611 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8612 switch field.Name { 8613 case "kind": 8614 return ec.fieldContext___Type_kind(ctx, field) 8615 case "name": 8616 return ec.fieldContext___Type_name(ctx, field) 8617 case "description": 8618 return ec.fieldContext___Type_description(ctx, field) 8619 case "fields": 8620 return ec.fieldContext___Type_fields(ctx, field) 8621 case "interfaces": 8622 return ec.fieldContext___Type_interfaces(ctx, field) 8623 case "possibleTypes": 8624 return ec.fieldContext___Type_possibleTypes(ctx, field) 8625 case "enumValues": 8626 return ec.fieldContext___Type_enumValues(ctx, field) 8627 case "inputFields": 8628 return ec.fieldContext___Type_inputFields(ctx, field) 8629 case "ofType": 8630 return ec.fieldContext___Type_ofType(ctx, field) 8631 case "specifiedByURL": 8632 return ec.fieldContext___Type_specifiedByURL(ctx, field) 8633 } 8634 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 8635 }, 8636 } 8637 return fc, nil 8638 } 8639 8640 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 8641 fc, err := ec.fieldContext___Schema_directives(ctx, field) 8642 if err != nil { 8643 return graphql.Null 8644 } 8645 ctx = graphql.WithFieldContext(ctx, fc) 8646 defer func() { 8647 if r := recover(); r != nil { 8648 ec.Error(ctx, ec.Recover(ctx, r)) 8649 ret = graphql.Null 8650 } 8651 }() 8652 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8653 ctx = rctx // use context from middleware stack in children 8654 return obj.Directives(), nil 8655 }) 8656 if err != nil { 8657 ec.Error(ctx, err) 8658 return graphql.Null 8659 } 8660 if resTmp == nil { 8661 if !graphql.HasFieldError(ctx, fc) { 8662 ec.Errorf(ctx, "must not be null") 8663 } 8664 return graphql.Null 8665 } 8666 res := resTmp.([]introspection.Directive) 8667 fc.Result = res 8668 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) 8669 } 8670 8671 func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8672 fc = &graphql.FieldContext{ 8673 Object: "__Schema", 8674 Field: field, 8675 IsMethod: true, 8676 IsResolver: false, 8677 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8678 switch field.Name { 8679 case "name": 8680 return ec.fieldContext___Directive_name(ctx, field) 8681 case "description": 8682 return ec.fieldContext___Directive_description(ctx, field) 8683 case "locations": 8684 return ec.fieldContext___Directive_locations(ctx, field) 8685 case "args": 8686 return ec.fieldContext___Directive_args(ctx, field) 8687 case "isRepeatable": 8688 return ec.fieldContext___Directive_isRepeatable(ctx, field) 8689 } 8690 return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) 8691 }, 8692 } 8693 return fc, nil 8694 } 8695 8696 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 8697 fc, err := ec.fieldContext___Type_kind(ctx, field) 8698 if err != nil { 8699 return graphql.Null 8700 } 8701 ctx = graphql.WithFieldContext(ctx, fc) 8702 defer func() { 8703 if r := recover(); r != nil { 8704 ec.Error(ctx, ec.Recover(ctx, r)) 8705 ret = graphql.Null 8706 } 8707 }() 8708 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8709 ctx = rctx // use context from middleware stack in children 8710 return obj.Kind(), nil 8711 }) 8712 if err != nil { 8713 ec.Error(ctx, err) 8714 return graphql.Null 8715 } 8716 if resTmp == nil { 8717 if !graphql.HasFieldError(ctx, fc) { 8718 ec.Errorf(ctx, "must not be null") 8719 } 8720 return graphql.Null 8721 } 8722 res := resTmp.(string) 8723 fc.Result = res 8724 return ec.marshalN__TypeKind2string(ctx, field.Selections, res) 8725 } 8726 8727 func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8728 fc = &graphql.FieldContext{ 8729 Object: "__Type", 8730 Field: field, 8731 IsMethod: true, 8732 IsResolver: false, 8733 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8734 return nil, errors.New("field of type __TypeKind does not have child fields") 8735 }, 8736 } 8737 return fc, nil 8738 } 8739 8740 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 8741 fc, err := ec.fieldContext___Type_name(ctx, field) 8742 if err != nil { 8743 return graphql.Null 8744 } 8745 ctx = graphql.WithFieldContext(ctx, fc) 8746 defer func() { 8747 if r := recover(); r != nil { 8748 ec.Error(ctx, ec.Recover(ctx, r)) 8749 ret = graphql.Null 8750 } 8751 }() 8752 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8753 ctx = rctx // use context from middleware stack in children 8754 return obj.Name(), nil 8755 }) 8756 if err != nil { 8757 ec.Error(ctx, err) 8758 return graphql.Null 8759 } 8760 if resTmp == nil { 8761 return graphql.Null 8762 } 8763 res := resTmp.(*string) 8764 fc.Result = res 8765 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8766 } 8767 8768 func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8769 fc = &graphql.FieldContext{ 8770 Object: "__Type", 8771 Field: field, 8772 IsMethod: true, 8773 IsResolver: false, 8774 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8775 return nil, errors.New("field of type String does not have child fields") 8776 }, 8777 } 8778 return fc, nil 8779 } 8780 8781 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 8782 fc, err := ec.fieldContext___Type_description(ctx, field) 8783 if err != nil { 8784 return graphql.Null 8785 } 8786 ctx = graphql.WithFieldContext(ctx, fc) 8787 defer func() { 8788 if r := recover(); r != nil { 8789 ec.Error(ctx, ec.Recover(ctx, r)) 8790 ret = graphql.Null 8791 } 8792 }() 8793 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8794 ctx = rctx // use context from middleware stack in children 8795 return obj.Description(), nil 8796 }) 8797 if err != nil { 8798 ec.Error(ctx, err) 8799 return graphql.Null 8800 } 8801 if resTmp == nil { 8802 return graphql.Null 8803 } 8804 res := resTmp.(*string) 8805 fc.Result = res 8806 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 8807 } 8808 8809 func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8810 fc = &graphql.FieldContext{ 8811 Object: "__Type", 8812 Field: field, 8813 IsMethod: true, 8814 IsResolver: false, 8815 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8816 return nil, errors.New("field of type String does not have child fields") 8817 }, 8818 } 8819 return fc, nil 8820 } 8821 8822 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 8823 fc, err := ec.fieldContext___Type_fields(ctx, field) 8824 if err != nil { 8825 return graphql.Null 8826 } 8827 ctx = graphql.WithFieldContext(ctx, fc) 8828 defer func() { 8829 if r := recover(); r != nil { 8830 ec.Error(ctx, ec.Recover(ctx, r)) 8831 ret = graphql.Null 8832 } 8833 }() 8834 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8835 ctx = rctx // use context from middleware stack in children 8836 return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil 8837 }) 8838 if err != nil { 8839 ec.Error(ctx, err) 8840 return graphql.Null 8841 } 8842 if resTmp == nil { 8843 return graphql.Null 8844 } 8845 res := resTmp.([]introspection.Field) 8846 fc.Result = res 8847 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) 8848 } 8849 8850 func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8851 fc = &graphql.FieldContext{ 8852 Object: "__Type", 8853 Field: field, 8854 IsMethod: true, 8855 IsResolver: false, 8856 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8857 switch field.Name { 8858 case "name": 8859 return ec.fieldContext___Field_name(ctx, field) 8860 case "description": 8861 return ec.fieldContext___Field_description(ctx, field) 8862 case "args": 8863 return ec.fieldContext___Field_args(ctx, field) 8864 case "type": 8865 return ec.fieldContext___Field_type(ctx, field) 8866 case "isDeprecated": 8867 return ec.fieldContext___Field_isDeprecated(ctx, field) 8868 case "deprecationReason": 8869 return ec.fieldContext___Field_deprecationReason(ctx, field) 8870 } 8871 return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) 8872 }, 8873 } 8874 defer func() { 8875 if r := recover(); r != nil { 8876 err = ec.Recover(ctx, r) 8877 ec.Error(ctx, err) 8878 } 8879 }() 8880 ctx = graphql.WithFieldContext(ctx, fc) 8881 if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8882 ec.Error(ctx, err) 8883 return fc, err 8884 } 8885 return fc, nil 8886 } 8887 8888 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 8889 fc, err := ec.fieldContext___Type_interfaces(ctx, field) 8890 if err != nil { 8891 return graphql.Null 8892 } 8893 ctx = graphql.WithFieldContext(ctx, fc) 8894 defer func() { 8895 if r := recover(); r != nil { 8896 ec.Error(ctx, ec.Recover(ctx, r)) 8897 ret = graphql.Null 8898 } 8899 }() 8900 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8901 ctx = rctx // use context from middleware stack in children 8902 return obj.Interfaces(), nil 8903 }) 8904 if err != nil { 8905 ec.Error(ctx, err) 8906 return graphql.Null 8907 } 8908 if resTmp == nil { 8909 return graphql.Null 8910 } 8911 res := resTmp.([]introspection.Type) 8912 fc.Result = res 8913 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 8914 } 8915 8916 func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8917 fc = &graphql.FieldContext{ 8918 Object: "__Type", 8919 Field: field, 8920 IsMethod: true, 8921 IsResolver: false, 8922 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8923 switch field.Name { 8924 case "kind": 8925 return ec.fieldContext___Type_kind(ctx, field) 8926 case "name": 8927 return ec.fieldContext___Type_name(ctx, field) 8928 case "description": 8929 return ec.fieldContext___Type_description(ctx, field) 8930 case "fields": 8931 return ec.fieldContext___Type_fields(ctx, field) 8932 case "interfaces": 8933 return ec.fieldContext___Type_interfaces(ctx, field) 8934 case "possibleTypes": 8935 return ec.fieldContext___Type_possibleTypes(ctx, field) 8936 case "enumValues": 8937 return ec.fieldContext___Type_enumValues(ctx, field) 8938 case "inputFields": 8939 return ec.fieldContext___Type_inputFields(ctx, field) 8940 case "ofType": 8941 return ec.fieldContext___Type_ofType(ctx, field) 8942 case "specifiedByURL": 8943 return ec.fieldContext___Type_specifiedByURL(ctx, field) 8944 } 8945 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 8946 }, 8947 } 8948 return fc, nil 8949 } 8950 8951 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 8952 fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) 8953 if err != nil { 8954 return graphql.Null 8955 } 8956 ctx = graphql.WithFieldContext(ctx, fc) 8957 defer func() { 8958 if r := recover(); r != nil { 8959 ec.Error(ctx, ec.Recover(ctx, r)) 8960 ret = graphql.Null 8961 } 8962 }() 8963 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8964 ctx = rctx // use context from middleware stack in children 8965 return obj.PossibleTypes(), nil 8966 }) 8967 if err != nil { 8968 ec.Error(ctx, err) 8969 return graphql.Null 8970 } 8971 if resTmp == nil { 8972 return graphql.Null 8973 } 8974 res := resTmp.([]introspection.Type) 8975 fc.Result = res 8976 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 8977 } 8978 8979 func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8980 fc = &graphql.FieldContext{ 8981 Object: "__Type", 8982 Field: field, 8983 IsMethod: true, 8984 IsResolver: false, 8985 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8986 switch field.Name { 8987 case "kind": 8988 return ec.fieldContext___Type_kind(ctx, field) 8989 case "name": 8990 return ec.fieldContext___Type_name(ctx, field) 8991 case "description": 8992 return ec.fieldContext___Type_description(ctx, field) 8993 case "fields": 8994 return ec.fieldContext___Type_fields(ctx, field) 8995 case "interfaces": 8996 return ec.fieldContext___Type_interfaces(ctx, field) 8997 case "possibleTypes": 8998 return ec.fieldContext___Type_possibleTypes(ctx, field) 8999 case "enumValues": 9000 return ec.fieldContext___Type_enumValues(ctx, field) 9001 case "inputFields": 9002 return ec.fieldContext___Type_inputFields(ctx, field) 9003 case "ofType": 9004 return ec.fieldContext___Type_ofType(ctx, field) 9005 case "specifiedByURL": 9006 return ec.fieldContext___Type_specifiedByURL(ctx, field) 9007 } 9008 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 9009 }, 9010 } 9011 return fc, nil 9012 } 9013 9014 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 9015 fc, err := ec.fieldContext___Type_enumValues(ctx, field) 9016 if err != nil { 9017 return graphql.Null 9018 } 9019 ctx = graphql.WithFieldContext(ctx, fc) 9020 defer func() { 9021 if r := recover(); r != nil { 9022 ec.Error(ctx, ec.Recover(ctx, r)) 9023 ret = graphql.Null 9024 } 9025 }() 9026 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9027 ctx = rctx // use context from middleware stack in children 9028 return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil 9029 }) 9030 if err != nil { 9031 ec.Error(ctx, err) 9032 return graphql.Null 9033 } 9034 if resTmp == nil { 9035 return graphql.Null 9036 } 9037 res := resTmp.([]introspection.EnumValue) 9038 fc.Result = res 9039 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) 9040 } 9041 9042 func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9043 fc = &graphql.FieldContext{ 9044 Object: "__Type", 9045 Field: field, 9046 IsMethod: true, 9047 IsResolver: false, 9048 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9049 switch field.Name { 9050 case "name": 9051 return ec.fieldContext___EnumValue_name(ctx, field) 9052 case "description": 9053 return ec.fieldContext___EnumValue_description(ctx, field) 9054 case "isDeprecated": 9055 return ec.fieldContext___EnumValue_isDeprecated(ctx, field) 9056 case "deprecationReason": 9057 return ec.fieldContext___EnumValue_deprecationReason(ctx, field) 9058 } 9059 return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) 9060 }, 9061 } 9062 defer func() { 9063 if r := recover(); r != nil { 9064 err = ec.Recover(ctx, r) 9065 ec.Error(ctx, err) 9066 } 9067 }() 9068 ctx = graphql.WithFieldContext(ctx, fc) 9069 if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 9070 ec.Error(ctx, err) 9071 return fc, err 9072 } 9073 return fc, nil 9074 } 9075 9076 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 9077 fc, err := ec.fieldContext___Type_inputFields(ctx, field) 9078 if err != nil { 9079 return graphql.Null 9080 } 9081 ctx = graphql.WithFieldContext(ctx, fc) 9082 defer func() { 9083 if r := recover(); r != nil { 9084 ec.Error(ctx, ec.Recover(ctx, r)) 9085 ret = graphql.Null 9086 } 9087 }() 9088 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9089 ctx = rctx // use context from middleware stack in children 9090 return obj.InputFields(), nil 9091 }) 9092 if err != nil { 9093 ec.Error(ctx, err) 9094 return graphql.Null 9095 } 9096 if resTmp == nil { 9097 return graphql.Null 9098 } 9099 res := resTmp.([]introspection.InputValue) 9100 fc.Result = res 9101 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 9102 } 9103 9104 func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9105 fc = &graphql.FieldContext{ 9106 Object: "__Type", 9107 Field: field, 9108 IsMethod: true, 9109 IsResolver: false, 9110 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9111 switch field.Name { 9112 case "name": 9113 return ec.fieldContext___InputValue_name(ctx, field) 9114 case "description": 9115 return ec.fieldContext___InputValue_description(ctx, field) 9116 case "type": 9117 return ec.fieldContext___InputValue_type(ctx, field) 9118 case "defaultValue": 9119 return ec.fieldContext___InputValue_defaultValue(ctx, field) 9120 } 9121 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 9122 }, 9123 } 9124 return fc, nil 9125 } 9126 9127 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 9128 fc, err := ec.fieldContext___Type_ofType(ctx, field) 9129 if err != nil { 9130 return graphql.Null 9131 } 9132 ctx = graphql.WithFieldContext(ctx, fc) 9133 defer func() { 9134 if r := recover(); r != nil { 9135 ec.Error(ctx, ec.Recover(ctx, r)) 9136 ret = graphql.Null 9137 } 9138 }() 9139 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9140 ctx = rctx // use context from middleware stack in children 9141 return obj.OfType(), nil 9142 }) 9143 if err != nil { 9144 ec.Error(ctx, err) 9145 return graphql.Null 9146 } 9147 if resTmp == nil { 9148 return graphql.Null 9149 } 9150 res := resTmp.(*introspection.Type) 9151 fc.Result = res 9152 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 9153 } 9154 9155 func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9156 fc = &graphql.FieldContext{ 9157 Object: "__Type", 9158 Field: field, 9159 IsMethod: true, 9160 IsResolver: false, 9161 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9162 switch field.Name { 9163 case "kind": 9164 return ec.fieldContext___Type_kind(ctx, field) 9165 case "name": 9166 return ec.fieldContext___Type_name(ctx, field) 9167 case "description": 9168 return ec.fieldContext___Type_description(ctx, field) 9169 case "fields": 9170 return ec.fieldContext___Type_fields(ctx, field) 9171 case "interfaces": 9172 return ec.fieldContext___Type_interfaces(ctx, field) 9173 case "possibleTypes": 9174 return ec.fieldContext___Type_possibleTypes(ctx, field) 9175 case "enumValues": 9176 return ec.fieldContext___Type_enumValues(ctx, field) 9177 case "inputFields": 9178 return ec.fieldContext___Type_inputFields(ctx, field) 9179 case "ofType": 9180 return ec.fieldContext___Type_ofType(ctx, field) 9181 case "specifiedByURL": 9182 return ec.fieldContext___Type_specifiedByURL(ctx, field) 9183 } 9184 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 9185 }, 9186 } 9187 return fc, nil 9188 } 9189 9190 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 9191 fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) 9192 if err != nil { 9193 return graphql.Null 9194 } 9195 ctx = graphql.WithFieldContext(ctx, fc) 9196 defer func() { 9197 if r := recover(); r != nil { 9198 ec.Error(ctx, ec.Recover(ctx, r)) 9199 ret = graphql.Null 9200 } 9201 }() 9202 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9203 ctx = rctx // use context from middleware stack in children 9204 return obj.SpecifiedByURL(), nil 9205 }) 9206 if err != nil { 9207 ec.Error(ctx, err) 9208 return graphql.Null 9209 } 9210 if resTmp == nil { 9211 return graphql.Null 9212 } 9213 res := resTmp.(*string) 9214 fc.Result = res 9215 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 9216 } 9217 9218 func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9219 fc = &graphql.FieldContext{ 9220 Object: "__Type", 9221 Field: field, 9222 IsMethod: true, 9223 IsResolver: false, 9224 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9225 return nil, errors.New("field of type String does not have child fields") 9226 }, 9227 } 9228 return fc, nil 9229 } 9230 9231 // endregion **************************** field.gotpl ***************************** 9232 9233 // region **************************** input.gotpl ***************************** 9234 9235 func (ec *executionContext) unmarshalInputFilter(ctx context.Context, obj interface{}) (Filter, error) { 9236 var it Filter 9237 asMap := map[string]interface{}{} 9238 for k, v := range obj.(map[string]interface{}) { 9239 asMap[k] = v 9240 } 9241 9242 fieldsInOrder := [...]string{"Os", "Arch", "HasToBeSigned", "IsBookmarked", "IsStarred"} 9243 for _, k := range fieldsInOrder { 9244 v, ok := asMap[k] 9245 if !ok { 9246 continue 9247 } 9248 switch k { 9249 case "Os": 9250 var err error 9251 9252 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Os")) 9253 data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) 9254 if err != nil { 9255 return it, err 9256 } 9257 it.Os = data 9258 case "Arch": 9259 var err error 9260 9261 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("Arch")) 9262 data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) 9263 if err != nil { 9264 return it, err 9265 } 9266 it.Arch = data 9267 case "HasToBeSigned": 9268 var err error 9269 9270 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("HasToBeSigned")) 9271 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) 9272 if err != nil { 9273 return it, err 9274 } 9275 it.HasToBeSigned = data 9276 case "IsBookmarked": 9277 var err error 9278 9279 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("IsBookmarked")) 9280 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) 9281 if err != nil { 9282 return it, err 9283 } 9284 it.IsBookmarked = data 9285 case "IsStarred": 9286 var err error 9287 9288 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("IsStarred")) 9289 data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) 9290 if err != nil { 9291 return it, err 9292 } 9293 it.IsStarred = data 9294 } 9295 } 9296 9297 return it, nil 9298 } 9299 9300 func (ec *executionContext) unmarshalInputPageInput(ctx context.Context, obj interface{}) (PageInput, error) { 9301 var it PageInput 9302 asMap := map[string]interface{}{} 9303 for k, v := range obj.(map[string]interface{}) { 9304 asMap[k] = v 9305 } 9306 9307 fieldsInOrder := [...]string{"limit", "offset", "sortBy"} 9308 for _, k := range fieldsInOrder { 9309 v, ok := asMap[k] 9310 if !ok { 9311 continue 9312 } 9313 switch k { 9314 case "limit": 9315 var err error 9316 9317 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) 9318 data, err := ec.unmarshalOInt2ᚖint(ctx, v) 9319 if err != nil { 9320 return it, err 9321 } 9322 it.Limit = data 9323 case "offset": 9324 var err error 9325 9326 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("offset")) 9327 data, err := ec.unmarshalOInt2ᚖint(ctx, v) 9328 if err != nil { 9329 return it, err 9330 } 9331 it.Offset = data 9332 case "sortBy": 9333 var err error 9334 9335 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortBy")) 9336 data, err := ec.unmarshalOSortCriteria2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSortCriteria(ctx, v) 9337 if err != nil { 9338 return it, err 9339 } 9340 it.SortBy = data 9341 } 9342 } 9343 9344 return it, nil 9345 } 9346 9347 // endregion **************************** input.gotpl ***************************** 9348 9349 // region ************************** interface.gotpl *************************** 9350 9351 // endregion ************************** interface.gotpl *************************** 9352 9353 // region **************************** object.gotpl **************************** 9354 9355 var annotationImplementors = []string{"Annotation"} 9356 9357 func (ec *executionContext) _Annotation(ctx context.Context, sel ast.SelectionSet, obj *Annotation) graphql.Marshaler { 9358 fields := graphql.CollectFields(ec.OperationContext, sel, annotationImplementors) 9359 9360 out := graphql.NewFieldSet(fields) 9361 deferred := make(map[string]*graphql.FieldSet) 9362 for i, field := range fields { 9363 switch field.Name { 9364 case "__typename": 9365 out.Values[i] = graphql.MarshalString("Annotation") 9366 case "Key": 9367 out.Values[i] = ec._Annotation_Key(ctx, field, obj) 9368 case "Value": 9369 out.Values[i] = ec._Annotation_Value(ctx, field, obj) 9370 default: 9371 panic("unknown field " + strconv.Quote(field.Name)) 9372 } 9373 } 9374 out.Dispatch(ctx) 9375 if out.Invalids > 0 { 9376 return graphql.Null 9377 } 9378 9379 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9380 9381 for label, dfs := range deferred { 9382 ec.processDeferredGroup(graphql.DeferredGroup{ 9383 Label: label, 9384 Path: graphql.GetPath(ctx), 9385 FieldSet: dfs, 9386 Context: ctx, 9387 }) 9388 } 9389 9390 return out 9391 } 9392 9393 var cVEImplementors = []string{"CVE"} 9394 9395 func (ec *executionContext) _CVE(ctx context.Context, sel ast.SelectionSet, obj *Cve) graphql.Marshaler { 9396 fields := graphql.CollectFields(ec.OperationContext, sel, cVEImplementors) 9397 9398 out := graphql.NewFieldSet(fields) 9399 deferred := make(map[string]*graphql.FieldSet) 9400 for i, field := range fields { 9401 switch field.Name { 9402 case "__typename": 9403 out.Values[i] = graphql.MarshalString("CVE") 9404 case "Id": 9405 out.Values[i] = ec._CVE_Id(ctx, field, obj) 9406 case "Title": 9407 out.Values[i] = ec._CVE_Title(ctx, field, obj) 9408 case "Description": 9409 out.Values[i] = ec._CVE_Description(ctx, field, obj) 9410 case "Severity": 9411 out.Values[i] = ec._CVE_Severity(ctx, field, obj) 9412 case "PackageList": 9413 out.Values[i] = ec._CVE_PackageList(ctx, field, obj) 9414 default: 9415 panic("unknown field " + strconv.Quote(field.Name)) 9416 } 9417 } 9418 out.Dispatch(ctx) 9419 if out.Invalids > 0 { 9420 return graphql.Null 9421 } 9422 9423 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9424 9425 for label, dfs := range deferred { 9426 ec.processDeferredGroup(graphql.DeferredGroup{ 9427 Label: label, 9428 Path: graphql.GetPath(ctx), 9429 FieldSet: dfs, 9430 Context: ctx, 9431 }) 9432 } 9433 9434 return out 9435 } 9436 9437 var cVEResultForImageImplementors = []string{"CVEResultForImage"} 9438 9439 func (ec *executionContext) _CVEResultForImage(ctx context.Context, sel ast.SelectionSet, obj *CVEResultForImage) graphql.Marshaler { 9440 fields := graphql.CollectFields(ec.OperationContext, sel, cVEResultForImageImplementors) 9441 9442 out := graphql.NewFieldSet(fields) 9443 deferred := make(map[string]*graphql.FieldSet) 9444 for i, field := range fields { 9445 switch field.Name { 9446 case "__typename": 9447 out.Values[i] = graphql.MarshalString("CVEResultForImage") 9448 case "Tag": 9449 out.Values[i] = ec._CVEResultForImage_Tag(ctx, field, obj) 9450 case "CVEList": 9451 out.Values[i] = ec._CVEResultForImage_CVEList(ctx, field, obj) 9452 case "Page": 9453 out.Values[i] = ec._CVEResultForImage_Page(ctx, field, obj) 9454 default: 9455 panic("unknown field " + strconv.Quote(field.Name)) 9456 } 9457 } 9458 out.Dispatch(ctx) 9459 if out.Invalids > 0 { 9460 return graphql.Null 9461 } 9462 9463 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9464 9465 for label, dfs := range deferred { 9466 ec.processDeferredGroup(graphql.DeferredGroup{ 9467 Label: label, 9468 Path: graphql.GetPath(ctx), 9469 FieldSet: dfs, 9470 Context: ctx, 9471 }) 9472 } 9473 9474 return out 9475 } 9476 9477 var globalSearchResultImplementors = []string{"GlobalSearchResult"} 9478 9479 func (ec *executionContext) _GlobalSearchResult(ctx context.Context, sel ast.SelectionSet, obj *GlobalSearchResult) graphql.Marshaler { 9480 fields := graphql.CollectFields(ec.OperationContext, sel, globalSearchResultImplementors) 9481 9482 out := graphql.NewFieldSet(fields) 9483 deferred := make(map[string]*graphql.FieldSet) 9484 for i, field := range fields { 9485 switch field.Name { 9486 case "__typename": 9487 out.Values[i] = graphql.MarshalString("GlobalSearchResult") 9488 case "Page": 9489 out.Values[i] = ec._GlobalSearchResult_Page(ctx, field, obj) 9490 case "Images": 9491 out.Values[i] = ec._GlobalSearchResult_Images(ctx, field, obj) 9492 case "Repos": 9493 out.Values[i] = ec._GlobalSearchResult_Repos(ctx, field, obj) 9494 case "Layers": 9495 out.Values[i] = ec._GlobalSearchResult_Layers(ctx, field, obj) 9496 default: 9497 panic("unknown field " + strconv.Quote(field.Name)) 9498 } 9499 } 9500 out.Dispatch(ctx) 9501 if out.Invalids > 0 { 9502 return graphql.Null 9503 } 9504 9505 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9506 9507 for label, dfs := range deferred { 9508 ec.processDeferredGroup(graphql.DeferredGroup{ 9509 Label: label, 9510 Path: graphql.GetPath(ctx), 9511 FieldSet: dfs, 9512 Context: ctx, 9513 }) 9514 } 9515 9516 return out 9517 } 9518 9519 var historyDescriptionImplementors = []string{"HistoryDescription"} 9520 9521 func (ec *executionContext) _HistoryDescription(ctx context.Context, sel ast.SelectionSet, obj *HistoryDescription) graphql.Marshaler { 9522 fields := graphql.CollectFields(ec.OperationContext, sel, historyDescriptionImplementors) 9523 9524 out := graphql.NewFieldSet(fields) 9525 deferred := make(map[string]*graphql.FieldSet) 9526 for i, field := range fields { 9527 switch field.Name { 9528 case "__typename": 9529 out.Values[i] = graphql.MarshalString("HistoryDescription") 9530 case "Created": 9531 out.Values[i] = ec._HistoryDescription_Created(ctx, field, obj) 9532 case "CreatedBy": 9533 out.Values[i] = ec._HistoryDescription_CreatedBy(ctx, field, obj) 9534 case "Author": 9535 out.Values[i] = ec._HistoryDescription_Author(ctx, field, obj) 9536 case "Comment": 9537 out.Values[i] = ec._HistoryDescription_Comment(ctx, field, obj) 9538 case "EmptyLayer": 9539 out.Values[i] = ec._HistoryDescription_EmptyLayer(ctx, field, obj) 9540 default: 9541 panic("unknown field " + strconv.Quote(field.Name)) 9542 } 9543 } 9544 out.Dispatch(ctx) 9545 if out.Invalids > 0 { 9546 return graphql.Null 9547 } 9548 9549 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9550 9551 for label, dfs := range deferred { 9552 ec.processDeferredGroup(graphql.DeferredGroup{ 9553 Label: label, 9554 Path: graphql.GetPath(ctx), 9555 FieldSet: dfs, 9556 Context: ctx, 9557 }) 9558 } 9559 9560 return out 9561 } 9562 9563 var imageSummaryImplementors = []string{"ImageSummary"} 9564 9565 func (ec *executionContext) _ImageSummary(ctx context.Context, sel ast.SelectionSet, obj *ImageSummary) graphql.Marshaler { 9566 fields := graphql.CollectFields(ec.OperationContext, sel, imageSummaryImplementors) 9567 9568 out := graphql.NewFieldSet(fields) 9569 deferred := make(map[string]*graphql.FieldSet) 9570 for i, field := range fields { 9571 switch field.Name { 9572 case "__typename": 9573 out.Values[i] = graphql.MarshalString("ImageSummary") 9574 case "RepoName": 9575 out.Values[i] = ec._ImageSummary_RepoName(ctx, field, obj) 9576 case "Tag": 9577 out.Values[i] = ec._ImageSummary_Tag(ctx, field, obj) 9578 case "Digest": 9579 out.Values[i] = ec._ImageSummary_Digest(ctx, field, obj) 9580 case "MediaType": 9581 out.Values[i] = ec._ImageSummary_MediaType(ctx, field, obj) 9582 case "Manifests": 9583 out.Values[i] = ec._ImageSummary_Manifests(ctx, field, obj) 9584 case "Size": 9585 out.Values[i] = ec._ImageSummary_Size(ctx, field, obj) 9586 case "DownloadCount": 9587 out.Values[i] = ec._ImageSummary_DownloadCount(ctx, field, obj) 9588 case "LastUpdated": 9589 out.Values[i] = ec._ImageSummary_LastUpdated(ctx, field, obj) 9590 case "Description": 9591 out.Values[i] = ec._ImageSummary_Description(ctx, field, obj) 9592 case "IsSigned": 9593 out.Values[i] = ec._ImageSummary_IsSigned(ctx, field, obj) 9594 case "SignatureInfo": 9595 out.Values[i] = ec._ImageSummary_SignatureInfo(ctx, field, obj) 9596 case "Licenses": 9597 out.Values[i] = ec._ImageSummary_Licenses(ctx, field, obj) 9598 case "Labels": 9599 out.Values[i] = ec._ImageSummary_Labels(ctx, field, obj) 9600 case "Title": 9601 out.Values[i] = ec._ImageSummary_Title(ctx, field, obj) 9602 case "Source": 9603 out.Values[i] = ec._ImageSummary_Source(ctx, field, obj) 9604 case "Documentation": 9605 out.Values[i] = ec._ImageSummary_Documentation(ctx, field, obj) 9606 case "Vendor": 9607 out.Values[i] = ec._ImageSummary_Vendor(ctx, field, obj) 9608 case "Authors": 9609 out.Values[i] = ec._ImageSummary_Authors(ctx, field, obj) 9610 case "Vulnerabilities": 9611 out.Values[i] = ec._ImageSummary_Vulnerabilities(ctx, field, obj) 9612 case "Referrers": 9613 out.Values[i] = ec._ImageSummary_Referrers(ctx, field, obj) 9614 default: 9615 panic("unknown field " + strconv.Quote(field.Name)) 9616 } 9617 } 9618 out.Dispatch(ctx) 9619 if out.Invalids > 0 { 9620 return graphql.Null 9621 } 9622 9623 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9624 9625 for label, dfs := range deferred { 9626 ec.processDeferredGroup(graphql.DeferredGroup{ 9627 Label: label, 9628 Path: graphql.GetPath(ctx), 9629 FieldSet: dfs, 9630 Context: ctx, 9631 }) 9632 } 9633 9634 return out 9635 } 9636 9637 var imageVulnerabilitySummaryImplementors = []string{"ImageVulnerabilitySummary"} 9638 9639 func (ec *executionContext) _ImageVulnerabilitySummary(ctx context.Context, sel ast.SelectionSet, obj *ImageVulnerabilitySummary) graphql.Marshaler { 9640 fields := graphql.CollectFields(ec.OperationContext, sel, imageVulnerabilitySummaryImplementors) 9641 9642 out := graphql.NewFieldSet(fields) 9643 deferred := make(map[string]*graphql.FieldSet) 9644 for i, field := range fields { 9645 switch field.Name { 9646 case "__typename": 9647 out.Values[i] = graphql.MarshalString("ImageVulnerabilitySummary") 9648 case "MaxSeverity": 9649 out.Values[i] = ec._ImageVulnerabilitySummary_MaxSeverity(ctx, field, obj) 9650 case "Count": 9651 out.Values[i] = ec._ImageVulnerabilitySummary_Count(ctx, field, obj) 9652 default: 9653 panic("unknown field " + strconv.Quote(field.Name)) 9654 } 9655 } 9656 out.Dispatch(ctx) 9657 if out.Invalids > 0 { 9658 return graphql.Null 9659 } 9660 9661 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9662 9663 for label, dfs := range deferred { 9664 ec.processDeferredGroup(graphql.DeferredGroup{ 9665 Label: label, 9666 Path: graphql.GetPath(ctx), 9667 FieldSet: dfs, 9668 Context: ctx, 9669 }) 9670 } 9671 9672 return out 9673 } 9674 9675 var layerHistoryImplementors = []string{"LayerHistory"} 9676 9677 func (ec *executionContext) _LayerHistory(ctx context.Context, sel ast.SelectionSet, obj *LayerHistory) graphql.Marshaler { 9678 fields := graphql.CollectFields(ec.OperationContext, sel, layerHistoryImplementors) 9679 9680 out := graphql.NewFieldSet(fields) 9681 deferred := make(map[string]*graphql.FieldSet) 9682 for i, field := range fields { 9683 switch field.Name { 9684 case "__typename": 9685 out.Values[i] = graphql.MarshalString("LayerHistory") 9686 case "Layer": 9687 out.Values[i] = ec._LayerHistory_Layer(ctx, field, obj) 9688 case "HistoryDescription": 9689 out.Values[i] = ec._LayerHistory_HistoryDescription(ctx, field, obj) 9690 default: 9691 panic("unknown field " + strconv.Quote(field.Name)) 9692 } 9693 } 9694 out.Dispatch(ctx) 9695 if out.Invalids > 0 { 9696 return graphql.Null 9697 } 9698 9699 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9700 9701 for label, dfs := range deferred { 9702 ec.processDeferredGroup(graphql.DeferredGroup{ 9703 Label: label, 9704 Path: graphql.GetPath(ctx), 9705 FieldSet: dfs, 9706 Context: ctx, 9707 }) 9708 } 9709 9710 return out 9711 } 9712 9713 var layerSummaryImplementors = []string{"LayerSummary"} 9714 9715 func (ec *executionContext) _LayerSummary(ctx context.Context, sel ast.SelectionSet, obj *LayerSummary) graphql.Marshaler { 9716 fields := graphql.CollectFields(ec.OperationContext, sel, layerSummaryImplementors) 9717 9718 out := graphql.NewFieldSet(fields) 9719 deferred := make(map[string]*graphql.FieldSet) 9720 for i, field := range fields { 9721 switch field.Name { 9722 case "__typename": 9723 out.Values[i] = graphql.MarshalString("LayerSummary") 9724 case "Size": 9725 out.Values[i] = ec._LayerSummary_Size(ctx, field, obj) 9726 case "Digest": 9727 out.Values[i] = ec._LayerSummary_Digest(ctx, field, obj) 9728 default: 9729 panic("unknown field " + strconv.Quote(field.Name)) 9730 } 9731 } 9732 out.Dispatch(ctx) 9733 if out.Invalids > 0 { 9734 return graphql.Null 9735 } 9736 9737 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9738 9739 for label, dfs := range deferred { 9740 ec.processDeferredGroup(graphql.DeferredGroup{ 9741 Label: label, 9742 Path: graphql.GetPath(ctx), 9743 FieldSet: dfs, 9744 Context: ctx, 9745 }) 9746 } 9747 9748 return out 9749 } 9750 9751 var manifestSummaryImplementors = []string{"ManifestSummary"} 9752 9753 func (ec *executionContext) _ManifestSummary(ctx context.Context, sel ast.SelectionSet, obj *ManifestSummary) graphql.Marshaler { 9754 fields := graphql.CollectFields(ec.OperationContext, sel, manifestSummaryImplementors) 9755 9756 out := graphql.NewFieldSet(fields) 9757 deferred := make(map[string]*graphql.FieldSet) 9758 for i, field := range fields { 9759 switch field.Name { 9760 case "__typename": 9761 out.Values[i] = graphql.MarshalString("ManifestSummary") 9762 case "Digest": 9763 out.Values[i] = ec._ManifestSummary_Digest(ctx, field, obj) 9764 case "ConfigDigest": 9765 out.Values[i] = ec._ManifestSummary_ConfigDigest(ctx, field, obj) 9766 case "LastUpdated": 9767 out.Values[i] = ec._ManifestSummary_LastUpdated(ctx, field, obj) 9768 case "Size": 9769 out.Values[i] = ec._ManifestSummary_Size(ctx, field, obj) 9770 case "IsSigned": 9771 out.Values[i] = ec._ManifestSummary_IsSigned(ctx, field, obj) 9772 case "SignatureInfo": 9773 out.Values[i] = ec._ManifestSummary_SignatureInfo(ctx, field, obj) 9774 case "Platform": 9775 out.Values[i] = ec._ManifestSummary_Platform(ctx, field, obj) 9776 case "DownloadCount": 9777 out.Values[i] = ec._ManifestSummary_DownloadCount(ctx, field, obj) 9778 case "Layers": 9779 out.Values[i] = ec._ManifestSummary_Layers(ctx, field, obj) 9780 case "History": 9781 out.Values[i] = ec._ManifestSummary_History(ctx, field, obj) 9782 case "Vulnerabilities": 9783 out.Values[i] = ec._ManifestSummary_Vulnerabilities(ctx, field, obj) 9784 case "Referrers": 9785 out.Values[i] = ec._ManifestSummary_Referrers(ctx, field, obj) 9786 case "ArtifactType": 9787 out.Values[i] = ec._ManifestSummary_ArtifactType(ctx, field, obj) 9788 default: 9789 panic("unknown field " + strconv.Quote(field.Name)) 9790 } 9791 } 9792 out.Dispatch(ctx) 9793 if out.Invalids > 0 { 9794 return graphql.Null 9795 } 9796 9797 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9798 9799 for label, dfs := range deferred { 9800 ec.processDeferredGroup(graphql.DeferredGroup{ 9801 Label: label, 9802 Path: graphql.GetPath(ctx), 9803 FieldSet: dfs, 9804 Context: ctx, 9805 }) 9806 } 9807 9808 return out 9809 } 9810 9811 var packageInfoImplementors = []string{"PackageInfo"} 9812 9813 func (ec *executionContext) _PackageInfo(ctx context.Context, sel ast.SelectionSet, obj *PackageInfo) graphql.Marshaler { 9814 fields := graphql.CollectFields(ec.OperationContext, sel, packageInfoImplementors) 9815 9816 out := graphql.NewFieldSet(fields) 9817 deferred := make(map[string]*graphql.FieldSet) 9818 for i, field := range fields { 9819 switch field.Name { 9820 case "__typename": 9821 out.Values[i] = graphql.MarshalString("PackageInfo") 9822 case "Name": 9823 out.Values[i] = ec._PackageInfo_Name(ctx, field, obj) 9824 case "InstalledVersion": 9825 out.Values[i] = ec._PackageInfo_InstalledVersion(ctx, field, obj) 9826 case "FixedVersion": 9827 out.Values[i] = ec._PackageInfo_FixedVersion(ctx, field, obj) 9828 default: 9829 panic("unknown field " + strconv.Quote(field.Name)) 9830 } 9831 } 9832 out.Dispatch(ctx) 9833 if out.Invalids > 0 { 9834 return graphql.Null 9835 } 9836 9837 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9838 9839 for label, dfs := range deferred { 9840 ec.processDeferredGroup(graphql.DeferredGroup{ 9841 Label: label, 9842 Path: graphql.GetPath(ctx), 9843 FieldSet: dfs, 9844 Context: ctx, 9845 }) 9846 } 9847 9848 return out 9849 } 9850 9851 var pageInfoImplementors = []string{"PageInfo"} 9852 9853 func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *PageInfo) graphql.Marshaler { 9854 fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors) 9855 9856 out := graphql.NewFieldSet(fields) 9857 deferred := make(map[string]*graphql.FieldSet) 9858 for i, field := range fields { 9859 switch field.Name { 9860 case "__typename": 9861 out.Values[i] = graphql.MarshalString("PageInfo") 9862 case "TotalCount": 9863 out.Values[i] = ec._PageInfo_TotalCount(ctx, field, obj) 9864 if out.Values[i] == graphql.Null { 9865 out.Invalids++ 9866 } 9867 case "ItemCount": 9868 out.Values[i] = ec._PageInfo_ItemCount(ctx, field, obj) 9869 if out.Values[i] == graphql.Null { 9870 out.Invalids++ 9871 } 9872 default: 9873 panic("unknown field " + strconv.Quote(field.Name)) 9874 } 9875 } 9876 out.Dispatch(ctx) 9877 if out.Invalids > 0 { 9878 return graphql.Null 9879 } 9880 9881 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9882 9883 for label, dfs := range deferred { 9884 ec.processDeferredGroup(graphql.DeferredGroup{ 9885 Label: label, 9886 Path: graphql.GetPath(ctx), 9887 FieldSet: dfs, 9888 Context: ctx, 9889 }) 9890 } 9891 9892 return out 9893 } 9894 9895 var paginatedImagesResultImplementors = []string{"PaginatedImagesResult"} 9896 9897 func (ec *executionContext) _PaginatedImagesResult(ctx context.Context, sel ast.SelectionSet, obj *PaginatedImagesResult) graphql.Marshaler { 9898 fields := graphql.CollectFields(ec.OperationContext, sel, paginatedImagesResultImplementors) 9899 9900 out := graphql.NewFieldSet(fields) 9901 deferred := make(map[string]*graphql.FieldSet) 9902 for i, field := range fields { 9903 switch field.Name { 9904 case "__typename": 9905 out.Values[i] = graphql.MarshalString("PaginatedImagesResult") 9906 case "Page": 9907 out.Values[i] = ec._PaginatedImagesResult_Page(ctx, field, obj) 9908 case "Results": 9909 out.Values[i] = ec._PaginatedImagesResult_Results(ctx, field, obj) 9910 if out.Values[i] == graphql.Null { 9911 out.Invalids++ 9912 } 9913 default: 9914 panic("unknown field " + strconv.Quote(field.Name)) 9915 } 9916 } 9917 out.Dispatch(ctx) 9918 if out.Invalids > 0 { 9919 return graphql.Null 9920 } 9921 9922 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9923 9924 for label, dfs := range deferred { 9925 ec.processDeferredGroup(graphql.DeferredGroup{ 9926 Label: label, 9927 Path: graphql.GetPath(ctx), 9928 FieldSet: dfs, 9929 Context: ctx, 9930 }) 9931 } 9932 9933 return out 9934 } 9935 9936 var paginatedReposResultImplementors = []string{"PaginatedReposResult"} 9937 9938 func (ec *executionContext) _PaginatedReposResult(ctx context.Context, sel ast.SelectionSet, obj *PaginatedReposResult) graphql.Marshaler { 9939 fields := graphql.CollectFields(ec.OperationContext, sel, paginatedReposResultImplementors) 9940 9941 out := graphql.NewFieldSet(fields) 9942 deferred := make(map[string]*graphql.FieldSet) 9943 for i, field := range fields { 9944 switch field.Name { 9945 case "__typename": 9946 out.Values[i] = graphql.MarshalString("PaginatedReposResult") 9947 case "Page": 9948 out.Values[i] = ec._PaginatedReposResult_Page(ctx, field, obj) 9949 case "Results": 9950 out.Values[i] = ec._PaginatedReposResult_Results(ctx, field, obj) 9951 if out.Values[i] == graphql.Null { 9952 out.Invalids++ 9953 } 9954 default: 9955 panic("unknown field " + strconv.Quote(field.Name)) 9956 } 9957 } 9958 out.Dispatch(ctx) 9959 if out.Invalids > 0 { 9960 return graphql.Null 9961 } 9962 9963 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 9964 9965 for label, dfs := range deferred { 9966 ec.processDeferredGroup(graphql.DeferredGroup{ 9967 Label: label, 9968 Path: graphql.GetPath(ctx), 9969 FieldSet: dfs, 9970 Context: ctx, 9971 }) 9972 } 9973 9974 return out 9975 } 9976 9977 var platformImplementors = []string{"Platform"} 9978 9979 func (ec *executionContext) _Platform(ctx context.Context, sel ast.SelectionSet, obj *Platform) graphql.Marshaler { 9980 fields := graphql.CollectFields(ec.OperationContext, sel, platformImplementors) 9981 9982 out := graphql.NewFieldSet(fields) 9983 deferred := make(map[string]*graphql.FieldSet) 9984 for i, field := range fields { 9985 switch field.Name { 9986 case "__typename": 9987 out.Values[i] = graphql.MarshalString("Platform") 9988 case "Os": 9989 out.Values[i] = ec._Platform_Os(ctx, field, obj) 9990 case "Arch": 9991 out.Values[i] = ec._Platform_Arch(ctx, field, obj) 9992 default: 9993 panic("unknown field " + strconv.Quote(field.Name)) 9994 } 9995 } 9996 out.Dispatch(ctx) 9997 if out.Invalids > 0 { 9998 return graphql.Null 9999 } 10000 10001 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10002 10003 for label, dfs := range deferred { 10004 ec.processDeferredGroup(graphql.DeferredGroup{ 10005 Label: label, 10006 Path: graphql.GetPath(ctx), 10007 FieldSet: dfs, 10008 Context: ctx, 10009 }) 10010 } 10011 10012 return out 10013 } 10014 10015 var queryImplementors = []string{"Query"} 10016 10017 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 10018 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) 10019 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 10020 Object: "Query", 10021 }) 10022 10023 out := graphql.NewFieldSet(fields) 10024 deferred := make(map[string]*graphql.FieldSet) 10025 for i, field := range fields { 10026 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ 10027 Object: field.Name, 10028 Field: field, 10029 }) 10030 10031 switch field.Name { 10032 case "__typename": 10033 out.Values[i] = graphql.MarshalString("Query") 10034 case "CVEListForImage": 10035 field := field 10036 10037 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10038 defer func() { 10039 if r := recover(); r != nil { 10040 ec.Error(ctx, ec.Recover(ctx, r)) 10041 } 10042 }() 10043 res = ec._Query_CVEListForImage(ctx, field) 10044 if res == graphql.Null { 10045 atomic.AddUint32(&fs.Invalids, 1) 10046 } 10047 return res 10048 } 10049 10050 rrm := func(ctx context.Context) graphql.Marshaler { 10051 return ec.OperationContext.RootResolverMiddleware(ctx, 10052 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10053 } 10054 10055 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10056 case "ImageListForCVE": 10057 field := field 10058 10059 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10060 defer func() { 10061 if r := recover(); r != nil { 10062 ec.Error(ctx, ec.Recover(ctx, r)) 10063 } 10064 }() 10065 res = ec._Query_ImageListForCVE(ctx, field) 10066 if res == graphql.Null { 10067 atomic.AddUint32(&fs.Invalids, 1) 10068 } 10069 return res 10070 } 10071 10072 rrm := func(ctx context.Context) graphql.Marshaler { 10073 return ec.OperationContext.RootResolverMiddleware(ctx, 10074 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10075 } 10076 10077 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10078 case "ImageListWithCVEFixed": 10079 field := field 10080 10081 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10082 defer func() { 10083 if r := recover(); r != nil { 10084 ec.Error(ctx, ec.Recover(ctx, r)) 10085 } 10086 }() 10087 res = ec._Query_ImageListWithCVEFixed(ctx, field) 10088 if res == graphql.Null { 10089 atomic.AddUint32(&fs.Invalids, 1) 10090 } 10091 return res 10092 } 10093 10094 rrm := func(ctx context.Context) graphql.Marshaler { 10095 return ec.OperationContext.RootResolverMiddleware(ctx, 10096 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10097 } 10098 10099 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10100 case "ImageListForDigest": 10101 field := field 10102 10103 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10104 defer func() { 10105 if r := recover(); r != nil { 10106 ec.Error(ctx, ec.Recover(ctx, r)) 10107 } 10108 }() 10109 res = ec._Query_ImageListForDigest(ctx, field) 10110 if res == graphql.Null { 10111 atomic.AddUint32(&fs.Invalids, 1) 10112 } 10113 return res 10114 } 10115 10116 rrm := func(ctx context.Context) graphql.Marshaler { 10117 return ec.OperationContext.RootResolverMiddleware(ctx, 10118 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10119 } 10120 10121 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10122 case "RepoListWithNewestImage": 10123 field := field 10124 10125 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10126 defer func() { 10127 if r := recover(); r != nil { 10128 ec.Error(ctx, ec.Recover(ctx, r)) 10129 } 10130 }() 10131 res = ec._Query_RepoListWithNewestImage(ctx, field) 10132 if res == graphql.Null { 10133 atomic.AddUint32(&fs.Invalids, 1) 10134 } 10135 return res 10136 } 10137 10138 rrm := func(ctx context.Context) graphql.Marshaler { 10139 return ec.OperationContext.RootResolverMiddleware(ctx, 10140 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10141 } 10142 10143 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10144 case "ImageList": 10145 field := field 10146 10147 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10148 defer func() { 10149 if r := recover(); r != nil { 10150 ec.Error(ctx, ec.Recover(ctx, r)) 10151 } 10152 }() 10153 res = ec._Query_ImageList(ctx, field) 10154 if res == graphql.Null { 10155 atomic.AddUint32(&fs.Invalids, 1) 10156 } 10157 return res 10158 } 10159 10160 rrm := func(ctx context.Context) graphql.Marshaler { 10161 return ec.OperationContext.RootResolverMiddleware(ctx, 10162 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10163 } 10164 10165 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10166 case "ExpandedRepoInfo": 10167 field := field 10168 10169 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10170 defer func() { 10171 if r := recover(); r != nil { 10172 ec.Error(ctx, ec.Recover(ctx, r)) 10173 } 10174 }() 10175 res = ec._Query_ExpandedRepoInfo(ctx, field) 10176 if res == graphql.Null { 10177 atomic.AddUint32(&fs.Invalids, 1) 10178 } 10179 return res 10180 } 10181 10182 rrm := func(ctx context.Context) graphql.Marshaler { 10183 return ec.OperationContext.RootResolverMiddleware(ctx, 10184 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10185 } 10186 10187 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10188 case "GlobalSearch": 10189 field := field 10190 10191 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10192 defer func() { 10193 if r := recover(); r != nil { 10194 ec.Error(ctx, ec.Recover(ctx, r)) 10195 } 10196 }() 10197 res = ec._Query_GlobalSearch(ctx, field) 10198 if res == graphql.Null { 10199 atomic.AddUint32(&fs.Invalids, 1) 10200 } 10201 return res 10202 } 10203 10204 rrm := func(ctx context.Context) graphql.Marshaler { 10205 return ec.OperationContext.RootResolverMiddleware(ctx, 10206 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10207 } 10208 10209 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10210 case "DerivedImageList": 10211 field := field 10212 10213 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10214 defer func() { 10215 if r := recover(); r != nil { 10216 ec.Error(ctx, ec.Recover(ctx, r)) 10217 } 10218 }() 10219 res = ec._Query_DerivedImageList(ctx, field) 10220 if res == graphql.Null { 10221 atomic.AddUint32(&fs.Invalids, 1) 10222 } 10223 return res 10224 } 10225 10226 rrm := func(ctx context.Context) graphql.Marshaler { 10227 return ec.OperationContext.RootResolverMiddleware(ctx, 10228 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10229 } 10230 10231 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10232 case "BaseImageList": 10233 field := field 10234 10235 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10236 defer func() { 10237 if r := recover(); r != nil { 10238 ec.Error(ctx, ec.Recover(ctx, r)) 10239 } 10240 }() 10241 res = ec._Query_BaseImageList(ctx, field) 10242 if res == graphql.Null { 10243 atomic.AddUint32(&fs.Invalids, 1) 10244 } 10245 return res 10246 } 10247 10248 rrm := func(ctx context.Context) graphql.Marshaler { 10249 return ec.OperationContext.RootResolverMiddleware(ctx, 10250 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10251 } 10252 10253 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10254 case "Image": 10255 field := field 10256 10257 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10258 defer func() { 10259 if r := recover(); r != nil { 10260 ec.Error(ctx, ec.Recover(ctx, r)) 10261 } 10262 }() 10263 res = ec._Query_Image(ctx, field) 10264 if res == graphql.Null { 10265 atomic.AddUint32(&fs.Invalids, 1) 10266 } 10267 return res 10268 } 10269 10270 rrm := func(ctx context.Context) graphql.Marshaler { 10271 return ec.OperationContext.RootResolverMiddleware(ctx, 10272 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10273 } 10274 10275 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10276 case "Referrers": 10277 field := field 10278 10279 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10280 defer func() { 10281 if r := recover(); r != nil { 10282 ec.Error(ctx, ec.Recover(ctx, r)) 10283 } 10284 }() 10285 res = ec._Query_Referrers(ctx, field) 10286 if res == graphql.Null { 10287 atomic.AddUint32(&fs.Invalids, 1) 10288 } 10289 return res 10290 } 10291 10292 rrm := func(ctx context.Context) graphql.Marshaler { 10293 return ec.OperationContext.RootResolverMiddleware(ctx, 10294 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10295 } 10296 10297 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10298 case "StarredRepos": 10299 field := field 10300 10301 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10302 defer func() { 10303 if r := recover(); r != nil { 10304 ec.Error(ctx, ec.Recover(ctx, r)) 10305 } 10306 }() 10307 res = ec._Query_StarredRepos(ctx, field) 10308 if res == graphql.Null { 10309 atomic.AddUint32(&fs.Invalids, 1) 10310 } 10311 return res 10312 } 10313 10314 rrm := func(ctx context.Context) graphql.Marshaler { 10315 return ec.OperationContext.RootResolverMiddleware(ctx, 10316 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10317 } 10318 10319 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10320 case "BookmarkedRepos": 10321 field := field 10322 10323 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 10324 defer func() { 10325 if r := recover(); r != nil { 10326 ec.Error(ctx, ec.Recover(ctx, r)) 10327 } 10328 }() 10329 res = ec._Query_BookmarkedRepos(ctx, field) 10330 if res == graphql.Null { 10331 atomic.AddUint32(&fs.Invalids, 1) 10332 } 10333 return res 10334 } 10335 10336 rrm := func(ctx context.Context) graphql.Marshaler { 10337 return ec.OperationContext.RootResolverMiddleware(ctx, 10338 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 10339 } 10340 10341 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 10342 case "__type": 10343 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 10344 return ec._Query___type(ctx, field) 10345 }) 10346 case "__schema": 10347 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 10348 return ec._Query___schema(ctx, field) 10349 }) 10350 default: 10351 panic("unknown field " + strconv.Quote(field.Name)) 10352 } 10353 } 10354 out.Dispatch(ctx) 10355 if out.Invalids > 0 { 10356 return graphql.Null 10357 } 10358 10359 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10360 10361 for label, dfs := range deferred { 10362 ec.processDeferredGroup(graphql.DeferredGroup{ 10363 Label: label, 10364 Path: graphql.GetPath(ctx), 10365 FieldSet: dfs, 10366 Context: ctx, 10367 }) 10368 } 10369 10370 return out 10371 } 10372 10373 var referrerImplementors = []string{"Referrer"} 10374 10375 func (ec *executionContext) _Referrer(ctx context.Context, sel ast.SelectionSet, obj *Referrer) graphql.Marshaler { 10376 fields := graphql.CollectFields(ec.OperationContext, sel, referrerImplementors) 10377 10378 out := graphql.NewFieldSet(fields) 10379 deferred := make(map[string]*graphql.FieldSet) 10380 for i, field := range fields { 10381 switch field.Name { 10382 case "__typename": 10383 out.Values[i] = graphql.MarshalString("Referrer") 10384 case "MediaType": 10385 out.Values[i] = ec._Referrer_MediaType(ctx, field, obj) 10386 case "ArtifactType": 10387 out.Values[i] = ec._Referrer_ArtifactType(ctx, field, obj) 10388 case "Size": 10389 out.Values[i] = ec._Referrer_Size(ctx, field, obj) 10390 case "Digest": 10391 out.Values[i] = ec._Referrer_Digest(ctx, field, obj) 10392 case "Annotations": 10393 out.Values[i] = ec._Referrer_Annotations(ctx, field, obj) 10394 if out.Values[i] == graphql.Null { 10395 out.Invalids++ 10396 } 10397 default: 10398 panic("unknown field " + strconv.Quote(field.Name)) 10399 } 10400 } 10401 out.Dispatch(ctx) 10402 if out.Invalids > 0 { 10403 return graphql.Null 10404 } 10405 10406 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10407 10408 for label, dfs := range deferred { 10409 ec.processDeferredGroup(graphql.DeferredGroup{ 10410 Label: label, 10411 Path: graphql.GetPath(ctx), 10412 FieldSet: dfs, 10413 Context: ctx, 10414 }) 10415 } 10416 10417 return out 10418 } 10419 10420 var repoInfoImplementors = []string{"RepoInfo"} 10421 10422 func (ec *executionContext) _RepoInfo(ctx context.Context, sel ast.SelectionSet, obj *RepoInfo) graphql.Marshaler { 10423 fields := graphql.CollectFields(ec.OperationContext, sel, repoInfoImplementors) 10424 10425 out := graphql.NewFieldSet(fields) 10426 deferred := make(map[string]*graphql.FieldSet) 10427 for i, field := range fields { 10428 switch field.Name { 10429 case "__typename": 10430 out.Values[i] = graphql.MarshalString("RepoInfo") 10431 case "Images": 10432 out.Values[i] = ec._RepoInfo_Images(ctx, field, obj) 10433 case "Summary": 10434 out.Values[i] = ec._RepoInfo_Summary(ctx, field, obj) 10435 default: 10436 panic("unknown field " + strconv.Quote(field.Name)) 10437 } 10438 } 10439 out.Dispatch(ctx) 10440 if out.Invalids > 0 { 10441 return graphql.Null 10442 } 10443 10444 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10445 10446 for label, dfs := range deferred { 10447 ec.processDeferredGroup(graphql.DeferredGroup{ 10448 Label: label, 10449 Path: graphql.GetPath(ctx), 10450 FieldSet: dfs, 10451 Context: ctx, 10452 }) 10453 } 10454 10455 return out 10456 } 10457 10458 var repoSummaryImplementors = []string{"RepoSummary"} 10459 10460 func (ec *executionContext) _RepoSummary(ctx context.Context, sel ast.SelectionSet, obj *RepoSummary) graphql.Marshaler { 10461 fields := graphql.CollectFields(ec.OperationContext, sel, repoSummaryImplementors) 10462 10463 out := graphql.NewFieldSet(fields) 10464 deferred := make(map[string]*graphql.FieldSet) 10465 for i, field := range fields { 10466 switch field.Name { 10467 case "__typename": 10468 out.Values[i] = graphql.MarshalString("RepoSummary") 10469 case "Name": 10470 out.Values[i] = ec._RepoSummary_Name(ctx, field, obj) 10471 case "LastUpdated": 10472 out.Values[i] = ec._RepoSummary_LastUpdated(ctx, field, obj) 10473 case "Size": 10474 out.Values[i] = ec._RepoSummary_Size(ctx, field, obj) 10475 case "Platforms": 10476 out.Values[i] = ec._RepoSummary_Platforms(ctx, field, obj) 10477 case "Vendors": 10478 out.Values[i] = ec._RepoSummary_Vendors(ctx, field, obj) 10479 case "NewestImage": 10480 out.Values[i] = ec._RepoSummary_NewestImage(ctx, field, obj) 10481 case "DownloadCount": 10482 out.Values[i] = ec._RepoSummary_DownloadCount(ctx, field, obj) 10483 case "StarCount": 10484 out.Values[i] = ec._RepoSummary_StarCount(ctx, field, obj) 10485 case "IsBookmarked": 10486 out.Values[i] = ec._RepoSummary_IsBookmarked(ctx, field, obj) 10487 case "IsStarred": 10488 out.Values[i] = ec._RepoSummary_IsStarred(ctx, field, obj) 10489 case "Rank": 10490 out.Values[i] = ec._RepoSummary_Rank(ctx, field, obj) 10491 default: 10492 panic("unknown field " + strconv.Quote(field.Name)) 10493 } 10494 } 10495 out.Dispatch(ctx) 10496 if out.Invalids > 0 { 10497 return graphql.Null 10498 } 10499 10500 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10501 10502 for label, dfs := range deferred { 10503 ec.processDeferredGroup(graphql.DeferredGroup{ 10504 Label: label, 10505 Path: graphql.GetPath(ctx), 10506 FieldSet: dfs, 10507 Context: ctx, 10508 }) 10509 } 10510 10511 return out 10512 } 10513 10514 var signatureSummaryImplementors = []string{"SignatureSummary"} 10515 10516 func (ec *executionContext) _SignatureSummary(ctx context.Context, sel ast.SelectionSet, obj *SignatureSummary) graphql.Marshaler { 10517 fields := graphql.CollectFields(ec.OperationContext, sel, signatureSummaryImplementors) 10518 10519 out := graphql.NewFieldSet(fields) 10520 deferred := make(map[string]*graphql.FieldSet) 10521 for i, field := range fields { 10522 switch field.Name { 10523 case "__typename": 10524 out.Values[i] = graphql.MarshalString("SignatureSummary") 10525 case "Tool": 10526 out.Values[i] = ec._SignatureSummary_Tool(ctx, field, obj) 10527 case "IsTrusted": 10528 out.Values[i] = ec._SignatureSummary_IsTrusted(ctx, field, obj) 10529 case "Author": 10530 out.Values[i] = ec._SignatureSummary_Author(ctx, field, obj) 10531 default: 10532 panic("unknown field " + strconv.Quote(field.Name)) 10533 } 10534 } 10535 out.Dispatch(ctx) 10536 if out.Invalids > 0 { 10537 return graphql.Null 10538 } 10539 10540 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10541 10542 for label, dfs := range deferred { 10543 ec.processDeferredGroup(graphql.DeferredGroup{ 10544 Label: label, 10545 Path: graphql.GetPath(ctx), 10546 FieldSet: dfs, 10547 Context: ctx, 10548 }) 10549 } 10550 10551 return out 10552 } 10553 10554 var __DirectiveImplementors = []string{"__Directive"} 10555 10556 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { 10557 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) 10558 10559 out := graphql.NewFieldSet(fields) 10560 deferred := make(map[string]*graphql.FieldSet) 10561 for i, field := range fields { 10562 switch field.Name { 10563 case "__typename": 10564 out.Values[i] = graphql.MarshalString("__Directive") 10565 case "name": 10566 out.Values[i] = ec.___Directive_name(ctx, field, obj) 10567 if out.Values[i] == graphql.Null { 10568 out.Invalids++ 10569 } 10570 case "description": 10571 out.Values[i] = ec.___Directive_description(ctx, field, obj) 10572 case "locations": 10573 out.Values[i] = ec.___Directive_locations(ctx, field, obj) 10574 if out.Values[i] == graphql.Null { 10575 out.Invalids++ 10576 } 10577 case "args": 10578 out.Values[i] = ec.___Directive_args(ctx, field, obj) 10579 if out.Values[i] == graphql.Null { 10580 out.Invalids++ 10581 } 10582 case "isRepeatable": 10583 out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) 10584 if out.Values[i] == graphql.Null { 10585 out.Invalids++ 10586 } 10587 default: 10588 panic("unknown field " + strconv.Quote(field.Name)) 10589 } 10590 } 10591 out.Dispatch(ctx) 10592 if out.Invalids > 0 { 10593 return graphql.Null 10594 } 10595 10596 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10597 10598 for label, dfs := range deferred { 10599 ec.processDeferredGroup(graphql.DeferredGroup{ 10600 Label: label, 10601 Path: graphql.GetPath(ctx), 10602 FieldSet: dfs, 10603 Context: ctx, 10604 }) 10605 } 10606 10607 return out 10608 } 10609 10610 var __EnumValueImplementors = []string{"__EnumValue"} 10611 10612 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { 10613 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) 10614 10615 out := graphql.NewFieldSet(fields) 10616 deferred := make(map[string]*graphql.FieldSet) 10617 for i, field := range fields { 10618 switch field.Name { 10619 case "__typename": 10620 out.Values[i] = graphql.MarshalString("__EnumValue") 10621 case "name": 10622 out.Values[i] = ec.___EnumValue_name(ctx, field, obj) 10623 if out.Values[i] == graphql.Null { 10624 out.Invalids++ 10625 } 10626 case "description": 10627 out.Values[i] = ec.___EnumValue_description(ctx, field, obj) 10628 case "isDeprecated": 10629 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) 10630 if out.Values[i] == graphql.Null { 10631 out.Invalids++ 10632 } 10633 case "deprecationReason": 10634 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) 10635 default: 10636 panic("unknown field " + strconv.Quote(field.Name)) 10637 } 10638 } 10639 out.Dispatch(ctx) 10640 if out.Invalids > 0 { 10641 return graphql.Null 10642 } 10643 10644 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10645 10646 for label, dfs := range deferred { 10647 ec.processDeferredGroup(graphql.DeferredGroup{ 10648 Label: label, 10649 Path: graphql.GetPath(ctx), 10650 FieldSet: dfs, 10651 Context: ctx, 10652 }) 10653 } 10654 10655 return out 10656 } 10657 10658 var __FieldImplementors = []string{"__Field"} 10659 10660 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { 10661 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) 10662 10663 out := graphql.NewFieldSet(fields) 10664 deferred := make(map[string]*graphql.FieldSet) 10665 for i, field := range fields { 10666 switch field.Name { 10667 case "__typename": 10668 out.Values[i] = graphql.MarshalString("__Field") 10669 case "name": 10670 out.Values[i] = ec.___Field_name(ctx, field, obj) 10671 if out.Values[i] == graphql.Null { 10672 out.Invalids++ 10673 } 10674 case "description": 10675 out.Values[i] = ec.___Field_description(ctx, field, obj) 10676 case "args": 10677 out.Values[i] = ec.___Field_args(ctx, field, obj) 10678 if out.Values[i] == graphql.Null { 10679 out.Invalids++ 10680 } 10681 case "type": 10682 out.Values[i] = ec.___Field_type(ctx, field, obj) 10683 if out.Values[i] == graphql.Null { 10684 out.Invalids++ 10685 } 10686 case "isDeprecated": 10687 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) 10688 if out.Values[i] == graphql.Null { 10689 out.Invalids++ 10690 } 10691 case "deprecationReason": 10692 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) 10693 default: 10694 panic("unknown field " + strconv.Quote(field.Name)) 10695 } 10696 } 10697 out.Dispatch(ctx) 10698 if out.Invalids > 0 { 10699 return graphql.Null 10700 } 10701 10702 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10703 10704 for label, dfs := range deferred { 10705 ec.processDeferredGroup(graphql.DeferredGroup{ 10706 Label: label, 10707 Path: graphql.GetPath(ctx), 10708 FieldSet: dfs, 10709 Context: ctx, 10710 }) 10711 } 10712 10713 return out 10714 } 10715 10716 var __InputValueImplementors = []string{"__InputValue"} 10717 10718 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { 10719 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) 10720 10721 out := graphql.NewFieldSet(fields) 10722 deferred := make(map[string]*graphql.FieldSet) 10723 for i, field := range fields { 10724 switch field.Name { 10725 case "__typename": 10726 out.Values[i] = graphql.MarshalString("__InputValue") 10727 case "name": 10728 out.Values[i] = ec.___InputValue_name(ctx, field, obj) 10729 if out.Values[i] == graphql.Null { 10730 out.Invalids++ 10731 } 10732 case "description": 10733 out.Values[i] = ec.___InputValue_description(ctx, field, obj) 10734 case "type": 10735 out.Values[i] = ec.___InputValue_type(ctx, field, obj) 10736 if out.Values[i] == graphql.Null { 10737 out.Invalids++ 10738 } 10739 case "defaultValue": 10740 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) 10741 default: 10742 panic("unknown field " + strconv.Quote(field.Name)) 10743 } 10744 } 10745 out.Dispatch(ctx) 10746 if out.Invalids > 0 { 10747 return graphql.Null 10748 } 10749 10750 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10751 10752 for label, dfs := range deferred { 10753 ec.processDeferredGroup(graphql.DeferredGroup{ 10754 Label: label, 10755 Path: graphql.GetPath(ctx), 10756 FieldSet: dfs, 10757 Context: ctx, 10758 }) 10759 } 10760 10761 return out 10762 } 10763 10764 var __SchemaImplementors = []string{"__Schema"} 10765 10766 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { 10767 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) 10768 10769 out := graphql.NewFieldSet(fields) 10770 deferred := make(map[string]*graphql.FieldSet) 10771 for i, field := range fields { 10772 switch field.Name { 10773 case "__typename": 10774 out.Values[i] = graphql.MarshalString("__Schema") 10775 case "description": 10776 out.Values[i] = ec.___Schema_description(ctx, field, obj) 10777 case "types": 10778 out.Values[i] = ec.___Schema_types(ctx, field, obj) 10779 if out.Values[i] == graphql.Null { 10780 out.Invalids++ 10781 } 10782 case "queryType": 10783 out.Values[i] = ec.___Schema_queryType(ctx, field, obj) 10784 if out.Values[i] == graphql.Null { 10785 out.Invalids++ 10786 } 10787 case "mutationType": 10788 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) 10789 case "subscriptionType": 10790 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) 10791 case "directives": 10792 out.Values[i] = ec.___Schema_directives(ctx, field, obj) 10793 if out.Values[i] == graphql.Null { 10794 out.Invalids++ 10795 } 10796 default: 10797 panic("unknown field " + strconv.Quote(field.Name)) 10798 } 10799 } 10800 out.Dispatch(ctx) 10801 if out.Invalids > 0 { 10802 return graphql.Null 10803 } 10804 10805 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10806 10807 for label, dfs := range deferred { 10808 ec.processDeferredGroup(graphql.DeferredGroup{ 10809 Label: label, 10810 Path: graphql.GetPath(ctx), 10811 FieldSet: dfs, 10812 Context: ctx, 10813 }) 10814 } 10815 10816 return out 10817 } 10818 10819 var __TypeImplementors = []string{"__Type"} 10820 10821 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { 10822 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) 10823 10824 out := graphql.NewFieldSet(fields) 10825 deferred := make(map[string]*graphql.FieldSet) 10826 for i, field := range fields { 10827 switch field.Name { 10828 case "__typename": 10829 out.Values[i] = graphql.MarshalString("__Type") 10830 case "kind": 10831 out.Values[i] = ec.___Type_kind(ctx, field, obj) 10832 if out.Values[i] == graphql.Null { 10833 out.Invalids++ 10834 } 10835 case "name": 10836 out.Values[i] = ec.___Type_name(ctx, field, obj) 10837 case "description": 10838 out.Values[i] = ec.___Type_description(ctx, field, obj) 10839 case "fields": 10840 out.Values[i] = ec.___Type_fields(ctx, field, obj) 10841 case "interfaces": 10842 out.Values[i] = ec.___Type_interfaces(ctx, field, obj) 10843 case "possibleTypes": 10844 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) 10845 case "enumValues": 10846 out.Values[i] = ec.___Type_enumValues(ctx, field, obj) 10847 case "inputFields": 10848 out.Values[i] = ec.___Type_inputFields(ctx, field, obj) 10849 case "ofType": 10850 out.Values[i] = ec.___Type_ofType(ctx, field, obj) 10851 case "specifiedByURL": 10852 out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) 10853 default: 10854 panic("unknown field " + strconv.Quote(field.Name)) 10855 } 10856 } 10857 out.Dispatch(ctx) 10858 if out.Invalids > 0 { 10859 return graphql.Null 10860 } 10861 10862 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 10863 10864 for label, dfs := range deferred { 10865 ec.processDeferredGroup(graphql.DeferredGroup{ 10866 Label: label, 10867 Path: graphql.GetPath(ctx), 10868 FieldSet: dfs, 10869 Context: ctx, 10870 }) 10871 } 10872 10873 return out 10874 } 10875 10876 // endregion **************************** object.gotpl **************************** 10877 10878 // region ***************************** type.gotpl ***************************** 10879 10880 func (ec *executionContext) marshalNAnnotation2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v []*Annotation) graphql.Marshaler { 10881 ret := make(graphql.Array, len(v)) 10882 var wg sync.WaitGroup 10883 isLen1 := len(v) == 1 10884 if !isLen1 { 10885 wg.Add(len(v)) 10886 } 10887 for i := range v { 10888 i := i 10889 fc := &graphql.FieldContext{ 10890 Index: &i, 10891 Result: &v[i], 10892 } 10893 ctx := graphql.WithFieldContext(ctx, fc) 10894 f := func(i int) { 10895 defer func() { 10896 if r := recover(); r != nil { 10897 ec.Error(ctx, ec.Recover(ctx, r)) 10898 ret = nil 10899 } 10900 }() 10901 if !isLen1 { 10902 defer wg.Done() 10903 } 10904 ret[i] = ec.marshalOAnnotation2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐAnnotation(ctx, sel, v[i]) 10905 } 10906 if isLen1 { 10907 f(i) 10908 } else { 10909 go f(i) 10910 } 10911 10912 } 10913 wg.Wait() 10914 10915 return ret 10916 } 10917 10918 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 10919 res, err := graphql.UnmarshalBoolean(v) 10920 return res, graphql.ErrorOnPath(ctx, err) 10921 } 10922 10923 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 10924 res := graphql.MarshalBoolean(v) 10925 if res == graphql.Null { 10926 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 10927 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 10928 } 10929 } 10930 return res 10931 } 10932 10933 func (ec *executionContext) marshalNCVEResultForImage2zotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCVEResultForImage(ctx context.Context, sel ast.SelectionSet, v CVEResultForImage) graphql.Marshaler { 10934 return ec._CVEResultForImage(ctx, sel, &v) 10935 } 10936 10937 func (ec *executionContext) marshalNCVEResultForImage2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCVEResultForImage(ctx context.Context, sel ast.SelectionSet, v *CVEResultForImage) graphql.Marshaler { 10938 if v == nil { 10939 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 10940 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 10941 } 10942 return graphql.Null 10943 } 10944 return ec._CVEResultForImage(ctx, sel, v) 10945 } 10946 10947 func (ec *executionContext) marshalNGlobalSearchResult2zotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐGlobalSearchResult(ctx context.Context, sel ast.SelectionSet, v GlobalSearchResult) graphql.Marshaler { 10948 return ec._GlobalSearchResult(ctx, sel, &v) 10949 } 10950 10951 func (ec *executionContext) marshalNGlobalSearchResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐGlobalSearchResult(ctx context.Context, sel ast.SelectionSet, v *GlobalSearchResult) graphql.Marshaler { 10952 if v == nil { 10953 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 10954 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 10955 } 10956 return graphql.Null 10957 } 10958 return ec._GlobalSearchResult(ctx, sel, v) 10959 } 10960 10961 func (ec *executionContext) marshalNImageSummary2zotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx context.Context, sel ast.SelectionSet, v ImageSummary) graphql.Marshaler { 10962 return ec._ImageSummary(ctx, sel, &v) 10963 } 10964 10965 func (ec *executionContext) marshalNImageSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummaryᚄ(ctx context.Context, sel ast.SelectionSet, v []*ImageSummary) graphql.Marshaler { 10966 ret := make(graphql.Array, len(v)) 10967 var wg sync.WaitGroup 10968 isLen1 := len(v) == 1 10969 if !isLen1 { 10970 wg.Add(len(v)) 10971 } 10972 for i := range v { 10973 i := i 10974 fc := &graphql.FieldContext{ 10975 Index: &i, 10976 Result: &v[i], 10977 } 10978 ctx := graphql.WithFieldContext(ctx, fc) 10979 f := func(i int) { 10980 defer func() { 10981 if r := recover(); r != nil { 10982 ec.Error(ctx, ec.Recover(ctx, r)) 10983 ret = nil 10984 } 10985 }() 10986 if !isLen1 { 10987 defer wg.Done() 10988 } 10989 ret[i] = ec.marshalNImageSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, sel, v[i]) 10990 } 10991 if isLen1 { 10992 f(i) 10993 } else { 10994 go f(i) 10995 } 10996 10997 } 10998 wg.Wait() 10999 11000 for _, e := range ret { 11001 if e == graphql.Null { 11002 return graphql.Null 11003 } 11004 } 11005 11006 return ret 11007 } 11008 11009 func (ec *executionContext) marshalNImageSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx context.Context, sel ast.SelectionSet, v *ImageSummary) graphql.Marshaler { 11010 if v == nil { 11011 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11012 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11013 } 11014 return graphql.Null 11015 } 11016 return ec._ImageSummary(ctx, sel, v) 11017 } 11018 11019 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { 11020 res, err := graphql.UnmarshalInt(v) 11021 return res, graphql.ErrorOnPath(ctx, err) 11022 } 11023 11024 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 11025 res := graphql.MarshalInt(v) 11026 if res == graphql.Null { 11027 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11028 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11029 } 11030 } 11031 return res 11032 } 11033 11034 func (ec *executionContext) marshalNPaginatedImagesResult2zotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx context.Context, sel ast.SelectionSet, v PaginatedImagesResult) graphql.Marshaler { 11035 return ec._PaginatedImagesResult(ctx, sel, &v) 11036 } 11037 11038 func (ec *executionContext) marshalNPaginatedImagesResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedImagesResult(ctx context.Context, sel ast.SelectionSet, v *PaginatedImagesResult) graphql.Marshaler { 11039 if v == nil { 11040 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11041 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11042 } 11043 return graphql.Null 11044 } 11045 return ec._PaginatedImagesResult(ctx, sel, v) 11046 } 11047 11048 func (ec *executionContext) marshalNPaginatedReposResult2zotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx context.Context, sel ast.SelectionSet, v PaginatedReposResult) graphql.Marshaler { 11049 return ec._PaginatedReposResult(ctx, sel, &v) 11050 } 11051 11052 func (ec *executionContext) marshalNPaginatedReposResult2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPaginatedReposResult(ctx context.Context, sel ast.SelectionSet, v *PaginatedReposResult) graphql.Marshaler { 11053 if v == nil { 11054 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11055 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11056 } 11057 return graphql.Null 11058 } 11059 return ec._PaginatedReposResult(ctx, sel, v) 11060 } 11061 11062 func (ec *executionContext) marshalNReferrer2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx context.Context, sel ast.SelectionSet, v []*Referrer) graphql.Marshaler { 11063 ret := make(graphql.Array, len(v)) 11064 var wg sync.WaitGroup 11065 isLen1 := len(v) == 1 11066 if !isLen1 { 11067 wg.Add(len(v)) 11068 } 11069 for i := range v { 11070 i := i 11071 fc := &graphql.FieldContext{ 11072 Index: &i, 11073 Result: &v[i], 11074 } 11075 ctx := graphql.WithFieldContext(ctx, fc) 11076 f := func(i int) { 11077 defer func() { 11078 if r := recover(); r != nil { 11079 ec.Error(ctx, ec.Recover(ctx, r)) 11080 ret = nil 11081 } 11082 }() 11083 if !isLen1 { 11084 defer wg.Done() 11085 } 11086 ret[i] = ec.marshalOReferrer2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, sel, v[i]) 11087 } 11088 if isLen1 { 11089 f(i) 11090 } else { 11091 go f(i) 11092 } 11093 11094 } 11095 wg.Wait() 11096 11097 return ret 11098 } 11099 11100 func (ec *executionContext) marshalNRepoInfo2zotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoInfo(ctx context.Context, sel ast.SelectionSet, v RepoInfo) graphql.Marshaler { 11101 return ec._RepoInfo(ctx, sel, &v) 11102 } 11103 11104 func (ec *executionContext) marshalNRepoInfo2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoInfo(ctx context.Context, sel ast.SelectionSet, v *RepoInfo) graphql.Marshaler { 11105 if v == nil { 11106 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11107 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11108 } 11109 return graphql.Null 11110 } 11111 return ec._RepoInfo(ctx, sel, v) 11112 } 11113 11114 func (ec *executionContext) marshalNRepoSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummaryᚄ(ctx context.Context, sel ast.SelectionSet, v []*RepoSummary) graphql.Marshaler { 11115 ret := make(graphql.Array, len(v)) 11116 var wg sync.WaitGroup 11117 isLen1 := len(v) == 1 11118 if !isLen1 { 11119 wg.Add(len(v)) 11120 } 11121 for i := range v { 11122 i := i 11123 fc := &graphql.FieldContext{ 11124 Index: &i, 11125 Result: &v[i], 11126 } 11127 ctx := graphql.WithFieldContext(ctx, fc) 11128 f := func(i int) { 11129 defer func() { 11130 if r := recover(); r != nil { 11131 ec.Error(ctx, ec.Recover(ctx, r)) 11132 ret = nil 11133 } 11134 }() 11135 if !isLen1 { 11136 defer wg.Done() 11137 } 11138 ret[i] = ec.marshalNRepoSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx, sel, v[i]) 11139 } 11140 if isLen1 { 11141 f(i) 11142 } else { 11143 go f(i) 11144 } 11145 11146 } 11147 wg.Wait() 11148 11149 for _, e := range ret { 11150 if e == graphql.Null { 11151 return graphql.Null 11152 } 11153 } 11154 11155 return ret 11156 } 11157 11158 func (ec *executionContext) marshalNRepoSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx context.Context, sel ast.SelectionSet, v *RepoSummary) graphql.Marshaler { 11159 if v == nil { 11160 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11161 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11162 } 11163 return graphql.Null 11164 } 11165 return ec._RepoSummary(ctx, sel, v) 11166 } 11167 11168 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { 11169 res, err := graphql.UnmarshalString(v) 11170 return res, graphql.ErrorOnPath(ctx, err) 11171 } 11172 11173 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 11174 res := graphql.MarshalString(v) 11175 if res == graphql.Null { 11176 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11177 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11178 } 11179 } 11180 return res 11181 } 11182 11183 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { 11184 return ec.___Directive(ctx, sel, &v) 11185 } 11186 11187 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { 11188 ret := make(graphql.Array, len(v)) 11189 var wg sync.WaitGroup 11190 isLen1 := len(v) == 1 11191 if !isLen1 { 11192 wg.Add(len(v)) 11193 } 11194 for i := range v { 11195 i := i 11196 fc := &graphql.FieldContext{ 11197 Index: &i, 11198 Result: &v[i], 11199 } 11200 ctx := graphql.WithFieldContext(ctx, fc) 11201 f := func(i int) { 11202 defer func() { 11203 if r := recover(); r != nil { 11204 ec.Error(ctx, ec.Recover(ctx, r)) 11205 ret = nil 11206 } 11207 }() 11208 if !isLen1 { 11209 defer wg.Done() 11210 } 11211 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) 11212 } 11213 if isLen1 { 11214 f(i) 11215 } else { 11216 go f(i) 11217 } 11218 11219 } 11220 wg.Wait() 11221 11222 for _, e := range ret { 11223 if e == graphql.Null { 11224 return graphql.Null 11225 } 11226 } 11227 11228 return ret 11229 } 11230 11231 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { 11232 res, err := graphql.UnmarshalString(v) 11233 return res, graphql.ErrorOnPath(ctx, err) 11234 } 11235 11236 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 11237 res := graphql.MarshalString(v) 11238 if res == graphql.Null { 11239 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11240 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11241 } 11242 } 11243 return res 11244 } 11245 11246 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 11247 var vSlice []interface{} 11248 if v != nil { 11249 vSlice = graphql.CoerceList(v) 11250 } 11251 var err error 11252 res := make([]string, len(vSlice)) 11253 for i := range vSlice { 11254 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 11255 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) 11256 if err != nil { 11257 return nil, err 11258 } 11259 } 11260 return res, nil 11261 } 11262 11263 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 11264 ret := make(graphql.Array, len(v)) 11265 var wg sync.WaitGroup 11266 isLen1 := len(v) == 1 11267 if !isLen1 { 11268 wg.Add(len(v)) 11269 } 11270 for i := range v { 11271 i := i 11272 fc := &graphql.FieldContext{ 11273 Index: &i, 11274 Result: &v[i], 11275 } 11276 ctx := graphql.WithFieldContext(ctx, fc) 11277 f := func(i int) { 11278 defer func() { 11279 if r := recover(); r != nil { 11280 ec.Error(ctx, ec.Recover(ctx, r)) 11281 ret = nil 11282 } 11283 }() 11284 if !isLen1 { 11285 defer wg.Done() 11286 } 11287 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) 11288 } 11289 if isLen1 { 11290 f(i) 11291 } else { 11292 go f(i) 11293 } 11294 11295 } 11296 wg.Wait() 11297 11298 for _, e := range ret { 11299 if e == graphql.Null { 11300 return graphql.Null 11301 } 11302 } 11303 11304 return ret 11305 } 11306 11307 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { 11308 return ec.___EnumValue(ctx, sel, &v) 11309 } 11310 11311 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { 11312 return ec.___Field(ctx, sel, &v) 11313 } 11314 11315 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { 11316 return ec.___InputValue(ctx, sel, &v) 11317 } 11318 11319 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 11320 ret := make(graphql.Array, len(v)) 11321 var wg sync.WaitGroup 11322 isLen1 := len(v) == 1 11323 if !isLen1 { 11324 wg.Add(len(v)) 11325 } 11326 for i := range v { 11327 i := i 11328 fc := &graphql.FieldContext{ 11329 Index: &i, 11330 Result: &v[i], 11331 } 11332 ctx := graphql.WithFieldContext(ctx, fc) 11333 f := func(i int) { 11334 defer func() { 11335 if r := recover(); r != nil { 11336 ec.Error(ctx, ec.Recover(ctx, r)) 11337 ret = nil 11338 } 11339 }() 11340 if !isLen1 { 11341 defer wg.Done() 11342 } 11343 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 11344 } 11345 if isLen1 { 11346 f(i) 11347 } else { 11348 go f(i) 11349 } 11350 11351 } 11352 wg.Wait() 11353 11354 for _, e := range ret { 11355 if e == graphql.Null { 11356 return graphql.Null 11357 } 11358 } 11359 11360 return ret 11361 } 11362 11363 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { 11364 return ec.___Type(ctx, sel, &v) 11365 } 11366 11367 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 11368 ret := make(graphql.Array, len(v)) 11369 var wg sync.WaitGroup 11370 isLen1 := len(v) == 1 11371 if !isLen1 { 11372 wg.Add(len(v)) 11373 } 11374 for i := range v { 11375 i := i 11376 fc := &graphql.FieldContext{ 11377 Index: &i, 11378 Result: &v[i], 11379 } 11380 ctx := graphql.WithFieldContext(ctx, fc) 11381 f := func(i int) { 11382 defer func() { 11383 if r := recover(); r != nil { 11384 ec.Error(ctx, ec.Recover(ctx, r)) 11385 ret = nil 11386 } 11387 }() 11388 if !isLen1 { 11389 defer wg.Done() 11390 } 11391 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 11392 } 11393 if isLen1 { 11394 f(i) 11395 } else { 11396 go f(i) 11397 } 11398 11399 } 11400 wg.Wait() 11401 11402 for _, e := range ret { 11403 if e == graphql.Null { 11404 return graphql.Null 11405 } 11406 } 11407 11408 return ret 11409 } 11410 11411 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 11412 if v == nil { 11413 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11414 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11415 } 11416 return graphql.Null 11417 } 11418 return ec.___Type(ctx, sel, v) 11419 } 11420 11421 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { 11422 res, err := graphql.UnmarshalString(v) 11423 return res, graphql.ErrorOnPath(ctx, err) 11424 } 11425 11426 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 11427 res := graphql.MarshalString(v) 11428 if res == graphql.Null { 11429 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 11430 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 11431 } 11432 } 11433 return res 11434 } 11435 11436 func (ec *executionContext) marshalOAnnotation2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐAnnotation(ctx context.Context, sel ast.SelectionSet, v *Annotation) graphql.Marshaler { 11437 if v == nil { 11438 return graphql.Null 11439 } 11440 return ec._Annotation(ctx, sel, v) 11441 } 11442 11443 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 11444 res, err := graphql.UnmarshalBoolean(v) 11445 return res, graphql.ErrorOnPath(ctx, err) 11446 } 11447 11448 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 11449 res := graphql.MarshalBoolean(v) 11450 return res 11451 } 11452 11453 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { 11454 if v == nil { 11455 return nil, nil 11456 } 11457 res, err := graphql.UnmarshalBoolean(v) 11458 return &res, graphql.ErrorOnPath(ctx, err) 11459 } 11460 11461 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { 11462 if v == nil { 11463 return graphql.Null 11464 } 11465 res := graphql.MarshalBoolean(*v) 11466 return res 11467 } 11468 11469 func (ec *executionContext) marshalOCVE2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCve(ctx context.Context, sel ast.SelectionSet, v []*Cve) graphql.Marshaler { 11470 if v == nil { 11471 return graphql.Null 11472 } 11473 ret := make(graphql.Array, len(v)) 11474 var wg sync.WaitGroup 11475 isLen1 := len(v) == 1 11476 if !isLen1 { 11477 wg.Add(len(v)) 11478 } 11479 for i := range v { 11480 i := i 11481 fc := &graphql.FieldContext{ 11482 Index: &i, 11483 Result: &v[i], 11484 } 11485 ctx := graphql.WithFieldContext(ctx, fc) 11486 f := func(i int) { 11487 defer func() { 11488 if r := recover(); r != nil { 11489 ec.Error(ctx, ec.Recover(ctx, r)) 11490 ret = nil 11491 } 11492 }() 11493 if !isLen1 { 11494 defer wg.Done() 11495 } 11496 ret[i] = ec.marshalOCVE2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCve(ctx, sel, v[i]) 11497 } 11498 if isLen1 { 11499 f(i) 11500 } else { 11501 go f(i) 11502 } 11503 11504 } 11505 wg.Wait() 11506 11507 return ret 11508 } 11509 11510 func (ec *executionContext) marshalOCVE2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐCve(ctx context.Context, sel ast.SelectionSet, v *Cve) graphql.Marshaler { 11511 if v == nil { 11512 return graphql.Null 11513 } 11514 return ec._CVE(ctx, sel, v) 11515 } 11516 11517 func (ec *executionContext) unmarshalOFilter2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐFilter(ctx context.Context, v interface{}) (*Filter, error) { 11518 if v == nil { 11519 return nil, nil 11520 } 11521 res, err := ec.unmarshalInputFilter(ctx, v) 11522 return &res, graphql.ErrorOnPath(ctx, err) 11523 } 11524 11525 func (ec *executionContext) marshalOHistoryDescription2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐHistoryDescription(ctx context.Context, sel ast.SelectionSet, v *HistoryDescription) graphql.Marshaler { 11526 if v == nil { 11527 return graphql.Null 11528 } 11529 return ec._HistoryDescription(ctx, sel, v) 11530 } 11531 11532 func (ec *executionContext) marshalOImageSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx context.Context, sel ast.SelectionSet, v []*ImageSummary) graphql.Marshaler { 11533 if v == nil { 11534 return graphql.Null 11535 } 11536 ret := make(graphql.Array, len(v)) 11537 var wg sync.WaitGroup 11538 isLen1 := len(v) == 1 11539 if !isLen1 { 11540 wg.Add(len(v)) 11541 } 11542 for i := range v { 11543 i := i 11544 fc := &graphql.FieldContext{ 11545 Index: &i, 11546 Result: &v[i], 11547 } 11548 ctx := graphql.WithFieldContext(ctx, fc) 11549 f := func(i int) { 11550 defer func() { 11551 if r := recover(); r != nil { 11552 ec.Error(ctx, ec.Recover(ctx, r)) 11553 ret = nil 11554 } 11555 }() 11556 if !isLen1 { 11557 defer wg.Done() 11558 } 11559 ret[i] = ec.marshalOImageSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx, sel, v[i]) 11560 } 11561 if isLen1 { 11562 f(i) 11563 } else { 11564 go f(i) 11565 } 11566 11567 } 11568 wg.Wait() 11569 11570 return ret 11571 } 11572 11573 func (ec *executionContext) marshalOImageSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageSummary(ctx context.Context, sel ast.SelectionSet, v *ImageSummary) graphql.Marshaler { 11574 if v == nil { 11575 return graphql.Null 11576 } 11577 return ec._ImageSummary(ctx, sel, v) 11578 } 11579 11580 func (ec *executionContext) marshalOImageVulnerabilitySummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐImageVulnerabilitySummary(ctx context.Context, sel ast.SelectionSet, v *ImageVulnerabilitySummary) graphql.Marshaler { 11581 if v == nil { 11582 return graphql.Null 11583 } 11584 return ec._ImageVulnerabilitySummary(ctx, sel, v) 11585 } 11586 11587 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { 11588 if v == nil { 11589 return nil, nil 11590 } 11591 res, err := graphql.UnmarshalInt(v) 11592 return &res, graphql.ErrorOnPath(ctx, err) 11593 } 11594 11595 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { 11596 if v == nil { 11597 return graphql.Null 11598 } 11599 res := graphql.MarshalInt(*v) 11600 return res 11601 } 11602 11603 func (ec *executionContext) marshalOLayerHistory2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerHistory(ctx context.Context, sel ast.SelectionSet, v []*LayerHistory) graphql.Marshaler { 11604 if v == nil { 11605 return graphql.Null 11606 } 11607 ret := make(graphql.Array, len(v)) 11608 var wg sync.WaitGroup 11609 isLen1 := len(v) == 1 11610 if !isLen1 { 11611 wg.Add(len(v)) 11612 } 11613 for i := range v { 11614 i := i 11615 fc := &graphql.FieldContext{ 11616 Index: &i, 11617 Result: &v[i], 11618 } 11619 ctx := graphql.WithFieldContext(ctx, fc) 11620 f := func(i int) { 11621 defer func() { 11622 if r := recover(); r != nil { 11623 ec.Error(ctx, ec.Recover(ctx, r)) 11624 ret = nil 11625 } 11626 }() 11627 if !isLen1 { 11628 defer wg.Done() 11629 } 11630 ret[i] = ec.marshalOLayerHistory2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerHistory(ctx, sel, v[i]) 11631 } 11632 if isLen1 { 11633 f(i) 11634 } else { 11635 go f(i) 11636 } 11637 11638 } 11639 wg.Wait() 11640 11641 return ret 11642 } 11643 11644 func (ec *executionContext) marshalOLayerHistory2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerHistory(ctx context.Context, sel ast.SelectionSet, v *LayerHistory) graphql.Marshaler { 11645 if v == nil { 11646 return graphql.Null 11647 } 11648 return ec._LayerHistory(ctx, sel, v) 11649 } 11650 11651 func (ec *executionContext) marshalOLayerSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx context.Context, sel ast.SelectionSet, v []*LayerSummary) graphql.Marshaler { 11652 if v == nil { 11653 return graphql.Null 11654 } 11655 ret := make(graphql.Array, len(v)) 11656 var wg sync.WaitGroup 11657 isLen1 := len(v) == 1 11658 if !isLen1 { 11659 wg.Add(len(v)) 11660 } 11661 for i := range v { 11662 i := i 11663 fc := &graphql.FieldContext{ 11664 Index: &i, 11665 Result: &v[i], 11666 } 11667 ctx := graphql.WithFieldContext(ctx, fc) 11668 f := func(i int) { 11669 defer func() { 11670 if r := recover(); r != nil { 11671 ec.Error(ctx, ec.Recover(ctx, r)) 11672 ret = nil 11673 } 11674 }() 11675 if !isLen1 { 11676 defer wg.Done() 11677 } 11678 ret[i] = ec.marshalOLayerSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx, sel, v[i]) 11679 } 11680 if isLen1 { 11681 f(i) 11682 } else { 11683 go f(i) 11684 } 11685 11686 } 11687 wg.Wait() 11688 11689 return ret 11690 } 11691 11692 func (ec *executionContext) marshalOLayerSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐLayerSummary(ctx context.Context, sel ast.SelectionSet, v *LayerSummary) graphql.Marshaler { 11693 if v == nil { 11694 return graphql.Null 11695 } 11696 return ec._LayerSummary(ctx, sel, v) 11697 } 11698 11699 func (ec *executionContext) marshalOManifestSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐManifestSummary(ctx context.Context, sel ast.SelectionSet, v []*ManifestSummary) graphql.Marshaler { 11700 if v == nil { 11701 return graphql.Null 11702 } 11703 ret := make(graphql.Array, len(v)) 11704 var wg sync.WaitGroup 11705 isLen1 := len(v) == 1 11706 if !isLen1 { 11707 wg.Add(len(v)) 11708 } 11709 for i := range v { 11710 i := i 11711 fc := &graphql.FieldContext{ 11712 Index: &i, 11713 Result: &v[i], 11714 } 11715 ctx := graphql.WithFieldContext(ctx, fc) 11716 f := func(i int) { 11717 defer func() { 11718 if r := recover(); r != nil { 11719 ec.Error(ctx, ec.Recover(ctx, r)) 11720 ret = nil 11721 } 11722 }() 11723 if !isLen1 { 11724 defer wg.Done() 11725 } 11726 ret[i] = ec.marshalOManifestSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐManifestSummary(ctx, sel, v[i]) 11727 } 11728 if isLen1 { 11729 f(i) 11730 } else { 11731 go f(i) 11732 } 11733 11734 } 11735 wg.Wait() 11736 11737 return ret 11738 } 11739 11740 func (ec *executionContext) marshalOManifestSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐManifestSummary(ctx context.Context, sel ast.SelectionSet, v *ManifestSummary) graphql.Marshaler { 11741 if v == nil { 11742 return graphql.Null 11743 } 11744 return ec._ManifestSummary(ctx, sel, v) 11745 } 11746 11747 func (ec *executionContext) marshalOPackageInfo2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPackageInfo(ctx context.Context, sel ast.SelectionSet, v []*PackageInfo) graphql.Marshaler { 11748 if v == nil { 11749 return graphql.Null 11750 } 11751 ret := make(graphql.Array, len(v)) 11752 var wg sync.WaitGroup 11753 isLen1 := len(v) == 1 11754 if !isLen1 { 11755 wg.Add(len(v)) 11756 } 11757 for i := range v { 11758 i := i 11759 fc := &graphql.FieldContext{ 11760 Index: &i, 11761 Result: &v[i], 11762 } 11763 ctx := graphql.WithFieldContext(ctx, fc) 11764 f := func(i int) { 11765 defer func() { 11766 if r := recover(); r != nil { 11767 ec.Error(ctx, ec.Recover(ctx, r)) 11768 ret = nil 11769 } 11770 }() 11771 if !isLen1 { 11772 defer wg.Done() 11773 } 11774 ret[i] = ec.marshalOPackageInfo2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPackageInfo(ctx, sel, v[i]) 11775 } 11776 if isLen1 { 11777 f(i) 11778 } else { 11779 go f(i) 11780 } 11781 11782 } 11783 wg.Wait() 11784 11785 return ret 11786 } 11787 11788 func (ec *executionContext) marshalOPackageInfo2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPackageInfo(ctx context.Context, sel ast.SelectionSet, v *PackageInfo) graphql.Marshaler { 11789 if v == nil { 11790 return graphql.Null 11791 } 11792 return ec._PackageInfo(ctx, sel, v) 11793 } 11794 11795 func (ec *executionContext) marshalOPageInfo2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *PageInfo) graphql.Marshaler { 11796 if v == nil { 11797 return graphql.Null 11798 } 11799 return ec._PageInfo(ctx, sel, v) 11800 } 11801 11802 func (ec *executionContext) unmarshalOPageInput2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPageInput(ctx context.Context, v interface{}) (*PageInput, error) { 11803 if v == nil { 11804 return nil, nil 11805 } 11806 res, err := ec.unmarshalInputPageInput(ctx, v) 11807 return &res, graphql.ErrorOnPath(ctx, err) 11808 } 11809 11810 func (ec *executionContext) marshalOPlatform2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx context.Context, sel ast.SelectionSet, v []*Platform) graphql.Marshaler { 11811 if v == nil { 11812 return graphql.Null 11813 } 11814 ret := make(graphql.Array, len(v)) 11815 var wg sync.WaitGroup 11816 isLen1 := len(v) == 1 11817 if !isLen1 { 11818 wg.Add(len(v)) 11819 } 11820 for i := range v { 11821 i := i 11822 fc := &graphql.FieldContext{ 11823 Index: &i, 11824 Result: &v[i], 11825 } 11826 ctx := graphql.WithFieldContext(ctx, fc) 11827 f := func(i int) { 11828 defer func() { 11829 if r := recover(); r != nil { 11830 ec.Error(ctx, ec.Recover(ctx, r)) 11831 ret = nil 11832 } 11833 }() 11834 if !isLen1 { 11835 defer wg.Done() 11836 } 11837 ret[i] = ec.marshalOPlatform2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx, sel, v[i]) 11838 } 11839 if isLen1 { 11840 f(i) 11841 } else { 11842 go f(i) 11843 } 11844 11845 } 11846 wg.Wait() 11847 11848 return ret 11849 } 11850 11851 func (ec *executionContext) marshalOPlatform2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐPlatform(ctx context.Context, sel ast.SelectionSet, v *Platform) graphql.Marshaler { 11852 if v == nil { 11853 return graphql.Null 11854 } 11855 return ec._Platform(ctx, sel, v) 11856 } 11857 11858 func (ec *executionContext) marshalOReferrer2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx context.Context, sel ast.SelectionSet, v []*Referrer) graphql.Marshaler { 11859 if v == nil { 11860 return graphql.Null 11861 } 11862 ret := make(graphql.Array, len(v)) 11863 var wg sync.WaitGroup 11864 isLen1 := len(v) == 1 11865 if !isLen1 { 11866 wg.Add(len(v)) 11867 } 11868 for i := range v { 11869 i := i 11870 fc := &graphql.FieldContext{ 11871 Index: &i, 11872 Result: &v[i], 11873 } 11874 ctx := graphql.WithFieldContext(ctx, fc) 11875 f := func(i int) { 11876 defer func() { 11877 if r := recover(); r != nil { 11878 ec.Error(ctx, ec.Recover(ctx, r)) 11879 ret = nil 11880 } 11881 }() 11882 if !isLen1 { 11883 defer wg.Done() 11884 } 11885 ret[i] = ec.marshalOReferrer2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx, sel, v[i]) 11886 } 11887 if isLen1 { 11888 f(i) 11889 } else { 11890 go f(i) 11891 } 11892 11893 } 11894 wg.Wait() 11895 11896 return ret 11897 } 11898 11899 func (ec *executionContext) marshalOReferrer2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐReferrer(ctx context.Context, sel ast.SelectionSet, v *Referrer) graphql.Marshaler { 11900 if v == nil { 11901 return graphql.Null 11902 } 11903 return ec._Referrer(ctx, sel, v) 11904 } 11905 11906 func (ec *executionContext) marshalORepoSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx context.Context, sel ast.SelectionSet, v []*RepoSummary) graphql.Marshaler { 11907 if v == nil { 11908 return graphql.Null 11909 } 11910 ret := make(graphql.Array, len(v)) 11911 var wg sync.WaitGroup 11912 isLen1 := len(v) == 1 11913 if !isLen1 { 11914 wg.Add(len(v)) 11915 } 11916 for i := range v { 11917 i := i 11918 fc := &graphql.FieldContext{ 11919 Index: &i, 11920 Result: &v[i], 11921 } 11922 ctx := graphql.WithFieldContext(ctx, fc) 11923 f := func(i int) { 11924 defer func() { 11925 if r := recover(); r != nil { 11926 ec.Error(ctx, ec.Recover(ctx, r)) 11927 ret = nil 11928 } 11929 }() 11930 if !isLen1 { 11931 defer wg.Done() 11932 } 11933 ret[i] = ec.marshalORepoSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx, sel, v[i]) 11934 } 11935 if isLen1 { 11936 f(i) 11937 } else { 11938 go f(i) 11939 } 11940 11941 } 11942 wg.Wait() 11943 11944 return ret 11945 } 11946 11947 func (ec *executionContext) marshalORepoSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐRepoSummary(ctx context.Context, sel ast.SelectionSet, v *RepoSummary) graphql.Marshaler { 11948 if v == nil { 11949 return graphql.Null 11950 } 11951 return ec._RepoSummary(ctx, sel, v) 11952 } 11953 11954 func (ec *executionContext) marshalOSignatureSummary2ᚕᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx context.Context, sel ast.SelectionSet, v []*SignatureSummary) graphql.Marshaler { 11955 if v == nil { 11956 return graphql.Null 11957 } 11958 ret := make(graphql.Array, len(v)) 11959 var wg sync.WaitGroup 11960 isLen1 := len(v) == 1 11961 if !isLen1 { 11962 wg.Add(len(v)) 11963 } 11964 for i := range v { 11965 i := i 11966 fc := &graphql.FieldContext{ 11967 Index: &i, 11968 Result: &v[i], 11969 } 11970 ctx := graphql.WithFieldContext(ctx, fc) 11971 f := func(i int) { 11972 defer func() { 11973 if r := recover(); r != nil { 11974 ec.Error(ctx, ec.Recover(ctx, r)) 11975 ret = nil 11976 } 11977 }() 11978 if !isLen1 { 11979 defer wg.Done() 11980 } 11981 ret[i] = ec.marshalOSignatureSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx, sel, v[i]) 11982 } 11983 if isLen1 { 11984 f(i) 11985 } else { 11986 go f(i) 11987 } 11988 11989 } 11990 wg.Wait() 11991 11992 return ret 11993 } 11994 11995 func (ec *executionContext) marshalOSignatureSummary2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSignatureSummary(ctx context.Context, sel ast.SelectionSet, v *SignatureSummary) graphql.Marshaler { 11996 if v == nil { 11997 return graphql.Null 11998 } 11999 return ec._SignatureSummary(ctx, sel, v) 12000 } 12001 12002 func (ec *executionContext) unmarshalOSortCriteria2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSortCriteria(ctx context.Context, v interface{}) (*SortCriteria, error) { 12003 if v == nil { 12004 return nil, nil 12005 } 12006 var res = new(SortCriteria) 12007 err := res.UnmarshalGQL(v) 12008 return res, graphql.ErrorOnPath(ctx, err) 12009 } 12010 12011 func (ec *executionContext) marshalOSortCriteria2ᚖzotregistryᚗioᚋzotᚋpkgᚋextensionsᚋsearchᚋgql_generatedᚐSortCriteria(ctx context.Context, sel ast.SelectionSet, v *SortCriteria) graphql.Marshaler { 12012 if v == nil { 12013 return graphql.Null 12014 } 12015 return v 12016 } 12017 12018 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 12019 if v == nil { 12020 return nil, nil 12021 } 12022 var vSlice []interface{} 12023 if v != nil { 12024 vSlice = graphql.CoerceList(v) 12025 } 12026 var err error 12027 res := make([]string, len(vSlice)) 12028 for i := range vSlice { 12029 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 12030 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 12031 if err != nil { 12032 return nil, err 12033 } 12034 } 12035 return res, nil 12036 } 12037 12038 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 12039 if v == nil { 12040 return graphql.Null 12041 } 12042 ret := make(graphql.Array, len(v)) 12043 for i := range v { 12044 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 12045 } 12046 12047 for _, e := range ret { 12048 if e == graphql.Null { 12049 return graphql.Null 12050 } 12051 } 12052 12053 return ret 12054 } 12055 12056 func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { 12057 if v == nil { 12058 return nil, nil 12059 } 12060 var vSlice []interface{} 12061 if v != nil { 12062 vSlice = graphql.CoerceList(v) 12063 } 12064 var err error 12065 res := make([]*string, len(vSlice)) 12066 for i := range vSlice { 12067 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 12068 res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i]) 12069 if err != nil { 12070 return nil, err 12071 } 12072 } 12073 return res, nil 12074 } 12075 12076 func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler { 12077 if v == nil { 12078 return graphql.Null 12079 } 12080 ret := make(graphql.Array, len(v)) 12081 for i := range v { 12082 ret[i] = ec.marshalOString2ᚖstring(ctx, sel, v[i]) 12083 } 12084 12085 return ret 12086 } 12087 12088 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 12089 if v == nil { 12090 return nil, nil 12091 } 12092 res, err := graphql.UnmarshalString(v) 12093 return &res, graphql.ErrorOnPath(ctx, err) 12094 } 12095 12096 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 12097 if v == nil { 12098 return graphql.Null 12099 } 12100 res := graphql.MarshalString(*v) 12101 return res 12102 } 12103 12104 func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) { 12105 if v == nil { 12106 return nil, nil 12107 } 12108 res, err := graphql.UnmarshalTime(v) 12109 return &res, graphql.ErrorOnPath(ctx, err) 12110 } 12111 12112 func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { 12113 if v == nil { 12114 return graphql.Null 12115 } 12116 res := graphql.MarshalTime(*v) 12117 return res 12118 } 12119 12120 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { 12121 if v == nil { 12122 return graphql.Null 12123 } 12124 ret := make(graphql.Array, len(v)) 12125 var wg sync.WaitGroup 12126 isLen1 := len(v) == 1 12127 if !isLen1 { 12128 wg.Add(len(v)) 12129 } 12130 for i := range v { 12131 i := i 12132 fc := &graphql.FieldContext{ 12133 Index: &i, 12134 Result: &v[i], 12135 } 12136 ctx := graphql.WithFieldContext(ctx, fc) 12137 f := func(i int) { 12138 defer func() { 12139 if r := recover(); r != nil { 12140 ec.Error(ctx, ec.Recover(ctx, r)) 12141 ret = nil 12142 } 12143 }() 12144 if !isLen1 { 12145 defer wg.Done() 12146 } 12147 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) 12148 } 12149 if isLen1 { 12150 f(i) 12151 } else { 12152 go f(i) 12153 } 12154 12155 } 12156 wg.Wait() 12157 12158 for _, e := range ret { 12159 if e == graphql.Null { 12160 return graphql.Null 12161 } 12162 } 12163 12164 return ret 12165 } 12166 12167 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { 12168 if v == nil { 12169 return graphql.Null 12170 } 12171 ret := make(graphql.Array, len(v)) 12172 var wg sync.WaitGroup 12173 isLen1 := len(v) == 1 12174 if !isLen1 { 12175 wg.Add(len(v)) 12176 } 12177 for i := range v { 12178 i := i 12179 fc := &graphql.FieldContext{ 12180 Index: &i, 12181 Result: &v[i], 12182 } 12183 ctx := graphql.WithFieldContext(ctx, fc) 12184 f := func(i int) { 12185 defer func() { 12186 if r := recover(); r != nil { 12187 ec.Error(ctx, ec.Recover(ctx, r)) 12188 ret = nil 12189 } 12190 }() 12191 if !isLen1 { 12192 defer wg.Done() 12193 } 12194 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) 12195 } 12196 if isLen1 { 12197 f(i) 12198 } else { 12199 go f(i) 12200 } 12201 12202 } 12203 wg.Wait() 12204 12205 for _, e := range ret { 12206 if e == graphql.Null { 12207 return graphql.Null 12208 } 12209 } 12210 12211 return ret 12212 } 12213 12214 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 12215 if v == nil { 12216 return graphql.Null 12217 } 12218 ret := make(graphql.Array, len(v)) 12219 var wg sync.WaitGroup 12220 isLen1 := len(v) == 1 12221 if !isLen1 { 12222 wg.Add(len(v)) 12223 } 12224 for i := range v { 12225 i := i 12226 fc := &graphql.FieldContext{ 12227 Index: &i, 12228 Result: &v[i], 12229 } 12230 ctx := graphql.WithFieldContext(ctx, fc) 12231 f := func(i int) { 12232 defer func() { 12233 if r := recover(); r != nil { 12234 ec.Error(ctx, ec.Recover(ctx, r)) 12235 ret = nil 12236 } 12237 }() 12238 if !isLen1 { 12239 defer wg.Done() 12240 } 12241 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 12242 } 12243 if isLen1 { 12244 f(i) 12245 } else { 12246 go f(i) 12247 } 12248 12249 } 12250 wg.Wait() 12251 12252 for _, e := range ret { 12253 if e == graphql.Null { 12254 return graphql.Null 12255 } 12256 } 12257 12258 return ret 12259 } 12260 12261 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { 12262 if v == nil { 12263 return graphql.Null 12264 } 12265 return ec.___Schema(ctx, sel, v) 12266 } 12267 12268 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 12269 if v == nil { 12270 return graphql.Null 12271 } 12272 ret := make(graphql.Array, len(v)) 12273 var wg sync.WaitGroup 12274 isLen1 := len(v) == 1 12275 if !isLen1 { 12276 wg.Add(len(v)) 12277 } 12278 for i := range v { 12279 i := i 12280 fc := &graphql.FieldContext{ 12281 Index: &i, 12282 Result: &v[i], 12283 } 12284 ctx := graphql.WithFieldContext(ctx, fc) 12285 f := func(i int) { 12286 defer func() { 12287 if r := recover(); r != nil { 12288 ec.Error(ctx, ec.Recover(ctx, r)) 12289 ret = nil 12290 } 12291 }() 12292 if !isLen1 { 12293 defer wg.Done() 12294 } 12295 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 12296 } 12297 if isLen1 { 12298 f(i) 12299 } else { 12300 go f(i) 12301 } 12302 12303 } 12304 wg.Wait() 12305 12306 for _, e := range ret { 12307 if e == graphql.Null { 12308 return graphql.Null 12309 } 12310 } 12311 12312 return ret 12313 } 12314 12315 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 12316 if v == nil { 12317 return graphql.Null 12318 } 12319 return ec.___Type(ctx, sel, v) 12320 } 12321 12322 // endregion ***************************** type.gotpl *****************************