diff --git a/.gitignore b/.gitignore index a1a4fa73..5097e78b 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,9 @@ build/ .db/ .env .mariadb-dev/ + +# Generated files +internal/mocks/*.go +internal/api/graphql/graph/model/models_gen.go +internal/api/graphql/graph/generated.go + diff --git a/Makefile b/Makefile index 3d957f40..edfce156 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,11 @@ ifeq ($(wildcard .env),.env) export $(shell sed 's/=.*//' .env) endif -build-binary: +build-binary: mockery gqlgen GO_ENABLED=0 go build -ldflags="$(LDFLAGS)" -o build/heureka cmd/heureka/main.go # Build the binary and execute it -run-%: +run-%: mockery gqlgen GOOS=$(OS) GOARCH=$(ARCH) go build -ldflags="$(LDFLAGS)" -o build/$* cmd/$*/main.go DB_SCHEMA=./internal/database/mariadb/init/schema.sql ./build/$* @@ -66,7 +66,7 @@ mockery: mockery GINKGO := go run github.com/onsi/ginkgo/v2/ginkgo -test-all: +test-all: mockery gqlgen $(GINKGO) -r test-e2e: diff --git a/internal/api/graphql/gqlgen.yml b/internal/api/graphql/gqlgen.yml index c40d7d34..d7316191 100644 --- a/internal/api/graphql/gqlgen.yml +++ b/internal/api/graphql/gqlgen.yml @@ -26,8 +26,8 @@ resolver: dir: graph/resolver package: resolver filename_template: "{name}.go" - # Optional: turn on to not generate template comments above resolvers - # omit_template_comment: false + omit_template_comment: true + resolver_template: graph/resolver/resolver.gotpl # Optional: turn on use ` + "`" + `gqlgen:"fieldName"` + "`" + ` tags in your models # struct_tag: json @@ -39,10 +39,10 @@ resolver: # omit_complexity: false # Optional: turn on to not generate any file notice comments in generated files -# omit_gqlgen_file_notice: false +# omit_gqlgen_file_notice: true # Optional: turn on to exclude the gqlgen version in the generated file notice. No effect if `omit_gqlgen_file_notice` is true. -# omit_gqlgen_version_in_file_notice: false +omit_gqlgen_version_in_file_notice: true # Optional: turn off to make struct-type struct fields not use pointers # e.g. type Thing struct { FieldA OtherThing } instead of { FieldA *OtherThing } @@ -228,4 +228,4 @@ models: ComponentFilterValue: fields: componentName: - resolver: true \ No newline at end of file + resolver: true diff --git a/internal/api/graphql/graph/generated.go b/internal/api/graphql/graph/generated.go deleted file mode 100644 index 95a6dc34..00000000 --- a/internal/api/graphql/graph/generated.go +++ /dev/null @@ -1,37742 +0,0 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package graph - -import ( - "bytes" - "context" - "embed" - "errors" - "fmt" - "strconv" - "sync" - "sync/atomic" - - "github.com/99designs/gqlgen/graphql" - "github.com/99designs/gqlgen/graphql/introspection" - "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" - gqlparser "github.com/vektah/gqlparser/v2" - "github.com/vektah/gqlparser/v2/ast" -) - -// region ************************** generated!.gotpl ************************** - -// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. -func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { - return &executableSchema{ - schema: cfg.Schema, - resolvers: cfg.Resolvers, - directives: cfg.Directives, - complexity: cfg.Complexity, - } -} - -type Config struct { - Schema *ast.Schema - Resolvers ResolverRoot - Directives DirectiveRoot - Complexity ComplexityRoot -} - -type ResolverRoot interface { - Activity() ActivityResolver - Component() ComponentResolver - ComponentFilterValue() ComponentFilterValueResolver - ComponentInstance() ComponentInstanceResolver - ComponentInstanceFilterValue() ComponentInstanceFilterValueResolver - ComponentVersion() ComponentVersionResolver - Evidence() EvidenceResolver - Issue() IssueResolver - IssueMatch() IssueMatchResolver - IssueMatchChange() IssueMatchChangeResolver - IssueMatchFilterValue() IssueMatchFilterValueResolver - IssueRepository() IssueRepositoryResolver - IssueVariant() IssueVariantResolver - Mutation() MutationResolver - Query() QueryResolver - Service() ServiceResolver - ServiceFilterValue() ServiceFilterValueResolver - SupportGroup() SupportGroupResolver - User() UserResolver -} - -type DirectiveRoot struct { -} - -type ComplexityRoot struct { - Activity struct { - Evidences func(childComplexity int, filter *model.EvidenceFilter, first *int, after *string) int - ID func(childComplexity int) int - IssueMatchChanges func(childComplexity int, filter *model.IssueMatchChangeFilter, first *int, after *string) int - Issues func(childComplexity int, filter *model.IssueFilter, first *int, after *string) int - Services func(childComplexity int, filter *model.ServiceFilter, first *int, after *string) int - Status func(childComplexity int) int - } - - ActivityConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ActivityEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - CVSS struct { - Base func(childComplexity int) int - Environmental func(childComplexity int) int - Temporal func(childComplexity int) int - Vector func(childComplexity int) int - } - - CVSSBase struct { - AttackComplexity func(childComplexity int) int - AttackVector func(childComplexity int) int - AvailabilityImpact func(childComplexity int) int - ConfidentialityImpact func(childComplexity int) int - IntegrityImpact func(childComplexity int) int - PrivilegesRequired func(childComplexity int) int - Scope func(childComplexity int) int - Score func(childComplexity int) int - UserInteraction func(childComplexity int) int - } - - CVSSEnvironmental struct { - AvailabilityRequirement func(childComplexity int) int - ConfidentialityRequirement func(childComplexity int) int - IntegrityRequirement func(childComplexity int) int - ModifiedAttackComplexity func(childComplexity int) int - ModifiedAttackVector func(childComplexity int) int - ModifiedAvailabilityImpact func(childComplexity int) int - ModifiedConfidentialityImpact func(childComplexity int) int - ModifiedIntegrityImpact func(childComplexity int) int - ModifiedPrivilegesRequired func(childComplexity int) int - ModifiedScope func(childComplexity int) int - ModifiedUserInteraction func(childComplexity int) int - Score func(childComplexity int) int - } - - CVSSParameter struct { - Name func(childComplexity int) int - Value func(childComplexity int) int - } - - CVSSTemporal struct { - ExploitCodeMaturity func(childComplexity int) int - RemediationLevel func(childComplexity int) int - ReportConfidence func(childComplexity int) int - Score func(childComplexity int) int - } - - Component struct { - ComponentVersions func(childComplexity int, filter *model.ComponentVersionFilter, first *int, after *string) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Type func(childComplexity int) int - } - - ComponentConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ComponentEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ComponentFilterValue struct { - ComponentName func(childComplexity int, filter *model.ComponentFilter) int - } - - ComponentInstance struct { - Ccrn func(childComplexity int) int - ComponentVersion func(childComplexity int) int - ComponentVersionID func(childComplexity int) int - Count func(childComplexity int) int - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - IssueMatches func(childComplexity int, filter *model.IssueMatchFilter, first *int, after *string) int - Service func(childComplexity int) int - ServiceID func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - ComponentInstanceConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ComponentInstanceEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ComponentInstanceFilterValue struct { - Ccrn func(childComplexity int, filter *model.ComponentInstanceFilter) int - ServiceName func(childComplexity int, filter *model.ServiceFilter) int - SupportGroupName func(childComplexity int, filter *model.SupportGroupFilter) int - } - - ComponentVersion struct { - Component func(childComplexity int) int - ComponentID func(childComplexity int) int - ComponentInstances func(childComplexity int, first *int, after *string) int - ID func(childComplexity int) int - Issues func(childComplexity int, first *int, after *string) int - Version func(childComplexity int) int - } - - ComponentVersionConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ComponentVersionEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Evidence struct { - Activity func(childComplexity int) int - ActivityID func(childComplexity int) int - Author func(childComplexity int) int - AuthorID func(childComplexity int) int - Description func(childComplexity int) int - ID func(childComplexity int) int - IssueMatches func(childComplexity int, filter *model.IssueMatchFilter, first *int, after *string) int - RaaEnd func(childComplexity int) int - Type func(childComplexity int) int - Vector func(childComplexity int) int - } - - EvidenceConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - EvidenceEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - FilterItem struct { - DisplayName func(childComplexity int) int - FilterName func(childComplexity int) int - Values func(childComplexity int) int - } - - Issue struct { - Activities func(childComplexity int, filter *model.ActivityFilter, first *int, after *string) int - ComponentVersions func(childComplexity int, filter *model.ComponentVersionFilter, first *int, after *string) int - Description func(childComplexity int) int - ID func(childComplexity int) int - IssueMatches func(childComplexity int, filter *model.IssueMatchFilter, first *int, after *string) int - IssueVariants func(childComplexity int, filter *model.IssueVariantFilter, first *int, after *string) int - LastModified func(childComplexity int) int - Metadata func(childComplexity int) int - PrimaryName func(childComplexity int) int - Type func(childComplexity int) int - } - - IssueConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - PolicyViolationCount func(childComplexity int) int - SecurityEventCount func(childComplexity int) int - TotalCount func(childComplexity int) int - VulnerabilityCount func(childComplexity int) int - } - - IssueEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - IssueMatch struct { - ComponentInstance func(childComplexity int) int - ComponentInstanceID func(childComplexity int) int - DiscoveryDate func(childComplexity int) int - EffectiveIssueVariants func(childComplexity int, filter *model.IssueVariantFilter, first *int, after *string) int - Evidences func(childComplexity int, filter *model.EvidenceFilter, first *int, after *string) int - ID func(childComplexity int) int - Issue func(childComplexity int) int - IssueID func(childComplexity int) int - IssueMatchChanges func(childComplexity int, filter *model.IssueMatchChangeFilter, first *int, after *string) int - RemediationDate func(childComplexity int) int - Severity func(childComplexity int) int - Status func(childComplexity int) int - TargetRemediationDate func(childComplexity int) int - User func(childComplexity int) int - UserID func(childComplexity int) int - } - - IssueMatchChange struct { - Action func(childComplexity int) int - Activity func(childComplexity int) int - ActivityID func(childComplexity int) int - ID func(childComplexity int) int - IssueMatch func(childComplexity int) int - IssueMatchID func(childComplexity int) int - } - - IssueMatchChangeConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - IssueMatchChangeEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - IssueMatchConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - IssueMatchEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - IssueMatchFilterValue struct { - AffectedService func(childComplexity int, filter *model.ServiceFilter) int - ComponentName func(childComplexity int, filter *model.ComponentFilter) int - IssueType func(childComplexity int) int - PrimaryName func(childComplexity int, filter *model.IssueFilter) int - Severity func(childComplexity int) int - Status func(childComplexity int) int - SupportGroupName func(childComplexity int, filter *model.SupportGroupFilter) int - } - - IssueMetadata struct { - ActivityCount func(childComplexity int) int - ComponentInstanceCount func(childComplexity int) int - ComponentVersionCount func(childComplexity int) int - EarliestDiscoveryDate func(childComplexity int) int - EarliestTargetRemediationDate func(childComplexity int) int - IssueMatchCount func(childComplexity int) int - ServiceCount func(childComplexity int) int - } - - IssueRepository struct { - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - IssueVariants func(childComplexity int, filter *model.IssueVariantFilter, first *int, after *string) int - Name func(childComplexity int) int - Services func(childComplexity int, filter *model.ServiceFilter, first *int, after *string) int - URL func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - IssueRepositoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - IssueRepositoryEdge struct { - CreatedAt func(childComplexity int) int - Cursor func(childComplexity int) int - Node func(childComplexity int) int - Priority func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - IssueVariant struct { - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - ID func(childComplexity int) int - Issue func(childComplexity int) int - IssueID func(childComplexity int) int - IssueRepository func(childComplexity int) int - IssueRepositoryID func(childComplexity int) int - SecondaryName func(childComplexity int) int - Severity func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - IssueVariantConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - IssueVariantEdge struct { - CreatedAt func(childComplexity int) int - Cursor func(childComplexity int) int - Node func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - Mutation struct { - AddComponentVersionToIssue func(childComplexity int, issueID string, componentVersionID string) int - AddEvidenceToIssueMatch func(childComplexity int, issueMatchID string, evidenceID string) int - AddIssueRepositoryToService func(childComplexity int, serviceID string, issueRepositoryID string, priority int) int - AddIssueToActivity func(childComplexity int, activityID string, issueID string) int - AddOwnerToService func(childComplexity int, serviceID string, userID string) int - AddServiceToActivity func(childComplexity int, activityID string, serviceID string) int - AddServiceToSupportGroup func(childComplexity int, supportGroupID string, serviceID string) int - AddUserToSupportGroup func(childComplexity int, supportGroupID string, userID string) int - CreateActivity func(childComplexity int, input model.ActivityInput) int - CreateComponent func(childComplexity int, input model.ComponentInput) int - CreateComponentInstance func(childComplexity int, input model.ComponentInstanceInput) int - CreateComponentVersion func(childComplexity int, input model.ComponentVersionInput) int - CreateEvidence func(childComplexity int, input model.EvidenceInput) int - CreateIssue func(childComplexity int, input model.IssueInput) int - CreateIssueMatch func(childComplexity int, input model.IssueMatchInput) int - CreateIssueMatchChange func(childComplexity int, input model.IssueMatchChangeInput) int - CreateIssueRepository func(childComplexity int, input model.IssueRepositoryInput) int - CreateIssueVariant func(childComplexity int, input model.IssueVariantInput) int - CreateService func(childComplexity int, input model.ServiceInput) int - CreateSupportGroup func(childComplexity int, input model.SupportGroupInput) int - CreateUser func(childComplexity int, input model.UserInput) int - DeleteActivity func(childComplexity int, id string) int - DeleteComponent func(childComplexity int, id string) int - DeleteComponentInstance func(childComplexity int, id string) int - DeleteComponentVersion func(childComplexity int, id string) int - DeleteEvidence func(childComplexity int, id string) int - DeleteIssue func(childComplexity int, id string) int - DeleteIssueMatch func(childComplexity int, id string) int - DeleteIssueMatchChange func(childComplexity int, id string) int - DeleteIssueRepository func(childComplexity int, id string) int - DeleteIssueVariant func(childComplexity int, id string) int - DeleteService func(childComplexity int, id string) int - DeleteSupportGroup func(childComplexity int, id string) int - DeleteUser func(childComplexity int, id string) int - RemoveComponentVersionFromIssue func(childComplexity int, issueID string, componentVersionID string) int - RemoveEvidenceFromIssueMatch func(childComplexity int, issueMatchID string, evidenceID string) int - RemoveIssueFromActivity func(childComplexity int, activityID string, issueID string) int - RemoveIssueRepositoryFromService func(childComplexity int, serviceID string, issueRepositoryID string) int - RemoveOwnerFromService func(childComplexity int, serviceID string, userID string) int - RemoveServiceFromActivity func(childComplexity int, activityID string, serviceID string) int - RemoveServiceFromSupportGroup func(childComplexity int, supportGroupID string, serviceID string) int - RemoveUserFromSupportGroup func(childComplexity int, supportGroupID string, userID string) int - UpdateActivity func(childComplexity int, id string, input model.ActivityInput) int - UpdateComponent func(childComplexity int, id string, input model.ComponentInput) int - UpdateComponentInstance func(childComplexity int, id string, input model.ComponentInstanceInput) int - UpdateComponentVersion func(childComplexity int, id string, input model.ComponentVersionInput) int - UpdateEvidence func(childComplexity int, id string, input model.EvidenceInput) int - UpdateIssue func(childComplexity int, id string, input model.IssueInput) int - UpdateIssueMatch func(childComplexity int, id string, input model.IssueMatchInput) int - UpdateIssueMatchChange func(childComplexity int, id string, input model.IssueMatchChangeInput) int - UpdateIssueRepository func(childComplexity int, id string, input model.IssueRepositoryInput) int - UpdateIssueVariant func(childComplexity int, id string, input model.IssueVariantInput) int - UpdateService func(childComplexity int, id string, input model.ServiceInput) int - UpdateSupportGroup func(childComplexity int, id string, input model.SupportGroupInput) int - UpdateUser func(childComplexity int, id string, input model.UserInput) int - } - - Page struct { - After func(childComplexity int) int - IsCurrent func(childComplexity int) int - PageCount func(childComplexity int) int - PageNumber func(childComplexity int) int - } - - PageInfo struct { - HasNextPage func(childComplexity int) int - HasPreviousPage func(childComplexity int) int - IsValidPage func(childComplexity int) int - NextPageAfter func(childComplexity int) int - PageNumber func(childComplexity int) int - Pages func(childComplexity int) int - } - - Query struct { - Activities func(childComplexity int, filter *model.ActivityFilter, first *int, after *string) int - ComponentFilterValues func(childComplexity int) int - ComponentInstanceFilterValues func(childComplexity int) int - ComponentInstances func(childComplexity int, filter *model.ComponentInstanceFilter, first *int, after *string) int - ComponentVersions func(childComplexity int, filter *model.ComponentVersionFilter, first *int, after *string) int - Components func(childComplexity int, filter *model.ComponentFilter, first *int, after *string) int - Evidences func(childComplexity int, filter *model.EvidenceFilter, first *int, after *string) int - IssueMatchChanges func(childComplexity int, filter *model.IssueMatchChangeFilter, first *int, after *string) int - IssueMatchFilterValues func(childComplexity int) int - IssueMatches func(childComplexity int, filter *model.IssueMatchFilter, first *int, after *string) int - IssueRepositories func(childComplexity int, filter *model.IssueRepositoryFilter, first *int, after *string) int - IssueVariants func(childComplexity int, filter *model.IssueVariantFilter, first *int, after *string) int - Issues func(childComplexity int, filter *model.IssueFilter, first *int, after *string) int - ServiceFilterValues func(childComplexity int) int - Services func(childComplexity int, filter *model.ServiceFilter, first *int, after *string) int - SupportGroups func(childComplexity int, filter *model.SupportGroupFilter, first *int, after *string) int - Users func(childComplexity int, filter *model.UserFilter, first *int, after *string) int - } - - Service struct { - Activities func(childComplexity int, filter *model.ActivityFilter, first *int, after *string) int - ComponentInstances func(childComplexity int, filter *model.ComponentInstanceFilter, first *int, after *string) int - ID func(childComplexity int) int - IssueRepositories func(childComplexity int, filter *model.IssueRepositoryFilter, first *int, after *string) int - Metadata func(childComplexity int) int - Name func(childComplexity int) int - Owners func(childComplexity int, filter *model.UserFilter, first *int, after *string) int - SupportGroups func(childComplexity int, filter *model.SupportGroupFilter, first *int, after *string) int - } - - ServiceConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ServiceEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - Priority func(childComplexity int) int - } - - ServiceFilterValue struct { - ServiceName func(childComplexity int, filter *model.ServiceFilter) int - SupportGroupName func(childComplexity int, filter *model.SupportGroupFilter) int - UniqueUserID func(childComplexity int, filter *model.UserFilter) int - UserName func(childComplexity int, filter *model.UserFilter) int - } - - ServiceMetadata struct { - ComponentInstanceCount func(childComplexity int) int - IssueMatchCount func(childComplexity int) int - } - - Severity struct { - Cvss func(childComplexity int) int - Score func(childComplexity int) int - Value func(childComplexity int) int - } - - SupportGroup struct { - ID func(childComplexity int) int - Name func(childComplexity int) int - Services func(childComplexity int, filter *model.ServiceFilter, first *int, after *string) int - Users func(childComplexity int, filter *model.UserFilter, first *int, after *string) int - } - - SupportGroupConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - SupportGroupEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - User struct { - ID func(childComplexity int) int - Name func(childComplexity int) int - Services func(childComplexity int, filter *model.ServiceFilter, first *int, after *string) int - SupportGroups func(childComplexity int, filter *model.SupportGroupFilter, first *int, after *string) int - Type func(childComplexity int) int - UniqueUserID func(childComplexity int) int - } - - UserConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - UserEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } -} - -type ActivityResolver interface { - Services(ctx context.Context, obj *model.Activity, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) - Issues(ctx context.Context, obj *model.Activity, filter *model.IssueFilter, first *int, after *string) (*model.IssueConnection, error) - Evidences(ctx context.Context, obj *model.Activity, filter *model.EvidenceFilter, first *int, after *string) (*model.EvidenceConnection, error) - IssueMatchChanges(ctx context.Context, obj *model.Activity, filter *model.IssueMatchChangeFilter, first *int, after *string) (*model.IssueMatchChangeConnection, error) -} -type ComponentResolver interface { - ComponentVersions(ctx context.Context, obj *model.Component, filter *model.ComponentVersionFilter, first *int, after *string) (*model.ComponentVersionConnection, error) -} -type ComponentFilterValueResolver interface { - ComponentName(ctx context.Context, obj *model.ComponentFilterValue, filter *model.ComponentFilter) (*model.FilterItem, error) -} -type ComponentInstanceResolver interface { - ComponentVersion(ctx context.Context, obj *model.ComponentInstance) (*model.ComponentVersion, error) - IssueMatches(ctx context.Context, obj *model.ComponentInstance, filter *model.IssueMatchFilter, first *int, after *string) (*model.IssueMatchConnection, error) - - Service(ctx context.Context, obj *model.ComponentInstance) (*model.Service, error) -} -type ComponentInstanceFilterValueResolver interface { - ServiceName(ctx context.Context, obj *model.ComponentInstanceFilterValue, filter *model.ServiceFilter) (*model.FilterItem, error) - SupportGroupName(ctx context.Context, obj *model.ComponentInstanceFilterValue, filter *model.SupportGroupFilter) (*model.FilterItem, error) - Ccrn(ctx context.Context, obj *model.ComponentInstanceFilterValue, filter *model.ComponentInstanceFilter) (*model.FilterItem, error) -} -type ComponentVersionResolver interface { - Component(ctx context.Context, obj *model.ComponentVersion) (*model.Component, error) - Issues(ctx context.Context, obj *model.ComponentVersion, first *int, after *string) (*model.IssueConnection, error) - ComponentInstances(ctx context.Context, obj *model.ComponentVersion, first *int, after *string) (*model.ComponentInstanceConnection, error) -} -type EvidenceResolver interface { - Author(ctx context.Context, obj *model.Evidence) (*model.User, error) - - Activity(ctx context.Context, obj *model.Evidence) (*model.Activity, error) - IssueMatches(ctx context.Context, obj *model.Evidence, filter *model.IssueMatchFilter, first *int, after *string) (*model.IssueMatchConnection, error) -} -type IssueResolver interface { - IssueVariants(ctx context.Context, obj *model.Issue, filter *model.IssueVariantFilter, first *int, after *string) (*model.IssueVariantConnection, error) - Activities(ctx context.Context, obj *model.Issue, filter *model.ActivityFilter, first *int, after *string) (*model.ActivityConnection, error) - IssueMatches(ctx context.Context, obj *model.Issue, filter *model.IssueMatchFilter, first *int, after *string) (*model.IssueMatchConnection, error) - ComponentVersions(ctx context.Context, obj *model.Issue, filter *model.ComponentVersionFilter, first *int, after *string) (*model.ComponentVersionConnection, error) -} -type IssueMatchResolver interface { - Severity(ctx context.Context, obj *model.IssueMatch) (*model.Severity, error) - EffectiveIssueVariants(ctx context.Context, obj *model.IssueMatch, filter *model.IssueVariantFilter, first *int, after *string) (*model.IssueVariantConnection, error) - Evidences(ctx context.Context, obj *model.IssueMatch, filter *model.EvidenceFilter, first *int, after *string) (*model.EvidenceConnection, error) - - Issue(ctx context.Context, obj *model.IssueMatch) (*model.Issue, error) - - ComponentInstance(ctx context.Context, obj *model.IssueMatch) (*model.ComponentInstance, error) - IssueMatchChanges(ctx context.Context, obj *model.IssueMatch, filter *model.IssueMatchChangeFilter, first *int, after *string) (*model.IssueMatchChangeConnection, error) -} -type IssueMatchChangeResolver interface { - IssueMatch(ctx context.Context, obj *model.IssueMatchChange) (*model.IssueMatch, error) - - Activity(ctx context.Context, obj *model.IssueMatchChange) (*model.Activity, error) -} -type IssueMatchFilterValueResolver interface { - PrimaryName(ctx context.Context, obj *model.IssueMatchFilterValue, filter *model.IssueFilter) (*model.FilterItem, error) - AffectedService(ctx context.Context, obj *model.IssueMatchFilterValue, filter *model.ServiceFilter) (*model.FilterItem, error) - ComponentName(ctx context.Context, obj *model.IssueMatchFilterValue, filter *model.ComponentFilter) (*model.FilterItem, error) - SupportGroupName(ctx context.Context, obj *model.IssueMatchFilterValue, filter *model.SupportGroupFilter) (*model.FilterItem, error) -} -type IssueRepositoryResolver interface { - IssueVariants(ctx context.Context, obj *model.IssueRepository, filter *model.IssueVariantFilter, first *int, after *string) (*model.IssueVariantConnection, error) - Services(ctx context.Context, obj *model.IssueRepository, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) -} -type IssueVariantResolver interface { - IssueRepository(ctx context.Context, obj *model.IssueVariant) (*model.IssueRepository, error) - - Issue(ctx context.Context, obj *model.IssueVariant) (*model.Issue, error) -} -type MutationResolver interface { - CreateUser(ctx context.Context, input model.UserInput) (*model.User, error) - UpdateUser(ctx context.Context, id string, input model.UserInput) (*model.User, error) - DeleteUser(ctx context.Context, id string) (string, error) - CreateSupportGroup(ctx context.Context, input model.SupportGroupInput) (*model.SupportGroup, error) - UpdateSupportGroup(ctx context.Context, id string, input model.SupportGroupInput) (*model.SupportGroup, error) - DeleteSupportGroup(ctx context.Context, id string) (string, error) - AddServiceToSupportGroup(ctx context.Context, supportGroupID string, serviceID string) (*model.SupportGroup, error) - RemoveServiceFromSupportGroup(ctx context.Context, supportGroupID string, serviceID string) (*model.SupportGroup, error) - AddUserToSupportGroup(ctx context.Context, supportGroupID string, userID string) (*model.SupportGroup, error) - RemoveUserFromSupportGroup(ctx context.Context, supportGroupID string, userID string) (*model.SupportGroup, error) - CreateComponent(ctx context.Context, input model.ComponentInput) (*model.Component, error) - UpdateComponent(ctx context.Context, id string, input model.ComponentInput) (*model.Component, error) - DeleteComponent(ctx context.Context, id string) (string, error) - CreateComponentInstance(ctx context.Context, input model.ComponentInstanceInput) (*model.ComponentInstance, error) - UpdateComponentInstance(ctx context.Context, id string, input model.ComponentInstanceInput) (*model.ComponentInstance, error) - DeleteComponentInstance(ctx context.Context, id string) (string, error) - CreateComponentVersion(ctx context.Context, input model.ComponentVersionInput) (*model.ComponentVersion, error) - UpdateComponentVersion(ctx context.Context, id string, input model.ComponentVersionInput) (*model.ComponentVersion, error) - DeleteComponentVersion(ctx context.Context, id string) (string, error) - CreateService(ctx context.Context, input model.ServiceInput) (*model.Service, error) - UpdateService(ctx context.Context, id string, input model.ServiceInput) (*model.Service, error) - DeleteService(ctx context.Context, id string) (string, error) - AddOwnerToService(ctx context.Context, serviceID string, userID string) (*model.Service, error) - RemoveOwnerFromService(ctx context.Context, serviceID string, userID string) (*model.Service, error) - AddIssueRepositoryToService(ctx context.Context, serviceID string, issueRepositoryID string, priority int) (*model.Service, error) - RemoveIssueRepositoryFromService(ctx context.Context, serviceID string, issueRepositoryID string) (*model.Service, error) - CreateIssueRepository(ctx context.Context, input model.IssueRepositoryInput) (*model.IssueRepository, error) - UpdateIssueRepository(ctx context.Context, id string, input model.IssueRepositoryInput) (*model.IssueRepository, error) - DeleteIssueRepository(ctx context.Context, id string) (string, error) - CreateIssue(ctx context.Context, input model.IssueInput) (*model.Issue, error) - UpdateIssue(ctx context.Context, id string, input model.IssueInput) (*model.Issue, error) - DeleteIssue(ctx context.Context, id string) (string, error) - AddComponentVersionToIssue(ctx context.Context, issueID string, componentVersionID string) (*model.Issue, error) - RemoveComponentVersionFromIssue(ctx context.Context, issueID string, componentVersionID string) (*model.Issue, error) - CreateIssueVariant(ctx context.Context, input model.IssueVariantInput) (*model.IssueVariant, error) - UpdateIssueVariant(ctx context.Context, id string, input model.IssueVariantInput) (*model.IssueVariant, error) - DeleteIssueVariant(ctx context.Context, id string) (string, error) - CreateEvidence(ctx context.Context, input model.EvidenceInput) (*model.Evidence, error) - UpdateEvidence(ctx context.Context, id string, input model.EvidenceInput) (*model.Evidence, error) - DeleteEvidence(ctx context.Context, id string) (string, error) - CreateIssueMatch(ctx context.Context, input model.IssueMatchInput) (*model.IssueMatch, error) - UpdateIssueMatch(ctx context.Context, id string, input model.IssueMatchInput) (*model.IssueMatch, error) - DeleteIssueMatch(ctx context.Context, id string) (string, error) - AddEvidenceToIssueMatch(ctx context.Context, issueMatchID string, evidenceID string) (*model.IssueMatch, error) - RemoveEvidenceFromIssueMatch(ctx context.Context, issueMatchID string, evidenceID string) (*model.IssueMatch, error) - CreateIssueMatchChange(ctx context.Context, input model.IssueMatchChangeInput) (*model.IssueMatchChange, error) - UpdateIssueMatchChange(ctx context.Context, id string, input model.IssueMatchChangeInput) (*model.IssueMatchChange, error) - DeleteIssueMatchChange(ctx context.Context, id string) (string, error) - CreateActivity(ctx context.Context, input model.ActivityInput) (*model.Activity, error) - UpdateActivity(ctx context.Context, id string, input model.ActivityInput) (*model.Activity, error) - DeleteActivity(ctx context.Context, id string) (string, error) - AddServiceToActivity(ctx context.Context, activityID string, serviceID string) (*model.Activity, error) - RemoveServiceFromActivity(ctx context.Context, activityID string, serviceID string) (*model.Activity, error) - AddIssueToActivity(ctx context.Context, activityID string, issueID string) (*model.Activity, error) - RemoveIssueFromActivity(ctx context.Context, activityID string, issueID string) (*model.Activity, error) -} -type QueryResolver interface { - Issues(ctx context.Context, filter *model.IssueFilter, first *int, after *string) (*model.IssueConnection, error) - IssueMatches(ctx context.Context, filter *model.IssueMatchFilter, first *int, after *string) (*model.IssueMatchConnection, error) - IssueMatchChanges(ctx context.Context, filter *model.IssueMatchChangeFilter, first *int, after *string) (*model.IssueMatchChangeConnection, error) - Services(ctx context.Context, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) - Components(ctx context.Context, filter *model.ComponentFilter, first *int, after *string) (*model.ComponentConnection, error) - ComponentVersions(ctx context.Context, filter *model.ComponentVersionFilter, first *int, after *string) (*model.ComponentVersionConnection, error) - ComponentInstances(ctx context.Context, filter *model.ComponentInstanceFilter, first *int, after *string) (*model.ComponentInstanceConnection, error) - Activities(ctx context.Context, filter *model.ActivityFilter, first *int, after *string) (*model.ActivityConnection, error) - IssueVariants(ctx context.Context, filter *model.IssueVariantFilter, first *int, after *string) (*model.IssueVariantConnection, error) - IssueRepositories(ctx context.Context, filter *model.IssueRepositoryFilter, first *int, after *string) (*model.IssueRepositoryConnection, error) - Evidences(ctx context.Context, filter *model.EvidenceFilter, first *int, after *string) (*model.EvidenceConnection, error) - SupportGroups(ctx context.Context, filter *model.SupportGroupFilter, first *int, after *string) (*model.SupportGroupConnection, error) - Users(ctx context.Context, filter *model.UserFilter, first *int, after *string) (*model.UserConnection, error) - ServiceFilterValues(ctx context.Context) (*model.ServiceFilterValue, error) - IssueMatchFilterValues(ctx context.Context) (*model.IssueMatchFilterValue, error) - ComponentInstanceFilterValues(ctx context.Context) (*model.ComponentInstanceFilterValue, error) - ComponentFilterValues(ctx context.Context) (*model.ComponentFilterValue, error) -} -type ServiceResolver interface { - Owners(ctx context.Context, obj *model.Service, filter *model.UserFilter, first *int, after *string) (*model.UserConnection, error) - SupportGroups(ctx context.Context, obj *model.Service, filter *model.SupportGroupFilter, first *int, after *string) (*model.SupportGroupConnection, error) - Activities(ctx context.Context, obj *model.Service, filter *model.ActivityFilter, first *int, after *string) (*model.ActivityConnection, error) - IssueRepositories(ctx context.Context, obj *model.Service, filter *model.IssueRepositoryFilter, first *int, after *string) (*model.IssueRepositoryConnection, error) - ComponentInstances(ctx context.Context, obj *model.Service, filter *model.ComponentInstanceFilter, first *int, after *string) (*model.ComponentInstanceConnection, error) -} -type ServiceFilterValueResolver interface { - ServiceName(ctx context.Context, obj *model.ServiceFilterValue, filter *model.ServiceFilter) (*model.FilterItem, error) - UniqueUserID(ctx context.Context, obj *model.ServiceFilterValue, filter *model.UserFilter) (*model.FilterItem, error) - UserName(ctx context.Context, obj *model.ServiceFilterValue, filter *model.UserFilter) (*model.FilterItem, error) - SupportGroupName(ctx context.Context, obj *model.ServiceFilterValue, filter *model.SupportGroupFilter) (*model.FilterItem, error) -} -type SupportGroupResolver interface { - Users(ctx context.Context, obj *model.SupportGroup, filter *model.UserFilter, first *int, after *string) (*model.UserConnection, error) - Services(ctx context.Context, obj *model.SupportGroup, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) -} -type UserResolver interface { - SupportGroups(ctx context.Context, obj *model.User, filter *model.SupportGroupFilter, first *int, after *string) (*model.SupportGroupConnection, error) - Services(ctx context.Context, obj *model.User, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) -} - -type executableSchema struct { - schema *ast.Schema - resolvers ResolverRoot - directives DirectiveRoot - complexity ComplexityRoot -} - -func (e *executableSchema) Schema() *ast.Schema { - if e.schema != nil { - return e.schema - } - return parsedSchema -} - -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { - ec := executionContext{nil, e, 0, 0, nil} - _ = ec - switch typeName + "." + field { - - case "Activity.evidences": - if e.complexity.Activity.Evidences == nil { - break - } - - args, err := ec.field_Activity_evidences_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Activity.Evidences(childComplexity, args["filter"].(*model.EvidenceFilter), args["first"].(*int), args["after"].(*string)), true - - case "Activity.id": - if e.complexity.Activity.ID == nil { - break - } - - return e.complexity.Activity.ID(childComplexity), true - - case "Activity.issueMatchChanges": - if e.complexity.Activity.IssueMatchChanges == nil { - break - } - - args, err := ec.field_Activity_issueMatchChanges_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Activity.IssueMatchChanges(childComplexity, args["filter"].(*model.IssueMatchChangeFilter), args["first"].(*int), args["after"].(*string)), true - - case "Activity.issues": - if e.complexity.Activity.Issues == nil { - break - } - - args, err := ec.field_Activity_issues_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Activity.Issues(childComplexity, args["filter"].(*model.IssueFilter), args["first"].(*int), args["after"].(*string)), true - - case "Activity.services": - if e.complexity.Activity.Services == nil { - break - } - - args, err := ec.field_Activity_services_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Activity.Services(childComplexity, args["filter"].(*model.ServiceFilter), args["first"].(*int), args["after"].(*string)), true - - case "Activity.status": - if e.complexity.Activity.Status == nil { - break - } - - return e.complexity.Activity.Status(childComplexity), true - - case "ActivityConnection.edges": - if e.complexity.ActivityConnection.Edges == nil { - break - } - - return e.complexity.ActivityConnection.Edges(childComplexity), true - - case "ActivityConnection.pageInfo": - if e.complexity.ActivityConnection.PageInfo == nil { - break - } - - return e.complexity.ActivityConnection.PageInfo(childComplexity), true - - case "ActivityConnection.totalCount": - if e.complexity.ActivityConnection.TotalCount == nil { - break - } - - return e.complexity.ActivityConnection.TotalCount(childComplexity), true - - case "ActivityEdge.cursor": - if e.complexity.ActivityEdge.Cursor == nil { - break - } - - return e.complexity.ActivityEdge.Cursor(childComplexity), true - - case "ActivityEdge.node": - if e.complexity.ActivityEdge.Node == nil { - break - } - - return e.complexity.ActivityEdge.Node(childComplexity), true - - case "CVSS.base": - if e.complexity.CVSS.Base == nil { - break - } - - return e.complexity.CVSS.Base(childComplexity), true - - case "CVSS.environmental": - if e.complexity.CVSS.Environmental == nil { - break - } - - return e.complexity.CVSS.Environmental(childComplexity), true - - case "CVSS.temporal": - if e.complexity.CVSS.Temporal == nil { - break - } - - return e.complexity.CVSS.Temporal(childComplexity), true - - case "CVSS.vector": - if e.complexity.CVSS.Vector == nil { - break - } - - return e.complexity.CVSS.Vector(childComplexity), true - - case "CVSSBase.attackComplexity": - if e.complexity.CVSSBase.AttackComplexity == nil { - break - } - - return e.complexity.CVSSBase.AttackComplexity(childComplexity), true - - case "CVSSBase.attackVector": - if e.complexity.CVSSBase.AttackVector == nil { - break - } - - return e.complexity.CVSSBase.AttackVector(childComplexity), true - - case "CVSSBase.availabilityImpact": - if e.complexity.CVSSBase.AvailabilityImpact == nil { - break - } - - return e.complexity.CVSSBase.AvailabilityImpact(childComplexity), true - - case "CVSSBase.confidentialityImpact": - if e.complexity.CVSSBase.ConfidentialityImpact == nil { - break - } - - return e.complexity.CVSSBase.ConfidentialityImpact(childComplexity), true - - case "CVSSBase.integrityImpact": - if e.complexity.CVSSBase.IntegrityImpact == nil { - break - } - - return e.complexity.CVSSBase.IntegrityImpact(childComplexity), true - - case "CVSSBase.privilegesRequired": - if e.complexity.CVSSBase.PrivilegesRequired == nil { - break - } - - return e.complexity.CVSSBase.PrivilegesRequired(childComplexity), true - - case "CVSSBase.scope": - if e.complexity.CVSSBase.Scope == nil { - break - } - - return e.complexity.CVSSBase.Scope(childComplexity), true - - case "CVSSBase.score": - if e.complexity.CVSSBase.Score == nil { - break - } - - return e.complexity.CVSSBase.Score(childComplexity), true - - case "CVSSBase.userInteraction": - if e.complexity.CVSSBase.UserInteraction == nil { - break - } - - return e.complexity.CVSSBase.UserInteraction(childComplexity), true - - case "CVSSEnvironmental.availabilityRequirement": - if e.complexity.CVSSEnvironmental.AvailabilityRequirement == nil { - break - } - - return e.complexity.CVSSEnvironmental.AvailabilityRequirement(childComplexity), true - - case "CVSSEnvironmental.confidentialityRequirement": - if e.complexity.CVSSEnvironmental.ConfidentialityRequirement == nil { - break - } - - return e.complexity.CVSSEnvironmental.ConfidentialityRequirement(childComplexity), true - - case "CVSSEnvironmental.integrityRequirement": - if e.complexity.CVSSEnvironmental.IntegrityRequirement == nil { - break - } - - return e.complexity.CVSSEnvironmental.IntegrityRequirement(childComplexity), true - - case "CVSSEnvironmental.modifiedAttackComplexity": - if e.complexity.CVSSEnvironmental.ModifiedAttackComplexity == nil { - break - } - - return e.complexity.CVSSEnvironmental.ModifiedAttackComplexity(childComplexity), true - - case "CVSSEnvironmental.modifiedAttackVector": - if e.complexity.CVSSEnvironmental.ModifiedAttackVector == nil { - break - } - - return e.complexity.CVSSEnvironmental.ModifiedAttackVector(childComplexity), true - - case "CVSSEnvironmental.modifiedAvailabilityImpact": - if e.complexity.CVSSEnvironmental.ModifiedAvailabilityImpact == nil { - break - } - - return e.complexity.CVSSEnvironmental.ModifiedAvailabilityImpact(childComplexity), true - - case "CVSSEnvironmental.modifiedConfidentialityImpact": - if e.complexity.CVSSEnvironmental.ModifiedConfidentialityImpact == nil { - break - } - - return e.complexity.CVSSEnvironmental.ModifiedConfidentialityImpact(childComplexity), true - - case "CVSSEnvironmental.modifiedIntegrityImpact": - if e.complexity.CVSSEnvironmental.ModifiedIntegrityImpact == nil { - break - } - - return e.complexity.CVSSEnvironmental.ModifiedIntegrityImpact(childComplexity), true - - case "CVSSEnvironmental.modifiedPrivilegesRequired": - if e.complexity.CVSSEnvironmental.ModifiedPrivilegesRequired == nil { - break - } - - return e.complexity.CVSSEnvironmental.ModifiedPrivilegesRequired(childComplexity), true - - case "CVSSEnvironmental.modifiedScope": - if e.complexity.CVSSEnvironmental.ModifiedScope == nil { - break - } - - return e.complexity.CVSSEnvironmental.ModifiedScope(childComplexity), true - - case "CVSSEnvironmental.modifiedUserInteraction": - if e.complexity.CVSSEnvironmental.ModifiedUserInteraction == nil { - break - } - - return e.complexity.CVSSEnvironmental.ModifiedUserInteraction(childComplexity), true - - case "CVSSEnvironmental.score": - if e.complexity.CVSSEnvironmental.Score == nil { - break - } - - return e.complexity.CVSSEnvironmental.Score(childComplexity), true - - case "CVSSParameter.name": - if e.complexity.CVSSParameter.Name == nil { - break - } - - return e.complexity.CVSSParameter.Name(childComplexity), true - - case "CVSSParameter.value": - if e.complexity.CVSSParameter.Value == nil { - break - } - - return e.complexity.CVSSParameter.Value(childComplexity), true - - case "CVSSTemporal.exploitCodeMaturity": - if e.complexity.CVSSTemporal.ExploitCodeMaturity == nil { - break - } - - return e.complexity.CVSSTemporal.ExploitCodeMaturity(childComplexity), true - - case "CVSSTemporal.remediationLevel": - if e.complexity.CVSSTemporal.RemediationLevel == nil { - break - } - - return e.complexity.CVSSTemporal.RemediationLevel(childComplexity), true - - case "CVSSTemporal.reportConfidence": - if e.complexity.CVSSTemporal.ReportConfidence == nil { - break - } - - return e.complexity.CVSSTemporal.ReportConfidence(childComplexity), true - - case "CVSSTemporal.score": - if e.complexity.CVSSTemporal.Score == nil { - break - } - - return e.complexity.CVSSTemporal.Score(childComplexity), true - - case "Component.componentVersions": - if e.complexity.Component.ComponentVersions == nil { - break - } - - args, err := ec.field_Component_componentVersions_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Component.ComponentVersions(childComplexity, args["filter"].(*model.ComponentVersionFilter), args["first"].(*int), args["after"].(*string)), true - - case "Component.id": - if e.complexity.Component.ID == nil { - break - } - - return e.complexity.Component.ID(childComplexity), true - - case "Component.name": - if e.complexity.Component.Name == nil { - break - } - - return e.complexity.Component.Name(childComplexity), true - - case "Component.type": - if e.complexity.Component.Type == nil { - break - } - - return e.complexity.Component.Type(childComplexity), true - - case "ComponentConnection.edges": - if e.complexity.ComponentConnection.Edges == nil { - break - } - - return e.complexity.ComponentConnection.Edges(childComplexity), true - - case "ComponentConnection.pageInfo": - if e.complexity.ComponentConnection.PageInfo == nil { - break - } - - return e.complexity.ComponentConnection.PageInfo(childComplexity), true - - case "ComponentConnection.totalCount": - if e.complexity.ComponentConnection.TotalCount == nil { - break - } - - return e.complexity.ComponentConnection.TotalCount(childComplexity), true - - case "ComponentEdge.cursor": - if e.complexity.ComponentEdge.Cursor == nil { - break - } - - return e.complexity.ComponentEdge.Cursor(childComplexity), true - - case "ComponentEdge.node": - if e.complexity.ComponentEdge.Node == nil { - break - } - - return e.complexity.ComponentEdge.Node(childComplexity), true - - case "ComponentFilterValue.componentName": - if e.complexity.ComponentFilterValue.ComponentName == nil { - break - } - - args, err := ec.field_ComponentFilterValue_componentName_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ComponentFilterValue.ComponentName(childComplexity, args["filter"].(*model.ComponentFilter)), true - - case "ComponentInstance.ccrn": - if e.complexity.ComponentInstance.Ccrn == nil { - break - } - - return e.complexity.ComponentInstance.Ccrn(childComplexity), true - - case "ComponentInstance.componentVersion": - if e.complexity.ComponentInstance.ComponentVersion == nil { - break - } - - return e.complexity.ComponentInstance.ComponentVersion(childComplexity), true - - case "ComponentInstance.componentVersionId": - if e.complexity.ComponentInstance.ComponentVersionID == nil { - break - } - - return e.complexity.ComponentInstance.ComponentVersionID(childComplexity), true - - case "ComponentInstance.count": - if e.complexity.ComponentInstance.Count == nil { - break - } - - return e.complexity.ComponentInstance.Count(childComplexity), true - - case "ComponentInstance.createdAt": - if e.complexity.ComponentInstance.CreatedAt == nil { - break - } - - return e.complexity.ComponentInstance.CreatedAt(childComplexity), true - - case "ComponentInstance.id": - if e.complexity.ComponentInstance.ID == nil { - break - } - - return e.complexity.ComponentInstance.ID(childComplexity), true - - case "ComponentInstance.issueMatches": - if e.complexity.ComponentInstance.IssueMatches == nil { - break - } - - args, err := ec.field_ComponentInstance_issueMatches_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ComponentInstance.IssueMatches(childComplexity, args["filter"].(*model.IssueMatchFilter), args["first"].(*int), args["after"].(*string)), true - - case "ComponentInstance.service": - if e.complexity.ComponentInstance.Service == nil { - break - } - - return e.complexity.ComponentInstance.Service(childComplexity), true - - case "ComponentInstance.serviceId": - if e.complexity.ComponentInstance.ServiceID == nil { - break - } - - return e.complexity.ComponentInstance.ServiceID(childComplexity), true - - case "ComponentInstance.updatedAt": - if e.complexity.ComponentInstance.UpdatedAt == nil { - break - } - - return e.complexity.ComponentInstance.UpdatedAt(childComplexity), true - - case "ComponentInstanceConnection.edges": - if e.complexity.ComponentInstanceConnection.Edges == nil { - break - } - - return e.complexity.ComponentInstanceConnection.Edges(childComplexity), true - - case "ComponentInstanceConnection.pageInfo": - if e.complexity.ComponentInstanceConnection.PageInfo == nil { - break - } - - return e.complexity.ComponentInstanceConnection.PageInfo(childComplexity), true - - case "ComponentInstanceConnection.totalCount": - if e.complexity.ComponentInstanceConnection.TotalCount == nil { - break - } - - return e.complexity.ComponentInstanceConnection.TotalCount(childComplexity), true - - case "ComponentInstanceEdge.cursor": - if e.complexity.ComponentInstanceEdge.Cursor == nil { - break - } - - return e.complexity.ComponentInstanceEdge.Cursor(childComplexity), true - - case "ComponentInstanceEdge.node": - if e.complexity.ComponentInstanceEdge.Node == nil { - break - } - - return e.complexity.ComponentInstanceEdge.Node(childComplexity), true - - case "ComponentInstanceFilterValue.ccrn": - if e.complexity.ComponentInstanceFilterValue.Ccrn == nil { - break - } - - args, err := ec.field_ComponentInstanceFilterValue_ccrn_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ComponentInstanceFilterValue.Ccrn(childComplexity, args["filter"].(*model.ComponentInstanceFilter)), true - - case "ComponentInstanceFilterValue.serviceName": - if e.complexity.ComponentInstanceFilterValue.ServiceName == nil { - break - } - - args, err := ec.field_ComponentInstanceFilterValue_serviceName_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ComponentInstanceFilterValue.ServiceName(childComplexity, args["filter"].(*model.ServiceFilter)), true - - case "ComponentInstanceFilterValue.supportGroupName": - if e.complexity.ComponentInstanceFilterValue.SupportGroupName == nil { - break - } - - args, err := ec.field_ComponentInstanceFilterValue_supportGroupName_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ComponentInstanceFilterValue.SupportGroupName(childComplexity, args["filter"].(*model.SupportGroupFilter)), true - - case "ComponentVersion.component": - if e.complexity.ComponentVersion.Component == nil { - break - } - - return e.complexity.ComponentVersion.Component(childComplexity), true - - case "ComponentVersion.componentId": - if e.complexity.ComponentVersion.ComponentID == nil { - break - } - - return e.complexity.ComponentVersion.ComponentID(childComplexity), true - - case "ComponentVersion.componentInstances": - if e.complexity.ComponentVersion.ComponentInstances == nil { - break - } - - args, err := ec.field_ComponentVersion_componentInstances_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ComponentVersion.ComponentInstances(childComplexity, args["first"].(*int), args["after"].(*string)), true - - case "ComponentVersion.id": - if e.complexity.ComponentVersion.ID == nil { - break - } - - return e.complexity.ComponentVersion.ID(childComplexity), true - - case "ComponentVersion.issues": - if e.complexity.ComponentVersion.Issues == nil { - break - } - - args, err := ec.field_ComponentVersion_issues_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ComponentVersion.Issues(childComplexity, args["first"].(*int), args["after"].(*string)), true - - case "ComponentVersion.version": - if e.complexity.ComponentVersion.Version == nil { - break - } - - return e.complexity.ComponentVersion.Version(childComplexity), true - - case "ComponentVersionConnection.edges": - if e.complexity.ComponentVersionConnection.Edges == nil { - break - } - - return e.complexity.ComponentVersionConnection.Edges(childComplexity), true - - case "ComponentVersionConnection.pageInfo": - if e.complexity.ComponentVersionConnection.PageInfo == nil { - break - } - - return e.complexity.ComponentVersionConnection.PageInfo(childComplexity), true - - case "ComponentVersionConnection.totalCount": - if e.complexity.ComponentVersionConnection.TotalCount == nil { - break - } - - return e.complexity.ComponentVersionConnection.TotalCount(childComplexity), true - - case "ComponentVersionEdge.cursor": - if e.complexity.ComponentVersionEdge.Cursor == nil { - break - } - - return e.complexity.ComponentVersionEdge.Cursor(childComplexity), true - - case "ComponentVersionEdge.node": - if e.complexity.ComponentVersionEdge.Node == nil { - break - } - - return e.complexity.ComponentVersionEdge.Node(childComplexity), true - - case "Evidence.activity": - if e.complexity.Evidence.Activity == nil { - break - } - - return e.complexity.Evidence.Activity(childComplexity), true - - case "Evidence.activityId": - if e.complexity.Evidence.ActivityID == nil { - break - } - - return e.complexity.Evidence.ActivityID(childComplexity), true - - case "Evidence.author": - if e.complexity.Evidence.Author == nil { - break - } - - return e.complexity.Evidence.Author(childComplexity), true - - case "Evidence.authorId": - if e.complexity.Evidence.AuthorID == nil { - break - } - - return e.complexity.Evidence.AuthorID(childComplexity), true - - case "Evidence.description": - if e.complexity.Evidence.Description == nil { - break - } - - return e.complexity.Evidence.Description(childComplexity), true - - case "Evidence.id": - if e.complexity.Evidence.ID == nil { - break - } - - return e.complexity.Evidence.ID(childComplexity), true - - case "Evidence.issueMatches": - if e.complexity.Evidence.IssueMatches == nil { - break - } - - args, err := ec.field_Evidence_issueMatches_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Evidence.IssueMatches(childComplexity, args["filter"].(*model.IssueMatchFilter), args["first"].(*int), args["after"].(*string)), true - - case "Evidence.raaEnd": - if e.complexity.Evidence.RaaEnd == nil { - break - } - - return e.complexity.Evidence.RaaEnd(childComplexity), true - - case "Evidence.type": - if e.complexity.Evidence.Type == nil { - break - } - - return e.complexity.Evidence.Type(childComplexity), true - - case "Evidence.vector": - if e.complexity.Evidence.Vector == nil { - break - } - - return e.complexity.Evidence.Vector(childComplexity), true - - case "EvidenceConnection.edges": - if e.complexity.EvidenceConnection.Edges == nil { - break - } - - return e.complexity.EvidenceConnection.Edges(childComplexity), true - - case "EvidenceConnection.pageInfo": - if e.complexity.EvidenceConnection.PageInfo == nil { - break - } - - return e.complexity.EvidenceConnection.PageInfo(childComplexity), true - - case "EvidenceConnection.totalCount": - if e.complexity.EvidenceConnection.TotalCount == nil { - break - } - - return e.complexity.EvidenceConnection.TotalCount(childComplexity), true - - case "EvidenceEdge.cursor": - if e.complexity.EvidenceEdge.Cursor == nil { - break - } - - return e.complexity.EvidenceEdge.Cursor(childComplexity), true - - case "EvidenceEdge.node": - if e.complexity.EvidenceEdge.Node == nil { - break - } - - return e.complexity.EvidenceEdge.Node(childComplexity), true - - case "FilterItem.displayName": - if e.complexity.FilterItem.DisplayName == nil { - break - } - - return e.complexity.FilterItem.DisplayName(childComplexity), true - - case "FilterItem.filterName": - if e.complexity.FilterItem.FilterName == nil { - break - } - - return e.complexity.FilterItem.FilterName(childComplexity), true - - case "FilterItem.values": - if e.complexity.FilterItem.Values == nil { - break - } - - return e.complexity.FilterItem.Values(childComplexity), true - - case "Issue.activities": - if e.complexity.Issue.Activities == nil { - break - } - - args, err := ec.field_Issue_activities_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Issue.Activities(childComplexity, args["filter"].(*model.ActivityFilter), args["first"].(*int), args["after"].(*string)), true - - case "Issue.componentVersions": - if e.complexity.Issue.ComponentVersions == nil { - break - } - - args, err := ec.field_Issue_componentVersions_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Issue.ComponentVersions(childComplexity, args["filter"].(*model.ComponentVersionFilter), args["first"].(*int), args["after"].(*string)), true - - case "Issue.description": - if e.complexity.Issue.Description == nil { - break - } - - return e.complexity.Issue.Description(childComplexity), true - - case "Issue.id": - if e.complexity.Issue.ID == nil { - break - } - - return e.complexity.Issue.ID(childComplexity), true - - case "Issue.issueMatches": - if e.complexity.Issue.IssueMatches == nil { - break - } - - args, err := ec.field_Issue_issueMatches_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Issue.IssueMatches(childComplexity, args["filter"].(*model.IssueMatchFilter), args["first"].(*int), args["after"].(*string)), true - - case "Issue.issueVariants": - if e.complexity.Issue.IssueVariants == nil { - break - } - - args, err := ec.field_Issue_issueVariants_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Issue.IssueVariants(childComplexity, args["filter"].(*model.IssueVariantFilter), args["first"].(*int), args["after"].(*string)), true - - case "Issue.lastModified": - if e.complexity.Issue.LastModified == nil { - break - } - - return e.complexity.Issue.LastModified(childComplexity), true - - case "Issue.metadata": - if e.complexity.Issue.Metadata == nil { - break - } - - return e.complexity.Issue.Metadata(childComplexity), true - - case "Issue.primaryName": - if e.complexity.Issue.PrimaryName == nil { - break - } - - return e.complexity.Issue.PrimaryName(childComplexity), true - - case "Issue.type": - if e.complexity.Issue.Type == nil { - break - } - - return e.complexity.Issue.Type(childComplexity), true - - case "IssueConnection.edges": - if e.complexity.IssueConnection.Edges == nil { - break - } - - return e.complexity.IssueConnection.Edges(childComplexity), true - - case "IssueConnection.pageInfo": - if e.complexity.IssueConnection.PageInfo == nil { - break - } - - return e.complexity.IssueConnection.PageInfo(childComplexity), true - - case "IssueConnection.policyViolationCount": - if e.complexity.IssueConnection.PolicyViolationCount == nil { - break - } - - return e.complexity.IssueConnection.PolicyViolationCount(childComplexity), true - - case "IssueConnection.securityEventCount": - if e.complexity.IssueConnection.SecurityEventCount == nil { - break - } - - return e.complexity.IssueConnection.SecurityEventCount(childComplexity), true - - case "IssueConnection.totalCount": - if e.complexity.IssueConnection.TotalCount == nil { - break - } - - return e.complexity.IssueConnection.TotalCount(childComplexity), true - - case "IssueConnection.vulnerabilityCount": - if e.complexity.IssueConnection.VulnerabilityCount == nil { - break - } - - return e.complexity.IssueConnection.VulnerabilityCount(childComplexity), true - - case "IssueEdge.cursor": - if e.complexity.IssueEdge.Cursor == nil { - break - } - - return e.complexity.IssueEdge.Cursor(childComplexity), true - - case "IssueEdge.node": - if e.complexity.IssueEdge.Node == nil { - break - } - - return e.complexity.IssueEdge.Node(childComplexity), true - - case "IssueMatch.componentInstance": - if e.complexity.IssueMatch.ComponentInstance == nil { - break - } - - return e.complexity.IssueMatch.ComponentInstance(childComplexity), true - - case "IssueMatch.componentInstanceId": - if e.complexity.IssueMatch.ComponentInstanceID == nil { - break - } - - return e.complexity.IssueMatch.ComponentInstanceID(childComplexity), true - - case "IssueMatch.discoveryDate": - if e.complexity.IssueMatch.DiscoveryDate == nil { - break - } - - return e.complexity.IssueMatch.DiscoveryDate(childComplexity), true - - case "IssueMatch.effectiveIssueVariants": - if e.complexity.IssueMatch.EffectiveIssueVariants == nil { - break - } - - args, err := ec.field_IssueMatch_effectiveIssueVariants_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.IssueMatch.EffectiveIssueVariants(childComplexity, args["filter"].(*model.IssueVariantFilter), args["first"].(*int), args["after"].(*string)), true - - case "IssueMatch.evidences": - if e.complexity.IssueMatch.Evidences == nil { - break - } - - args, err := ec.field_IssueMatch_evidences_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.IssueMatch.Evidences(childComplexity, args["filter"].(*model.EvidenceFilter), args["first"].(*int), args["after"].(*string)), true - - case "IssueMatch.id": - if e.complexity.IssueMatch.ID == nil { - break - } - - return e.complexity.IssueMatch.ID(childComplexity), true - - case "IssueMatch.issue": - if e.complexity.IssueMatch.Issue == nil { - break - } - - return e.complexity.IssueMatch.Issue(childComplexity), true - - case "IssueMatch.issueId": - if e.complexity.IssueMatch.IssueID == nil { - break - } - - return e.complexity.IssueMatch.IssueID(childComplexity), true - - case "IssueMatch.issueMatchChanges": - if e.complexity.IssueMatch.IssueMatchChanges == nil { - break - } - - args, err := ec.field_IssueMatch_issueMatchChanges_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.IssueMatch.IssueMatchChanges(childComplexity, args["filter"].(*model.IssueMatchChangeFilter), args["first"].(*int), args["after"].(*string)), true - - case "IssueMatch.remediationDate": - if e.complexity.IssueMatch.RemediationDate == nil { - break - } - - return e.complexity.IssueMatch.RemediationDate(childComplexity), true - - case "IssueMatch.severity": - if e.complexity.IssueMatch.Severity == nil { - break - } - - return e.complexity.IssueMatch.Severity(childComplexity), true - - case "IssueMatch.status": - if e.complexity.IssueMatch.Status == nil { - break - } - - return e.complexity.IssueMatch.Status(childComplexity), true - - case "IssueMatch.targetRemediationDate": - if e.complexity.IssueMatch.TargetRemediationDate == nil { - break - } - - return e.complexity.IssueMatch.TargetRemediationDate(childComplexity), true - - case "IssueMatch.user": - if e.complexity.IssueMatch.User == nil { - break - } - - return e.complexity.IssueMatch.User(childComplexity), true - - case "IssueMatch.userId": - if e.complexity.IssueMatch.UserID == nil { - break - } - - return e.complexity.IssueMatch.UserID(childComplexity), true - - case "IssueMatchChange.action": - if e.complexity.IssueMatchChange.Action == nil { - break - } - - return e.complexity.IssueMatchChange.Action(childComplexity), true - - case "IssueMatchChange.activity": - if e.complexity.IssueMatchChange.Activity == nil { - break - } - - return e.complexity.IssueMatchChange.Activity(childComplexity), true - - case "IssueMatchChange.activityId": - if e.complexity.IssueMatchChange.ActivityID == nil { - break - } - - return e.complexity.IssueMatchChange.ActivityID(childComplexity), true - - case "IssueMatchChange.id": - if e.complexity.IssueMatchChange.ID == nil { - break - } - - return e.complexity.IssueMatchChange.ID(childComplexity), true - - case "IssueMatchChange.issueMatch": - if e.complexity.IssueMatchChange.IssueMatch == nil { - break - } - - return e.complexity.IssueMatchChange.IssueMatch(childComplexity), true - - case "IssueMatchChange.issueMatchId": - if e.complexity.IssueMatchChange.IssueMatchID == nil { - break - } - - return e.complexity.IssueMatchChange.IssueMatchID(childComplexity), true - - case "IssueMatchChangeConnection.edges": - if e.complexity.IssueMatchChangeConnection.Edges == nil { - break - } - - return e.complexity.IssueMatchChangeConnection.Edges(childComplexity), true - - case "IssueMatchChangeConnection.pageInfo": - if e.complexity.IssueMatchChangeConnection.PageInfo == nil { - break - } - - return e.complexity.IssueMatchChangeConnection.PageInfo(childComplexity), true - - case "IssueMatchChangeConnection.totalCount": - if e.complexity.IssueMatchChangeConnection.TotalCount == nil { - break - } - - return e.complexity.IssueMatchChangeConnection.TotalCount(childComplexity), true - - case "IssueMatchChangeEdge.cursor": - if e.complexity.IssueMatchChangeEdge.Cursor == nil { - break - } - - return e.complexity.IssueMatchChangeEdge.Cursor(childComplexity), true - - case "IssueMatchChangeEdge.node": - if e.complexity.IssueMatchChangeEdge.Node == nil { - break - } - - return e.complexity.IssueMatchChangeEdge.Node(childComplexity), true - - case "IssueMatchConnection.edges": - if e.complexity.IssueMatchConnection.Edges == nil { - break - } - - return e.complexity.IssueMatchConnection.Edges(childComplexity), true - - case "IssueMatchConnection.pageInfo": - if e.complexity.IssueMatchConnection.PageInfo == nil { - break - } - - return e.complexity.IssueMatchConnection.PageInfo(childComplexity), true - - case "IssueMatchConnection.totalCount": - if e.complexity.IssueMatchConnection.TotalCount == nil { - break - } - - return e.complexity.IssueMatchConnection.TotalCount(childComplexity), true - - case "IssueMatchEdge.cursor": - if e.complexity.IssueMatchEdge.Cursor == nil { - break - } - - return e.complexity.IssueMatchEdge.Cursor(childComplexity), true - - case "IssueMatchEdge.node": - if e.complexity.IssueMatchEdge.Node == nil { - break - } - - return e.complexity.IssueMatchEdge.Node(childComplexity), true - - case "IssueMatchFilterValue.affectedService": - if e.complexity.IssueMatchFilterValue.AffectedService == nil { - break - } - - args, err := ec.field_IssueMatchFilterValue_affectedService_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.IssueMatchFilterValue.AffectedService(childComplexity, args["filter"].(*model.ServiceFilter)), true - - case "IssueMatchFilterValue.componentName": - if e.complexity.IssueMatchFilterValue.ComponentName == nil { - break - } - - args, err := ec.field_IssueMatchFilterValue_componentName_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.IssueMatchFilterValue.ComponentName(childComplexity, args["filter"].(*model.ComponentFilter)), true - - case "IssueMatchFilterValue.issueType": - if e.complexity.IssueMatchFilterValue.IssueType == nil { - break - } - - return e.complexity.IssueMatchFilterValue.IssueType(childComplexity), true - - case "IssueMatchFilterValue.primaryName": - if e.complexity.IssueMatchFilterValue.PrimaryName == nil { - break - } - - args, err := ec.field_IssueMatchFilterValue_primaryName_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.IssueMatchFilterValue.PrimaryName(childComplexity, args["filter"].(*model.IssueFilter)), true - - case "IssueMatchFilterValue.severity": - if e.complexity.IssueMatchFilterValue.Severity == nil { - break - } - - return e.complexity.IssueMatchFilterValue.Severity(childComplexity), true - - case "IssueMatchFilterValue.status": - if e.complexity.IssueMatchFilterValue.Status == nil { - break - } - - return e.complexity.IssueMatchFilterValue.Status(childComplexity), true - - case "IssueMatchFilterValue.supportGroupName": - if e.complexity.IssueMatchFilterValue.SupportGroupName == nil { - break - } - - args, err := ec.field_IssueMatchFilterValue_supportGroupName_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.IssueMatchFilterValue.SupportGroupName(childComplexity, args["filter"].(*model.SupportGroupFilter)), true - - case "IssueMetadata.activityCount": - if e.complexity.IssueMetadata.ActivityCount == nil { - break - } - - return e.complexity.IssueMetadata.ActivityCount(childComplexity), true - - case "IssueMetadata.componentInstanceCount": - if e.complexity.IssueMetadata.ComponentInstanceCount == nil { - break - } - - return e.complexity.IssueMetadata.ComponentInstanceCount(childComplexity), true - - case "IssueMetadata.componentVersionCount": - if e.complexity.IssueMetadata.ComponentVersionCount == nil { - break - } - - return e.complexity.IssueMetadata.ComponentVersionCount(childComplexity), true - - case "IssueMetadata.earliestDiscoveryDate": - if e.complexity.IssueMetadata.EarliestDiscoveryDate == nil { - break - } - - return e.complexity.IssueMetadata.EarliestDiscoveryDate(childComplexity), true - - case "IssueMetadata.earliestTargetRemediationDate": - if e.complexity.IssueMetadata.EarliestTargetRemediationDate == nil { - break - } - - return e.complexity.IssueMetadata.EarliestTargetRemediationDate(childComplexity), true - - case "IssueMetadata.issueMatchCount": - if e.complexity.IssueMetadata.IssueMatchCount == nil { - break - } - - return e.complexity.IssueMetadata.IssueMatchCount(childComplexity), true - - case "IssueMetadata.serviceCount": - if e.complexity.IssueMetadata.ServiceCount == nil { - break - } - - return e.complexity.IssueMetadata.ServiceCount(childComplexity), true - - case "IssueRepository.created_at": - if e.complexity.IssueRepository.CreatedAt == nil { - break - } - - return e.complexity.IssueRepository.CreatedAt(childComplexity), true - - case "IssueRepository.id": - if e.complexity.IssueRepository.ID == nil { - break - } - - return e.complexity.IssueRepository.ID(childComplexity), true - - case "IssueRepository.issueVariants": - if e.complexity.IssueRepository.IssueVariants == nil { - break - } - - args, err := ec.field_IssueRepository_issueVariants_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.IssueRepository.IssueVariants(childComplexity, args["filter"].(*model.IssueVariantFilter), args["first"].(*int), args["after"].(*string)), true - - case "IssueRepository.name": - if e.complexity.IssueRepository.Name == nil { - break - } - - return e.complexity.IssueRepository.Name(childComplexity), true - - case "IssueRepository.services": - if e.complexity.IssueRepository.Services == nil { - break - } - - args, err := ec.field_IssueRepository_services_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.IssueRepository.Services(childComplexity, args["filter"].(*model.ServiceFilter), args["first"].(*int), args["after"].(*string)), true - - case "IssueRepository.url": - if e.complexity.IssueRepository.URL == nil { - break - } - - return e.complexity.IssueRepository.URL(childComplexity), true - - case "IssueRepository.updated_at": - if e.complexity.IssueRepository.UpdatedAt == nil { - break - } - - return e.complexity.IssueRepository.UpdatedAt(childComplexity), true - - case "IssueRepositoryConnection.edges": - if e.complexity.IssueRepositoryConnection.Edges == nil { - break - } - - return e.complexity.IssueRepositoryConnection.Edges(childComplexity), true - - case "IssueRepositoryConnection.pageInfo": - if e.complexity.IssueRepositoryConnection.PageInfo == nil { - break - } - - return e.complexity.IssueRepositoryConnection.PageInfo(childComplexity), true - - case "IssueRepositoryConnection.totalCount": - if e.complexity.IssueRepositoryConnection.TotalCount == nil { - break - } - - return e.complexity.IssueRepositoryConnection.TotalCount(childComplexity), true - - case "IssueRepositoryEdge.created_at": - if e.complexity.IssueRepositoryEdge.CreatedAt == nil { - break - } - - return e.complexity.IssueRepositoryEdge.CreatedAt(childComplexity), true - - case "IssueRepositoryEdge.cursor": - if e.complexity.IssueRepositoryEdge.Cursor == nil { - break - } - - return e.complexity.IssueRepositoryEdge.Cursor(childComplexity), true - - case "IssueRepositoryEdge.node": - if e.complexity.IssueRepositoryEdge.Node == nil { - break - } - - return e.complexity.IssueRepositoryEdge.Node(childComplexity), true - - case "IssueRepositoryEdge.priority": - if e.complexity.IssueRepositoryEdge.Priority == nil { - break - } - - return e.complexity.IssueRepositoryEdge.Priority(childComplexity), true - - case "IssueRepositoryEdge.updated_at": - if e.complexity.IssueRepositoryEdge.UpdatedAt == nil { - break - } - - return e.complexity.IssueRepositoryEdge.UpdatedAt(childComplexity), true - - case "IssueVariant.created_at": - if e.complexity.IssueVariant.CreatedAt == nil { - break - } - - return e.complexity.IssueVariant.CreatedAt(childComplexity), true - - case "IssueVariant.description": - if e.complexity.IssueVariant.Description == nil { - break - } - - return e.complexity.IssueVariant.Description(childComplexity), true - - case "IssueVariant.id": - if e.complexity.IssueVariant.ID == nil { - break - } - - return e.complexity.IssueVariant.ID(childComplexity), true - - case "IssueVariant.issue": - if e.complexity.IssueVariant.Issue == nil { - break - } - - return e.complexity.IssueVariant.Issue(childComplexity), true - - case "IssueVariant.issueId": - if e.complexity.IssueVariant.IssueID == nil { - break - } - - return e.complexity.IssueVariant.IssueID(childComplexity), true - - case "IssueVariant.issueRepository": - if e.complexity.IssueVariant.IssueRepository == nil { - break - } - - return e.complexity.IssueVariant.IssueRepository(childComplexity), true - - case "IssueVariant.issueRepositoryId": - if e.complexity.IssueVariant.IssueRepositoryID == nil { - break - } - - return e.complexity.IssueVariant.IssueRepositoryID(childComplexity), true - - case "IssueVariant.secondaryName": - if e.complexity.IssueVariant.SecondaryName == nil { - break - } - - return e.complexity.IssueVariant.SecondaryName(childComplexity), true - - case "IssueVariant.severity": - if e.complexity.IssueVariant.Severity == nil { - break - } - - return e.complexity.IssueVariant.Severity(childComplexity), true - - case "IssueVariant.updated_at": - if e.complexity.IssueVariant.UpdatedAt == nil { - break - } - - return e.complexity.IssueVariant.UpdatedAt(childComplexity), true - - case "IssueVariantConnection.edges": - if e.complexity.IssueVariantConnection.Edges == nil { - break - } - - return e.complexity.IssueVariantConnection.Edges(childComplexity), true - - case "IssueVariantConnection.pageInfo": - if e.complexity.IssueVariantConnection.PageInfo == nil { - break - } - - return e.complexity.IssueVariantConnection.PageInfo(childComplexity), true - - case "IssueVariantConnection.totalCount": - if e.complexity.IssueVariantConnection.TotalCount == nil { - break - } - - return e.complexity.IssueVariantConnection.TotalCount(childComplexity), true - - case "IssueVariantEdge.created_at": - if e.complexity.IssueVariantEdge.CreatedAt == nil { - break - } - - return e.complexity.IssueVariantEdge.CreatedAt(childComplexity), true - - case "IssueVariantEdge.cursor": - if e.complexity.IssueVariantEdge.Cursor == nil { - break - } - - return e.complexity.IssueVariantEdge.Cursor(childComplexity), true - - case "IssueVariantEdge.node": - if e.complexity.IssueVariantEdge.Node == nil { - break - } - - return e.complexity.IssueVariantEdge.Node(childComplexity), true - - case "IssueVariantEdge.updated_at": - if e.complexity.IssueVariantEdge.UpdatedAt == nil { - break - } - - return e.complexity.IssueVariantEdge.UpdatedAt(childComplexity), true - - case "Mutation.addComponentVersionToIssue": - if e.complexity.Mutation.AddComponentVersionToIssue == nil { - break - } - - args, err := ec.field_Mutation_addComponentVersionToIssue_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddComponentVersionToIssue(childComplexity, args["issueId"].(string), args["componentVersionId"].(string)), true - - case "Mutation.addEvidenceToIssueMatch": - if e.complexity.Mutation.AddEvidenceToIssueMatch == nil { - break - } - - args, err := ec.field_Mutation_addEvidenceToIssueMatch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddEvidenceToIssueMatch(childComplexity, args["issueMatchId"].(string), args["evidenceId"].(string)), true - - case "Mutation.addIssueRepositoryToService": - if e.complexity.Mutation.AddIssueRepositoryToService == nil { - break - } - - args, err := ec.field_Mutation_addIssueRepositoryToService_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddIssueRepositoryToService(childComplexity, args["serviceId"].(string), args["issueRepositoryId"].(string), args["priority"].(int)), true - - case "Mutation.addIssueToActivity": - if e.complexity.Mutation.AddIssueToActivity == nil { - break - } - - args, err := ec.field_Mutation_addIssueToActivity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddIssueToActivity(childComplexity, args["activityId"].(string), args["issueId"].(string)), true - - case "Mutation.addOwnerToService": - if e.complexity.Mutation.AddOwnerToService == nil { - break - } - - args, err := ec.field_Mutation_addOwnerToService_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddOwnerToService(childComplexity, args["serviceId"].(string), args["userId"].(string)), true - - case "Mutation.addServiceToActivity": - if e.complexity.Mutation.AddServiceToActivity == nil { - break - } - - args, err := ec.field_Mutation_addServiceToActivity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddServiceToActivity(childComplexity, args["activityId"].(string), args["serviceId"].(string)), true - - case "Mutation.addServiceToSupportGroup": - if e.complexity.Mutation.AddServiceToSupportGroup == nil { - break - } - - args, err := ec.field_Mutation_addServiceToSupportGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddServiceToSupportGroup(childComplexity, args["supportGroupId"].(string), args["serviceId"].(string)), true - - case "Mutation.addUserToSupportGroup": - if e.complexity.Mutation.AddUserToSupportGroup == nil { - break - } - - args, err := ec.field_Mutation_addUserToSupportGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.AddUserToSupportGroup(childComplexity, args["supportGroupId"].(string), args["userId"].(string)), true - - case "Mutation.createActivity": - if e.complexity.Mutation.CreateActivity == nil { - break - } - - args, err := ec.field_Mutation_createActivity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateActivity(childComplexity, args["input"].(model.ActivityInput)), true - - case "Mutation.createComponent": - if e.complexity.Mutation.CreateComponent == nil { - break - } - - args, err := ec.field_Mutation_createComponent_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateComponent(childComplexity, args["input"].(model.ComponentInput)), true - - case "Mutation.createComponentInstance": - if e.complexity.Mutation.CreateComponentInstance == nil { - break - } - - args, err := ec.field_Mutation_createComponentInstance_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateComponentInstance(childComplexity, args["input"].(model.ComponentInstanceInput)), true - - case "Mutation.createComponentVersion": - if e.complexity.Mutation.CreateComponentVersion == nil { - break - } - - args, err := ec.field_Mutation_createComponentVersion_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateComponentVersion(childComplexity, args["input"].(model.ComponentVersionInput)), true - - case "Mutation.createEvidence": - if e.complexity.Mutation.CreateEvidence == nil { - break - } - - args, err := ec.field_Mutation_createEvidence_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateEvidence(childComplexity, args["input"].(model.EvidenceInput)), true - - case "Mutation.createIssue": - if e.complexity.Mutation.CreateIssue == nil { - break - } - - args, err := ec.field_Mutation_createIssue_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateIssue(childComplexity, args["input"].(model.IssueInput)), true - - case "Mutation.createIssueMatch": - if e.complexity.Mutation.CreateIssueMatch == nil { - break - } - - args, err := ec.field_Mutation_createIssueMatch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateIssueMatch(childComplexity, args["input"].(model.IssueMatchInput)), true - - case "Mutation.createIssueMatchChange": - if e.complexity.Mutation.CreateIssueMatchChange == nil { - break - } - - args, err := ec.field_Mutation_createIssueMatchChange_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateIssueMatchChange(childComplexity, args["input"].(model.IssueMatchChangeInput)), true - - case "Mutation.createIssueRepository": - if e.complexity.Mutation.CreateIssueRepository == nil { - break - } - - args, err := ec.field_Mutation_createIssueRepository_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateIssueRepository(childComplexity, args["input"].(model.IssueRepositoryInput)), true - - case "Mutation.createIssueVariant": - if e.complexity.Mutation.CreateIssueVariant == nil { - break - } - - args, err := ec.field_Mutation_createIssueVariant_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateIssueVariant(childComplexity, args["input"].(model.IssueVariantInput)), true - - case "Mutation.createService": - if e.complexity.Mutation.CreateService == nil { - break - } - - args, err := ec.field_Mutation_createService_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateService(childComplexity, args["input"].(model.ServiceInput)), true - - case "Mutation.createSupportGroup": - if e.complexity.Mutation.CreateSupportGroup == nil { - break - } - - args, err := ec.field_Mutation_createSupportGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateSupportGroup(childComplexity, args["input"].(model.SupportGroupInput)), true - - case "Mutation.createUser": - if e.complexity.Mutation.CreateUser == nil { - break - } - - args, err := ec.field_Mutation_createUser_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateUser(childComplexity, args["input"].(model.UserInput)), true - - case "Mutation.deleteActivity": - if e.complexity.Mutation.DeleteActivity == nil { - break - } - - args, err := ec.field_Mutation_deleteActivity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteActivity(childComplexity, args["id"].(string)), true - - case "Mutation.deleteComponent": - if e.complexity.Mutation.DeleteComponent == nil { - break - } - - args, err := ec.field_Mutation_deleteComponent_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteComponent(childComplexity, args["id"].(string)), true - - case "Mutation.deleteComponentInstance": - if e.complexity.Mutation.DeleteComponentInstance == nil { - break - } - - args, err := ec.field_Mutation_deleteComponentInstance_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteComponentInstance(childComplexity, args["id"].(string)), true - - case "Mutation.deleteComponentVersion": - if e.complexity.Mutation.DeleteComponentVersion == nil { - break - } - - args, err := ec.field_Mutation_deleteComponentVersion_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteComponentVersion(childComplexity, args["id"].(string)), true - - case "Mutation.deleteEvidence": - if e.complexity.Mutation.DeleteEvidence == nil { - break - } - - args, err := ec.field_Mutation_deleteEvidence_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteEvidence(childComplexity, args["id"].(string)), true - - case "Mutation.deleteIssue": - if e.complexity.Mutation.DeleteIssue == nil { - break - } - - args, err := ec.field_Mutation_deleteIssue_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteIssue(childComplexity, args["id"].(string)), true - - case "Mutation.deleteIssueMatch": - if e.complexity.Mutation.DeleteIssueMatch == nil { - break - } - - args, err := ec.field_Mutation_deleteIssueMatch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteIssueMatch(childComplexity, args["id"].(string)), true - - case "Mutation.deleteIssueMatchChange": - if e.complexity.Mutation.DeleteIssueMatchChange == nil { - break - } - - args, err := ec.field_Mutation_deleteIssueMatchChange_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteIssueMatchChange(childComplexity, args["id"].(string)), true - - case "Mutation.deleteIssueRepository": - if e.complexity.Mutation.DeleteIssueRepository == nil { - break - } - - args, err := ec.field_Mutation_deleteIssueRepository_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteIssueRepository(childComplexity, args["id"].(string)), true - - case "Mutation.deleteIssueVariant": - if e.complexity.Mutation.DeleteIssueVariant == nil { - break - } - - args, err := ec.field_Mutation_deleteIssueVariant_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteIssueVariant(childComplexity, args["id"].(string)), true - - case "Mutation.deleteService": - if e.complexity.Mutation.DeleteService == nil { - break - } - - args, err := ec.field_Mutation_deleteService_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteService(childComplexity, args["id"].(string)), true - - case "Mutation.deleteSupportGroup": - if e.complexity.Mutation.DeleteSupportGroup == nil { - break - } - - args, err := ec.field_Mutation_deleteSupportGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteSupportGroup(childComplexity, args["id"].(string)), true - - case "Mutation.deleteUser": - if e.complexity.Mutation.DeleteUser == nil { - break - } - - args, err := ec.field_Mutation_deleteUser_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteUser(childComplexity, args["id"].(string)), true - - case "Mutation.removeComponentVersionFromIssue": - if e.complexity.Mutation.RemoveComponentVersionFromIssue == nil { - break - } - - args, err := ec.field_Mutation_removeComponentVersionFromIssue_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RemoveComponentVersionFromIssue(childComplexity, args["issueId"].(string), args["componentVersionId"].(string)), true - - case "Mutation.removeEvidenceFromIssueMatch": - if e.complexity.Mutation.RemoveEvidenceFromIssueMatch == nil { - break - } - - args, err := ec.field_Mutation_removeEvidenceFromIssueMatch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RemoveEvidenceFromIssueMatch(childComplexity, args["issueMatchId"].(string), args["evidenceId"].(string)), true - - case "Mutation.removeIssueFromActivity": - if e.complexity.Mutation.RemoveIssueFromActivity == nil { - break - } - - args, err := ec.field_Mutation_removeIssueFromActivity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RemoveIssueFromActivity(childComplexity, args["activityId"].(string), args["issueId"].(string)), true - - case "Mutation.removeIssueRepositoryFromService": - if e.complexity.Mutation.RemoveIssueRepositoryFromService == nil { - break - } - - args, err := ec.field_Mutation_removeIssueRepositoryFromService_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RemoveIssueRepositoryFromService(childComplexity, args["serviceId"].(string), args["issueRepositoryId"].(string)), true - - case "Mutation.removeOwnerFromService": - if e.complexity.Mutation.RemoveOwnerFromService == nil { - break - } - - args, err := ec.field_Mutation_removeOwnerFromService_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RemoveOwnerFromService(childComplexity, args["serviceId"].(string), args["userId"].(string)), true - - case "Mutation.removeServiceFromActivity": - if e.complexity.Mutation.RemoveServiceFromActivity == nil { - break - } - - args, err := ec.field_Mutation_removeServiceFromActivity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RemoveServiceFromActivity(childComplexity, args["activityId"].(string), args["serviceId"].(string)), true - - case "Mutation.removeServiceFromSupportGroup": - if e.complexity.Mutation.RemoveServiceFromSupportGroup == nil { - break - } - - args, err := ec.field_Mutation_removeServiceFromSupportGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RemoveServiceFromSupportGroup(childComplexity, args["supportGroupId"].(string), args["serviceId"].(string)), true - - case "Mutation.removeUserFromSupportGroup": - if e.complexity.Mutation.RemoveUserFromSupportGroup == nil { - break - } - - args, err := ec.field_Mutation_removeUserFromSupportGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.RemoveUserFromSupportGroup(childComplexity, args["supportGroupId"].(string), args["userId"].(string)), true - - case "Mutation.updateActivity": - if e.complexity.Mutation.UpdateActivity == nil { - break - } - - args, err := ec.field_Mutation_updateActivity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateActivity(childComplexity, args["id"].(string), args["input"].(model.ActivityInput)), true - - case "Mutation.updateComponent": - if e.complexity.Mutation.UpdateComponent == nil { - break - } - - args, err := ec.field_Mutation_updateComponent_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateComponent(childComplexity, args["id"].(string), args["input"].(model.ComponentInput)), true - - case "Mutation.updateComponentInstance": - if e.complexity.Mutation.UpdateComponentInstance == nil { - break - } - - args, err := ec.field_Mutation_updateComponentInstance_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateComponentInstance(childComplexity, args["id"].(string), args["input"].(model.ComponentInstanceInput)), true - - case "Mutation.updateComponentVersion": - if e.complexity.Mutation.UpdateComponentVersion == nil { - break - } - - args, err := ec.field_Mutation_updateComponentVersion_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateComponentVersion(childComplexity, args["id"].(string), args["input"].(model.ComponentVersionInput)), true - - case "Mutation.updateEvidence": - if e.complexity.Mutation.UpdateEvidence == nil { - break - } - - args, err := ec.field_Mutation_updateEvidence_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateEvidence(childComplexity, args["id"].(string), args["input"].(model.EvidenceInput)), true - - case "Mutation.updateIssue": - if e.complexity.Mutation.UpdateIssue == nil { - break - } - - args, err := ec.field_Mutation_updateIssue_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateIssue(childComplexity, args["id"].(string), args["input"].(model.IssueInput)), true - - case "Mutation.updateIssueMatch": - if e.complexity.Mutation.UpdateIssueMatch == nil { - break - } - - args, err := ec.field_Mutation_updateIssueMatch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateIssueMatch(childComplexity, args["id"].(string), args["input"].(model.IssueMatchInput)), true - - case "Mutation.updateIssueMatchChange": - if e.complexity.Mutation.UpdateIssueMatchChange == nil { - break - } - - args, err := ec.field_Mutation_updateIssueMatchChange_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateIssueMatchChange(childComplexity, args["id"].(string), args["input"].(model.IssueMatchChangeInput)), true - - case "Mutation.updateIssueRepository": - if e.complexity.Mutation.UpdateIssueRepository == nil { - break - } - - args, err := ec.field_Mutation_updateIssueRepository_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateIssueRepository(childComplexity, args["id"].(string), args["input"].(model.IssueRepositoryInput)), true - - case "Mutation.updateIssueVariant": - if e.complexity.Mutation.UpdateIssueVariant == nil { - break - } - - args, err := ec.field_Mutation_updateIssueVariant_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateIssueVariant(childComplexity, args["id"].(string), args["input"].(model.IssueVariantInput)), true - - case "Mutation.updateService": - if e.complexity.Mutation.UpdateService == nil { - break - } - - args, err := ec.field_Mutation_updateService_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateService(childComplexity, args["id"].(string), args["input"].(model.ServiceInput)), true - - case "Mutation.updateSupportGroup": - if e.complexity.Mutation.UpdateSupportGroup == nil { - break - } - - args, err := ec.field_Mutation_updateSupportGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateSupportGroup(childComplexity, args["id"].(string), args["input"].(model.SupportGroupInput)), true - - case "Mutation.updateUser": - if e.complexity.Mutation.UpdateUser == nil { - break - } - - args, err := ec.field_Mutation_updateUser_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateUser(childComplexity, args["id"].(string), args["input"].(model.UserInput)), true - - case "Page.after": - if e.complexity.Page.After == nil { - break - } - - return e.complexity.Page.After(childComplexity), true - - case "Page.isCurrent": - if e.complexity.Page.IsCurrent == nil { - break - } - - return e.complexity.Page.IsCurrent(childComplexity), true - - case "Page.pageCount": - if e.complexity.Page.PageCount == nil { - break - } - - return e.complexity.Page.PageCount(childComplexity), true - - case "Page.pageNumber": - if e.complexity.Page.PageNumber == nil { - break - } - - return e.complexity.Page.PageNumber(childComplexity), true - - case "PageInfo.hasNextPage": - if e.complexity.PageInfo.HasNextPage == nil { - break - } - - return e.complexity.PageInfo.HasNextPage(childComplexity), true - - case "PageInfo.hasPreviousPage": - if e.complexity.PageInfo.HasPreviousPage == nil { - break - } - - return e.complexity.PageInfo.HasPreviousPage(childComplexity), true - - case "PageInfo.isValidPage": - if e.complexity.PageInfo.IsValidPage == nil { - break - } - - return e.complexity.PageInfo.IsValidPage(childComplexity), true - - case "PageInfo.nextPageAfter": - if e.complexity.PageInfo.NextPageAfter == nil { - break - } - - return e.complexity.PageInfo.NextPageAfter(childComplexity), true - - case "PageInfo.pageNumber": - if e.complexity.PageInfo.PageNumber == nil { - break - } - - return e.complexity.PageInfo.PageNumber(childComplexity), true - - case "PageInfo.pages": - if e.complexity.PageInfo.Pages == nil { - break - } - - return e.complexity.PageInfo.Pages(childComplexity), true - - case "Query.Activities": - if e.complexity.Query.Activities == nil { - break - } - - args, err := ec.field_Query_Activities_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Activities(childComplexity, args["filter"].(*model.ActivityFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.ComponentFilterValues": - if e.complexity.Query.ComponentFilterValues == nil { - break - } - - return e.complexity.Query.ComponentFilterValues(childComplexity), true - - case "Query.ComponentInstanceFilterValues": - if e.complexity.Query.ComponentInstanceFilterValues == nil { - break - } - - return e.complexity.Query.ComponentInstanceFilterValues(childComplexity), true - - case "Query.ComponentInstances": - if e.complexity.Query.ComponentInstances == nil { - break - } - - args, err := ec.field_Query_ComponentInstances_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ComponentInstances(childComplexity, args["filter"].(*model.ComponentInstanceFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.ComponentVersions": - if e.complexity.Query.ComponentVersions == nil { - break - } - - args, err := ec.field_Query_ComponentVersions_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ComponentVersions(childComplexity, args["filter"].(*model.ComponentVersionFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.Components": - if e.complexity.Query.Components == nil { - break - } - - args, err := ec.field_Query_Components_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Components(childComplexity, args["filter"].(*model.ComponentFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.Evidences": - if e.complexity.Query.Evidences == nil { - break - } - - args, err := ec.field_Query_Evidences_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Evidences(childComplexity, args["filter"].(*model.EvidenceFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.IssueMatchChanges": - if e.complexity.Query.IssueMatchChanges == nil { - break - } - - args, err := ec.field_Query_IssueMatchChanges_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.IssueMatchChanges(childComplexity, args["filter"].(*model.IssueMatchChangeFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.IssueMatchFilterValues": - if e.complexity.Query.IssueMatchFilterValues == nil { - break - } - - return e.complexity.Query.IssueMatchFilterValues(childComplexity), true - - case "Query.IssueMatches": - if e.complexity.Query.IssueMatches == nil { - break - } - - args, err := ec.field_Query_IssueMatches_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.IssueMatches(childComplexity, args["filter"].(*model.IssueMatchFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.IssueRepositories": - if e.complexity.Query.IssueRepositories == nil { - break - } - - args, err := ec.field_Query_IssueRepositories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.IssueRepositories(childComplexity, args["filter"].(*model.IssueRepositoryFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.IssueVariants": - if e.complexity.Query.IssueVariants == nil { - break - } - - args, err := ec.field_Query_IssueVariants_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.IssueVariants(childComplexity, args["filter"].(*model.IssueVariantFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.Issues": - if e.complexity.Query.Issues == nil { - break - } - - args, err := ec.field_Query_Issues_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Issues(childComplexity, args["filter"].(*model.IssueFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.ServiceFilterValues": - if e.complexity.Query.ServiceFilterValues == nil { - break - } - - return e.complexity.Query.ServiceFilterValues(childComplexity), true - - case "Query.Services": - if e.complexity.Query.Services == nil { - break - } - - args, err := ec.field_Query_Services_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Services(childComplexity, args["filter"].(*model.ServiceFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.SupportGroups": - if e.complexity.Query.SupportGroups == nil { - break - } - - args, err := ec.field_Query_SupportGroups_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.SupportGroups(childComplexity, args["filter"].(*model.SupportGroupFilter), args["first"].(*int), args["after"].(*string)), true - - case "Query.Users": - if e.complexity.Query.Users == nil { - break - } - - args, err := ec.field_Query_Users_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Users(childComplexity, args["filter"].(*model.UserFilter), args["first"].(*int), args["after"].(*string)), true - - case "Service.activities": - if e.complexity.Service.Activities == nil { - break - } - - args, err := ec.field_Service_activities_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Service.Activities(childComplexity, args["filter"].(*model.ActivityFilter), args["first"].(*int), args["after"].(*string)), true - - case "Service.componentInstances": - if e.complexity.Service.ComponentInstances == nil { - break - } - - args, err := ec.field_Service_componentInstances_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Service.ComponentInstances(childComplexity, args["filter"].(*model.ComponentInstanceFilter), args["first"].(*int), args["after"].(*string)), true - - case "Service.id": - if e.complexity.Service.ID == nil { - break - } - - return e.complexity.Service.ID(childComplexity), true - - case "Service.issueRepositories": - if e.complexity.Service.IssueRepositories == nil { - break - } - - args, err := ec.field_Service_issueRepositories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Service.IssueRepositories(childComplexity, args["filter"].(*model.IssueRepositoryFilter), args["first"].(*int), args["after"].(*string)), true - - case "Service.metadata": - if e.complexity.Service.Metadata == nil { - break - } - - return e.complexity.Service.Metadata(childComplexity), true - - case "Service.name": - if e.complexity.Service.Name == nil { - break - } - - return e.complexity.Service.Name(childComplexity), true - - case "Service.owners": - if e.complexity.Service.Owners == nil { - break - } - - args, err := ec.field_Service_owners_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Service.Owners(childComplexity, args["filter"].(*model.UserFilter), args["first"].(*int), args["after"].(*string)), true - - case "Service.supportGroups": - if e.complexity.Service.SupportGroups == nil { - break - } - - args, err := ec.field_Service_supportGroups_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Service.SupportGroups(childComplexity, args["filter"].(*model.SupportGroupFilter), args["first"].(*int), args["after"].(*string)), true - - case "ServiceConnection.edges": - if e.complexity.ServiceConnection.Edges == nil { - break - } - - return e.complexity.ServiceConnection.Edges(childComplexity), true - - case "ServiceConnection.pageInfo": - if e.complexity.ServiceConnection.PageInfo == nil { - break - } - - return e.complexity.ServiceConnection.PageInfo(childComplexity), true - - case "ServiceConnection.totalCount": - if e.complexity.ServiceConnection.TotalCount == nil { - break - } - - return e.complexity.ServiceConnection.TotalCount(childComplexity), true - - case "ServiceEdge.cursor": - if e.complexity.ServiceEdge.Cursor == nil { - break - } - - return e.complexity.ServiceEdge.Cursor(childComplexity), true - - case "ServiceEdge.node": - if e.complexity.ServiceEdge.Node == nil { - break - } - - return e.complexity.ServiceEdge.Node(childComplexity), true - - case "ServiceEdge.priority": - if e.complexity.ServiceEdge.Priority == nil { - break - } - - return e.complexity.ServiceEdge.Priority(childComplexity), true - - case "ServiceFilterValue.serviceName": - if e.complexity.ServiceFilterValue.ServiceName == nil { - break - } - - args, err := ec.field_ServiceFilterValue_serviceName_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ServiceFilterValue.ServiceName(childComplexity, args["filter"].(*model.ServiceFilter)), true - - case "ServiceFilterValue.supportGroupName": - if e.complexity.ServiceFilterValue.SupportGroupName == nil { - break - } - - args, err := ec.field_ServiceFilterValue_supportGroupName_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ServiceFilterValue.SupportGroupName(childComplexity, args["filter"].(*model.SupportGroupFilter)), true - - case "ServiceFilterValue.uniqueUserId": - if e.complexity.ServiceFilterValue.UniqueUserID == nil { - break - } - - args, err := ec.field_ServiceFilterValue_uniqueUserId_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ServiceFilterValue.UniqueUserID(childComplexity, args["filter"].(*model.UserFilter)), true - - case "ServiceFilterValue.userName": - if e.complexity.ServiceFilterValue.UserName == nil { - break - } - - args, err := ec.field_ServiceFilterValue_userName_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.ServiceFilterValue.UserName(childComplexity, args["filter"].(*model.UserFilter)), true - - case "ServiceMetadata.componentInstanceCount": - if e.complexity.ServiceMetadata.ComponentInstanceCount == nil { - break - } - - return e.complexity.ServiceMetadata.ComponentInstanceCount(childComplexity), true - - case "ServiceMetadata.issueMatchCount": - if e.complexity.ServiceMetadata.IssueMatchCount == nil { - break - } - - return e.complexity.ServiceMetadata.IssueMatchCount(childComplexity), true - - case "Severity.cvss": - if e.complexity.Severity.Cvss == nil { - break - } - - return e.complexity.Severity.Cvss(childComplexity), true - - case "Severity.score": - if e.complexity.Severity.Score == nil { - break - } - - return e.complexity.Severity.Score(childComplexity), true - - case "Severity.value": - if e.complexity.Severity.Value == nil { - break - } - - return e.complexity.Severity.Value(childComplexity), true - - case "SupportGroup.id": - if e.complexity.SupportGroup.ID == nil { - break - } - - return e.complexity.SupportGroup.ID(childComplexity), true - - case "SupportGroup.name": - if e.complexity.SupportGroup.Name == nil { - break - } - - return e.complexity.SupportGroup.Name(childComplexity), true - - case "SupportGroup.services": - if e.complexity.SupportGroup.Services == nil { - break - } - - args, err := ec.field_SupportGroup_services_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.SupportGroup.Services(childComplexity, args["filter"].(*model.ServiceFilter), args["first"].(*int), args["after"].(*string)), true - - case "SupportGroup.users": - if e.complexity.SupportGroup.Users == nil { - break - } - - args, err := ec.field_SupportGroup_users_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.SupportGroup.Users(childComplexity, args["filter"].(*model.UserFilter), args["first"].(*int), args["after"].(*string)), true - - case "SupportGroupConnection.edges": - if e.complexity.SupportGroupConnection.Edges == nil { - break - } - - return e.complexity.SupportGroupConnection.Edges(childComplexity), true - - case "SupportGroupConnection.pageInfo": - if e.complexity.SupportGroupConnection.PageInfo == nil { - break - } - - return e.complexity.SupportGroupConnection.PageInfo(childComplexity), true - - case "SupportGroupConnection.totalCount": - if e.complexity.SupportGroupConnection.TotalCount == nil { - break - } - - return e.complexity.SupportGroupConnection.TotalCount(childComplexity), true - - case "SupportGroupEdge.cursor": - if e.complexity.SupportGroupEdge.Cursor == nil { - break - } - - return e.complexity.SupportGroupEdge.Cursor(childComplexity), true - - case "SupportGroupEdge.node": - if e.complexity.SupportGroupEdge.Node == nil { - break - } - - return e.complexity.SupportGroupEdge.Node(childComplexity), true - - case "User.id": - if e.complexity.User.ID == nil { - break - } - - return e.complexity.User.ID(childComplexity), true - - case "User.name": - if e.complexity.User.Name == nil { - break - } - - return e.complexity.User.Name(childComplexity), true - - case "User.services": - if e.complexity.User.Services == nil { - break - } - - args, err := ec.field_User_services_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.User.Services(childComplexity, args["filter"].(*model.ServiceFilter), args["first"].(*int), args["after"].(*string)), true - - case "User.supportGroups": - if e.complexity.User.SupportGroups == nil { - break - } - - args, err := ec.field_User_supportGroups_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.User.SupportGroups(childComplexity, args["filter"].(*model.SupportGroupFilter), args["first"].(*int), args["after"].(*string)), true - - case "User.type": - if e.complexity.User.Type == nil { - break - } - - return e.complexity.User.Type(childComplexity), true - - case "User.uniqueUserId": - if e.complexity.User.UniqueUserID == nil { - break - } - - return e.complexity.User.UniqueUserID(childComplexity), true - - case "UserConnection.edges": - if e.complexity.UserConnection.Edges == nil { - break - } - - return e.complexity.UserConnection.Edges(childComplexity), true - - case "UserConnection.pageInfo": - if e.complexity.UserConnection.PageInfo == nil { - break - } - - return e.complexity.UserConnection.PageInfo(childComplexity), true - - case "UserConnection.totalCount": - if e.complexity.UserConnection.TotalCount == nil { - break - } - - return e.complexity.UserConnection.TotalCount(childComplexity), true - - case "UserEdge.cursor": - if e.complexity.UserEdge.Cursor == nil { - break - } - - return e.complexity.UserEdge.Cursor(childComplexity), true - - case "UserEdge.node": - if e.complexity.UserEdge.Node == nil { - break - } - - return e.complexity.UserEdge.Node(childComplexity), true - - } - return 0, false -} - -func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} - inputUnmarshalMap := graphql.BuildUnmarshalerMap( - ec.unmarshalInputActivityFilter, - ec.unmarshalInputActivityInput, - ec.unmarshalInputComponentFilter, - ec.unmarshalInputComponentInput, - ec.unmarshalInputComponentInstanceFilter, - ec.unmarshalInputComponentInstanceInput, - ec.unmarshalInputComponentVersionFilter, - ec.unmarshalInputComponentVersionInput, - ec.unmarshalInputDateTimeFilter, - ec.unmarshalInputEvidenceFilter, - ec.unmarshalInputEvidenceInput, - ec.unmarshalInputIssueFilter, - ec.unmarshalInputIssueInput, - ec.unmarshalInputIssueMatchChangeFilter, - ec.unmarshalInputIssueMatchChangeInput, - ec.unmarshalInputIssueMatchFilter, - ec.unmarshalInputIssueMatchInput, - ec.unmarshalInputIssueRepositoryFilter, - ec.unmarshalInputIssueRepositoryInput, - ec.unmarshalInputIssueVariantFilter, - ec.unmarshalInputIssueVariantInput, - ec.unmarshalInputServiceFilter, - ec.unmarshalInputServiceInput, - ec.unmarshalInputSeverityInput, - ec.unmarshalInputSupportGroupFilter, - ec.unmarshalInputSupportGroupInput, - ec.unmarshalInputUserFilter, - ec.unmarshalInputUserInput, - ) - first := true - - switch rc.Operation.Operation { - case ast.Query: - return func(ctx context.Context) *graphql.Response { - var response graphql.Response - var data graphql.Marshaler - if first { - first = false - ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._Query(ctx, rc.Operation.SelectionSet) - } else { - if atomic.LoadInt32(&ec.pendingDeferred) > 0 { - result := <-ec.deferredResults - atomic.AddInt32(&ec.pendingDeferred, -1) - data = result.Result - response.Path = result.Path - response.Label = result.Label - response.Errors = result.Errors - } else { - return nil - } - } - var buf bytes.Buffer - data.MarshalGQL(&buf) - response.Data = buf.Bytes() - if atomic.LoadInt32(&ec.deferred) > 0 { - hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 - response.HasNext = &hasNext - } - - return &response - } - case ast.Mutation: - return func(ctx context.Context) *graphql.Response { - if !first { - return nil - } - first = false - ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data := ec._Mutation(ctx, rc.Operation.SelectionSet) - var buf bytes.Buffer - data.MarshalGQL(&buf) - - return &graphql.Response{ - Data: buf.Bytes(), - } - } - - default: - return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) - } -} - -type executionContext struct { - *graphql.OperationContext - *executableSchema - deferred int32 - pendingDeferred int32 - deferredResults chan graphql.DeferredResult -} - -func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { - atomic.AddInt32(&ec.pendingDeferred, 1) - go func() { - ctx := graphql.WithFreshResponseContext(dg.Context) - dg.FieldSet.Dispatch(ctx) - ds := graphql.DeferredResult{ - Path: dg.Path, - Label: dg.Label, - Result: dg.FieldSet, - Errors: graphql.GetErrors(ctx), - } - // null fields should bubble up - if dg.FieldSet.Invalids > 0 { - ds.Result = graphql.Null - } - ec.deferredResults <- ds - }() -} - -func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { - if ec.DisableIntrospection { - return nil, errors.New("introspection disabled") - } - return introspection.WrapSchema(ec.Schema()), nil -} - -func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { - if ec.DisableIntrospection { - return nil, errors.New("introspection disabled") - } - return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil -} - -//go:embed "schema/activity.graphqls" "schema/common.graphqls" "schema/component.graphqls" "schema/component_filter.graphqls" "schema/component_instance.graphqls" "schema/component_instance_filter.graphqls" "schema/component_version.graphqls" "schema/evidence.graphqls" "schema/issue.graphqls" "schema/issue_match.graphqls" "schema/issue_match_change.graphqls" "schema/issue_match_filter_value.graphqls" "schema/issue_repository.graphqls" "schema/issue_variant.graphqls" "schema/mutation.graphqls" "schema/query.graphqls" "schema/service.graphqls" "schema/service_filter.graphqls" "schema/support_group.graphqls" "schema/user.graphqls" -var sourcesFS embed.FS - -func sourceData(filename string) string { - data, err := sourcesFS.ReadFile(filename) - if err != nil { - panic(fmt.Sprintf("codegen problem: %s not available", filename)) - } - return string(data) -} - -var sources = []*ast.Source{ - {Name: "schema/activity.graphqls", Input: sourceData("schema/activity.graphqls"), BuiltIn: false}, - {Name: "schema/common.graphqls", Input: sourceData("schema/common.graphqls"), BuiltIn: false}, - {Name: "schema/component.graphqls", Input: sourceData("schema/component.graphqls"), BuiltIn: false}, - {Name: "schema/component_filter.graphqls", Input: sourceData("schema/component_filter.graphqls"), BuiltIn: false}, - {Name: "schema/component_instance.graphqls", Input: sourceData("schema/component_instance.graphqls"), BuiltIn: false}, - {Name: "schema/component_instance_filter.graphqls", Input: sourceData("schema/component_instance_filter.graphqls"), BuiltIn: false}, - {Name: "schema/component_version.graphqls", Input: sourceData("schema/component_version.graphqls"), BuiltIn: false}, - {Name: "schema/evidence.graphqls", Input: sourceData("schema/evidence.graphqls"), BuiltIn: false}, - {Name: "schema/issue.graphqls", Input: sourceData("schema/issue.graphqls"), BuiltIn: false}, - {Name: "schema/issue_match.graphqls", Input: sourceData("schema/issue_match.graphqls"), BuiltIn: false}, - {Name: "schema/issue_match_change.graphqls", Input: sourceData("schema/issue_match_change.graphqls"), BuiltIn: false}, - {Name: "schema/issue_match_filter_value.graphqls", Input: sourceData("schema/issue_match_filter_value.graphqls"), BuiltIn: false}, - {Name: "schema/issue_repository.graphqls", Input: sourceData("schema/issue_repository.graphqls"), BuiltIn: false}, - {Name: "schema/issue_variant.graphqls", Input: sourceData("schema/issue_variant.graphqls"), BuiltIn: false}, - {Name: "schema/mutation.graphqls", Input: sourceData("schema/mutation.graphqls"), BuiltIn: false}, - {Name: "schema/query.graphqls", Input: sourceData("schema/query.graphqls"), BuiltIn: false}, - {Name: "schema/service.graphqls", Input: sourceData("schema/service.graphqls"), BuiltIn: false}, - {Name: "schema/service_filter.graphqls", Input: sourceData("schema/service_filter.graphqls"), BuiltIn: false}, - {Name: "schema/support_group.graphqls", Input: sourceData("schema/support_group.graphqls"), BuiltIn: false}, - {Name: "schema/user.graphqls", Input: sourceData("schema/user.graphqls"), BuiltIn: false}, -} -var parsedSchema = gqlparser.MustLoadSchema(sources...) - -// endregion ************************** generated!.gotpl ************************** - -// region ***************************** args.gotpl ***************************** - -func (ec *executionContext) field_Activity_evidences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Activity_evidences_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Activity_evidences_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Activity_evidences_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Activity_evidences_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.EvidenceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.EvidenceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx, tmp) - } - - var zeroVal *model.EvidenceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_evidences_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_evidences_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_issueMatchChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Activity_issueMatchChanges_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Activity_issueMatchChanges_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Activity_issueMatchChanges_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Activity_issueMatchChanges_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueMatchChangeFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueMatchChangeFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx, tmp) - } - - var zeroVal *model.IssueMatchChangeFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_issueMatchChanges_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_issueMatchChanges_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_issues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Activity_issues_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Activity_issues_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Activity_issues_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Activity_issues_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx, tmp) - } - - var zeroVal *model.IssueFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_issues_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_issues_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Activity_services_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Activity_services_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Activity_services_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Activity_services_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ServiceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ServiceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - } - - var zeroVal *model.ServiceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_services_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Activity_services_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentFilterValue_componentName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ComponentFilterValue_componentName_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_ComponentFilterValue_componentName_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ComponentFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ComponentFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOComponentFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilter(ctx, tmp) - } - - var zeroVal *model.ComponentFilter - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentInstanceFilterValue_ccrn_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ComponentInstanceFilterValue_ccrn_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_ComponentInstanceFilterValue_ccrn_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ComponentInstanceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ComponentInstanceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOComponentInstanceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilter(ctx, tmp) - } - - var zeroVal *model.ComponentInstanceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentInstanceFilterValue_serviceName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ComponentInstanceFilterValue_serviceName_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_ComponentInstanceFilterValue_serviceName_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ServiceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ServiceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - } - - var zeroVal *model.ServiceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentInstanceFilterValue_supportGroupName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ComponentInstanceFilterValue_supportGroupName_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_ComponentInstanceFilterValue_supportGroupName_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.SupportGroupFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.SupportGroupFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - } - - var zeroVal *model.SupportGroupFilter - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentInstance_issueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ComponentInstance_issueMatches_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_ComponentInstance_issueMatches_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_ComponentInstance_issueMatches_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_ComponentInstance_issueMatches_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueMatchFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueMatchFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) - } - - var zeroVal *model.IssueMatchFilter - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentInstance_issueMatches_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentInstance_issueMatches_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentVersion_componentInstances_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ComponentVersion_componentInstances_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := ec.field_ComponentVersion_componentInstances_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg1 - return args, nil -} -func (ec *executionContext) field_ComponentVersion_componentInstances_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentVersion_componentInstances_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentVersion_issues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ComponentVersion_issues_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := ec.field_ComponentVersion_issues_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg1 - return args, nil -} -func (ec *executionContext) field_ComponentVersion_issues_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_ComponentVersion_issues_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Component_componentVersions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Component_componentVersions_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Component_componentVersions_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Component_componentVersions_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Component_componentVersions_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ComponentVersionFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ComponentVersionFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx, tmp) - } - - var zeroVal *model.ComponentVersionFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Component_componentVersions_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Component_componentVersions_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Evidence_issueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Evidence_issueMatches_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Evidence_issueMatches_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Evidence_issueMatches_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Evidence_issueMatches_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueMatchFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueMatchFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) - } - - var zeroVal *model.IssueMatchFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Evidence_issueMatches_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Evidence_issueMatches_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatchFilterValue_affectedService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_IssueMatchFilterValue_affectedService_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_IssueMatchFilterValue_affectedService_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ServiceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ServiceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - } - - var zeroVal *model.ServiceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatchFilterValue_componentName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_IssueMatchFilterValue_componentName_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_IssueMatchFilterValue_componentName_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ComponentFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ComponentFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOComponentFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilter(ctx, tmp) - } - - var zeroVal *model.ComponentFilter - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatchFilterValue_primaryName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_IssueMatchFilterValue_primaryName_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_IssueMatchFilterValue_primaryName_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx, tmp) - } - - var zeroVal *model.IssueFilter - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatchFilterValue_supportGroupName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_IssueMatchFilterValue_supportGroupName_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_IssueMatchFilterValue_supportGroupName_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.SupportGroupFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.SupportGroupFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - } - - var zeroVal *model.SupportGroupFilter - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatch_effectiveIssueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_IssueMatch_effectiveIssueVariants_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_IssueMatch_effectiveIssueVariants_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_IssueMatch_effectiveIssueVariants_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_IssueMatch_effectiveIssueVariants_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueVariantFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueVariantFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) - } - - var zeroVal *model.IssueVariantFilter - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatch_effectiveIssueVariants_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatch_effectiveIssueVariants_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatch_evidences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_IssueMatch_evidences_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_IssueMatch_evidences_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_IssueMatch_evidences_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_IssueMatch_evidences_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.EvidenceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.EvidenceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx, tmp) - } - - var zeroVal *model.EvidenceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatch_evidences_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatch_evidences_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatch_issueMatchChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_IssueMatch_issueMatchChanges_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_IssueMatch_issueMatchChanges_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_IssueMatch_issueMatchChanges_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_IssueMatch_issueMatchChanges_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueMatchChangeFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueMatchChangeFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx, tmp) - } - - var zeroVal *model.IssueMatchChangeFilter - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatch_issueMatchChanges_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_IssueMatch_issueMatchChanges_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_IssueRepository_issueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_IssueRepository_issueVariants_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_IssueRepository_issueVariants_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_IssueRepository_issueVariants_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_IssueRepository_issueVariants_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueVariantFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueVariantFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) - } - - var zeroVal *model.IssueVariantFilter - return zeroVal, nil -} - -func (ec *executionContext) field_IssueRepository_issueVariants_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_IssueRepository_issueVariants_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_IssueRepository_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_IssueRepository_services_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_IssueRepository_services_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_IssueRepository_services_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_IssueRepository_services_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ServiceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ServiceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - } - - var zeroVal *model.ServiceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_IssueRepository_services_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_IssueRepository_services_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_activities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Issue_activities_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Issue_activities_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Issue_activities_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Issue_activities_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ActivityFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ActivityFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx, tmp) - } - - var zeroVal *model.ActivityFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_activities_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_activities_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_componentVersions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Issue_componentVersions_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Issue_componentVersions_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Issue_componentVersions_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Issue_componentVersions_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ComponentVersionFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ComponentVersionFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx, tmp) - } - - var zeroVal *model.ComponentVersionFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_componentVersions_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_componentVersions_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_issueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Issue_issueMatches_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Issue_issueMatches_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Issue_issueMatches_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Issue_issueMatches_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueMatchFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueMatchFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) - } - - var zeroVal *model.IssueMatchFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_issueMatches_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_issueMatches_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_issueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Issue_issueVariants_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Issue_issueVariants_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Issue_issueVariants_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Issue_issueVariants_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueVariantFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueVariantFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) - } - - var zeroVal *model.IssueVariantFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_issueVariants_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Issue_issueVariants_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addComponentVersionToIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_addComponentVersionToIssue_argsIssueID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["issueId"] = arg0 - arg1, err := ec.field_Mutation_addComponentVersionToIssue_argsComponentVersionID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["componentVersionId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_addComponentVersionToIssue_argsIssueID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["issueId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - if tmp, ok := rawArgs["issueId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addComponentVersionToIssue_argsComponentVersionID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["componentVersionId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("componentVersionId")) - if tmp, ok := rawArgs["componentVersionId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addEvidenceToIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_addEvidenceToIssueMatch_argsIssueMatchID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["issueMatchId"] = arg0 - arg1, err := ec.field_Mutation_addEvidenceToIssueMatch_argsEvidenceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["evidenceId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_addEvidenceToIssueMatch_argsIssueMatchID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["issueMatchId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueMatchId")) - if tmp, ok := rawArgs["issueMatchId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addEvidenceToIssueMatch_argsEvidenceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["evidenceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceId")) - if tmp, ok := rawArgs["evidenceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addIssueRepositoryToService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_addIssueRepositoryToService_argsServiceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["serviceId"] = arg0 - arg1, err := ec.field_Mutation_addIssueRepositoryToService_argsIssueRepositoryID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["issueRepositoryId"] = arg1 - arg2, err := ec.field_Mutation_addIssueRepositoryToService_argsPriority(ctx, rawArgs) - if err != nil { - return nil, err - } - args["priority"] = arg2 - return args, nil -} -func (ec *executionContext) field_Mutation_addIssueRepositoryToService_argsServiceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["serviceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - if tmp, ok := rawArgs["serviceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addIssueRepositoryToService_argsIssueRepositoryID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["issueRepositoryId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueRepositoryId")) - if tmp, ok := rawArgs["issueRepositoryId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addIssueRepositoryToService_argsPriority( - ctx context.Context, - rawArgs map[string]interface{}, -) (int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["priority"] - if !ok { - var zeroVal int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("priority")) - if tmp, ok := rawArgs["priority"]; ok { - return ec.unmarshalNInt2int(ctx, tmp) - } - - var zeroVal int - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addIssueToActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_addIssueToActivity_argsActivityID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["activityId"] = arg0 - arg1, err := ec.field_Mutation_addIssueToActivity_argsIssueID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["issueId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_addIssueToActivity_argsActivityID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["activityId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - if tmp, ok := rawArgs["activityId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addIssueToActivity_argsIssueID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["issueId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - if tmp, ok := rawArgs["issueId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addOwnerToService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_addOwnerToService_argsServiceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["serviceId"] = arg0 - arg1, err := ec.field_Mutation_addOwnerToService_argsUserID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["userId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_addOwnerToService_argsServiceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["serviceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - if tmp, ok := rawArgs["serviceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addOwnerToService_argsUserID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["userId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) - if tmp, ok := rawArgs["userId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addServiceToActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_addServiceToActivity_argsActivityID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["activityId"] = arg0 - arg1, err := ec.field_Mutation_addServiceToActivity_argsServiceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["serviceId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_addServiceToActivity_argsActivityID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["activityId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - if tmp, ok := rawArgs["activityId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addServiceToActivity_argsServiceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["serviceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - if tmp, ok := rawArgs["serviceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addServiceToSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_addServiceToSupportGroup_argsSupportGroupID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["supportGroupId"] = arg0 - arg1, err := ec.field_Mutation_addServiceToSupportGroup_argsServiceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["serviceId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_addServiceToSupportGroup_argsSupportGroupID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["supportGroupId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) - if tmp, ok := rawArgs["supportGroupId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addServiceToSupportGroup_argsServiceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["serviceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - if tmp, ok := rawArgs["serviceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addUserToSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_addUserToSupportGroup_argsSupportGroupID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["supportGroupId"] = arg0 - arg1, err := ec.field_Mutation_addUserToSupportGroup_argsUserID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["userId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_addUserToSupportGroup_argsSupportGroupID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["supportGroupId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) - if tmp, ok := rawArgs["supportGroupId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_addUserToSupportGroup_argsUserID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["userId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) - if tmp, ok := rawArgs["userId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createActivity_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createActivity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ActivityInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ActivityInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNActivityInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityInput(ctx, tmp) - } - - var zeroVal model.ActivityInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createComponentInstance_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createComponentInstance_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createComponentInstance_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ComponentInstanceInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ComponentInstanceInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNComponentInstanceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceInput(ctx, tmp) - } - - var zeroVal model.ComponentInstanceInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createComponentVersion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createComponentVersion_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createComponentVersion_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ComponentVersionInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ComponentVersionInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNComponentVersionInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionInput(ctx, tmp) - } - - var zeroVal model.ComponentVersionInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createComponent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createComponent_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createComponent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ComponentInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ComponentInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNComponentInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInput(ctx, tmp) - } - - var zeroVal model.ComponentInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createEvidence_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEvidence_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createEvidence_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.EvidenceInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.EvidenceInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNEvidenceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceInput(ctx, tmp) - } - - var zeroVal model.EvidenceInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createIssueMatchChange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createIssueMatchChange_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createIssueMatchChange_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueMatchChangeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueMatchChangeInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueMatchChangeInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeInput(ctx, tmp) - } - - var zeroVal model.IssueMatchChangeInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createIssueMatch_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createIssueMatch_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueMatchInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueMatchInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueMatchInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchInput(ctx, tmp) - } - - var zeroVal model.IssueMatchInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createIssueRepository_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createIssueRepository_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createIssueRepository_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueRepositoryInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueRepositoryInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueRepositoryInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryInput(ctx, tmp) - } - - var zeroVal model.IssueRepositoryInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createIssueVariant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createIssueVariant_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createIssueVariant_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueVariantInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueVariantInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueVariantInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantInput(ctx, tmp) - } - - var zeroVal model.IssueVariantInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createIssue_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createIssue_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueInput(ctx, tmp) - } - - var zeroVal model.IssueInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createService_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createService_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ServiceInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ServiceInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNServiceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceInput(ctx, tmp) - } - - var zeroVal model.ServiceInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createSupportGroup_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createSupportGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.SupportGroupInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.SupportGroupInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNSupportGroupInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupInput(ctx, tmp) - } - - var zeroVal model.SupportGroupInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createUser_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createUser_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.UserInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.UserInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUserInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserInput(ctx, tmp) - } - - var zeroVal model.UserInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteActivity_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteActivity_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteComponentInstance_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteComponentInstance_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteComponentInstance_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteComponentVersion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteComponentVersion_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteComponentVersion_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteComponent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteComponent_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteComponent_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteEvidence_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEvidence_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteEvidence_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteIssueMatchChange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteIssueMatchChange_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteIssueMatchChange_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteIssueMatch_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteIssueMatch_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteIssueRepository_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteIssueRepository_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteIssueRepository_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteIssueVariant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteIssueVariant_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteIssueVariant_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteIssue_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteIssue_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteService_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteService_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteSupportGroup_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteSupportGroup_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteUser_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteUser_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeComponentVersionFromIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_removeComponentVersionFromIssue_argsIssueID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["issueId"] = arg0 - arg1, err := ec.field_Mutation_removeComponentVersionFromIssue_argsComponentVersionID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["componentVersionId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_removeComponentVersionFromIssue_argsIssueID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["issueId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - if tmp, ok := rawArgs["issueId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeComponentVersionFromIssue_argsComponentVersionID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["componentVersionId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("componentVersionId")) - if tmp, ok := rawArgs["componentVersionId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeEvidenceFromIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_removeEvidenceFromIssueMatch_argsIssueMatchID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["issueMatchId"] = arg0 - arg1, err := ec.field_Mutation_removeEvidenceFromIssueMatch_argsEvidenceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["evidenceId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_removeEvidenceFromIssueMatch_argsIssueMatchID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["issueMatchId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueMatchId")) - if tmp, ok := rawArgs["issueMatchId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeEvidenceFromIssueMatch_argsEvidenceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["evidenceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceId")) - if tmp, ok := rawArgs["evidenceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeIssueFromActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_removeIssueFromActivity_argsActivityID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["activityId"] = arg0 - arg1, err := ec.field_Mutation_removeIssueFromActivity_argsIssueID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["issueId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_removeIssueFromActivity_argsActivityID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["activityId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - if tmp, ok := rawArgs["activityId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeIssueFromActivity_argsIssueID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["issueId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - if tmp, ok := rawArgs["issueId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeIssueRepositoryFromService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_removeIssueRepositoryFromService_argsServiceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["serviceId"] = arg0 - arg1, err := ec.field_Mutation_removeIssueRepositoryFromService_argsIssueRepositoryID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["issueRepositoryId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_removeIssueRepositoryFromService_argsServiceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["serviceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - if tmp, ok := rawArgs["serviceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeIssueRepositoryFromService_argsIssueRepositoryID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["issueRepositoryId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("issueRepositoryId")) - if tmp, ok := rawArgs["issueRepositoryId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeOwnerFromService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_removeOwnerFromService_argsServiceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["serviceId"] = arg0 - arg1, err := ec.field_Mutation_removeOwnerFromService_argsUserID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["userId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_removeOwnerFromService_argsServiceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["serviceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - if tmp, ok := rawArgs["serviceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeOwnerFromService_argsUserID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["userId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) - if tmp, ok := rawArgs["userId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeServiceFromActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_removeServiceFromActivity_argsActivityID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["activityId"] = arg0 - arg1, err := ec.field_Mutation_removeServiceFromActivity_argsServiceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["serviceId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_removeServiceFromActivity_argsActivityID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["activityId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - if tmp, ok := rawArgs["activityId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeServiceFromActivity_argsServiceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["serviceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - if tmp, ok := rawArgs["serviceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeServiceFromSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_removeServiceFromSupportGroup_argsSupportGroupID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["supportGroupId"] = arg0 - arg1, err := ec.field_Mutation_removeServiceFromSupportGroup_argsServiceID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["serviceId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_removeServiceFromSupportGroup_argsSupportGroupID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["supportGroupId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) - if tmp, ok := rawArgs["supportGroupId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeServiceFromSupportGroup_argsServiceID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["serviceId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - if tmp, ok := rawArgs["serviceId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeUserFromSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_removeUserFromSupportGroup_argsSupportGroupID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["supportGroupId"] = arg0 - arg1, err := ec.field_Mutation_removeUserFromSupportGroup_argsUserID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["userId"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_removeUserFromSupportGroup_argsSupportGroupID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["supportGroupId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupId")) - if tmp, ok := rawArgs["supportGroupId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_removeUserFromSupportGroup_argsUserID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["userId"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) - if tmp, ok := rawArgs["userId"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateActivity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateActivity_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateActivity_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateActivity_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateActivity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ActivityInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ActivityInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNActivityInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityInput(ctx, tmp) - } - - var zeroVal model.ActivityInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateComponentInstance_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateComponentInstance_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateComponentInstance_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateComponentInstance_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateComponentInstance_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ComponentInstanceInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ComponentInstanceInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNComponentInstanceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceInput(ctx, tmp) - } - - var zeroVal model.ComponentInstanceInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateComponentVersion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateComponentVersion_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateComponentVersion_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateComponentVersion_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateComponentVersion_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ComponentVersionInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ComponentVersionInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNComponentVersionInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionInput(ctx, tmp) - } - - var zeroVal model.ComponentVersionInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateComponent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateComponent_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateComponent_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateComponent_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateComponent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ComponentInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ComponentInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNComponentInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInput(ctx, tmp) - } - - var zeroVal model.ComponentInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateEvidence_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEvidence_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEvidence_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEvidence_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateEvidence_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.EvidenceInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.EvidenceInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNEvidenceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceInput(ctx, tmp) - } - - var zeroVal model.EvidenceInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssueMatchChange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateIssueMatchChange_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateIssueMatchChange_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateIssueMatchChange_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssueMatchChange_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueMatchChangeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueMatchChangeInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueMatchChangeInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeInput(ctx, tmp) - } - - var zeroVal model.IssueMatchChangeInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssueMatch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateIssueMatch_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateIssueMatch_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateIssueMatch_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssueMatch_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueMatchInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueMatchInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueMatchInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchInput(ctx, tmp) - } - - var zeroVal model.IssueMatchInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssueRepository_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateIssueRepository_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateIssueRepository_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateIssueRepository_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssueRepository_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueRepositoryInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueRepositoryInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueRepositoryInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryInput(ctx, tmp) - } - - var zeroVal model.IssueRepositoryInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssueVariant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateIssueVariant_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateIssueVariant_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateIssueVariant_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssueVariant_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueVariantInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueVariantInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueVariantInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantInput(ctx, tmp) - } - - var zeroVal model.IssueVariantInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssue_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateIssue_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateIssue_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateIssue_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIssue_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.IssueInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.IssueInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNIssueInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueInput(ctx, tmp) - } - - var zeroVal model.IssueInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateService_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateService_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateService_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateService_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.ServiceInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.ServiceInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNServiceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceInput(ctx, tmp) - } - - var zeroVal model.ServiceInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateSupportGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateSupportGroup_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateSupportGroup_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateSupportGroup_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateSupportGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.SupportGroupInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.SupportGroupInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNSupportGroupInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupInput(ctx, tmp) - } - - var zeroVal model.SupportGroupInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateUser_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateUser_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateUser_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateUser_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (model.UserInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal model.UserInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUserInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserInput(ctx, tmp) - } - - var zeroVal model.UserInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Activities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_Activities_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_Activities_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_Activities_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_Activities_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ActivityFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ActivityFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx, tmp) - } - - var zeroVal *model.ActivityFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Activities_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Activities_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_ComponentInstances_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_ComponentInstances_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_ComponentInstances_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_ComponentInstances_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_ComponentInstances_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ComponentInstanceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ComponentInstanceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOComponentInstanceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilter(ctx, tmp) - } - - var zeroVal *model.ComponentInstanceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_ComponentInstances_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_ComponentInstances_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_ComponentVersions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_ComponentVersions_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_ComponentVersions_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_ComponentVersions_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_ComponentVersions_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ComponentVersionFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ComponentVersionFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx, tmp) - } - - var zeroVal *model.ComponentVersionFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_ComponentVersions_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_ComponentVersions_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Components_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_Components_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_Components_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_Components_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_Components_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ComponentFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ComponentFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOComponentFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilter(ctx, tmp) - } - - var zeroVal *model.ComponentFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Components_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Components_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Evidences_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_Evidences_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_Evidences_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_Evidences_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_Evidences_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.EvidenceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.EvidenceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx, tmp) - } - - var zeroVal *model.EvidenceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Evidences_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Evidences_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueMatchChanges_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_IssueMatchChanges_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_IssueMatchChanges_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_IssueMatchChanges_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_IssueMatchChanges_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueMatchChangeFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueMatchChangeFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx, tmp) - } - - var zeroVal *model.IssueMatchChangeFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueMatchChanges_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueMatchChanges_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueMatches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_IssueMatches_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_IssueMatches_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_IssueMatches_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_IssueMatches_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueMatchFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueMatchFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx, tmp) - } - - var zeroVal *model.IssueMatchFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueMatches_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueMatches_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueRepositories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_IssueRepositories_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_IssueRepositories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_IssueRepositories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_IssueRepositories_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueRepositoryFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueRepositoryFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueRepositoryFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryFilter(ctx, tmp) - } - - var zeroVal *model.IssueRepositoryFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueRepositories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueRepositories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueVariants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_IssueVariants_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_IssueVariants_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_IssueVariants_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_IssueVariants_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueVariantFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueVariantFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx, tmp) - } - - var zeroVal *model.IssueVariantFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueVariants_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_IssueVariants_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Issues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_Issues_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_Issues_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_Issues_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_Issues_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx, tmp) - } - - var zeroVal *model.IssueFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Issues_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Issues_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_Services_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_Services_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_Services_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_Services_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ServiceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ServiceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - } - - var zeroVal *model.ServiceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Services_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Services_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_SupportGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_SupportGroups_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_SupportGroups_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_SupportGroups_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_SupportGroups_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.SupportGroupFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.SupportGroupFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - } - - var zeroVal *model.SupportGroupFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_SupportGroups_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_SupportGroups_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_Users_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Query_Users_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_Users_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Query_Users_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.UserFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.UserFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - } - - var zeroVal *model.UserFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Users_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_Users_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) - if err != nil { - return nil, err - } - args["name"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query___type_argsName( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["name"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - if tmp, ok := rawArgs["name"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_ServiceFilterValue_serviceName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ServiceFilterValue_serviceName_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_ServiceFilterValue_serviceName_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ServiceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ServiceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - } - - var zeroVal *model.ServiceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_ServiceFilterValue_supportGroupName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ServiceFilterValue_supportGroupName_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_ServiceFilterValue_supportGroupName_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.SupportGroupFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.SupportGroupFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - } - - var zeroVal *model.SupportGroupFilter - return zeroVal, nil -} - -func (ec *executionContext) field_ServiceFilterValue_uniqueUserId_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ServiceFilterValue_uniqueUserId_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_ServiceFilterValue_uniqueUserId_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.UserFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.UserFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - } - - var zeroVal *model.UserFilter - return zeroVal, nil -} - -func (ec *executionContext) field_ServiceFilterValue_userName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_ServiceFilterValue_userName_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - return args, nil -} -func (ec *executionContext) field_ServiceFilterValue_userName_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.UserFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.UserFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - } - - var zeroVal *model.UserFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Service_activities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Service_activities_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Service_activities_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Service_activities_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Service_activities_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ActivityFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ActivityFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx, tmp) - } - - var zeroVal *model.ActivityFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Service_activities_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Service_activities_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Service_componentInstances_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Service_componentInstances_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Service_componentInstances_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Service_componentInstances_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Service_componentInstances_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ComponentInstanceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ComponentInstanceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOComponentInstanceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilter(ctx, tmp) - } - - var zeroVal *model.ComponentInstanceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Service_componentInstances_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Service_componentInstances_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Service_issueRepositories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Service_issueRepositories_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Service_issueRepositories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Service_issueRepositories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Service_issueRepositories_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.IssueRepositoryFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.IssueRepositoryFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOIssueRepositoryFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryFilter(ctx, tmp) - } - - var zeroVal *model.IssueRepositoryFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Service_issueRepositories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Service_issueRepositories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Service_owners_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Service_owners_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Service_owners_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Service_owners_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Service_owners_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.UserFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.UserFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - } - - var zeroVal *model.UserFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Service_owners_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Service_owners_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Service_supportGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Service_supportGroups_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_Service_supportGroups_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Service_supportGroups_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_Service_supportGroups_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.SupportGroupFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.SupportGroupFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - } - - var zeroVal *model.SupportGroupFilter - return zeroVal, nil -} - -func (ec *executionContext) field_Service_supportGroups_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Service_supportGroups_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_SupportGroup_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_SupportGroup_services_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_SupportGroup_services_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_SupportGroup_services_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_SupportGroup_services_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ServiceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ServiceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - } - - var zeroVal *model.ServiceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_SupportGroup_services_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_SupportGroup_services_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_SupportGroup_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_SupportGroup_users_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_SupportGroup_users_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_SupportGroup_users_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_SupportGroup_users_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.UserFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.UserFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx, tmp) - } - - var zeroVal *model.UserFilter - return zeroVal, nil -} - -func (ec *executionContext) field_SupportGroup_users_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_SupportGroup_users_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_User_services_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_User_services_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_User_services_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_User_services_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_User_services_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.ServiceFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.ServiceFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx, tmp) - } - - var zeroVal *model.ServiceFilter - return zeroVal, nil -} - -func (ec *executionContext) field_User_services_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_User_services_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_User_supportGroups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_User_supportGroups_argsFilter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["filter"] = arg0 - arg1, err := ec.field_User_supportGroups_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_User_supportGroups_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg2 - return args, nil -} -func (ec *executionContext) field_User_supportGroups_argsFilter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*model.SupportGroupFilter, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["filter"] - if !ok { - var zeroVal *model.SupportGroupFilter - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - if tmp, ok := rawArgs["filter"]; ok { - return ec.unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx, tmp) - } - - var zeroVal *model.SupportGroupFilter - return zeroVal, nil -} - -func (ec *executionContext) field_User_supportGroups_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) - } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_User_supportGroups_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOString2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) - if err != nil { - return nil, err - } - args["includeDeprecated"] = arg0 - return args, nil -} -func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( - ctx context.Context, - rawArgs map[string]interface{}, -) (bool, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { - var zeroVal bool - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - if tmp, ok := rawArgs["includeDeprecated"]; ok { - return ec.unmarshalOBoolean2bool(ctx, tmp) - } - - var zeroVal bool - return zeroVal, nil -} - -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) - if err != nil { - return nil, err - } - args["includeDeprecated"] = arg0 - return args, nil -} -func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( - ctx context.Context, - rawArgs map[string]interface{}, -) (bool, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { - var zeroVal bool - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - if tmp, ok := rawArgs["includeDeprecated"]; ok { - return ec.unmarshalOBoolean2bool(ctx, tmp) - } - - var zeroVal bool - return zeroVal, nil -} - -// endregion ***************************** args.gotpl ***************************** - -// region ************************** directives.gotpl ************************** - -// endregion ************************** directives.gotpl ************************** - -// region **************************** field.gotpl ***************************** - -func (ec *executionContext) _Activity_id(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_status(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ActivityStatusValues) - fc.Result = res - return ec.marshalOActivityStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActivityStatusValues does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Activity_services(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_services(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Activity().Services(rctx, obj, fc.Args["filter"].(*model.ServiceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ServiceConnection) - fc.Result = res - return ec.marshalOServiceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_services(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ServiceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ServiceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ServiceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ServiceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Activity_services_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Activity_issues(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_issues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Activity().Issues(rctx, obj, fc.Args["filter"].(*model.IssueFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueConnection) - fc.Result = res - return ec.marshalOIssueConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_issues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueConnection_totalCount(ctx, field) - case "vulnerabilityCount": - return ec.fieldContext_IssueConnection_vulnerabilityCount(ctx, field) - case "policyViolationCount": - return ec.fieldContext_IssueConnection_policyViolationCount(ctx, field) - case "securityEventCount": - return ec.fieldContext_IssueConnection_securityEventCount(ctx, field) - case "edges": - return ec.fieldContext_IssueConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Activity_issues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Activity_evidences(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_evidences(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Activity().Evidences(rctx, obj, fc.Args["filter"].(*model.EvidenceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.EvidenceConnection) - fc.Result = res - return ec.marshalOEvidenceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_EvidenceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_EvidenceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EvidenceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EvidenceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Activity_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Activity_issueMatchChanges(ctx context.Context, field graphql.CollectedField, obj *model.Activity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Activity_issueMatchChanges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Activity().IssueMatchChanges(rctx, obj, fc.Args["filter"].(*model.IssueMatchChangeFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchChangeConnection) - fc.Result = res - return ec.marshalOIssueMatchChangeConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Activity_issueMatchChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Activity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueMatchChangeConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueMatchChangeConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueMatchChangeConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchChangeConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Activity_issueMatchChanges_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ActivityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.ActivityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActivityConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActivityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActivityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActivityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.ActivityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActivityConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.ActivityEdge) - fc.Result = res - return ec.marshalOActivityEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActivityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActivityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ActivityEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ActivityEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActivityEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActivityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.ActivityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActivityConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActivityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActivityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActivityEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.ActivityEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActivityEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Activity) - fc.Result = res - return ec.marshalNActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActivityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActivityEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "status": - return ec.fieldContext_Activity_status(ctx, field) - case "services": - return ec.fieldContext_Activity_services(ctx, field) - case "issues": - return ec.fieldContext_Activity_issues(ctx, field) - case "evidences": - return ec.fieldContext_Activity_evidences(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_Activity_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActivityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.ActivityEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActivityEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActivityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActivityEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSS_vector(ctx context.Context, field graphql.CollectedField, obj *model.Cvss) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSS_vector(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Vector, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSS_vector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSS", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSS_base(ctx context.Context, field graphql.CollectedField, obj *model.Cvss) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSS_base(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Base, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.CVSSBase) - fc.Result = res - return ec.marshalOCVSSBase2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐCVSSBase(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSS_base(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSS", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "score": - return ec.fieldContext_CVSSBase_score(ctx, field) - case "attackVector": - return ec.fieldContext_CVSSBase_attackVector(ctx, field) - case "attackComplexity": - return ec.fieldContext_CVSSBase_attackComplexity(ctx, field) - case "privilegesRequired": - return ec.fieldContext_CVSSBase_privilegesRequired(ctx, field) - case "userInteraction": - return ec.fieldContext_CVSSBase_userInteraction(ctx, field) - case "scope": - return ec.fieldContext_CVSSBase_scope(ctx, field) - case "confidentialityImpact": - return ec.fieldContext_CVSSBase_confidentialityImpact(ctx, field) - case "integrityImpact": - return ec.fieldContext_CVSSBase_integrityImpact(ctx, field) - case "availabilityImpact": - return ec.fieldContext_CVSSBase_availabilityImpact(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CVSSBase", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSS_temporal(ctx context.Context, field graphql.CollectedField, obj *model.Cvss) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSS_temporal(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Temporal, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.CVSSTemporal) - fc.Result = res - return ec.marshalOCVSSTemporal2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐCVSSTemporal(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSS_temporal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSS", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "score": - return ec.fieldContext_CVSSTemporal_score(ctx, field) - case "exploitCodeMaturity": - return ec.fieldContext_CVSSTemporal_exploitCodeMaturity(ctx, field) - case "remediationLevel": - return ec.fieldContext_CVSSTemporal_remediationLevel(ctx, field) - case "reportConfidence": - return ec.fieldContext_CVSSTemporal_reportConfidence(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CVSSTemporal", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSS_environmental(ctx context.Context, field graphql.CollectedField, obj *model.Cvss) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSS_environmental(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Environmental, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.CVSSEnvironmental) - fc.Result = res - return ec.marshalOCVSSEnvironmental2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐCVSSEnvironmental(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSS_environmental(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSS", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "score": - return ec.fieldContext_CVSSEnvironmental_score(ctx, field) - case "modifiedAttackVector": - return ec.fieldContext_CVSSEnvironmental_modifiedAttackVector(ctx, field) - case "modifiedAttackComplexity": - return ec.fieldContext_CVSSEnvironmental_modifiedAttackComplexity(ctx, field) - case "modifiedPrivilegesRequired": - return ec.fieldContext_CVSSEnvironmental_modifiedPrivilegesRequired(ctx, field) - case "modifiedUserInteraction": - return ec.fieldContext_CVSSEnvironmental_modifiedUserInteraction(ctx, field) - case "modifiedScope": - return ec.fieldContext_CVSSEnvironmental_modifiedScope(ctx, field) - case "modifiedConfidentialityImpact": - return ec.fieldContext_CVSSEnvironmental_modifiedConfidentialityImpact(ctx, field) - case "modifiedIntegrityImpact": - return ec.fieldContext_CVSSEnvironmental_modifiedIntegrityImpact(ctx, field) - case "modifiedAvailabilityImpact": - return ec.fieldContext_CVSSEnvironmental_modifiedAvailabilityImpact(ctx, field) - case "confidentialityRequirement": - return ec.fieldContext_CVSSEnvironmental_confidentialityRequirement(ctx, field) - case "availabilityRequirement": - return ec.fieldContext_CVSSEnvironmental_availabilityRequirement(ctx, field) - case "integrityRequirement": - return ec.fieldContext_CVSSEnvironmental_integrityRequirement(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CVSSEnvironmental", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSBase_score(ctx context.Context, field graphql.CollectedField, obj *model.CVSSBase) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSBase_score(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Score, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*float64) - fc.Result = res - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSBase_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSBase", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSBase_attackVector(ctx context.Context, field graphql.CollectedField, obj *model.CVSSBase) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSBase_attackVector(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AttackVector, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSBase_attackVector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSBase", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSBase_attackComplexity(ctx context.Context, field graphql.CollectedField, obj *model.CVSSBase) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSBase_attackComplexity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AttackComplexity, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSBase_attackComplexity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSBase", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSBase_privilegesRequired(ctx context.Context, field graphql.CollectedField, obj *model.CVSSBase) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSBase_privilegesRequired(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrivilegesRequired, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSBase_privilegesRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSBase", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSBase_userInteraction(ctx context.Context, field graphql.CollectedField, obj *model.CVSSBase) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSBase_userInteraction(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserInteraction, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSBase_userInteraction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSBase", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSBase_scope(ctx context.Context, field graphql.CollectedField, obj *model.CVSSBase) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSBase_scope(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Scope, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSBase_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSBase", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSBase_confidentialityImpact(ctx context.Context, field graphql.CollectedField, obj *model.CVSSBase) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSBase_confidentialityImpact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ConfidentialityImpact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSBase_confidentialityImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSBase", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSBase_integrityImpact(ctx context.Context, field graphql.CollectedField, obj *model.CVSSBase) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSBase_integrityImpact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IntegrityImpact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSBase_integrityImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSBase", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSBase_availabilityImpact(ctx context.Context, field graphql.CollectedField, obj *model.CVSSBase) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSBase_availabilityImpact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvailabilityImpact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSBase_availabilityImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSBase", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_score(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_score(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Score, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*float64) - fc.Result = res - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_modifiedAttackVector(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_modifiedAttackVector(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedAttackVector, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_modifiedAttackVector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_modifiedAttackComplexity(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_modifiedAttackComplexity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedAttackComplexity, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_modifiedAttackComplexity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_modifiedPrivilegesRequired(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_modifiedPrivilegesRequired(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedPrivilegesRequired, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_modifiedPrivilegesRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_modifiedUserInteraction(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_modifiedUserInteraction(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedUserInteraction, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_modifiedUserInteraction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_modifiedScope(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_modifiedScope(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedScope, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_modifiedScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_modifiedConfidentialityImpact(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_modifiedConfidentialityImpact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedConfidentialityImpact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_modifiedConfidentialityImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_modifiedIntegrityImpact(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_modifiedIntegrityImpact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedIntegrityImpact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_modifiedIntegrityImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_modifiedAvailabilityImpact(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_modifiedAvailabilityImpact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ModifiedAvailabilityImpact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_modifiedAvailabilityImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_confidentialityRequirement(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_confidentialityRequirement(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ConfidentialityRequirement, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_confidentialityRequirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_availabilityRequirement(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_availabilityRequirement(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvailabilityRequirement, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_availabilityRequirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSEnvironmental_integrityRequirement(ctx context.Context, field graphql.CollectedField, obj *model.CVSSEnvironmental) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSEnvironmental_integrityRequirement(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IntegrityRequirement, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSEnvironmental_integrityRequirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSEnvironmental", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSParameter_name(ctx context.Context, field graphql.CollectedField, obj *model.CVSSParameter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSParameter_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSParameter_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSParameter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSParameter_value(ctx context.Context, field graphql.CollectedField, obj *model.CVSSParameter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSParameter_value(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Value, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSParameter_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSParameter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSTemporal_score(ctx context.Context, field graphql.CollectedField, obj *model.CVSSTemporal) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSTemporal_score(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Score, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*float64) - fc.Result = res - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSTemporal_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSTemporal", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSTemporal_exploitCodeMaturity(ctx context.Context, field graphql.CollectedField, obj *model.CVSSTemporal) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSTemporal_exploitCodeMaturity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExploitCodeMaturity, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSTemporal_exploitCodeMaturity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSTemporal", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSTemporal_remediationLevel(ctx context.Context, field graphql.CollectedField, obj *model.CVSSTemporal) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSTemporal_remediationLevel(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RemediationLevel, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSTemporal_remediationLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSTemporal", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CVSSTemporal_reportConfidence(ctx context.Context, field graphql.CollectedField, obj *model.CVSSTemporal) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CVSSTemporal_reportConfidence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ReportConfidence, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_CVSSTemporal_reportConfidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CVSSTemporal", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Component_id(ctx context.Context, field graphql.CollectedField, obj *model.Component) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Component_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Component_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Component", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Component_name(ctx context.Context, field graphql.CollectedField, obj *model.Component) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Component_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Component_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Component", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Component_type(ctx context.Context, field graphql.CollectedField, obj *model.Component) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Component_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentTypeValues) - fc.Result = res - return ec.marshalOComponentTypeValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentTypeValues(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Component_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Component", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ComponentTypeValues does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Component_componentVersions(ctx context.Context, field graphql.CollectedField, obj *model.Component) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Component_componentVersions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Component().ComponentVersions(rctx, obj, fc.Args["filter"].(*model.ComponentVersionFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentVersionConnection) - fc.Result = res - return ec.marshalOComponentVersionConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Component_componentVersions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Component", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ComponentVersionConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ComponentVersionConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComponentVersionConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentVersionConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Component_componentVersions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ComponentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.ComponentConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.ComponentConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.ComponentEdge) - fc.Result = res - return ec.marshalOComponentEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ComponentEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ComponentEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.ComponentConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.ComponentEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Component) - fc.Result = res - return ec.marshalNComponent2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Component_id(ctx, field) - case "name": - return ec.fieldContext_Component_name(ctx, field) - case "type": - return ec.fieldContext_Component_type(ctx, field) - case "componentVersions": - return ec.fieldContext_Component_componentVersions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Component", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.ComponentEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentFilterValue_componentName(ctx context.Context, field graphql.CollectedField, obj *model.ComponentFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentFilterValue_componentName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentFilterValue().ComponentName(rctx, obj, fc.Args["filter"].(*model.ComponentFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentFilterValue_componentName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ComponentFilterValue_componentName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_id(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_ccrn(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_ccrn(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ccrn, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_ccrn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_count(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_count(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Count, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_count(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_componentVersionId(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_componentVersionId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComponentVersionID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_componentVersionId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_componentVersion(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_componentVersion(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentInstance().ComponentVersion(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentVersion) - fc.Result = res - return ec.marshalOComponentVersion2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_componentVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ComponentVersion_id(ctx, field) - case "version": - return ec.fieldContext_ComponentVersion_version(ctx, field) - case "componentId": - return ec.fieldContext_ComponentVersion_componentId(ctx, field) - case "component": - return ec.fieldContext_ComponentVersion_component(ctx, field) - case "issues": - return ec.fieldContext_ComponentVersion_issues(ctx, field) - case "componentInstances": - return ec.fieldContext_ComponentVersion_componentInstances(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentVersion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_issueMatches(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_issueMatches(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentInstance().IssueMatches(rctx, obj, fc.Args["filter"].(*model.IssueMatchFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchConnection) - fc.Result = res - return ec.marshalOIssueMatchConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_issueMatches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueMatchConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueMatchConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueMatchConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ComponentInstance_issueMatches_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_serviceId(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_serviceId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ServiceID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_serviceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_service(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_service(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentInstance().Service(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Service) - fc.Result = res - return ec.marshalOService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_service(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Service_id(ctx, field) - case "name": - return ec.fieldContext_Service_name(ctx, field) - case "owners": - return ec.fieldContext_Service_owners(ctx, field) - case "supportGroups": - return ec.fieldContext_Service_supportGroups(ctx, field) - case "activities": - return ec.fieldContext_Service_activities(ctx, field) - case "issueRepositories": - return ec.fieldContext_Service_issueRepositories(ctx, field) - case "componentInstances": - return ec.fieldContext_Service_componentInstances(ctx, field) - case "metadata": - return ec.fieldContext_Service_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Service", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstance_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstance) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstance_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstance_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstance", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstanceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstanceConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstanceConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstanceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstanceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstanceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstanceConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstanceConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*model.ComponentInstanceEdge) - fc.Result = res - return ec.marshalNComponentInstanceEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstanceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstanceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ComponentInstanceEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ComponentInstanceEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentInstanceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstanceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstanceConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstanceConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstanceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstanceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstanceEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstanceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstanceEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.ComponentInstance) - fc.Result = res - return ec.marshalNComponentInstance2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstance(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstanceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstanceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ComponentInstance_id(ctx, field) - case "ccrn": - return ec.fieldContext_ComponentInstance_ccrn(ctx, field) - case "count": - return ec.fieldContext_ComponentInstance_count(ctx, field) - case "componentVersionId": - return ec.fieldContext_ComponentInstance_componentVersionId(ctx, field) - case "componentVersion": - return ec.fieldContext_ComponentInstance_componentVersion(ctx, field) - case "issueMatches": - return ec.fieldContext_ComponentInstance_issueMatches(ctx, field) - case "serviceId": - return ec.fieldContext_ComponentInstance_serviceId(ctx, field) - case "service": - return ec.fieldContext_ComponentInstance_service(ctx, field) - case "createdAt": - return ec.fieldContext_ComponentInstance_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ComponentInstance_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentInstance", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstanceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstanceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstanceEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstanceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstanceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstanceFilterValue_serviceName(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstanceFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstanceFilterValue_serviceName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentInstanceFilterValue().ServiceName(rctx, obj, fc.Args["filter"].(*model.ServiceFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstanceFilterValue_serviceName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstanceFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ComponentInstanceFilterValue_serviceName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstanceFilterValue_supportGroupName(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstanceFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstanceFilterValue_supportGroupName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentInstanceFilterValue().SupportGroupName(rctx, obj, fc.Args["filter"].(*model.SupportGroupFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstanceFilterValue_supportGroupName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstanceFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ComponentInstanceFilterValue_supportGroupName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ComponentInstanceFilterValue_ccrn(ctx context.Context, field graphql.CollectedField, obj *model.ComponentInstanceFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentInstanceFilterValue_ccrn(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentInstanceFilterValue().Ccrn(rctx, obj, fc.Args["filter"].(*model.ComponentInstanceFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentInstanceFilterValue_ccrn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentInstanceFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ComponentInstanceFilterValue_ccrn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersion_id(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersion_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersion_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersion_version(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersion_version(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Version, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersion_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersion_componentId(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersion_componentId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComponentID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersion_componentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersion_component(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersion_component(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentVersion().Component(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Component) - fc.Result = res - return ec.marshalOComponent2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersion_component(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersion", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Component_id(ctx, field) - case "name": - return ec.fieldContext_Component_name(ctx, field) - case "type": - return ec.fieldContext_Component_type(ctx, field) - case "componentVersions": - return ec.fieldContext_Component_componentVersions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Component", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersion_issues(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersion_issues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentVersion().Issues(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueConnection) - fc.Result = res - return ec.marshalOIssueConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersion_issues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersion", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueConnection_totalCount(ctx, field) - case "vulnerabilityCount": - return ec.fieldContext_IssueConnection_vulnerabilityCount(ctx, field) - case "policyViolationCount": - return ec.fieldContext_IssueConnection_policyViolationCount(ctx, field) - case "securityEventCount": - return ec.fieldContext_IssueConnection_securityEventCount(ctx, field) - case "edges": - return ec.fieldContext_IssueConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ComponentVersion_issues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersion_componentInstances(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersion) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersion_componentInstances(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ComponentVersion().ComponentInstances(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentInstanceConnection) - fc.Result = res - return ec.marshalOComponentInstanceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersion_componentInstances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersion", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ComponentInstanceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ComponentInstanceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComponentInstanceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentInstanceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ComponentVersion_componentInstances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersionConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersionConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersionConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersionConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*model.ComponentVersionEdge) - fc.Result = res - return ec.marshalNComponentVersionEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ComponentVersionEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ComponentVersionEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentVersionEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersionConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersionConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersionEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersionEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersionEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.ComponentVersion) - fc.Result = res - return ec.marshalNComponentVersion2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersionEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ComponentVersion_id(ctx, field) - case "version": - return ec.fieldContext_ComponentVersion_version(ctx, field) - case "componentId": - return ec.fieldContext_ComponentVersion_componentId(ctx, field) - case "component": - return ec.fieldContext_ComponentVersion_component(ctx, field) - case "issues": - return ec.fieldContext_ComponentVersion_issues(ctx, field) - case "componentInstances": - return ec.fieldContext_ComponentVersion_componentInstances(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentVersion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComponentVersionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.ComponentVersionEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ComponentVersionEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ComponentVersionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComponentVersionEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_id(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_description(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_type(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_vector(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_vector(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Vector, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_vector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_raaEnd(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_raaEnd(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RaaEnd, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_raaEnd(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_authorId(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_authorId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AuthorID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_authorId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_author(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_author(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Evidence().Author(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.User) - fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_author(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "uniqueUserId": - return ec.fieldContext_User_uniqueUserId(ctx, field) - case "type": - return ec.fieldContext_User_type(ctx, field) - case "name": - return ec.fieldContext_User_name(ctx, field) - case "supportGroups": - return ec.fieldContext_User_supportGroups(ctx, field) - case "services": - return ec.fieldContext_User_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_activityId(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_activityId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActivityID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_activityId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_activity(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_activity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Evidence().Activity(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Activity) - fc.Result = res - return ec.marshalOActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_activity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "status": - return ec.fieldContext_Activity_status(ctx, field) - case "services": - return ec.fieldContext_Activity_services(ctx, field) - case "issues": - return ec.fieldContext_Activity_issues(ctx, field) - case "evidences": - return ec.fieldContext_Activity_evidences(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_Activity_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_issueMatches(ctx context.Context, field graphql.CollectedField, obj *model.Evidence) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Evidence_issueMatches(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Evidence().IssueMatches(rctx, obj, fc.Args["filter"].(*model.IssueMatchFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchConnection) - fc.Result = res - return ec.marshalOIssueMatchConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Evidence_issueMatches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueMatchConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueMatchConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueMatchConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Evidence_issueMatches_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _EvidenceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.EvidenceConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EvidenceConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EvidenceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EvidenceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.EvidenceConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EvidenceConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.EvidenceEdge) - fc.Result = res - return ec.marshalOEvidenceEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EvidenceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EvidenceEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EvidenceEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EvidenceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EvidenceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.EvidenceConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EvidenceConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EvidenceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EvidenceEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.EvidenceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EvidenceEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Evidence) - fc.Result = res - return ec.marshalNEvidence2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidence(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EvidenceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Evidence_id(ctx, field) - case "description": - return ec.fieldContext_Evidence_description(ctx, field) - case "type": - return ec.fieldContext_Evidence_type(ctx, field) - case "vector": - return ec.fieldContext_Evidence_vector(ctx, field) - case "raaEnd": - return ec.fieldContext_Evidence_raaEnd(ctx, field) - case "authorId": - return ec.fieldContext_Evidence_authorId(ctx, field) - case "author": - return ec.fieldContext_Evidence_author(ctx, field) - case "activityId": - return ec.fieldContext_Evidence_activityId(ctx, field) - case "activity": - return ec.fieldContext_Evidence_activity(ctx, field) - case "issueMatches": - return ec.fieldContext_Evidence_issueMatches(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Evidence", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EvidenceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.EvidenceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EvidenceEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EvidenceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _FilterItem_displayName(ctx context.Context, field graphql.CollectedField, obj *model.FilterItem) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FilterItem_displayName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_FilterItem_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FilterItem", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _FilterItem_filterName(ctx context.Context, field graphql.CollectedField, obj *model.FilterItem) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FilterItem_filterName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FilterName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_FilterItem_filterName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FilterItem", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _FilterItem_values(ctx context.Context, field graphql.CollectedField, obj *model.FilterItem) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FilterItem_values(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Values, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*string) - fc.Result = res - return ec.marshalOString2ᚕᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_FilterItem_values(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FilterItem", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Issue_id(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Issue_type(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueTypes) - fc.Result = res - return ec.marshalOIssueTypes2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type IssueTypes does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Issue_primaryName(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_primaryName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PrimaryName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_primaryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Issue_description(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Issue_lastModified(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_lastModified(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastModified, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_lastModified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Issue_issueVariants(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_issueVariants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Issue().IssueVariants(rctx, obj, fc.Args["filter"].(*model.IssueVariantFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueVariantConnection) - fc.Result = res - return ec.marshalOIssueVariantConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_issueVariants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueVariantConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueVariantConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueVariantConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueVariantConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Issue_issueVariants_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Issue_activities(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_activities(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Issue().Activities(rctx, obj, fc.Args["filter"].(*model.ActivityFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ActivityConnection) - fc.Result = res - return ec.marshalOActivityConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_activities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ActivityConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ActivityConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ActivityConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActivityConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Issue_activities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Issue_issueMatches(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_issueMatches(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Issue().IssueMatches(rctx, obj, fc.Args["filter"].(*model.IssueMatchFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchConnection) - fc.Result = res - return ec.marshalOIssueMatchConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_issueMatches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueMatchConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueMatchConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueMatchConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Issue_issueMatches_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Issue_componentVersions(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_componentVersions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Issue().ComponentVersions(rctx, obj, fc.Args["filter"].(*model.ComponentVersionFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentVersionConnection) - fc.Result = res - return ec.marshalOComponentVersionConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_componentVersions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ComponentVersionConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ComponentVersionConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComponentVersionConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentVersionConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Issue_componentVersions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Issue_metadata(ctx context.Context, field graphql.CollectedField, obj *model.Issue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Issue_metadata(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMetadata) - fc.Result = res - return ec.marshalOIssueMetadata2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMetadata(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Issue_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Issue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "serviceCount": - return ec.fieldContext_IssueMetadata_serviceCount(ctx, field) - case "activityCount": - return ec.fieldContext_IssueMetadata_activityCount(ctx, field) - case "issueMatchCount": - return ec.fieldContext_IssueMetadata_issueMatchCount(ctx, field) - case "componentInstanceCount": - return ec.fieldContext_IssueMetadata_componentInstanceCount(ctx, field) - case "componentVersionCount": - return ec.fieldContext_IssueMetadata_componentVersionCount(ctx, field) - case "earliestDiscoveryDate": - return ec.fieldContext_IssueMetadata_earliestDiscoveryDate(ctx, field) - case "earliestTargetRemediationDate": - return ec.fieldContext_IssueMetadata_earliestTargetRemediationDate(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMetadata", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueConnection_vulnerabilityCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueConnection_vulnerabilityCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.VulnerabilityCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueConnection_vulnerabilityCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueConnection_policyViolationCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueConnection_policyViolationCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PolicyViolationCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueConnection_policyViolationCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueConnection_securityEventCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueConnection_securityEventCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SecurityEventCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueConnection_securityEventCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.IssueConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]*model.IssueEdge) - fc.Result = res - return ec.marshalNIssueEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_IssueEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_IssueEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.IssueConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.IssueEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Issue) - fc.Result = res - return ec.marshalNIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Issue_id(ctx, field) - case "type": - return ec.fieldContext_Issue_type(ctx, field) - case "primaryName": - return ec.fieldContext_Issue_primaryName(ctx, field) - case "description": - return ec.fieldContext_Issue_description(ctx, field) - case "lastModified": - return ec.fieldContext_Issue_lastModified(ctx, field) - case "issueVariants": - return ec.fieldContext_Issue_issueVariants(ctx, field) - case "activities": - return ec.fieldContext_Issue_activities(ctx, field) - case "issueMatches": - return ec.fieldContext_Issue_issueMatches(ctx, field) - case "componentVersions": - return ec.fieldContext_Issue_componentVersions(ctx, field) - case "metadata": - return ec.fieldContext_Issue_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Issue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.IssueEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_id(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_status(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchStatusValues) - fc.Result = res - return ec.marshalOIssueMatchStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type IssueMatchStatusValues does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_remediationDate(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_remediationDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RemediationDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_remediationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_discoveryDate(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_discoveryDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DiscoveryDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_discoveryDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_targetRemediationDate(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_targetRemediationDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TargetRemediationDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_targetRemediationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_severity(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_severity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatch().Severity(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Severity) - fc.Result = res - return ec.marshalOSeverity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "value": - return ec.fieldContext_Severity_value(ctx, field) - case "score": - return ec.fieldContext_Severity_score(ctx, field) - case "cvss": - return ec.fieldContext_Severity_cvss(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Severity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_effectiveIssueVariants(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_effectiveIssueVariants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatch().EffectiveIssueVariants(rctx, obj, fc.Args["filter"].(*model.IssueVariantFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueVariantConnection) - fc.Result = res - return ec.marshalOIssueVariantConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_effectiveIssueVariants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueVariantConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueVariantConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueVariantConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueVariantConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_IssueMatch_effectiveIssueVariants_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_evidences(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_evidences(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatch().Evidences(rctx, obj, fc.Args["filter"].(*model.EvidenceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.EvidenceConnection) - fc.Result = res - return ec.marshalOEvidenceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_EvidenceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_EvidenceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EvidenceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EvidenceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_IssueMatch_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_issueId(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_issueId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IssueID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_issueId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_issue(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_issue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatch().Issue(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Issue) - fc.Result = res - return ec.marshalNIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_issue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Issue_id(ctx, field) - case "type": - return ec.fieldContext_Issue_type(ctx, field) - case "primaryName": - return ec.fieldContext_Issue_primaryName(ctx, field) - case "description": - return ec.fieldContext_Issue_description(ctx, field) - case "lastModified": - return ec.fieldContext_Issue_lastModified(ctx, field) - case "issueVariants": - return ec.fieldContext_Issue_issueVariants(ctx, field) - case "activities": - return ec.fieldContext_Issue_activities(ctx, field) - case "issueMatches": - return ec.fieldContext_Issue_issueMatches(ctx, field) - case "componentVersions": - return ec.fieldContext_Issue_componentVersions(ctx, field) - case "metadata": - return ec.fieldContext_Issue_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Issue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_userId(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_userId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_userId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_user(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_user(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.User, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.User) - fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "uniqueUserId": - return ec.fieldContext_User_uniqueUserId(ctx, field) - case "type": - return ec.fieldContext_User_type(ctx, field) - case "name": - return ec.fieldContext_User_name(ctx, field) - case "supportGroups": - return ec.fieldContext_User_supportGroups(ctx, field) - case "services": - return ec.fieldContext_User_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_componentInstanceId(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_componentInstanceId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComponentInstanceID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_componentInstanceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_componentInstance(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_componentInstance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatch().ComponentInstance(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.ComponentInstance) - fc.Result = res - return ec.marshalNComponentInstance2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstance(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_componentInstance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ComponentInstance_id(ctx, field) - case "ccrn": - return ec.fieldContext_ComponentInstance_ccrn(ctx, field) - case "count": - return ec.fieldContext_ComponentInstance_count(ctx, field) - case "componentVersionId": - return ec.fieldContext_ComponentInstance_componentVersionId(ctx, field) - case "componentVersion": - return ec.fieldContext_ComponentInstance_componentVersion(ctx, field) - case "issueMatches": - return ec.fieldContext_ComponentInstance_issueMatches(ctx, field) - case "serviceId": - return ec.fieldContext_ComponentInstance_serviceId(ctx, field) - case "service": - return ec.fieldContext_ComponentInstance_service(ctx, field) - case "createdAt": - return ec.fieldContext_ComponentInstance_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ComponentInstance_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentInstance", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatch_issueMatchChanges(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatch_issueMatchChanges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatch().IssueMatchChanges(rctx, obj, fc.Args["filter"].(*model.IssueMatchChangeFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchChangeConnection) - fc.Result = res - return ec.marshalOIssueMatchChangeConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatch_issueMatchChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatch", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueMatchChangeConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueMatchChangeConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueMatchChangeConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchChangeConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_IssueMatch_issueMatchChanges_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChange_id(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChange_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChange_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChange_action(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChange_action(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Action, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchChangeActions) - fc.Result = res - return ec.marshalOIssueMatchChangeActions2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeActions(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChange_action(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type IssueMatchChangeActions does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChange_issueMatchId(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChange_issueMatchId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IssueMatchID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChange_issueMatchId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChange_issueMatch(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChange_issueMatch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatchChange().IssueMatch(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueMatch) - fc.Result = res - return ec.marshalNIssueMatch2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatch(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChange_issueMatch(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChange", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueMatch_id(ctx, field) - case "status": - return ec.fieldContext_IssueMatch_status(ctx, field) - case "remediationDate": - return ec.fieldContext_IssueMatch_remediationDate(ctx, field) - case "discoveryDate": - return ec.fieldContext_IssueMatch_discoveryDate(ctx, field) - case "targetRemediationDate": - return ec.fieldContext_IssueMatch_targetRemediationDate(ctx, field) - case "severity": - return ec.fieldContext_IssueMatch_severity(ctx, field) - case "effectiveIssueVariants": - return ec.fieldContext_IssueMatch_effectiveIssueVariants(ctx, field) - case "evidences": - return ec.fieldContext_IssueMatch_evidences(ctx, field) - case "issueId": - return ec.fieldContext_IssueMatch_issueId(ctx, field) - case "issue": - return ec.fieldContext_IssueMatch_issue(ctx, field) - case "userId": - return ec.fieldContext_IssueMatch_userId(ctx, field) - case "user": - return ec.fieldContext_IssueMatch_user(ctx, field) - case "componentInstanceId": - return ec.fieldContext_IssueMatch_componentInstanceId(ctx, field) - case "componentInstance": - return ec.fieldContext_IssueMatch_componentInstance(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_IssueMatch_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatch", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChange_activityId(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChange_activityId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActivityID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChange_activityId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChange", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChange_activity(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChange) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChange_activity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatchChange().Activity(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Activity) - fc.Result = res - return ec.marshalNActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChange_activity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChange", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "status": - return ec.fieldContext_Activity_status(ctx, field) - case "services": - return ec.fieldContext_Activity_services(ctx, field) - case "issues": - return ec.fieldContext_Activity_issues(ctx, field) - case "evidences": - return ec.fieldContext_Activity_evidences(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_Activity_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChangeConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChangeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChangeConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChangeConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChangeConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChangeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChangeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChangeConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.IssueMatchChangeEdge) - fc.Result = res - return ec.marshalOIssueMatchChangeEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChangeConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChangeConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_IssueMatchChangeEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_IssueMatchChangeEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchChangeEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChangeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChangeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChangeConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChangeConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChangeConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChangeEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChangeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChangeEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueMatchChange) - fc.Result = res - return ec.marshalNIssueMatchChange2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChange(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChangeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChangeEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueMatchChange_id(ctx, field) - case "action": - return ec.fieldContext_IssueMatchChange_action(ctx, field) - case "issueMatchId": - return ec.fieldContext_IssueMatchChange_issueMatchId(ctx, field) - case "issueMatch": - return ec.fieldContext_IssueMatchChange_issueMatch(ctx, field) - case "activityId": - return ec.fieldContext_IssueMatchChange_activityId(ctx, field) - case "activity": - return ec.fieldContext_IssueMatchChange_activity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchChange", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchChangeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchChangeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchChangeEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchChangeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchChangeEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.IssueMatchEdge) - fc.Result = res - return ec.marshalOIssueMatchEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_IssueMatchEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_IssueMatchEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueMatch) - fc.Result = res - return ec.marshalNIssueMatch2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatch(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueMatch_id(ctx, field) - case "status": - return ec.fieldContext_IssueMatch_status(ctx, field) - case "remediationDate": - return ec.fieldContext_IssueMatch_remediationDate(ctx, field) - case "discoveryDate": - return ec.fieldContext_IssueMatch_discoveryDate(ctx, field) - case "targetRemediationDate": - return ec.fieldContext_IssueMatch_targetRemediationDate(ctx, field) - case "severity": - return ec.fieldContext_IssueMatch_severity(ctx, field) - case "effectiveIssueVariants": - return ec.fieldContext_IssueMatch_effectiveIssueVariants(ctx, field) - case "evidences": - return ec.fieldContext_IssueMatch_evidences(ctx, field) - case "issueId": - return ec.fieldContext_IssueMatch_issueId(ctx, field) - case "issue": - return ec.fieldContext_IssueMatch_issue(ctx, field) - case "userId": - return ec.fieldContext_IssueMatch_userId(ctx, field) - case "user": - return ec.fieldContext_IssueMatch_user(ctx, field) - case "componentInstanceId": - return ec.fieldContext_IssueMatch_componentInstanceId(ctx, field) - case "componentInstance": - return ec.fieldContext_IssueMatch_componentInstance(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_IssueMatch_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatch", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchFilterValue_status(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchFilterValue_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchFilterValue_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchFilterValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchFilterValue_severity(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchFilterValue_severity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Severity, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchFilterValue_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchFilterValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchFilterValue_issueType(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchFilterValue_issueType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IssueType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchFilterValue_issueType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchFilterValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchFilterValue_primaryName(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchFilterValue_primaryName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatchFilterValue().PrimaryName(rctx, obj, fc.Args["filter"].(*model.IssueFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchFilterValue_primaryName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_IssueMatchFilterValue_primaryName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchFilterValue_affectedService(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchFilterValue_affectedService(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatchFilterValue().AffectedService(rctx, obj, fc.Args["filter"].(*model.ServiceFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchFilterValue_affectedService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_IssueMatchFilterValue_affectedService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchFilterValue_componentName(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchFilterValue_componentName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatchFilterValue().ComponentName(rctx, obj, fc.Args["filter"].(*model.ComponentFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchFilterValue_componentName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_IssueMatchFilterValue_componentName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _IssueMatchFilterValue_supportGroupName(ctx context.Context, field graphql.CollectedField, obj *model.IssueMatchFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMatchFilterValue_supportGroupName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueMatchFilterValue().SupportGroupName(rctx, obj, fc.Args["filter"].(*model.SupportGroupFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMatchFilterValue_supportGroupName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMatchFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_IssueMatchFilterValue_supportGroupName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _IssueMetadata_serviceCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueMetadata) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMetadata_serviceCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ServiceCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMetadata_serviceCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMetadata", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMetadata_activityCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueMetadata) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMetadata_activityCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActivityCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMetadata_activityCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMetadata", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMetadata_issueMatchCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueMetadata) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMetadata_issueMatchCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IssueMatchCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMetadata_issueMatchCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMetadata", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMetadata_componentInstanceCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueMetadata) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMetadata_componentInstanceCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComponentInstanceCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMetadata_componentInstanceCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMetadata", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMetadata_componentVersionCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueMetadata) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMetadata_componentVersionCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComponentVersionCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMetadata_componentVersionCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMetadata", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMetadata_earliestDiscoveryDate(ctx context.Context, field graphql.CollectedField, obj *model.IssueMetadata) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMetadata_earliestDiscoveryDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EarliestDiscoveryDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNDateTime2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMetadata_earliestDiscoveryDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMetadata", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueMetadata_earliestTargetRemediationDate(ctx context.Context, field graphql.CollectedField, obj *model.IssueMetadata) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueMetadata_earliestTargetRemediationDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EarliestTargetRemediationDate, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNDateTime2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueMetadata_earliestTargetRemediationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueMetadata", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepository_id(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepository_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepository_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepository", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepository_name(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepository_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepository_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepository", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepository_url(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepository_url(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.URL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepository_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepository", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepository_issueVariants(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepository_issueVariants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueRepository().IssueVariants(rctx, obj, fc.Args["filter"].(*model.IssueVariantFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueVariantConnection) - fc.Result = res - return ec.marshalOIssueVariantConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepository_issueVariants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepository", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueVariantConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueVariantConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueVariantConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueVariantConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_IssueRepository_issueVariants_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _IssueRepository_services(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepository_services(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueRepository().Services(rctx, obj, fc.Args["filter"].(*model.ServiceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ServiceConnection) - fc.Result = res - return ec.marshalOServiceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepository_services(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepository", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ServiceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ServiceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ServiceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ServiceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_IssueRepository_services_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _IssueRepository_created_at(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepository_created_at(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepository_created_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepository", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepository_updated_at(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepository_updated_at(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepository_updated_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepository", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepositoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepositoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepositoryConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepositoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepositoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepositoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepositoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepositoryConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.IssueRepositoryEdge) - fc.Result = res - return ec.marshalOIssueRepositoryEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepositoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepositoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_IssueRepositoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_IssueRepositoryEdge_cursor(ctx, field) - case "priority": - return ec.fieldContext_IssueRepositoryEdge_priority(ctx, field) - case "created_at": - return ec.fieldContext_IssueRepositoryEdge_created_at(ctx, field) - case "updated_at": - return ec.fieldContext_IssueRepositoryEdge_updated_at(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueRepositoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepositoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepositoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepositoryConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepositoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepositoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepositoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepositoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepositoryEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueRepository) - fc.Result = res - return ec.marshalNIssueRepository2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepository(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepositoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepositoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueRepository_id(ctx, field) - case "name": - return ec.fieldContext_IssueRepository_name(ctx, field) - case "url": - return ec.fieldContext_IssueRepository_url(ctx, field) - case "issueVariants": - return ec.fieldContext_IssueRepository_issueVariants(ctx, field) - case "services": - return ec.fieldContext_IssueRepository_services(ctx, field) - case "created_at": - return ec.fieldContext_IssueRepository_created_at(ctx, field) - case "updated_at": - return ec.fieldContext_IssueRepository_updated_at(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueRepository", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepositoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepositoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepositoryEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepositoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepositoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepositoryEdge_priority(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepositoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepositoryEdge_priority(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Priority, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepositoryEdge_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepositoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepositoryEdge_created_at(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepositoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepositoryEdge_created_at(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepositoryEdge_created_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepositoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueRepositoryEdge_updated_at(ctx context.Context, field graphql.CollectedField, obj *model.IssueRepositoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueRepositoryEdge_updated_at(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueRepositoryEdge_updated_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueRepositoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_id(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_secondaryName(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_secondaryName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SecondaryName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_secondaryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_description(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_severity(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_severity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Severity, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Severity) - fc.Result = res - return ec.marshalOSeverity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "value": - return ec.fieldContext_Severity_value(ctx, field) - case "score": - return ec.fieldContext_Severity_score(ctx, field) - case "cvss": - return ec.fieldContext_Severity_cvss(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Severity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_issueRepositoryId(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_issueRepositoryId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IssueRepositoryID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_issueRepositoryId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_issueRepository(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_issueRepository(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueVariant().IssueRepository(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueRepository) - fc.Result = res - return ec.marshalOIssueRepository2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepository(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_issueRepository(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueRepository_id(ctx, field) - case "name": - return ec.fieldContext_IssueRepository_name(ctx, field) - case "url": - return ec.fieldContext_IssueRepository_url(ctx, field) - case "issueVariants": - return ec.fieldContext_IssueRepository_issueVariants(ctx, field) - case "services": - return ec.fieldContext_IssueRepository_services(ctx, field) - case "created_at": - return ec.fieldContext_IssueRepository_created_at(ctx, field) - case "updated_at": - return ec.fieldContext_IssueRepository_updated_at(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueRepository", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_issueId(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_issueId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IssueID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_issueId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_issue(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_issue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.IssueVariant().Issue(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Issue) - fc.Result = res - return ec.marshalOIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_issue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Issue_id(ctx, field) - case "type": - return ec.fieldContext_Issue_type(ctx, field) - case "primaryName": - return ec.fieldContext_Issue_primaryName(ctx, field) - case "description": - return ec.fieldContext_Issue_description(ctx, field) - case "lastModified": - return ec.fieldContext_Issue_lastModified(ctx, field) - case "issueVariants": - return ec.fieldContext_Issue_issueVariants(ctx, field) - case "activities": - return ec.fieldContext_Issue_activities(ctx, field) - case "issueMatches": - return ec.fieldContext_Issue_issueMatches(ctx, field) - case "componentVersions": - return ec.fieldContext_Issue_componentVersions(ctx, field) - case "metadata": - return ec.fieldContext_Issue_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Issue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_created_at(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_created_at(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_created_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariant_updated_at(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariant) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariant_updated_at(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariant_updated_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariant", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariantConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariantConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariantConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariantConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariantConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariantConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariantConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariantConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.IssueVariantEdge) - fc.Result = res - return ec.marshalOIssueVariantEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariantConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariantConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_IssueVariantEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_IssueVariantEdge_cursor(ctx, field) - case "created_at": - return ec.fieldContext_IssueVariantEdge_created_at(ctx, field) - case "updated_at": - return ec.fieldContext_IssueVariantEdge_updated_at(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueVariantEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariantConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariantConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariantConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariantConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariantConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariantEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariantEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariantEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueVariant) - fc.Result = res - return ec.marshalNIssueVariant2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariant(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariantEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariantEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueVariant_id(ctx, field) - case "secondaryName": - return ec.fieldContext_IssueVariant_secondaryName(ctx, field) - case "description": - return ec.fieldContext_IssueVariant_description(ctx, field) - case "severity": - return ec.fieldContext_IssueVariant_severity(ctx, field) - case "issueRepositoryId": - return ec.fieldContext_IssueVariant_issueRepositoryId(ctx, field) - case "issueRepository": - return ec.fieldContext_IssueVariant_issueRepository(ctx, field) - case "issueId": - return ec.fieldContext_IssueVariant_issueId(ctx, field) - case "issue": - return ec.fieldContext_IssueVariant_issue(ctx, field) - case "created_at": - return ec.fieldContext_IssueVariant_created_at(ctx, field) - case "updated_at": - return ec.fieldContext_IssueVariant_updated_at(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueVariant", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariantEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariantEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariantEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariantEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariantEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariantEdge_created_at(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariantEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariantEdge_created_at(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariantEdge_created_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariantEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _IssueVariantEdge_updated_at(ctx context.Context, field graphql.CollectedField, obj *model.IssueVariantEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IssueVariantEdge_updated_at(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODateTime2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_IssueVariantEdge_updated_at(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "IssueVariantEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DateTime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createUser(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateUser(rctx, fc.Args["input"].(model.UserInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.User) - fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "uniqueUserId": - return ec.fieldContext_User_uniqueUserId(ctx, field) - case "type": - return ec.fieldContext_User_type(ctx, field) - case "name": - return ec.fieldContext_User_name(ctx, field) - case "supportGroups": - return ec.fieldContext_User_supportGroups(ctx, field) - case "services": - return ec.fieldContext_User_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateUser(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateUser(rctx, fc.Args["id"].(string), fc.Args["input"].(model.UserInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.User) - fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "uniqueUserId": - return ec.fieldContext_User_uniqueUserId(ctx, field) - case "type": - return ec.fieldContext_User_type(ctx, field) - case "name": - return ec.fieldContext_User_name(ctx, field) - case "supportGroups": - return ec.fieldContext_User_supportGroups(ctx, field) - case "services": - return ec.fieldContext_User_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteUser(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteUser(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createSupportGroup(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateSupportGroup(rctx, fc.Args["input"].(model.SupportGroupInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.SupportGroup) - fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) - case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) - case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateSupportGroup(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateSupportGroup(rctx, fc.Args["id"].(string), fc.Args["input"].(model.SupportGroupInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.SupportGroup) - fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) - case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) - case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteSupportGroup(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteSupportGroup(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addServiceToSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addServiceToSupportGroup(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddServiceToSupportGroup(rctx, fc.Args["supportGroupId"].(string), fc.Args["serviceId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.SupportGroup) - fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addServiceToSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) - case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) - case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addServiceToSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removeServiceFromSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removeServiceFromSupportGroup(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemoveServiceFromSupportGroup(rctx, fc.Args["supportGroupId"].(string), fc.Args["serviceId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.SupportGroup) - fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_removeServiceFromSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) - case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) - case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_removeServiceFromSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addUserToSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addUserToSupportGroup(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddUserToSupportGroup(rctx, fc.Args["supportGroupId"].(string), fc.Args["userId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.SupportGroup) - fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addUserToSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) - case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) - case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addUserToSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removeUserFromSupportGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removeUserFromSupportGroup(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemoveUserFromSupportGroup(rctx, fc.Args["supportGroupId"].(string), fc.Args["userId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.SupportGroup) - fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_removeUserFromSupportGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) - case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) - case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_removeUserFromSupportGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createComponent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createComponent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateComponent(rctx, fc.Args["input"].(model.ComponentInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Component) - fc.Result = res - return ec.marshalNComponent2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createComponent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Component_id(ctx, field) - case "name": - return ec.fieldContext_Component_name(ctx, field) - case "type": - return ec.fieldContext_Component_type(ctx, field) - case "componentVersions": - return ec.fieldContext_Component_componentVersions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Component", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createComponent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateComponent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateComponent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateComponent(rctx, fc.Args["id"].(string), fc.Args["input"].(model.ComponentInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Component) - fc.Result = res - return ec.marshalNComponent2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateComponent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Component_id(ctx, field) - case "name": - return ec.fieldContext_Component_name(ctx, field) - case "type": - return ec.fieldContext_Component_type(ctx, field) - case "componentVersions": - return ec.fieldContext_Component_componentVersions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Component", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateComponent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteComponent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteComponent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteComponent(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteComponent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteComponent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createComponentInstance(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createComponentInstance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateComponentInstance(rctx, fc.Args["input"].(model.ComponentInstanceInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.ComponentInstance) - fc.Result = res - return ec.marshalNComponentInstance2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstance(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createComponentInstance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ComponentInstance_id(ctx, field) - case "ccrn": - return ec.fieldContext_ComponentInstance_ccrn(ctx, field) - case "count": - return ec.fieldContext_ComponentInstance_count(ctx, field) - case "componentVersionId": - return ec.fieldContext_ComponentInstance_componentVersionId(ctx, field) - case "componentVersion": - return ec.fieldContext_ComponentInstance_componentVersion(ctx, field) - case "issueMatches": - return ec.fieldContext_ComponentInstance_issueMatches(ctx, field) - case "serviceId": - return ec.fieldContext_ComponentInstance_serviceId(ctx, field) - case "service": - return ec.fieldContext_ComponentInstance_service(ctx, field) - case "createdAt": - return ec.fieldContext_ComponentInstance_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ComponentInstance_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentInstance", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createComponentInstance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateComponentInstance(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateComponentInstance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateComponentInstance(rctx, fc.Args["id"].(string), fc.Args["input"].(model.ComponentInstanceInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.ComponentInstance) - fc.Result = res - return ec.marshalNComponentInstance2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstance(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateComponentInstance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ComponentInstance_id(ctx, field) - case "ccrn": - return ec.fieldContext_ComponentInstance_ccrn(ctx, field) - case "count": - return ec.fieldContext_ComponentInstance_count(ctx, field) - case "componentVersionId": - return ec.fieldContext_ComponentInstance_componentVersionId(ctx, field) - case "componentVersion": - return ec.fieldContext_ComponentInstance_componentVersion(ctx, field) - case "issueMatches": - return ec.fieldContext_ComponentInstance_issueMatches(ctx, field) - case "serviceId": - return ec.fieldContext_ComponentInstance_serviceId(ctx, field) - case "service": - return ec.fieldContext_ComponentInstance_service(ctx, field) - case "createdAt": - return ec.fieldContext_ComponentInstance_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ComponentInstance_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentInstance", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateComponentInstance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteComponentInstance(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteComponentInstance(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteComponentInstance(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteComponentInstance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteComponentInstance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createComponentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createComponentVersion(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateComponentVersion(rctx, fc.Args["input"].(model.ComponentVersionInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.ComponentVersion) - fc.Result = res - return ec.marshalNComponentVersion2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createComponentVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ComponentVersion_id(ctx, field) - case "version": - return ec.fieldContext_ComponentVersion_version(ctx, field) - case "componentId": - return ec.fieldContext_ComponentVersion_componentId(ctx, field) - case "component": - return ec.fieldContext_ComponentVersion_component(ctx, field) - case "issues": - return ec.fieldContext_ComponentVersion_issues(ctx, field) - case "componentInstances": - return ec.fieldContext_ComponentVersion_componentInstances(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentVersion", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createComponentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateComponentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateComponentVersion(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateComponentVersion(rctx, fc.Args["id"].(string), fc.Args["input"].(model.ComponentVersionInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.ComponentVersion) - fc.Result = res - return ec.marshalNComponentVersion2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateComponentVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ComponentVersion_id(ctx, field) - case "version": - return ec.fieldContext_ComponentVersion_version(ctx, field) - case "componentId": - return ec.fieldContext_ComponentVersion_componentId(ctx, field) - case "component": - return ec.fieldContext_ComponentVersion_component(ctx, field) - case "issues": - return ec.fieldContext_ComponentVersion_issues(ctx, field) - case "componentInstances": - return ec.fieldContext_ComponentVersion_componentInstances(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentVersion", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateComponentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteComponentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteComponentVersion(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteComponentVersion(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteComponentVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteComponentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createService(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateService(rctx, fc.Args["input"].(model.ServiceInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Service) - fc.Result = res - return ec.marshalNService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Service_id(ctx, field) - case "name": - return ec.fieldContext_Service_name(ctx, field) - case "owners": - return ec.fieldContext_Service_owners(ctx, field) - case "supportGroups": - return ec.fieldContext_Service_supportGroups(ctx, field) - case "activities": - return ec.fieldContext_Service_activities(ctx, field) - case "issueRepositories": - return ec.fieldContext_Service_issueRepositories(ctx, field) - case "componentInstances": - return ec.fieldContext_Service_componentInstances(ctx, field) - case "metadata": - return ec.fieldContext_Service_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Service", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateService(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateService(rctx, fc.Args["id"].(string), fc.Args["input"].(model.ServiceInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Service) - fc.Result = res - return ec.marshalNService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Service_id(ctx, field) - case "name": - return ec.fieldContext_Service_name(ctx, field) - case "owners": - return ec.fieldContext_Service_owners(ctx, field) - case "supportGroups": - return ec.fieldContext_Service_supportGroups(ctx, field) - case "activities": - return ec.fieldContext_Service_activities(ctx, field) - case "issueRepositories": - return ec.fieldContext_Service_issueRepositories(ctx, field) - case "componentInstances": - return ec.fieldContext_Service_componentInstances(ctx, field) - case "metadata": - return ec.fieldContext_Service_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Service", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteService(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteService(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addOwnerToService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addOwnerToService(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddOwnerToService(rctx, fc.Args["serviceId"].(string), fc.Args["userId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Service) - fc.Result = res - return ec.marshalNService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addOwnerToService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Service_id(ctx, field) - case "name": - return ec.fieldContext_Service_name(ctx, field) - case "owners": - return ec.fieldContext_Service_owners(ctx, field) - case "supportGroups": - return ec.fieldContext_Service_supportGroups(ctx, field) - case "activities": - return ec.fieldContext_Service_activities(ctx, field) - case "issueRepositories": - return ec.fieldContext_Service_issueRepositories(ctx, field) - case "componentInstances": - return ec.fieldContext_Service_componentInstances(ctx, field) - case "metadata": - return ec.fieldContext_Service_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Service", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addOwnerToService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removeOwnerFromService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removeOwnerFromService(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemoveOwnerFromService(rctx, fc.Args["serviceId"].(string), fc.Args["userId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Service) - fc.Result = res - return ec.marshalNService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_removeOwnerFromService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Service_id(ctx, field) - case "name": - return ec.fieldContext_Service_name(ctx, field) - case "owners": - return ec.fieldContext_Service_owners(ctx, field) - case "supportGroups": - return ec.fieldContext_Service_supportGroups(ctx, field) - case "activities": - return ec.fieldContext_Service_activities(ctx, field) - case "issueRepositories": - return ec.fieldContext_Service_issueRepositories(ctx, field) - case "componentInstances": - return ec.fieldContext_Service_componentInstances(ctx, field) - case "metadata": - return ec.fieldContext_Service_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Service", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_removeOwnerFromService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addIssueRepositoryToService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addIssueRepositoryToService(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddIssueRepositoryToService(rctx, fc.Args["serviceId"].(string), fc.Args["issueRepositoryId"].(string), fc.Args["priority"].(int)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Service) - fc.Result = res - return ec.marshalNService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addIssueRepositoryToService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Service_id(ctx, field) - case "name": - return ec.fieldContext_Service_name(ctx, field) - case "owners": - return ec.fieldContext_Service_owners(ctx, field) - case "supportGroups": - return ec.fieldContext_Service_supportGroups(ctx, field) - case "activities": - return ec.fieldContext_Service_activities(ctx, field) - case "issueRepositories": - return ec.fieldContext_Service_issueRepositories(ctx, field) - case "componentInstances": - return ec.fieldContext_Service_componentInstances(ctx, field) - case "metadata": - return ec.fieldContext_Service_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Service", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addIssueRepositoryToService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removeIssueRepositoryFromService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removeIssueRepositoryFromService(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemoveIssueRepositoryFromService(rctx, fc.Args["serviceId"].(string), fc.Args["issueRepositoryId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Service) - fc.Result = res - return ec.marshalNService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_removeIssueRepositoryFromService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Service_id(ctx, field) - case "name": - return ec.fieldContext_Service_name(ctx, field) - case "owners": - return ec.fieldContext_Service_owners(ctx, field) - case "supportGroups": - return ec.fieldContext_Service_supportGroups(ctx, field) - case "activities": - return ec.fieldContext_Service_activities(ctx, field) - case "issueRepositories": - return ec.fieldContext_Service_issueRepositories(ctx, field) - case "componentInstances": - return ec.fieldContext_Service_componentInstances(ctx, field) - case "metadata": - return ec.fieldContext_Service_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Service", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_removeIssueRepositoryFromService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createIssueRepository(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createIssueRepository(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateIssueRepository(rctx, fc.Args["input"].(model.IssueRepositoryInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueRepository) - fc.Result = res - return ec.marshalNIssueRepository2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepository(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createIssueRepository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueRepository_id(ctx, field) - case "name": - return ec.fieldContext_IssueRepository_name(ctx, field) - case "url": - return ec.fieldContext_IssueRepository_url(ctx, field) - case "issueVariants": - return ec.fieldContext_IssueRepository_issueVariants(ctx, field) - case "services": - return ec.fieldContext_IssueRepository_services(ctx, field) - case "created_at": - return ec.fieldContext_IssueRepository_created_at(ctx, field) - case "updated_at": - return ec.fieldContext_IssueRepository_updated_at(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueRepository", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createIssueRepository_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateIssueRepository(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateIssueRepository(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateIssueRepository(rctx, fc.Args["id"].(string), fc.Args["input"].(model.IssueRepositoryInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueRepository) - fc.Result = res - return ec.marshalNIssueRepository2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepository(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateIssueRepository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueRepository_id(ctx, field) - case "name": - return ec.fieldContext_IssueRepository_name(ctx, field) - case "url": - return ec.fieldContext_IssueRepository_url(ctx, field) - case "issueVariants": - return ec.fieldContext_IssueRepository_issueVariants(ctx, field) - case "services": - return ec.fieldContext_IssueRepository_services(ctx, field) - case "created_at": - return ec.fieldContext_IssueRepository_created_at(ctx, field) - case "updated_at": - return ec.fieldContext_IssueRepository_updated_at(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueRepository", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateIssueRepository_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteIssueRepository(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteIssueRepository(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteIssueRepository(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteIssueRepository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteIssueRepository_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createIssue(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createIssue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateIssue(rctx, fc.Args["input"].(model.IssueInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Issue) - fc.Result = res - return ec.marshalNIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createIssue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Issue_id(ctx, field) - case "type": - return ec.fieldContext_Issue_type(ctx, field) - case "primaryName": - return ec.fieldContext_Issue_primaryName(ctx, field) - case "description": - return ec.fieldContext_Issue_description(ctx, field) - case "lastModified": - return ec.fieldContext_Issue_lastModified(ctx, field) - case "issueVariants": - return ec.fieldContext_Issue_issueVariants(ctx, field) - case "activities": - return ec.fieldContext_Issue_activities(ctx, field) - case "issueMatches": - return ec.fieldContext_Issue_issueMatches(ctx, field) - case "componentVersions": - return ec.fieldContext_Issue_componentVersions(ctx, field) - case "metadata": - return ec.fieldContext_Issue_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Issue", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createIssue_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateIssue(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateIssue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateIssue(rctx, fc.Args["id"].(string), fc.Args["input"].(model.IssueInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Issue) - fc.Result = res - return ec.marshalNIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateIssue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Issue_id(ctx, field) - case "type": - return ec.fieldContext_Issue_type(ctx, field) - case "primaryName": - return ec.fieldContext_Issue_primaryName(ctx, field) - case "description": - return ec.fieldContext_Issue_description(ctx, field) - case "lastModified": - return ec.fieldContext_Issue_lastModified(ctx, field) - case "issueVariants": - return ec.fieldContext_Issue_issueVariants(ctx, field) - case "activities": - return ec.fieldContext_Issue_activities(ctx, field) - case "issueMatches": - return ec.fieldContext_Issue_issueMatches(ctx, field) - case "componentVersions": - return ec.fieldContext_Issue_componentVersions(ctx, field) - case "metadata": - return ec.fieldContext_Issue_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Issue", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateIssue_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteIssue(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteIssue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteIssue(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteIssue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteIssue_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addComponentVersionToIssue(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addComponentVersionToIssue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddComponentVersionToIssue(rctx, fc.Args["issueId"].(string), fc.Args["componentVersionId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Issue) - fc.Result = res - return ec.marshalNIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addComponentVersionToIssue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Issue_id(ctx, field) - case "type": - return ec.fieldContext_Issue_type(ctx, field) - case "primaryName": - return ec.fieldContext_Issue_primaryName(ctx, field) - case "description": - return ec.fieldContext_Issue_description(ctx, field) - case "lastModified": - return ec.fieldContext_Issue_lastModified(ctx, field) - case "issueVariants": - return ec.fieldContext_Issue_issueVariants(ctx, field) - case "activities": - return ec.fieldContext_Issue_activities(ctx, field) - case "issueMatches": - return ec.fieldContext_Issue_issueMatches(ctx, field) - case "componentVersions": - return ec.fieldContext_Issue_componentVersions(ctx, field) - case "metadata": - return ec.fieldContext_Issue_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Issue", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addComponentVersionToIssue_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removeComponentVersionFromIssue(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removeComponentVersionFromIssue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemoveComponentVersionFromIssue(rctx, fc.Args["issueId"].(string), fc.Args["componentVersionId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Issue) - fc.Result = res - return ec.marshalNIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_removeComponentVersionFromIssue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Issue_id(ctx, field) - case "type": - return ec.fieldContext_Issue_type(ctx, field) - case "primaryName": - return ec.fieldContext_Issue_primaryName(ctx, field) - case "description": - return ec.fieldContext_Issue_description(ctx, field) - case "lastModified": - return ec.fieldContext_Issue_lastModified(ctx, field) - case "issueVariants": - return ec.fieldContext_Issue_issueVariants(ctx, field) - case "activities": - return ec.fieldContext_Issue_activities(ctx, field) - case "issueMatches": - return ec.fieldContext_Issue_issueMatches(ctx, field) - case "componentVersions": - return ec.fieldContext_Issue_componentVersions(ctx, field) - case "metadata": - return ec.fieldContext_Issue_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Issue", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_removeComponentVersionFromIssue_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createIssueVariant(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createIssueVariant(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateIssueVariant(rctx, fc.Args["input"].(model.IssueVariantInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueVariant) - fc.Result = res - return ec.marshalNIssueVariant2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariant(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createIssueVariant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueVariant_id(ctx, field) - case "secondaryName": - return ec.fieldContext_IssueVariant_secondaryName(ctx, field) - case "description": - return ec.fieldContext_IssueVariant_description(ctx, field) - case "severity": - return ec.fieldContext_IssueVariant_severity(ctx, field) - case "issueRepositoryId": - return ec.fieldContext_IssueVariant_issueRepositoryId(ctx, field) - case "issueRepository": - return ec.fieldContext_IssueVariant_issueRepository(ctx, field) - case "issueId": - return ec.fieldContext_IssueVariant_issueId(ctx, field) - case "issue": - return ec.fieldContext_IssueVariant_issue(ctx, field) - case "created_at": - return ec.fieldContext_IssueVariant_created_at(ctx, field) - case "updated_at": - return ec.fieldContext_IssueVariant_updated_at(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueVariant", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createIssueVariant_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateIssueVariant(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateIssueVariant(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateIssueVariant(rctx, fc.Args["id"].(string), fc.Args["input"].(model.IssueVariantInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueVariant) - fc.Result = res - return ec.marshalNIssueVariant2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariant(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateIssueVariant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueVariant_id(ctx, field) - case "secondaryName": - return ec.fieldContext_IssueVariant_secondaryName(ctx, field) - case "description": - return ec.fieldContext_IssueVariant_description(ctx, field) - case "severity": - return ec.fieldContext_IssueVariant_severity(ctx, field) - case "issueRepositoryId": - return ec.fieldContext_IssueVariant_issueRepositoryId(ctx, field) - case "issueRepository": - return ec.fieldContext_IssueVariant_issueRepository(ctx, field) - case "issueId": - return ec.fieldContext_IssueVariant_issueId(ctx, field) - case "issue": - return ec.fieldContext_IssueVariant_issue(ctx, field) - case "created_at": - return ec.fieldContext_IssueVariant_created_at(ctx, field) - case "updated_at": - return ec.fieldContext_IssueVariant_updated_at(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueVariant", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateIssueVariant_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteIssueVariant(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteIssueVariant(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteIssueVariant(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteIssueVariant(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteIssueVariant_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEvidence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEvidence(rctx, fc.Args["input"].(model.EvidenceInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Evidence) - fc.Result = res - return ec.marshalNEvidence2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidence(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createEvidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Evidence_id(ctx, field) - case "description": - return ec.fieldContext_Evidence_description(ctx, field) - case "type": - return ec.fieldContext_Evidence_type(ctx, field) - case "vector": - return ec.fieldContext_Evidence_vector(ctx, field) - case "raaEnd": - return ec.fieldContext_Evidence_raaEnd(ctx, field) - case "authorId": - return ec.fieldContext_Evidence_authorId(ctx, field) - case "author": - return ec.fieldContext_Evidence_author(ctx, field) - case "activityId": - return ec.fieldContext_Evidence_activityId(ctx, field) - case "activity": - return ec.fieldContext_Evidence_activity(ctx, field) - case "issueMatches": - return ec.fieldContext_Evidence_issueMatches(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Evidence", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEvidence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEvidence(rctx, fc.Args["id"].(string), fc.Args["input"].(model.EvidenceInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Evidence) - fc.Result = res - return ec.marshalNEvidence2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidence(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateEvidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Evidence_id(ctx, field) - case "description": - return ec.fieldContext_Evidence_description(ctx, field) - case "type": - return ec.fieldContext_Evidence_type(ctx, field) - case "vector": - return ec.fieldContext_Evidence_vector(ctx, field) - case "raaEnd": - return ec.fieldContext_Evidence_raaEnd(ctx, field) - case "authorId": - return ec.fieldContext_Evidence_authorId(ctx, field) - case "author": - return ec.fieldContext_Evidence_author(ctx, field) - case "activityId": - return ec.fieldContext_Evidence_activityId(ctx, field) - case "activity": - return ec.fieldContext_Evidence_activity(ctx, field) - case "issueMatches": - return ec.fieldContext_Evidence_issueMatches(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Evidence", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEvidence(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEvidence(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteEvidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createIssueMatch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createIssueMatch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateIssueMatch(rctx, fc.Args["input"].(model.IssueMatchInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueMatch) - fc.Result = res - return ec.marshalNIssueMatch2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatch(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createIssueMatch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueMatch_id(ctx, field) - case "status": - return ec.fieldContext_IssueMatch_status(ctx, field) - case "remediationDate": - return ec.fieldContext_IssueMatch_remediationDate(ctx, field) - case "discoveryDate": - return ec.fieldContext_IssueMatch_discoveryDate(ctx, field) - case "targetRemediationDate": - return ec.fieldContext_IssueMatch_targetRemediationDate(ctx, field) - case "severity": - return ec.fieldContext_IssueMatch_severity(ctx, field) - case "effectiveIssueVariants": - return ec.fieldContext_IssueMatch_effectiveIssueVariants(ctx, field) - case "evidences": - return ec.fieldContext_IssueMatch_evidences(ctx, field) - case "issueId": - return ec.fieldContext_IssueMatch_issueId(ctx, field) - case "issue": - return ec.fieldContext_IssueMatch_issue(ctx, field) - case "userId": - return ec.fieldContext_IssueMatch_userId(ctx, field) - case "user": - return ec.fieldContext_IssueMatch_user(ctx, field) - case "componentInstanceId": - return ec.fieldContext_IssueMatch_componentInstanceId(ctx, field) - case "componentInstance": - return ec.fieldContext_IssueMatch_componentInstance(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_IssueMatch_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatch", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createIssueMatch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateIssueMatch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateIssueMatch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateIssueMatch(rctx, fc.Args["id"].(string), fc.Args["input"].(model.IssueMatchInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueMatch) - fc.Result = res - return ec.marshalNIssueMatch2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatch(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateIssueMatch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueMatch_id(ctx, field) - case "status": - return ec.fieldContext_IssueMatch_status(ctx, field) - case "remediationDate": - return ec.fieldContext_IssueMatch_remediationDate(ctx, field) - case "discoveryDate": - return ec.fieldContext_IssueMatch_discoveryDate(ctx, field) - case "targetRemediationDate": - return ec.fieldContext_IssueMatch_targetRemediationDate(ctx, field) - case "severity": - return ec.fieldContext_IssueMatch_severity(ctx, field) - case "effectiveIssueVariants": - return ec.fieldContext_IssueMatch_effectiveIssueVariants(ctx, field) - case "evidences": - return ec.fieldContext_IssueMatch_evidences(ctx, field) - case "issueId": - return ec.fieldContext_IssueMatch_issueId(ctx, field) - case "issue": - return ec.fieldContext_IssueMatch_issue(ctx, field) - case "userId": - return ec.fieldContext_IssueMatch_userId(ctx, field) - case "user": - return ec.fieldContext_IssueMatch_user(ctx, field) - case "componentInstanceId": - return ec.fieldContext_IssueMatch_componentInstanceId(ctx, field) - case "componentInstance": - return ec.fieldContext_IssueMatch_componentInstance(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_IssueMatch_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatch", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateIssueMatch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteIssueMatch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteIssueMatch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteIssueMatch(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteIssueMatch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteIssueMatch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addEvidenceToIssueMatch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addEvidenceToIssueMatch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddEvidenceToIssueMatch(rctx, fc.Args["issueMatchId"].(string), fc.Args["evidenceId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueMatch) - fc.Result = res - return ec.marshalNIssueMatch2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatch(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addEvidenceToIssueMatch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueMatch_id(ctx, field) - case "status": - return ec.fieldContext_IssueMatch_status(ctx, field) - case "remediationDate": - return ec.fieldContext_IssueMatch_remediationDate(ctx, field) - case "discoveryDate": - return ec.fieldContext_IssueMatch_discoveryDate(ctx, field) - case "targetRemediationDate": - return ec.fieldContext_IssueMatch_targetRemediationDate(ctx, field) - case "severity": - return ec.fieldContext_IssueMatch_severity(ctx, field) - case "effectiveIssueVariants": - return ec.fieldContext_IssueMatch_effectiveIssueVariants(ctx, field) - case "evidences": - return ec.fieldContext_IssueMatch_evidences(ctx, field) - case "issueId": - return ec.fieldContext_IssueMatch_issueId(ctx, field) - case "issue": - return ec.fieldContext_IssueMatch_issue(ctx, field) - case "userId": - return ec.fieldContext_IssueMatch_userId(ctx, field) - case "user": - return ec.fieldContext_IssueMatch_user(ctx, field) - case "componentInstanceId": - return ec.fieldContext_IssueMatch_componentInstanceId(ctx, field) - case "componentInstance": - return ec.fieldContext_IssueMatch_componentInstance(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_IssueMatch_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatch", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addEvidenceToIssueMatch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removeEvidenceFromIssueMatch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removeEvidenceFromIssueMatch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemoveEvidenceFromIssueMatch(rctx, fc.Args["issueMatchId"].(string), fc.Args["evidenceId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueMatch) - fc.Result = res - return ec.marshalNIssueMatch2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatch(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_removeEvidenceFromIssueMatch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueMatch_id(ctx, field) - case "status": - return ec.fieldContext_IssueMatch_status(ctx, field) - case "remediationDate": - return ec.fieldContext_IssueMatch_remediationDate(ctx, field) - case "discoveryDate": - return ec.fieldContext_IssueMatch_discoveryDate(ctx, field) - case "targetRemediationDate": - return ec.fieldContext_IssueMatch_targetRemediationDate(ctx, field) - case "severity": - return ec.fieldContext_IssueMatch_severity(ctx, field) - case "effectiveIssueVariants": - return ec.fieldContext_IssueMatch_effectiveIssueVariants(ctx, field) - case "evidences": - return ec.fieldContext_IssueMatch_evidences(ctx, field) - case "issueId": - return ec.fieldContext_IssueMatch_issueId(ctx, field) - case "issue": - return ec.fieldContext_IssueMatch_issue(ctx, field) - case "userId": - return ec.fieldContext_IssueMatch_userId(ctx, field) - case "user": - return ec.fieldContext_IssueMatch_user(ctx, field) - case "componentInstanceId": - return ec.fieldContext_IssueMatch_componentInstanceId(ctx, field) - case "componentInstance": - return ec.fieldContext_IssueMatch_componentInstance(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_IssueMatch_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatch", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_removeEvidenceFromIssueMatch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createIssueMatchChange(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createIssueMatchChange(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateIssueMatchChange(rctx, fc.Args["input"].(model.IssueMatchChangeInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueMatchChange) - fc.Result = res - return ec.marshalNIssueMatchChange2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChange(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createIssueMatchChange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueMatchChange_id(ctx, field) - case "action": - return ec.fieldContext_IssueMatchChange_action(ctx, field) - case "issueMatchId": - return ec.fieldContext_IssueMatchChange_issueMatchId(ctx, field) - case "issueMatch": - return ec.fieldContext_IssueMatchChange_issueMatch(ctx, field) - case "activityId": - return ec.fieldContext_IssueMatchChange_activityId(ctx, field) - case "activity": - return ec.fieldContext_IssueMatchChange_activity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchChange", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createIssueMatchChange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateIssueMatchChange(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateIssueMatchChange(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateIssueMatchChange(rctx, fc.Args["id"].(string), fc.Args["input"].(model.IssueMatchChangeInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.IssueMatchChange) - fc.Result = res - return ec.marshalNIssueMatchChange2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChange(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateIssueMatchChange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_IssueMatchChange_id(ctx, field) - case "action": - return ec.fieldContext_IssueMatchChange_action(ctx, field) - case "issueMatchId": - return ec.fieldContext_IssueMatchChange_issueMatchId(ctx, field) - case "issueMatch": - return ec.fieldContext_IssueMatchChange_issueMatch(ctx, field) - case "activityId": - return ec.fieldContext_IssueMatchChange_activityId(ctx, field) - case "activity": - return ec.fieldContext_IssueMatchChange_activity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchChange", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateIssueMatchChange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteIssueMatchChange(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteIssueMatchChange(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteIssueMatchChange(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteIssueMatchChange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteIssueMatchChange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createActivity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateActivity(rctx, fc.Args["input"].(model.ActivityInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Activity) - fc.Result = res - return ec.marshalNActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_createActivity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "status": - return ec.fieldContext_Activity_status(ctx, field) - case "services": - return ec.fieldContext_Activity_services(ctx, field) - case "issues": - return ec.fieldContext_Activity_issues(ctx, field) - case "evidences": - return ec.fieldContext_Activity_evidences(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_Activity_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateActivity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateActivity(rctx, fc.Args["id"].(string), fc.Args["input"].(model.ActivityInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Activity) - fc.Result = res - return ec.marshalNActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_updateActivity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "status": - return ec.fieldContext_Activity_status(ctx, field) - case "services": - return ec.fieldContext_Activity_services(ctx, field) - case "issues": - return ec.fieldContext_Activity_issues(ctx, field) - case "evidences": - return ec.fieldContext_Activity_evidences(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_Activity_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteActivity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteActivity(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_deleteActivity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addServiceToActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addServiceToActivity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddServiceToActivity(rctx, fc.Args["activityId"].(string), fc.Args["serviceId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Activity) - fc.Result = res - return ec.marshalNActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addServiceToActivity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "status": - return ec.fieldContext_Activity_status(ctx, field) - case "services": - return ec.fieldContext_Activity_services(ctx, field) - case "issues": - return ec.fieldContext_Activity_issues(ctx, field) - case "evidences": - return ec.fieldContext_Activity_evidences(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_Activity_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addServiceToActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removeServiceFromActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removeServiceFromActivity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemoveServiceFromActivity(rctx, fc.Args["activityId"].(string), fc.Args["serviceId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Activity) - fc.Result = res - return ec.marshalNActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_removeServiceFromActivity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "status": - return ec.fieldContext_Activity_status(ctx, field) - case "services": - return ec.fieldContext_Activity_services(ctx, field) - case "issues": - return ec.fieldContext_Activity_issues(ctx, field) - case "evidences": - return ec.fieldContext_Activity_evidences(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_Activity_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_removeServiceFromActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_addIssueToActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_addIssueToActivity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().AddIssueToActivity(rctx, fc.Args["activityId"].(string), fc.Args["issueId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Activity) - fc.Result = res - return ec.marshalNActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_addIssueToActivity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "status": - return ec.fieldContext_Activity_status(ctx, field) - case "services": - return ec.fieldContext_Activity_services(ctx, field) - case "issues": - return ec.fieldContext_Activity_issues(ctx, field) - case "evidences": - return ec.fieldContext_Activity_evidences(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_Activity_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_addIssueToActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removeIssueFromActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_removeIssueFromActivity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().RemoveIssueFromActivity(rctx, fc.Args["activityId"].(string), fc.Args["issueId"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Activity) - fc.Result = res - return ec.marshalNActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_removeIssueFromActivity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Mutation", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Activity_id(ctx, field) - case "status": - return ec.fieldContext_Activity_status(ctx, field) - case "services": - return ec.fieldContext_Activity_services(ctx, field) - case "issues": - return ec.fieldContext_Activity_issues(ctx, field) - case "evidences": - return ec.fieldContext_Activity_evidences(ctx, field) - case "issueMatchChanges": - return ec.fieldContext_Activity_issueMatchChanges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Activity", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_removeIssueFromActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Page_after(ctx context.Context, field graphql.CollectedField, obj *model.Page) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Page_after(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.After, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Page_after(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Page", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Page_isCurrent(ctx context.Context, field graphql.CollectedField, obj *model.Page) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Page_isCurrent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsCurrent, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Page_isCurrent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Page", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Page_pageNumber(ctx context.Context, field graphql.CollectedField, obj *model.Page) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Page_pageNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageNumber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Page_pageNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Page", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Page_pageCount(ctx context.Context, field graphql.CollectedField, obj *model.Page) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Page_pageCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Page_pageCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Page", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasNextPage, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasPreviousPage, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_isValidPage(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_isValidPage(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsValidPage, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*bool) - fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_isValidPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_pageNumber(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_pageNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageNumber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_pageNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_nextPageAfter(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.NextPageAfter, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_nextPageAfter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_pages(ctx context.Context, field graphql.CollectedField, obj *model.PageInfo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_pages(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Pages, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.Page) - fc.Result = res - return ec.marshalOPage2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPage(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_pages(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "after": - return ec.fieldContext_Page_after(ctx, field) - case "isCurrent": - return ec.fieldContext_Page_isCurrent(ctx, field) - case "pageNumber": - return ec.fieldContext_Page_pageNumber(ctx, field) - case "pageCount": - return ec.fieldContext_Page_pageCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Page", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_Issues(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_Issues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Issues(rctx, fc.Args["filter"].(*model.IssueFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueConnection) - fc.Result = res - return ec.marshalOIssueConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_Issues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueConnection_totalCount(ctx, field) - case "vulnerabilityCount": - return ec.fieldContext_IssueConnection_vulnerabilityCount(ctx, field) - case "policyViolationCount": - return ec.fieldContext_IssueConnection_policyViolationCount(ctx, field) - case "securityEventCount": - return ec.fieldContext_IssueConnection_securityEventCount(ctx, field) - case "edges": - return ec.fieldContext_IssueConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_Issues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_IssueMatches(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_IssueMatches(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().IssueMatches(rctx, fc.Args["filter"].(*model.IssueMatchFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchConnection) - fc.Result = res - return ec.marshalOIssueMatchConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_IssueMatches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueMatchConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueMatchConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueMatchConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_IssueMatches_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_IssueMatchChanges(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_IssueMatchChanges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().IssueMatchChanges(rctx, fc.Args["filter"].(*model.IssueMatchChangeFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchChangeConnection) - fc.Result = res - return ec.marshalOIssueMatchChangeConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_IssueMatchChanges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueMatchChangeConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueMatchChangeConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueMatchChangeConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchChangeConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_IssueMatchChanges_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_Services(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_Services(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Services(rctx, fc.Args["filter"].(*model.ServiceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ServiceConnection) - fc.Result = res - return ec.marshalOServiceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_Services(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ServiceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ServiceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ServiceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ServiceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_Services_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_Components(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_Components(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Components(rctx, fc.Args["filter"].(*model.ComponentFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentConnection) - fc.Result = res - return ec.marshalOComponentConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_Components(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ComponentConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ComponentConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComponentConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_Components_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_ComponentVersions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_ComponentVersions(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ComponentVersions(rctx, fc.Args["filter"].(*model.ComponentVersionFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentVersionConnection) - fc.Result = res - return ec.marshalOComponentVersionConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_ComponentVersions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ComponentVersionConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ComponentVersionConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComponentVersionConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentVersionConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_ComponentVersions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_ComponentInstances(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_ComponentInstances(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ComponentInstances(rctx, fc.Args["filter"].(*model.ComponentInstanceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentInstanceConnection) - fc.Result = res - return ec.marshalOComponentInstanceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_ComponentInstances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ComponentInstanceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ComponentInstanceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComponentInstanceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentInstanceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_ComponentInstances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_Activities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_Activities(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Activities(rctx, fc.Args["filter"].(*model.ActivityFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ActivityConnection) - fc.Result = res - return ec.marshalOActivityConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_Activities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ActivityConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ActivityConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ActivityConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActivityConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_Activities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_IssueVariants(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_IssueVariants(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().IssueVariants(rctx, fc.Args["filter"].(*model.IssueVariantFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueVariantConnection) - fc.Result = res - return ec.marshalOIssueVariantConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_IssueVariants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueVariantConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueVariantConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueVariantConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueVariantConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_IssueVariants_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_IssueRepositories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_IssueRepositories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().IssueRepositories(rctx, fc.Args["filter"].(*model.IssueRepositoryFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueRepositoryConnection) - fc.Result = res - return ec.marshalOIssueRepositoryConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_IssueRepositories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueRepositoryConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueRepositoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueRepositoryConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueRepositoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_IssueRepositories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_Evidences(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_Evidences(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Evidences(rctx, fc.Args["filter"].(*model.EvidenceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.EvidenceConnection) - fc.Result = res - return ec.marshalOEvidenceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_Evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_EvidenceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_EvidenceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EvidenceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EvidenceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_Evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_SupportGroups(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_SupportGroups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SupportGroups(rctx, fc.Args["filter"].(*model.SupportGroupFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.SupportGroupConnection) - fc.Result = res - return ec.marshalOSupportGroupConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_SupportGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_SupportGroupConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_SupportGroupConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SupportGroupConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroupConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_SupportGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_Users(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_Users(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Users(rctx, fc.Args["filter"].(*model.UserFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.UserConnection) - fc.Result = res - return ec.marshalOUserConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_Users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_UserConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_UserConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_UserConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_Users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_ServiceFilterValues(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_ServiceFilterValues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ServiceFilterValues(rctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ServiceFilterValue) - fc.Result = res - return ec.marshalOServiceFilterValue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilterValue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_ServiceFilterValues(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "serviceName": - return ec.fieldContext_ServiceFilterValue_serviceName(ctx, field) - case "uniqueUserId": - return ec.fieldContext_ServiceFilterValue_uniqueUserId(ctx, field) - case "userName": - return ec.fieldContext_ServiceFilterValue_userName(ctx, field) - case "supportGroupName": - return ec.fieldContext_ServiceFilterValue_supportGroupName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ServiceFilterValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_IssueMatchFilterValues(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_IssueMatchFilterValues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().IssueMatchFilterValues(rctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueMatchFilterValue) - fc.Result = res - return ec.marshalOIssueMatchFilterValue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilterValue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_IssueMatchFilterValues(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "status": - return ec.fieldContext_IssueMatchFilterValue_status(ctx, field) - case "severity": - return ec.fieldContext_IssueMatchFilterValue_severity(ctx, field) - case "issueType": - return ec.fieldContext_IssueMatchFilterValue_issueType(ctx, field) - case "primaryName": - return ec.fieldContext_IssueMatchFilterValue_primaryName(ctx, field) - case "affectedService": - return ec.fieldContext_IssueMatchFilterValue_affectedService(ctx, field) - case "componentName": - return ec.fieldContext_IssueMatchFilterValue_componentName(ctx, field) - case "supportGroupName": - return ec.fieldContext_IssueMatchFilterValue_supportGroupName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueMatchFilterValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_ComponentInstanceFilterValues(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_ComponentInstanceFilterValues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ComponentInstanceFilterValues(rctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentInstanceFilterValue) - fc.Result = res - return ec.marshalOComponentInstanceFilterValue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilterValue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_ComponentInstanceFilterValues(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "serviceName": - return ec.fieldContext_ComponentInstanceFilterValue_serviceName(ctx, field) - case "supportGroupName": - return ec.fieldContext_ComponentInstanceFilterValue_supportGroupName(ctx, field) - case "ccrn": - return ec.fieldContext_ComponentInstanceFilterValue_ccrn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentInstanceFilterValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_ComponentFilterValues(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_ComponentFilterValues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ComponentFilterValues(rctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentFilterValue) - fc.Result = res - return ec.marshalOComponentFilterValue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilterValue(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_ComponentFilterValues(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "componentName": - return ec.fieldContext_ComponentFilterValue_componentName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentFilterValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.introspectType(fc.Args["name"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___schema(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.introspectSchema() - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Schema) - fc.Result = res - return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "description": - return ec.fieldContext___Schema_description(ctx, field) - case "types": - return ec.fieldContext___Schema_types(ctx, field) - case "queryType": - return ec.fieldContext___Schema_queryType(ctx, field) - case "mutationType": - return ec.fieldContext___Schema_mutationType(ctx, field) - case "subscriptionType": - return ec.fieldContext___Schema_subscriptionType(ctx, field) - case "directives": - return ec.fieldContext___Schema_directives(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Service_id(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Service_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Service_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Service", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Service_name(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Service_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Service_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Service", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Service_owners(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Service_owners(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Service().Owners(rctx, obj, fc.Args["filter"].(*model.UserFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.UserConnection) - fc.Result = res - return ec.marshalOUserConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Service_owners(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Service", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_UserConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_UserConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_UserConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Service_owners_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Service_supportGroups(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Service_supportGroups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Service().SupportGroups(rctx, obj, fc.Args["filter"].(*model.SupportGroupFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.SupportGroupConnection) - fc.Result = res - return ec.marshalOSupportGroupConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Service_supportGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Service", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_SupportGroupConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_SupportGroupConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SupportGroupConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroupConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Service_supportGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Service_activities(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Service_activities(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Service().Activities(rctx, obj, fc.Args["filter"].(*model.ActivityFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ActivityConnection) - fc.Result = res - return ec.marshalOActivityConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Service_activities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Service", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ActivityConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ActivityConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ActivityConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActivityConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Service_activities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Service_issueRepositories(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Service_issueRepositories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Service().IssueRepositories(rctx, obj, fc.Args["filter"].(*model.IssueRepositoryFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.IssueRepositoryConnection) - fc.Result = res - return ec.marshalOIssueRepositoryConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Service_issueRepositories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Service", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_IssueRepositoryConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_IssueRepositoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IssueRepositoryConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IssueRepositoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Service_issueRepositories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Service_componentInstances(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Service_componentInstances(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Service().ComponentInstances(rctx, obj, fc.Args["filter"].(*model.ComponentInstanceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ComponentInstanceConnection) - fc.Result = res - return ec.marshalOComponentInstanceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Service_componentInstances(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Service", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ComponentInstanceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ComponentInstanceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComponentInstanceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComponentInstanceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Service_componentInstances_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Service_metadata(ctx context.Context, field graphql.CollectedField, obj *model.Service) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Service_metadata(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ServiceMetadata) - fc.Result = res - return ec.marshalOServiceMetadata2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceMetadata(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Service_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Service", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "issueMatchCount": - return ec.fieldContext_ServiceMetadata_issueMatchCount(ctx, field) - case "componentInstanceCount": - return ec.fieldContext_ServiceMetadata_componentInstanceCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ServiceMetadata", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ServiceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.ServiceConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ServiceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.ServiceConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.ServiceEdge) - fc.Result = res - return ec.marshalOServiceEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ServiceEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ServiceEdge_cursor(ctx, field) - case "priority": - return ec.fieldContext_ServiceEdge_priority(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ServiceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ServiceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.ServiceConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ServiceEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.ServiceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.Service) - fc.Result = res - return ec.marshalNService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Service_id(ctx, field) - case "name": - return ec.fieldContext_Service_name(ctx, field) - case "owners": - return ec.fieldContext_Service_owners(ctx, field) - case "supportGroups": - return ec.fieldContext_Service_supportGroups(ctx, field) - case "activities": - return ec.fieldContext_Service_activities(ctx, field) - case "issueRepositories": - return ec.fieldContext_Service_issueRepositories(ctx, field) - case "componentInstances": - return ec.fieldContext_Service_componentInstances(ctx, field) - case "metadata": - return ec.fieldContext_Service_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Service", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ServiceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.ServiceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ServiceEdge_priority(ctx context.Context, field graphql.CollectedField, obj *model.ServiceEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceEdge_priority(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Priority, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*int) - fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceEdge_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ServiceFilterValue_serviceName(ctx context.Context, field graphql.CollectedField, obj *model.ServiceFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceFilterValue_serviceName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ServiceFilterValue().ServiceName(rctx, obj, fc.Args["filter"].(*model.ServiceFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceFilterValue_serviceName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ServiceFilterValue_serviceName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ServiceFilterValue_uniqueUserId(ctx context.Context, field graphql.CollectedField, obj *model.ServiceFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceFilterValue_uniqueUserId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ServiceFilterValue().UniqueUserID(rctx, obj, fc.Args["filter"].(*model.UserFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceFilterValue_uniqueUserId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ServiceFilterValue_uniqueUserId_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ServiceFilterValue_userName(ctx context.Context, field graphql.CollectedField, obj *model.ServiceFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceFilterValue_userName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ServiceFilterValue().UserName(rctx, obj, fc.Args["filter"].(*model.UserFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceFilterValue_userName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ServiceFilterValue_userName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ServiceFilterValue_supportGroupName(ctx context.Context, field graphql.CollectedField, obj *model.ServiceFilterValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceFilterValue_supportGroupName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.ServiceFilterValue().SupportGroupName(rctx, obj, fc.Args["filter"].(*model.SupportGroupFilter)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.FilterItem) - fc.Result = res - return ec.marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceFilterValue_supportGroupName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceFilterValue", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "displayName": - return ec.fieldContext_FilterItem_displayName(ctx, field) - case "filterName": - return ec.fieldContext_FilterItem_filterName(ctx, field) - case "values": - return ec.fieldContext_FilterItem_values(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FilterItem", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ServiceFilterValue_supportGroupName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ServiceMetadata_issueMatchCount(ctx context.Context, field graphql.CollectedField, obj *model.ServiceMetadata) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceMetadata_issueMatchCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IssueMatchCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceMetadata_issueMatchCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceMetadata", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ServiceMetadata_componentInstanceCount(ctx context.Context, field graphql.CollectedField, obj *model.ServiceMetadata) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ServiceMetadata_componentInstanceCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ComponentInstanceCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ServiceMetadata_componentInstanceCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ServiceMetadata", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Severity_value(ctx context.Context, field graphql.CollectedField, obj *model.Severity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Severity_value(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Value, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.SeverityValues) - fc.Result = res - return ec.marshalOSeverityValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityValues(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Severity_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Severity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SeverityValues does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Severity_score(ctx context.Context, field graphql.CollectedField, obj *model.Severity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Severity_score(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Score, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*float64) - fc.Result = res - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Severity_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Severity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Severity_cvss(ctx context.Context, field graphql.CollectedField, obj *model.Severity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Severity_cvss(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cvss, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.Cvss) - fc.Result = res - return ec.marshalOCVSS2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐCvss(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Severity_cvss(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Severity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "vector": - return ec.fieldContext_CVSS_vector(ctx, field) - case "base": - return ec.fieldContext_CVSS_base(ctx, field) - case "temporal": - return ec.fieldContext_CVSS_temporal(ctx, field) - case "environmental": - return ec.fieldContext_CVSS_environmental(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CVSS", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SupportGroup_id(ctx context.Context, field graphql.CollectedField, obj *model.SupportGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SupportGroup_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SupportGroup_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SupportGroup", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SupportGroup_name(ctx context.Context, field graphql.CollectedField, obj *model.SupportGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SupportGroup_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SupportGroup_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SupportGroup", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SupportGroup_users(ctx context.Context, field graphql.CollectedField, obj *model.SupportGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SupportGroup_users(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.SupportGroup().Users(rctx, obj, fc.Args["filter"].(*model.UserFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.UserConnection) - fc.Result = res - return ec.marshalOUserConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SupportGroup_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SupportGroup", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_UserConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_UserConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_UserConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SupportGroup_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SupportGroup_services(ctx context.Context, field graphql.CollectedField, obj *model.SupportGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SupportGroup_services(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.SupportGroup().Services(rctx, obj, fc.Args["filter"].(*model.ServiceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ServiceConnection) - fc.Result = res - return ec.marshalOServiceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SupportGroup_services(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SupportGroup", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ServiceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ServiceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ServiceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ServiceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SupportGroup_services_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SupportGroupConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.SupportGroupConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SupportGroupConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SupportGroupConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SupportGroupConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SupportGroupConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.SupportGroupConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SupportGroupConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.SupportGroupEdge) - fc.Result = res - return ec.marshalOSupportGroupEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SupportGroupConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SupportGroupConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_SupportGroupEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_SupportGroupEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroupEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SupportGroupConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.SupportGroupConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SupportGroupConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SupportGroupConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SupportGroupConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SupportGroupEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.SupportGroupEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SupportGroupEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.SupportGroup) - fc.Result = res - return ec.marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SupportGroupEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SupportGroupEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_SupportGroup_id(ctx, field) - case "name": - return ec.fieldContext_SupportGroup_name(ctx, field) - case "users": - return ec.fieldContext_SupportGroup_users(ctx, field) - case "services": - return ec.fieldContext_SupportGroup_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroup", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SupportGroupEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.SupportGroupEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SupportGroupEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SupportGroupEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SupportGroupEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_uniqueUserId(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_uniqueUserId(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UniqueUserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_uniqueUserId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_type(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_name(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_supportGroups(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_supportGroups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.User().SupportGroups(rctx, obj, fc.Args["filter"].(*model.SupportGroupFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.SupportGroupConnection) - fc.Result = res - return ec.marshalOSupportGroupConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_supportGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_SupportGroupConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_SupportGroupConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SupportGroupConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SupportGroupConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_supportGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _User_services(ctx context.Context, field graphql.CollectedField, obj *model.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_services(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.User().Services(rctx, obj, fc.Args["filter"].(*model.ServiceFilter), fc.Args["first"].(*int), fc.Args["after"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.ServiceConnection) - fc.Result = res - return ec.marshalOServiceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_services(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ServiceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ServiceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ServiceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ServiceConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_User_services_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.UserConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.UserConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*model.UserEdge) - fc.Result = res - return ec.marshalOUserEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_UserEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_UserEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.UserConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*model.PageInfo) - fc.Result = res - return ec.marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "isValidPage": - return ec.fieldContext_PageInfo_isValidPage(ctx, field) - case "pageNumber": - return ec.fieldContext_PageInfo_pageNumber(ctx, field) - case "nextPageAfter": - return ec.fieldContext_PageInfo_nextPageAfter(ctx, field) - case "pages": - return ec.fieldContext_PageInfo_pages(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.UserEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*model.User) - fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "uniqueUserId": - return ec.fieldContext_User_uniqueUserId(ctx, field) - case "type": - return ec.fieldContext_User_type(ctx, field) - case "name": - return ec.fieldContext_User_name(ctx, field) - case "supportGroups": - return ec.fieldContext_User_supportGroups(ctx, field) - case "services": - return ec.fieldContext_User_services(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.UserEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_locations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Locations, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type __DirectiveLocation does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_args(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Args, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsRepeatable, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_args(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Args, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DefaultValue, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_types(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Types(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_queryType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QueryType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_mutationType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MutationType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubscriptionType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_directives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Directives(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.Directive) - fc.Result = res - return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___Directive_name(ctx, field) - case "description": - return ec.fieldContext___Directive_description(ctx, field) - case "locations": - return ec.fieldContext___Directive_locations(ctx, field) - case "args": - return ec.fieldContext___Directive_args(ctx, field) - case "isRepeatable": - return ec.fieldContext___Directive_isRepeatable(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_kind(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Kind(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalN__TypeKind2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type __TypeKind does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_fields(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Field) - fc.Result = res - return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___Field_name(ctx, field) - case "description": - return ec.fieldContext___Field_description(ctx, field) - case "args": - return ec.fieldContext___Field_args(ctx, field) - case "type": - return ec.fieldContext___Field_type(ctx, field) - case "isDeprecated": - return ec.fieldContext___Field_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___Field_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_interfaces(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Interfaces(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PossibleTypes(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_enumValues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.EnumValue) - fc.Result = res - return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___EnumValue_name(ctx, field) - case "description": - return ec.fieldContext___EnumValue_description(ctx, field) - case "isDeprecated": - return ec.fieldContext___EnumValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___EnumValue_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_inputFields(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.InputFields(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - fc.Result = res - return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_ofType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OfType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SpecifiedByURL(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -// endregion **************************** field.gotpl ***************************** - -// region **************************** input.gotpl ***************************** - -func (ec *executionContext) unmarshalInputActivityFilter(ctx context.Context, obj interface{}) (model.ActivityFilter, error) { - var it model.ActivityFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"serviceName", "status"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "serviceName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ServiceName = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOActivityStatusValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx, v) - if err != nil { - return it, err - } - it.Status = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputActivityInput(ctx context.Context, obj interface{}) (model.ActivityInput, error) { - var it model.ActivityInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"status"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOActivityStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx, v) - if err != nil { - return it, err - } - it.Status = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputComponentFilter(ctx context.Context, obj interface{}) (model.ComponentFilter, error) { - var it model.ComponentFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"componentName"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "componentName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ComponentName = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputComponentInput(ctx context.Context, obj interface{}) (model.ComponentInput, error) { - var it model.ComponentInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"name", "type"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalOComponentTypeValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentTypeValues(ctx, v) - if err != nil { - return it, err - } - it.Type = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputComponentInstanceFilter(ctx context.Context, obj interface{}) (model.ComponentInstanceFilter, error) { - var it model.ComponentInstanceFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"serviceName", "ccrn", "supportGroup", "search"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "serviceName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ServiceName = data - case "ccrn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ccrn")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Ccrn = data - case "supportGroup": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroup")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SupportGroup = data - case "search": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Search = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputComponentInstanceInput(ctx context.Context, obj interface{}) (model.ComponentInstanceInput, error) { - var it model.ComponentInstanceInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"ccrn", "count", "componentVersionId", "serviceId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "ccrn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ccrn")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Ccrn = data - case "count": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("count")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.Count = data - case "componentVersionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentVersionId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ComponentVersionID = data - case "serviceId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ServiceID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputComponentVersionFilter(ctx context.Context, obj interface{}) (model.ComponentVersionFilter, error) { - var it model.ComponentVersionFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"componentId", "componentName", "issueId", "version"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "componentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentId")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ComponentID = data - case "componentName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ComponentName = data - case "issueId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IssueID = data - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Version = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputComponentVersionInput(ctx context.Context, obj interface{}) (model.ComponentVersionInput, error) { - var it model.ComponentVersionInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"version", "componentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Version = data - case "componentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ComponentID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputDateTimeFilter(ctx context.Context, obj interface{}) (model.DateTimeFilter, error) { - var it model.DateTimeFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"after", "before"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "after": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - data, err := ec.unmarshalODateTime2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.After = data - case "before": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - data, err := ec.unmarshalODateTime2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Before = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputEvidenceFilter(ctx context.Context, obj interface{}) (model.EvidenceFilter, error) { - var it model.EvidenceFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"placeholder"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "placeholder": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("placeholder")) - data, err := ec.unmarshalOBoolean2ᚕᚖbool(ctx, v) - if err != nil { - return it, err - } - it.Placeholder = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputEvidenceInput(ctx context.Context, obj interface{}) (model.EvidenceInput, error) { - var it model.EvidenceInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"description", "type", "raaEnd", "authorId", "activityId", "severity"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Type = data - case "raaEnd": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("raaEnd")) - data, err := ec.unmarshalODateTime2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RaaEnd = data - case "authorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authorId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthorID = data - case "activityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ActivityID = data - case "severity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severity")) - data, err := ec.unmarshalOSeverityInput2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityInput(ctx, v) - if err != nil { - return it, err - } - it.Severity = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueFilter(ctx context.Context, obj interface{}) (model.IssueFilter, error) { - var it model.IssueFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"affectedService", "primaryName", "issueMatchStatus", "issueType", "componentVersionId", "search"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "affectedService": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("affectedService")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AffectedService = data - case "primaryName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("primaryName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PrimaryName = data - case "issueMatchStatus": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueMatchStatus")) - data, err := ec.unmarshalOIssueMatchStatusValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx, v) - if err != nil { - return it, err - } - it.IssueMatchStatus = data - case "issueType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueType")) - data, err := ec.unmarshalOIssueTypes2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx, v) - if err != nil { - return it, err - } - it.IssueType = data - case "componentVersionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentVersionId")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ComponentVersionID = data - case "search": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Search = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueInput(ctx context.Context, obj interface{}) (model.IssueInput, error) { - var it model.IssueInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"primaryName", "description", "type"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "primaryName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("primaryName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PrimaryName = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalOIssueTypes2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx, v) - if err != nil { - return it, err - } - it.Type = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueMatchChangeFilter(ctx context.Context, obj interface{}) (model.IssueMatchChangeFilter, error) { - var it model.IssueMatchChangeFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"action"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "action": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("action")) - data, err := ec.unmarshalOIssueMatchChangeActions2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeActions(ctx, v) - if err != nil { - return it, err - } - it.Action = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueMatchChangeInput(ctx context.Context, obj interface{}) (model.IssueMatchChangeInput, error) { - var it model.IssueMatchChangeInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"action", "issueMatchId", "activityId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "action": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("action")) - data, err := ec.unmarshalOIssueMatchChangeActions2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeActions(ctx, v) - if err != nil { - return it, err - } - it.Action = data - case "issueMatchId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueMatchId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IssueMatchID = data - case "activityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activityId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ActivityID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueMatchFilter(ctx context.Context, obj interface{}) (model.IssueMatchFilter, error) { - var it model.IssueMatchFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "search", "primaryName", "componentName", "issueType", "status", "severity", "affectedService", "supportGroupName"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "search": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Search = data - case "primaryName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("primaryName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PrimaryName = data - case "componentName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ComponentName = data - case "issueType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueType")) - data, err := ec.unmarshalOIssueTypes2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx, v) - if err != nil { - return it, err - } - it.IssueType = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOIssueMatchStatusValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "severity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severity")) - data, err := ec.unmarshalOSeverityValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityValues(ctx, v) - if err != nil { - return it, err - } - it.Severity = data - case "affectedService": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("affectedService")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AffectedService = data - case "supportGroupName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SupportGroupName = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueMatchInput(ctx context.Context, obj interface{}) (model.IssueMatchInput, error) { - var it model.IssueMatchInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"status", "remediationDate", "discoveryDate", "targetRemediationDate", "issueId", "componentInstanceId", "userId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOIssueMatchStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "remediationDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("remediationDate")) - data, err := ec.unmarshalODateTime2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RemediationDate = data - case "discoveryDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discoveryDate")) - data, err := ec.unmarshalODateTime2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DiscoveryDate = data - case "targetRemediationDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("targetRemediationDate")) - data, err := ec.unmarshalODateTime2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TargetRemediationDate = data - case "issueId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IssueID = data - case "componentInstanceId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("componentInstanceId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ComponentInstanceID = data - case "userId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UserID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueRepositoryFilter(ctx context.Context, obj interface{}) (model.IssueRepositoryFilter, error) { - var it model.IssueRepositoryFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"serviceName", "serviceId", "name"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "serviceName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ServiceName = data - case "serviceId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceId")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ServiceID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueRepositoryInput(ctx context.Context, obj interface{}) (model.IssueRepositoryInput, error) { - var it model.IssueRepositoryInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"name", "url"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "url": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.URL = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueVariantFilter(ctx context.Context, obj interface{}) (model.IssueVariantFilter, error) { - var it model.IssueVariantFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"secondaryName"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "secondaryName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secondaryName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SecondaryName = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIssueVariantInput(ctx context.Context, obj interface{}) (model.IssueVariantInput, error) { - var it model.IssueVariantInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"secondaryName", "description", "issueRepositoryId", "issueId", "severity"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "secondaryName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secondaryName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SecondaryName = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "issueRepositoryId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueRepositoryId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IssueRepositoryID = data - case "issueId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issueId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IssueID = data - case "severity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severity")) - data, err := ec.unmarshalOSeverityInput2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityInput(ctx, v) - if err != nil { - return it, err - } - it.Severity = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputServiceFilter(ctx context.Context, obj interface{}) (model.ServiceFilter, error) { - var it model.ServiceFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"serviceName", "uniqueUserId", "type", "userName", "supportGroupName", "search"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "serviceName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ServiceName = data - case "uniqueUserId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uniqueUserId")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UniqueUserID = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalOInt2ᚕᚖint(ctx, v) - if err != nil { - return it, err - } - it.Type = data - case "userName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UserName = data - case "supportGroupName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SupportGroupName = data - case "search": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Search = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputServiceInput(ctx context.Context, obj interface{}) (model.ServiceInput, error) { - var it model.ServiceInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"name"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSeverityInput(ctx context.Context, obj interface{}) (model.SeverityInput, error) { - var it model.SeverityInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vector"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vector": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vector")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Vector = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSupportGroupFilter(ctx context.Context, obj interface{}) (model.SupportGroupFilter, error) { - var it model.SupportGroupFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"supportGroupName", "userIds"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "supportGroupName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SupportGroupName = data - case "userIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIds")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UserIds = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSupportGroupInput(ctx context.Context, obj interface{}) (model.SupportGroupInput, error) { - var it model.SupportGroupInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"name"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUserFilter(ctx context.Context, obj interface{}) (model.UserFilter, error) { - var it model.UserFilter - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"userName", "supportGroupIds", "uniqueUserId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "userName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userName")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UserName = data - case "supportGroupIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supportGroupIds")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SupportGroupIds = data - case "uniqueUserId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uniqueUserId")) - data, err := ec.unmarshalOString2ᚕᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UniqueUserID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUserInput(ctx context.Context, obj interface{}) (model.UserInput, error) { - var it model.UserInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"uniqueUserId", "type", "name"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "uniqueUserId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uniqueUserId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UniqueUserID = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Type = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - } - } - - return it, nil -} - -// endregion **************************** input.gotpl ***************************** - -// region ************************** interface.gotpl *************************** - -func (ec *executionContext) _Connection(ctx context.Context, sel ast.SelectionSet, obj model.Connection) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case model.ActivityConnection: - return ec._ActivityConnection(ctx, sel, &obj) - case *model.ActivityConnection: - if obj == nil { - return graphql.Null - } - return ec._ActivityConnection(ctx, sel, obj) - case model.ComponentConnection: - return ec._ComponentConnection(ctx, sel, &obj) - case *model.ComponentConnection: - if obj == nil { - return graphql.Null - } - return ec._ComponentConnection(ctx, sel, obj) - case model.ComponentInstanceConnection: - return ec._ComponentInstanceConnection(ctx, sel, &obj) - case *model.ComponentInstanceConnection: - if obj == nil { - return graphql.Null - } - return ec._ComponentInstanceConnection(ctx, sel, obj) - case model.ComponentVersionConnection: - return ec._ComponentVersionConnection(ctx, sel, &obj) - case *model.ComponentVersionConnection: - if obj == nil { - return graphql.Null - } - return ec._ComponentVersionConnection(ctx, sel, obj) - case model.EvidenceConnection: - return ec._EvidenceConnection(ctx, sel, &obj) - case *model.EvidenceConnection: - if obj == nil { - return graphql.Null - } - return ec._EvidenceConnection(ctx, sel, obj) - case model.IssueConnection: - return ec._IssueConnection(ctx, sel, &obj) - case *model.IssueConnection: - if obj == nil { - return graphql.Null - } - return ec._IssueConnection(ctx, sel, obj) - case model.IssueMatchConnection: - return ec._IssueMatchConnection(ctx, sel, &obj) - case *model.IssueMatchConnection: - if obj == nil { - return graphql.Null - } - return ec._IssueMatchConnection(ctx, sel, obj) - case model.IssueMatchChangeConnection: - return ec._IssueMatchChangeConnection(ctx, sel, &obj) - case *model.IssueMatchChangeConnection: - if obj == nil { - return graphql.Null - } - return ec._IssueMatchChangeConnection(ctx, sel, obj) - case model.IssueRepositoryConnection: - return ec._IssueRepositoryConnection(ctx, sel, &obj) - case *model.IssueRepositoryConnection: - if obj == nil { - return graphql.Null - } - return ec._IssueRepositoryConnection(ctx, sel, obj) - case model.IssueVariantConnection: - return ec._IssueVariantConnection(ctx, sel, &obj) - case *model.IssueVariantConnection: - if obj == nil { - return graphql.Null - } - return ec._IssueVariantConnection(ctx, sel, obj) - case model.ServiceConnection: - return ec._ServiceConnection(ctx, sel, &obj) - case *model.ServiceConnection: - if obj == nil { - return graphql.Null - } - return ec._ServiceConnection(ctx, sel, obj) - case model.SupportGroupConnection: - return ec._SupportGroupConnection(ctx, sel, &obj) - case *model.SupportGroupConnection: - if obj == nil { - return graphql.Null - } - return ec._SupportGroupConnection(ctx, sel, obj) - case model.UserConnection: - return ec._UserConnection(ctx, sel, &obj) - case *model.UserConnection: - if obj == nil { - return graphql.Null - } - return ec._UserConnection(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) - } -} - -func (ec *executionContext) _Edge(ctx context.Context, sel ast.SelectionSet, obj model.Edge) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case model.ActivityEdge: - return ec._ActivityEdge(ctx, sel, &obj) - case *model.ActivityEdge: - if obj == nil { - return graphql.Null - } - return ec._ActivityEdge(ctx, sel, obj) - case model.ComponentEdge: - return ec._ComponentEdge(ctx, sel, &obj) - case *model.ComponentEdge: - if obj == nil { - return graphql.Null - } - return ec._ComponentEdge(ctx, sel, obj) - case model.ComponentInstanceEdge: - return ec._ComponentInstanceEdge(ctx, sel, &obj) - case *model.ComponentInstanceEdge: - if obj == nil { - return graphql.Null - } - return ec._ComponentInstanceEdge(ctx, sel, obj) - case model.ComponentVersionEdge: - return ec._ComponentVersionEdge(ctx, sel, &obj) - case *model.ComponentVersionEdge: - if obj == nil { - return graphql.Null - } - return ec._ComponentVersionEdge(ctx, sel, obj) - case model.EvidenceEdge: - return ec._EvidenceEdge(ctx, sel, &obj) - case *model.EvidenceEdge: - if obj == nil { - return graphql.Null - } - return ec._EvidenceEdge(ctx, sel, obj) - case model.IssueEdge: - return ec._IssueEdge(ctx, sel, &obj) - case *model.IssueEdge: - if obj == nil { - return graphql.Null - } - return ec._IssueEdge(ctx, sel, obj) - case model.IssueMatchEdge: - return ec._IssueMatchEdge(ctx, sel, &obj) - case *model.IssueMatchEdge: - if obj == nil { - return graphql.Null - } - return ec._IssueMatchEdge(ctx, sel, obj) - case model.IssueMatchChangeEdge: - return ec._IssueMatchChangeEdge(ctx, sel, &obj) - case *model.IssueMatchChangeEdge: - if obj == nil { - return graphql.Null - } - return ec._IssueMatchChangeEdge(ctx, sel, obj) - case model.IssueRepositoryEdge: - return ec._IssueRepositoryEdge(ctx, sel, &obj) - case *model.IssueRepositoryEdge: - if obj == nil { - return graphql.Null - } - return ec._IssueRepositoryEdge(ctx, sel, obj) - case model.IssueVariantEdge: - return ec._IssueVariantEdge(ctx, sel, &obj) - case *model.IssueVariantEdge: - if obj == nil { - return graphql.Null - } - return ec._IssueVariantEdge(ctx, sel, obj) - case model.ServiceEdge: - return ec._ServiceEdge(ctx, sel, &obj) - case *model.ServiceEdge: - if obj == nil { - return graphql.Null - } - return ec._ServiceEdge(ctx, sel, obj) - case model.SupportGroupEdge: - return ec._SupportGroupEdge(ctx, sel, &obj) - case *model.SupportGroupEdge: - if obj == nil { - return graphql.Null - } - return ec._SupportGroupEdge(ctx, sel, obj) - case model.UserEdge: - return ec._UserEdge(ctx, sel, &obj) - case *model.UserEdge: - if obj == nil { - return graphql.Null - } - return ec._UserEdge(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) - } -} - -func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj model.Node) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case model.Activity: - return ec._Activity(ctx, sel, &obj) - case *model.Activity: - if obj == nil { - return graphql.Null - } - return ec._Activity(ctx, sel, obj) - case model.Component: - return ec._Component(ctx, sel, &obj) - case *model.Component: - if obj == nil { - return graphql.Null - } - return ec._Component(ctx, sel, obj) - case model.ComponentInstance: - return ec._ComponentInstance(ctx, sel, &obj) - case *model.ComponentInstance: - if obj == nil { - return graphql.Null - } - return ec._ComponentInstance(ctx, sel, obj) - case model.ComponentVersion: - return ec._ComponentVersion(ctx, sel, &obj) - case *model.ComponentVersion: - if obj == nil { - return graphql.Null - } - return ec._ComponentVersion(ctx, sel, obj) - case model.Evidence: - return ec._Evidence(ctx, sel, &obj) - case *model.Evidence: - if obj == nil { - return graphql.Null - } - return ec._Evidence(ctx, sel, obj) - case model.Issue: - return ec._Issue(ctx, sel, &obj) - case *model.Issue: - if obj == nil { - return graphql.Null - } - return ec._Issue(ctx, sel, obj) - case model.IssueMatch: - return ec._IssueMatch(ctx, sel, &obj) - case *model.IssueMatch: - if obj == nil { - return graphql.Null - } - return ec._IssueMatch(ctx, sel, obj) - case model.IssueMatchChange: - return ec._IssueMatchChange(ctx, sel, &obj) - case *model.IssueMatchChange: - if obj == nil { - return graphql.Null - } - return ec._IssueMatchChange(ctx, sel, obj) - case model.IssueRepository: - return ec._IssueRepository(ctx, sel, &obj) - case *model.IssueRepository: - if obj == nil { - return graphql.Null - } - return ec._IssueRepository(ctx, sel, obj) - case model.IssueVariant: - return ec._IssueVariant(ctx, sel, &obj) - case *model.IssueVariant: - if obj == nil { - return graphql.Null - } - return ec._IssueVariant(ctx, sel, obj) - case model.Service: - return ec._Service(ctx, sel, &obj) - case *model.Service: - if obj == nil { - return graphql.Null - } - return ec._Service(ctx, sel, obj) - case model.SupportGroup: - return ec._SupportGroup(ctx, sel, &obj) - case *model.SupportGroup: - if obj == nil { - return graphql.Null - } - return ec._SupportGroup(ctx, sel, obj) - case model.User: - return ec._User(ctx, sel, &obj) - case *model.User: - if obj == nil { - return graphql.Null - } - return ec._User(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) - } -} - -// endregion ************************** interface.gotpl *************************** - -// region **************************** object.gotpl **************************** - -var activityImplementors = []string{"Activity", "Node"} - -func (ec *executionContext) _Activity(ctx context.Context, sel ast.SelectionSet, obj *model.Activity) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, activityImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Activity") - case "id": - out.Values[i] = ec._Activity_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "status": - out.Values[i] = ec._Activity_status(ctx, field, obj) - case "services": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_services(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issues": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_issues(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "evidences": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_evidences(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatchChanges": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Activity_issueMatchChanges(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var activityConnectionImplementors = []string{"ActivityConnection", "Connection"} - -func (ec *executionContext) _ActivityConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ActivityConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, activityConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ActivityConnection") - case "totalCount": - out.Values[i] = ec._ActivityConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._ActivityConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._ActivityConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var activityEdgeImplementors = []string{"ActivityEdge", "Edge"} - -func (ec *executionContext) _ActivityEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ActivityEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, activityEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ActivityEdge") - case "node": - out.Values[i] = ec._ActivityEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._ActivityEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var cVSSImplementors = []string{"CVSS"} - -func (ec *executionContext) _CVSS(ctx context.Context, sel ast.SelectionSet, obj *model.Cvss) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CVSS") - case "vector": - out.Values[i] = ec._CVSS_vector(ctx, field, obj) - case "base": - out.Values[i] = ec._CVSS_base(ctx, field, obj) - case "temporal": - out.Values[i] = ec._CVSS_temporal(ctx, field, obj) - case "environmental": - out.Values[i] = ec._CVSS_environmental(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var cVSSBaseImplementors = []string{"CVSSBase"} - -func (ec *executionContext) _CVSSBase(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSBase) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSBaseImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CVSSBase") - case "score": - out.Values[i] = ec._CVSSBase_score(ctx, field, obj) - case "attackVector": - out.Values[i] = ec._CVSSBase_attackVector(ctx, field, obj) - case "attackComplexity": - out.Values[i] = ec._CVSSBase_attackComplexity(ctx, field, obj) - case "privilegesRequired": - out.Values[i] = ec._CVSSBase_privilegesRequired(ctx, field, obj) - case "userInteraction": - out.Values[i] = ec._CVSSBase_userInteraction(ctx, field, obj) - case "scope": - out.Values[i] = ec._CVSSBase_scope(ctx, field, obj) - case "confidentialityImpact": - out.Values[i] = ec._CVSSBase_confidentialityImpact(ctx, field, obj) - case "integrityImpact": - out.Values[i] = ec._CVSSBase_integrityImpact(ctx, field, obj) - case "availabilityImpact": - out.Values[i] = ec._CVSSBase_availabilityImpact(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var cVSSEnvironmentalImplementors = []string{"CVSSEnvironmental"} - -func (ec *executionContext) _CVSSEnvironmental(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSEnvironmental) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSEnvironmentalImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CVSSEnvironmental") - case "score": - out.Values[i] = ec._CVSSEnvironmental_score(ctx, field, obj) - case "modifiedAttackVector": - out.Values[i] = ec._CVSSEnvironmental_modifiedAttackVector(ctx, field, obj) - case "modifiedAttackComplexity": - out.Values[i] = ec._CVSSEnvironmental_modifiedAttackComplexity(ctx, field, obj) - case "modifiedPrivilegesRequired": - out.Values[i] = ec._CVSSEnvironmental_modifiedPrivilegesRequired(ctx, field, obj) - case "modifiedUserInteraction": - out.Values[i] = ec._CVSSEnvironmental_modifiedUserInteraction(ctx, field, obj) - case "modifiedScope": - out.Values[i] = ec._CVSSEnvironmental_modifiedScope(ctx, field, obj) - case "modifiedConfidentialityImpact": - out.Values[i] = ec._CVSSEnvironmental_modifiedConfidentialityImpact(ctx, field, obj) - case "modifiedIntegrityImpact": - out.Values[i] = ec._CVSSEnvironmental_modifiedIntegrityImpact(ctx, field, obj) - case "modifiedAvailabilityImpact": - out.Values[i] = ec._CVSSEnvironmental_modifiedAvailabilityImpact(ctx, field, obj) - case "confidentialityRequirement": - out.Values[i] = ec._CVSSEnvironmental_confidentialityRequirement(ctx, field, obj) - case "availabilityRequirement": - out.Values[i] = ec._CVSSEnvironmental_availabilityRequirement(ctx, field, obj) - case "integrityRequirement": - out.Values[i] = ec._CVSSEnvironmental_integrityRequirement(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var cVSSParameterImplementors = []string{"CVSSParameter"} - -func (ec *executionContext) _CVSSParameter(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSParameter) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSParameterImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CVSSParameter") - case "name": - out.Values[i] = ec._CVSSParameter_name(ctx, field, obj) - case "value": - out.Values[i] = ec._CVSSParameter_value(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var cVSSTemporalImplementors = []string{"CVSSTemporal"} - -func (ec *executionContext) _CVSSTemporal(ctx context.Context, sel ast.SelectionSet, obj *model.CVSSTemporal) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cVSSTemporalImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("CVSSTemporal") - case "score": - out.Values[i] = ec._CVSSTemporal_score(ctx, field, obj) - case "exploitCodeMaturity": - out.Values[i] = ec._CVSSTemporal_exploitCodeMaturity(ctx, field, obj) - case "remediationLevel": - out.Values[i] = ec._CVSSTemporal_remediationLevel(ctx, field, obj) - case "reportConfidence": - out.Values[i] = ec._CVSSTemporal_reportConfidence(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentImplementors = []string{"Component", "Node"} - -func (ec *executionContext) _Component(ctx context.Context, sel ast.SelectionSet, obj *model.Component) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Component") - case "id": - out.Values[i] = ec._Component_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Component_name(ctx, field, obj) - case "type": - out.Values[i] = ec._Component_type(ctx, field, obj) - case "componentVersions": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Component_componentVersions(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentConnectionImplementors = []string{"ComponentConnection", "Connection"} - -func (ec *executionContext) _ComponentConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentConnection") - case "totalCount": - out.Values[i] = ec._ComponentConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._ComponentConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._ComponentConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentEdgeImplementors = []string{"ComponentEdge", "Edge"} - -func (ec *executionContext) _ComponentEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentEdge") - case "node": - out.Values[i] = ec._ComponentEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._ComponentEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentFilterValueImplementors = []string{"ComponentFilterValue"} - -func (ec *executionContext) _ComponentFilterValue(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentFilterValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentFilterValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentFilterValue") - case "componentName": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentFilterValue_componentName(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentInstanceImplementors = []string{"ComponentInstance", "Node"} - -func (ec *executionContext) _ComponentInstance(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstance) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentInstance") - case "id": - out.Values[i] = ec._ComponentInstance_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "ccrn": - out.Values[i] = ec._ComponentInstance_ccrn(ctx, field, obj) - case "count": - out.Values[i] = ec._ComponentInstance_count(ctx, field, obj) - case "componentVersionId": - out.Values[i] = ec._ComponentInstance_componentVersionId(ctx, field, obj) - case "componentVersion": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentInstance_componentVersion(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatches": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentInstance_issueMatches(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "serviceId": - out.Values[i] = ec._ComponentInstance_serviceId(ctx, field, obj) - case "service": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentInstance_service(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._ComponentInstance_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._ComponentInstance_updatedAt(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentInstanceConnectionImplementors = []string{"ComponentInstanceConnection", "Connection"} - -func (ec *executionContext) _ComponentInstanceConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstanceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentInstanceConnection") - case "totalCount": - out.Values[i] = ec._ComponentInstanceConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._ComponentInstanceConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._ComponentInstanceConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentInstanceEdgeImplementors = []string{"ComponentInstanceEdge", "Edge"} - -func (ec *executionContext) _ComponentInstanceEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstanceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentInstanceEdge") - case "node": - out.Values[i] = ec._ComponentInstanceEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._ComponentInstanceEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentInstanceFilterValueImplementors = []string{"ComponentInstanceFilterValue"} - -func (ec *executionContext) _ComponentInstanceFilterValue(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentInstanceFilterValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentInstanceFilterValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentInstanceFilterValue") - case "serviceName": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentInstanceFilterValue_serviceName(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "supportGroupName": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentInstanceFilterValue_supportGroupName(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "ccrn": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentInstanceFilterValue_ccrn(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentVersionImplementors = []string{"ComponentVersion", "Node"} - -func (ec *executionContext) _ComponentVersion(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentVersion) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentVersionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentVersion") - case "id": - out.Values[i] = ec._ComponentVersion_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "version": - out.Values[i] = ec._ComponentVersion_version(ctx, field, obj) - case "componentId": - out.Values[i] = ec._ComponentVersion_componentId(ctx, field, obj) - case "component": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentVersion_component(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issues": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentVersion_issues(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "componentInstances": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComponentVersion_componentInstances(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentVersionConnectionImplementors = []string{"ComponentVersionConnection", "Connection"} - -func (ec *executionContext) _ComponentVersionConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentVersionConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentVersionConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentVersionConnection") - case "totalCount": - out.Values[i] = ec._ComponentVersionConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._ComponentVersionConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._ComponentVersionConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var componentVersionEdgeImplementors = []string{"ComponentVersionEdge", "Edge"} - -func (ec *executionContext) _ComponentVersionEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ComponentVersionEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, componentVersionEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ComponentVersionEdge") - case "node": - out.Values[i] = ec._ComponentVersionEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._ComponentVersionEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var evidenceImplementors = []string{"Evidence", "Node"} - -func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, obj *model.Evidence) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Evidence") - case "id": - out.Values[i] = ec._Evidence_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Evidence_description(ctx, field, obj) - case "type": - out.Values[i] = ec._Evidence_type(ctx, field, obj) - case "vector": - out.Values[i] = ec._Evidence_vector(ctx, field, obj) - case "raaEnd": - out.Values[i] = ec._Evidence_raaEnd(ctx, field, obj) - case "authorId": - out.Values[i] = ec._Evidence_authorId(ctx, field, obj) - case "author": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_author(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activityId": - out.Values[i] = ec._Evidence_activityId(ctx, field, obj) - case "activity": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_activity(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatches": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_issueMatches(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var evidenceConnectionImplementors = []string{"EvidenceConnection", "Connection"} - -func (ec *executionContext) _EvidenceConnection(ctx context.Context, sel ast.SelectionSet, obj *model.EvidenceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EvidenceConnection") - case "totalCount": - out.Values[i] = ec._EvidenceConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._EvidenceConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EvidenceConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var evidenceEdgeImplementors = []string{"EvidenceEdge", "Edge"} - -func (ec *executionContext) _EvidenceEdge(ctx context.Context, sel ast.SelectionSet, obj *model.EvidenceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EvidenceEdge") - case "node": - out.Values[i] = ec._EvidenceEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._EvidenceEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var filterItemImplementors = []string{"FilterItem"} - -func (ec *executionContext) _FilterItem(ctx context.Context, sel ast.SelectionSet, obj *model.FilterItem) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, filterItemImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FilterItem") - case "displayName": - out.Values[i] = ec._FilterItem_displayName(ctx, field, obj) - case "filterName": - out.Values[i] = ec._FilterItem_filterName(ctx, field, obj) - case "values": - out.Values[i] = ec._FilterItem_values(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueImplementors = []string{"Issue", "Node"} - -func (ec *executionContext) _Issue(ctx context.Context, sel ast.SelectionSet, obj *model.Issue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Issue") - case "id": - out.Values[i] = ec._Issue_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._Issue_type(ctx, field, obj) - case "primaryName": - out.Values[i] = ec._Issue_primaryName(ctx, field, obj) - case "description": - out.Values[i] = ec._Issue_description(ctx, field, obj) - case "lastModified": - out.Values[i] = ec._Issue_lastModified(ctx, field, obj) - case "issueVariants": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Issue_issueVariants(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activities": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Issue_activities(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatches": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Issue_issueMatches(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "componentVersions": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Issue_componentVersions(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "metadata": - out.Values[i] = ec._Issue_metadata(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueConnectionImplementors = []string{"IssueConnection", "Connection"} - -func (ec *executionContext) _IssueConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueConnection") - case "totalCount": - out.Values[i] = ec._IssueConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "vulnerabilityCount": - out.Values[i] = ec._IssueConnection_vulnerabilityCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "policyViolationCount": - out.Values[i] = ec._IssueConnection_policyViolationCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "securityEventCount": - out.Values[i] = ec._IssueConnection_securityEventCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._IssueConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._IssueConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueEdgeImplementors = []string{"IssueEdge", "Edge"} - -func (ec *executionContext) _IssueEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueEdge") - case "node": - out.Values[i] = ec._IssueEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._IssueEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchImplementors = []string{"IssueMatch", "Node"} - -func (ec *executionContext) _IssueMatch(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatch) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatch") - case "id": - out.Values[i] = ec._IssueMatch_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "status": - out.Values[i] = ec._IssueMatch_status(ctx, field, obj) - case "remediationDate": - out.Values[i] = ec._IssueMatch_remediationDate(ctx, field, obj) - case "discoveryDate": - out.Values[i] = ec._IssueMatch_discoveryDate(ctx, field, obj) - case "targetRemediationDate": - out.Values[i] = ec._IssueMatch_targetRemediationDate(ctx, field, obj) - case "severity": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_severity(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "effectiveIssueVariants": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_effectiveIssueVariants(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "evidences": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_evidences(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueId": - out.Values[i] = ec._IssueMatch_issueId(ctx, field, obj) - case "issue": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_issue(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "userId": - out.Values[i] = ec._IssueMatch_userId(ctx, field, obj) - case "user": - out.Values[i] = ec._IssueMatch_user(ctx, field, obj) - case "componentInstanceId": - out.Values[i] = ec._IssueMatch_componentInstanceId(ctx, field, obj) - case "componentInstance": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_componentInstance(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueMatchChanges": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatch_issueMatchChanges(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchChangeImplementors = []string{"IssueMatchChange", "Node"} - -func (ec *executionContext) _IssueMatchChange(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchChange) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchChangeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchChange") - case "id": - out.Values[i] = ec._IssueMatchChange_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "action": - out.Values[i] = ec._IssueMatchChange_action(ctx, field, obj) - case "issueMatchId": - out.Values[i] = ec._IssueMatchChange_issueMatchId(ctx, field, obj) - case "issueMatch": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchChange_issueMatch(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activityId": - out.Values[i] = ec._IssueMatchChange_activityId(ctx, field, obj) - case "activity": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchChange_activity(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchChangeConnectionImplementors = []string{"IssueMatchChangeConnection", "Connection"} - -func (ec *executionContext) _IssueMatchChangeConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchChangeConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchChangeConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchChangeConnection") - case "totalCount": - out.Values[i] = ec._IssueMatchChangeConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._IssueMatchChangeConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._IssueMatchChangeConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchChangeEdgeImplementors = []string{"IssueMatchChangeEdge", "Edge"} - -func (ec *executionContext) _IssueMatchChangeEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchChangeEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchChangeEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchChangeEdge") - case "node": - out.Values[i] = ec._IssueMatchChangeEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._IssueMatchChangeEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchConnectionImplementors = []string{"IssueMatchConnection", "Connection"} - -func (ec *executionContext) _IssueMatchConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchConnection") - case "totalCount": - out.Values[i] = ec._IssueMatchConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._IssueMatchConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._IssueMatchConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchEdgeImplementors = []string{"IssueMatchEdge", "Edge"} - -func (ec *executionContext) _IssueMatchEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchEdge") - case "node": - out.Values[i] = ec._IssueMatchEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._IssueMatchEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMatchFilterValueImplementors = []string{"IssueMatchFilterValue"} - -func (ec *executionContext) _IssueMatchFilterValue(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMatchFilterValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMatchFilterValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMatchFilterValue") - case "status": - out.Values[i] = ec._IssueMatchFilterValue_status(ctx, field, obj) - case "severity": - out.Values[i] = ec._IssueMatchFilterValue_severity(ctx, field, obj) - case "issueType": - out.Values[i] = ec._IssueMatchFilterValue_issueType(ctx, field, obj) - case "primaryName": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchFilterValue_primaryName(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "affectedService": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchFilterValue_affectedService(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "componentName": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchFilterValue_componentName(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "supportGroupName": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueMatchFilterValue_supportGroupName(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueMetadataImplementors = []string{"IssueMetadata"} - -func (ec *executionContext) _IssueMetadata(ctx context.Context, sel ast.SelectionSet, obj *model.IssueMetadata) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueMetadataImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueMetadata") - case "serviceCount": - out.Values[i] = ec._IssueMetadata_serviceCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "activityCount": - out.Values[i] = ec._IssueMetadata_activityCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "issueMatchCount": - out.Values[i] = ec._IssueMetadata_issueMatchCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "componentInstanceCount": - out.Values[i] = ec._IssueMetadata_componentInstanceCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "componentVersionCount": - out.Values[i] = ec._IssueMetadata_componentVersionCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "earliestDiscoveryDate": - out.Values[i] = ec._IssueMetadata_earliestDiscoveryDate(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "earliestTargetRemediationDate": - out.Values[i] = ec._IssueMetadata_earliestTargetRemediationDate(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueRepositoryImplementors = []string{"IssueRepository", "Node"} - -func (ec *executionContext) _IssueRepository(ctx context.Context, sel ast.SelectionSet, obj *model.IssueRepository) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueRepositoryImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueRepository") - case "id": - out.Values[i] = ec._IssueRepository_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._IssueRepository_name(ctx, field, obj) - case "url": - out.Values[i] = ec._IssueRepository_url(ctx, field, obj) - case "issueVariants": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueRepository_issueVariants(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "services": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueRepository_services(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "created_at": - out.Values[i] = ec._IssueRepository_created_at(ctx, field, obj) - case "updated_at": - out.Values[i] = ec._IssueRepository_updated_at(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueRepositoryConnectionImplementors = []string{"IssueRepositoryConnection", "Connection"} - -func (ec *executionContext) _IssueRepositoryConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueRepositoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueRepositoryConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueRepositoryConnection") - case "totalCount": - out.Values[i] = ec._IssueRepositoryConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._IssueRepositoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._IssueRepositoryConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueRepositoryEdgeImplementors = []string{"IssueRepositoryEdge", "Edge"} - -func (ec *executionContext) _IssueRepositoryEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueRepositoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueRepositoryEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueRepositoryEdge") - case "node": - out.Values[i] = ec._IssueRepositoryEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._IssueRepositoryEdge_cursor(ctx, field, obj) - case "priority": - out.Values[i] = ec._IssueRepositoryEdge_priority(ctx, field, obj) - case "created_at": - out.Values[i] = ec._IssueRepositoryEdge_created_at(ctx, field, obj) - case "updated_at": - out.Values[i] = ec._IssueRepositoryEdge_updated_at(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueVariantImplementors = []string{"IssueVariant", "Node"} - -func (ec *executionContext) _IssueVariant(ctx context.Context, sel ast.SelectionSet, obj *model.IssueVariant) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueVariantImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueVariant") - case "id": - out.Values[i] = ec._IssueVariant_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "secondaryName": - out.Values[i] = ec._IssueVariant_secondaryName(ctx, field, obj) - case "description": - out.Values[i] = ec._IssueVariant_description(ctx, field, obj) - case "severity": - out.Values[i] = ec._IssueVariant_severity(ctx, field, obj) - case "issueRepositoryId": - out.Values[i] = ec._IssueVariant_issueRepositoryId(ctx, field, obj) - case "issueRepository": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueVariant_issueRepository(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueId": - out.Values[i] = ec._IssueVariant_issueId(ctx, field, obj) - case "issue": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._IssueVariant_issue(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "created_at": - out.Values[i] = ec._IssueVariant_created_at(ctx, field, obj) - case "updated_at": - out.Values[i] = ec._IssueVariant_updated_at(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueVariantConnectionImplementors = []string{"IssueVariantConnection", "Connection"} - -func (ec *executionContext) _IssueVariantConnection(ctx context.Context, sel ast.SelectionSet, obj *model.IssueVariantConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueVariantConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueVariantConnection") - case "totalCount": - out.Values[i] = ec._IssueVariantConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._IssueVariantConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._IssueVariantConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var issueVariantEdgeImplementors = []string{"IssueVariantEdge", "Edge"} - -func (ec *executionContext) _IssueVariantEdge(ctx context.Context, sel ast.SelectionSet, obj *model.IssueVariantEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, issueVariantEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IssueVariantEdge") - case "node": - out.Values[i] = ec._IssueVariantEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._IssueVariantEdge_cursor(ctx, field, obj) - case "created_at": - out.Values[i] = ec._IssueVariantEdge_created_at(ctx, field, obj) - case "updated_at": - out.Values[i] = ec._IssueVariantEdge_updated_at(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var mutationImplementors = []string{"Mutation"} - -func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) - ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ - Object: "Mutation", - }) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ - Object: field.Name, - Field: field, - }) - - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Mutation") - case "createUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createSupportGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createSupportGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateSupportGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateSupportGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteSupportGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteSupportGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addServiceToSupportGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addServiceToSupportGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "removeServiceFromSupportGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removeServiceFromSupportGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addUserToSupportGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addUserToSupportGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "removeUserFromSupportGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removeUserFromSupportGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createComponent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createComponent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateComponent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateComponent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteComponent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteComponent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createComponentInstance": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createComponentInstance(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateComponentInstance": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateComponentInstance(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteComponentInstance": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteComponentInstance(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createComponentVersion": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createComponentVersion(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateComponentVersion": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateComponentVersion(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteComponentVersion": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteComponentVersion(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addOwnerToService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addOwnerToService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "removeOwnerFromService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removeOwnerFromService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addIssueRepositoryToService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addIssueRepositoryToService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "removeIssueRepositoryFromService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removeIssueRepositoryFromService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createIssueRepository": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createIssueRepository(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateIssueRepository": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateIssueRepository(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteIssueRepository": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteIssueRepository(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createIssue": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createIssue(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateIssue": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateIssue(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteIssue": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteIssue(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addComponentVersionToIssue": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addComponentVersionToIssue(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "removeComponentVersionFromIssue": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removeComponentVersionFromIssue(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createIssueVariant": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createIssueVariant(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateIssueVariant": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateIssueVariant(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteIssueVariant": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteIssueVariant(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEvidence": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEvidence(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEvidence": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEvidence(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEvidence": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEvidence(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createIssueMatch": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createIssueMatch(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateIssueMatch": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateIssueMatch(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteIssueMatch": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteIssueMatch(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addEvidenceToIssueMatch": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addEvidenceToIssueMatch(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "removeEvidenceFromIssueMatch": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removeEvidenceFromIssueMatch(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createIssueMatchChange": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createIssueMatchChange(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateIssueMatchChange": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateIssueMatchChange(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteIssueMatchChange": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteIssueMatchChange(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addServiceToActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addServiceToActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "removeServiceFromActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removeServiceFromActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "addIssueToActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_addIssueToActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "removeIssueFromActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removeIssueFromActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var pageImplementors = []string{"Page"} - -func (ec *executionContext) _Page(ctx context.Context, sel ast.SelectionSet, obj *model.Page) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, pageImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Page") - case "after": - out.Values[i] = ec._Page_after(ctx, field, obj) - case "isCurrent": - out.Values[i] = ec._Page_isCurrent(ctx, field, obj) - case "pageNumber": - out.Values[i] = ec._Page_pageNumber(ctx, field, obj) - case "pageCount": - out.Values[i] = ec._Page_pageCount(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var pageInfoImplementors = []string{"PageInfo"} - -func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *model.PageInfo) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PageInfo") - case "hasNextPage": - out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) - case "hasPreviousPage": - out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) - case "isValidPage": - out.Values[i] = ec._PageInfo_isValidPage(ctx, field, obj) - case "pageNumber": - out.Values[i] = ec._PageInfo_pageNumber(ctx, field, obj) - case "nextPageAfter": - out.Values[i] = ec._PageInfo_nextPageAfter(ctx, field, obj) - case "pages": - out.Values[i] = ec._PageInfo_pages(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var queryImplementors = []string{"Query"} - -func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) - ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ - Object: "Query", - }) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ - Object: field.Name, - Field: field, - }) - - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Query") - case "Issues": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Issues(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "IssueMatches": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueMatches(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "IssueMatchChanges": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueMatchChanges(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "Services": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Services(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "Components": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Components(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "ComponentVersions": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ComponentVersions(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "ComponentInstances": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ComponentInstances(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "Activities": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Activities(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "IssueVariants": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueVariants(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "IssueRepositories": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueRepositories(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "Evidences": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Evidences(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "SupportGroups": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_SupportGroups(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "Users": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_Users(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "ServiceFilterValues": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ServiceFilterValues(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "IssueMatchFilterValues": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_IssueMatchFilterValues(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "ComponentInstanceFilterValues": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ComponentInstanceFilterValues(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "ComponentFilterValues": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ComponentFilterValues(ctx, field) - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "__type": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query___type(ctx, field) - }) - case "__schema": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query___schema(ctx, field) - }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var serviceImplementors = []string{"Service", "Node"} - -func (ec *executionContext) _Service(ctx context.Context, sel ast.SelectionSet, obj *model.Service) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, serviceImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Service") - case "id": - out.Values[i] = ec._Service_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Service_name(ctx, field, obj) - case "owners": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_owners(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "supportGroups": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_supportGroups(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activities": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_activities(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "issueRepositories": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_issueRepositories(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "componentInstances": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Service_componentInstances(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "metadata": - out.Values[i] = ec._Service_metadata(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var serviceConnectionImplementors = []string{"ServiceConnection", "Connection"} - -func (ec *executionContext) _ServiceConnection(ctx context.Context, sel ast.SelectionSet, obj *model.ServiceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, serviceConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ServiceConnection") - case "totalCount": - out.Values[i] = ec._ServiceConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._ServiceConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._ServiceConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var serviceEdgeImplementors = []string{"ServiceEdge", "Edge"} - -func (ec *executionContext) _ServiceEdge(ctx context.Context, sel ast.SelectionSet, obj *model.ServiceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, serviceEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ServiceEdge") - case "node": - out.Values[i] = ec._ServiceEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._ServiceEdge_cursor(ctx, field, obj) - case "priority": - out.Values[i] = ec._ServiceEdge_priority(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var serviceFilterValueImplementors = []string{"ServiceFilterValue"} - -func (ec *executionContext) _ServiceFilterValue(ctx context.Context, sel ast.SelectionSet, obj *model.ServiceFilterValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, serviceFilterValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ServiceFilterValue") - case "serviceName": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ServiceFilterValue_serviceName(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "uniqueUserId": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ServiceFilterValue_uniqueUserId(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "userName": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ServiceFilterValue_userName(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "supportGroupName": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ServiceFilterValue_supportGroupName(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var serviceMetadataImplementors = []string{"ServiceMetadata"} - -func (ec *executionContext) _ServiceMetadata(ctx context.Context, sel ast.SelectionSet, obj *model.ServiceMetadata) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, serviceMetadataImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ServiceMetadata") - case "issueMatchCount": - out.Values[i] = ec._ServiceMetadata_issueMatchCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "componentInstanceCount": - out.Values[i] = ec._ServiceMetadata_componentInstanceCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var severityImplementors = []string{"Severity"} - -func (ec *executionContext) _Severity(ctx context.Context, sel ast.SelectionSet, obj *model.Severity) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, severityImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Severity") - case "value": - out.Values[i] = ec._Severity_value(ctx, field, obj) - case "score": - out.Values[i] = ec._Severity_score(ctx, field, obj) - case "cvss": - out.Values[i] = ec._Severity_cvss(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var supportGroupImplementors = []string{"SupportGroup", "Node"} - -func (ec *executionContext) _SupportGroup(ctx context.Context, sel ast.SelectionSet, obj *model.SupportGroup) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, supportGroupImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SupportGroup") - case "id": - out.Values[i] = ec._SupportGroup_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._SupportGroup_name(ctx, field, obj) - case "users": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SupportGroup_users(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "services": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SupportGroup_services(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var supportGroupConnectionImplementors = []string{"SupportGroupConnection", "Connection"} - -func (ec *executionContext) _SupportGroupConnection(ctx context.Context, sel ast.SelectionSet, obj *model.SupportGroupConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, supportGroupConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SupportGroupConnection") - case "totalCount": - out.Values[i] = ec._SupportGroupConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._SupportGroupConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._SupportGroupConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var supportGroupEdgeImplementors = []string{"SupportGroupEdge", "Edge"} - -func (ec *executionContext) _SupportGroupEdge(ctx context.Context, sel ast.SelectionSet, obj *model.SupportGroupEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, supportGroupEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SupportGroupEdge") - case "node": - out.Values[i] = ec._SupportGroupEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._SupportGroupEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var userImplementors = []string{"User", "Node"} - -func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *model.User) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("User") - case "id": - out.Values[i] = ec._User_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "uniqueUserId": - out.Values[i] = ec._User_uniqueUserId(ctx, field, obj) - case "type": - out.Values[i] = ec._User_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._User_name(ctx, field, obj) - case "supportGroups": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_supportGroups(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "services": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_services(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var userConnectionImplementors = []string{"UserConnection", "Connection"} - -func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.SelectionSet, obj *model.UserConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserConnection") - case "totalCount": - out.Values[i] = ec._UserConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "edges": - out.Values[i] = ec._UserConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._UserConnection_pageInfo(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var userEdgeImplementors = []string{"UserEdge", "Edge"} - -func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, obj *model.UserEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserEdge") - case "node": - out.Values[i] = ec._UserEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._UserEdge_cursor(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __DirectiveImplementors = []string{"__Directive"} - -func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Directive") - case "name": - out.Values[i] = ec.___Directive_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___Directive_description(ctx, field, obj) - case "locations": - out.Values[i] = ec.___Directive_locations(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "args": - out.Values[i] = ec.___Directive_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isRepeatable": - out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __EnumValueImplementors = []string{"__EnumValue"} - -func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__EnumValue") - case "name": - out.Values[i] = ec.___EnumValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___EnumValue_description(ctx, field, obj) - case "isDeprecated": - out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __FieldImplementors = []string{"__Field"} - -func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Field") - case "name": - out.Values[i] = ec.___Field_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___Field_description(ctx, field, obj) - case "args": - out.Values[i] = ec.___Field_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "type": - out.Values[i] = ec.___Field_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isDeprecated": - out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __InputValueImplementors = []string{"__InputValue"} - -func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__InputValue") - case "name": - out.Values[i] = ec.___InputValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___InputValue_description(ctx, field, obj) - case "type": - out.Values[i] = ec.___InputValue_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "defaultValue": - out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __SchemaImplementors = []string{"__Schema"} - -func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Schema") - case "description": - out.Values[i] = ec.___Schema_description(ctx, field, obj) - case "types": - out.Values[i] = ec.___Schema_types(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "queryType": - out.Values[i] = ec.___Schema_queryType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "mutationType": - out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) - case "subscriptionType": - out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) - case "directives": - out.Values[i] = ec.___Schema_directives(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var __TypeImplementors = []string{"__Type"} - -func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Type") - case "kind": - out.Values[i] = ec.___Type_kind(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec.___Type_name(ctx, field, obj) - case "description": - out.Values[i] = ec.___Type_description(ctx, field, obj) - case "fields": - out.Values[i] = ec.___Type_fields(ctx, field, obj) - case "interfaces": - out.Values[i] = ec.___Type_interfaces(ctx, field, obj) - case "possibleTypes": - out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) - case "enumValues": - out.Values[i] = ec.___Type_enumValues(ctx, field, obj) - case "inputFields": - out.Values[i] = ec.___Type_inputFields(ctx, field, obj) - case "ofType": - out.Values[i] = ec.___Type_ofType(ctx, field, obj) - case "specifiedByURL": - out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -// endregion **************************** object.gotpl **************************** - -// region ***************************** type.gotpl ***************************** - -func (ec *executionContext) marshalNActivity2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx context.Context, sel ast.SelectionSet, v model.Activity) graphql.Marshaler { - return ec._Activity(ctx, sel, &v) -} - -func (ec *executionContext) marshalNActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx context.Context, sel ast.SelectionSet, v *model.Activity) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Activity(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNActivityInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityInput(ctx context.Context, v interface{}) (model.ActivityInput, error) { - res, err := ec.unmarshalInputActivityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNComponent2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponent(ctx context.Context, sel ast.SelectionSet, v model.Component) graphql.Marshaler { - return ec._Component(ctx, sel, &v) -} - -func (ec *executionContext) marshalNComponent2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponent(ctx context.Context, sel ast.SelectionSet, v *model.Component) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Component(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNComponentInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInput(ctx context.Context, v interface{}) (model.ComponentInput, error) { - res, err := ec.unmarshalInputComponentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNComponentInstance2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstance(ctx context.Context, sel ast.SelectionSet, v model.ComponentInstance) graphql.Marshaler { - return ec._ComponentInstance(ctx, sel, &v) -} - -func (ec *executionContext) marshalNComponentInstance2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstance(ctx context.Context, sel ast.SelectionSet, v *model.ComponentInstance) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComponentInstance(ctx, sel, v) -} - -func (ec *executionContext) marshalNComponentInstanceEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceEdge(ctx context.Context, sel ast.SelectionSet, v []*model.ComponentInstanceEdge) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOComponentInstanceEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) unmarshalNComponentInstanceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceInput(ctx context.Context, v interface{}) (model.ComponentInstanceInput, error) { - res, err := ec.unmarshalInputComponentInstanceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNComponentVersion2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersion(ctx context.Context, sel ast.SelectionSet, v model.ComponentVersion) graphql.Marshaler { - return ec._ComponentVersion(ctx, sel, &v) -} - -func (ec *executionContext) marshalNComponentVersion2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersion(ctx context.Context, sel ast.SelectionSet, v *model.ComponentVersion) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComponentVersion(ctx, sel, v) -} - -func (ec *executionContext) marshalNComponentVersionEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionEdge(ctx context.Context, sel ast.SelectionSet, v []*model.ComponentVersionEdge) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOComponentVersionEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) unmarshalNComponentVersionInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionInput(ctx context.Context, v interface{}) (model.ComponentVersionInput, error) { - res, err := ec.unmarshalInputComponentVersionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNDateTime2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDateTime2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNEvidence2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidence(ctx context.Context, sel ast.SelectionSet, v model.Evidence) graphql.Marshaler { - return ec._Evidence(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEvidence2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidence(ctx context.Context, sel ast.SelectionSet, v *model.Evidence) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Evidence(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNEvidenceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceInput(ctx context.Context, v interface{}) (model.EvidenceInput, error) { - res, err := ec.unmarshalInputEvidenceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalID(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalID(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { - res, err := graphql.UnmarshalInt(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - res := graphql.MarshalInt(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNIssue2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx context.Context, sel ast.SelectionSet, v model.Issue) graphql.Marshaler { - return ec._Issue(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx context.Context, sel ast.SelectionSet, v *model.Issue) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Issue(ctx, sel, v) -} - -func (ec *executionContext) marshalNIssueEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueEdge(ctx context.Context, sel ast.SelectionSet, v []*model.IssueEdge) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOIssueEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) unmarshalNIssueInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueInput(ctx context.Context, v interface{}) (model.IssueInput, error) { - res, err := ec.unmarshalInputIssueInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNIssueMatch2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatch(ctx context.Context, sel ast.SelectionSet, v model.IssueMatch) graphql.Marshaler { - return ec._IssueMatch(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIssueMatch2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatch(ctx context.Context, sel ast.SelectionSet, v *model.IssueMatch) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._IssueMatch(ctx, sel, v) -} - -func (ec *executionContext) marshalNIssueMatchChange2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChange(ctx context.Context, sel ast.SelectionSet, v model.IssueMatchChange) graphql.Marshaler { - return ec._IssueMatchChange(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIssueMatchChange2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChange(ctx context.Context, sel ast.SelectionSet, v *model.IssueMatchChange) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._IssueMatchChange(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNIssueMatchChangeInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeInput(ctx context.Context, v interface{}) (model.IssueMatchChangeInput, error) { - res, err := ec.unmarshalInputIssueMatchChangeInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNIssueMatchInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchInput(ctx context.Context, v interface{}) (model.IssueMatchInput, error) { - res, err := ec.unmarshalInputIssueMatchInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNIssueRepository2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepository(ctx context.Context, sel ast.SelectionSet, v model.IssueRepository) graphql.Marshaler { - return ec._IssueRepository(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIssueRepository2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepository(ctx context.Context, sel ast.SelectionSet, v *model.IssueRepository) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._IssueRepository(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNIssueRepositoryInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryInput(ctx context.Context, v interface{}) (model.IssueRepositoryInput, error) { - res, err := ec.unmarshalInputIssueRepositoryInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNIssueVariant2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariant(ctx context.Context, sel ast.SelectionSet, v model.IssueVariant) graphql.Marshaler { - return ec._IssueVariant(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIssueVariant2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariant(ctx context.Context, sel ast.SelectionSet, v *model.IssueVariant) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._IssueVariant(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNIssueVariantInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantInput(ctx context.Context, v interface{}) (model.IssueVariantInput, error) { - res, err := ec.unmarshalInputIssueVariantInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNService2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx context.Context, sel ast.SelectionSet, v model.Service) graphql.Marshaler { - return ec._Service(ctx, sel, &v) -} - -func (ec *executionContext) marshalNService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx context.Context, sel ast.SelectionSet, v *model.Service) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Service(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNServiceInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceInput(ctx context.Context, v interface{}) (model.ServiceInput, error) { - res, err := ec.unmarshalInputServiceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNSupportGroup2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx context.Context, sel ast.SelectionSet, v model.SupportGroup) graphql.Marshaler { - return ec._SupportGroup(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSupportGroup2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroup(ctx context.Context, sel ast.SelectionSet, v *model.SupportGroup) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SupportGroup(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSupportGroupInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupInput(ctx context.Context, v interface{}) (model.SupportGroupInput, error) { - res, err := ec.unmarshalInputSupportGroupInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUser2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v model.User) graphql.Marshaler { - return ec._User(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v *model.User) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._User(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUserInput2githubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserInput(ctx context.Context, v interface{}) (model.UserInput, error) { - res, err := ec.unmarshalInputUserInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { - return ec.___Directive(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { - return ec.___EnumValue(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { - return ec.___Field(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { - return ec.___InputValue(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { - return ec.___Type(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec.___Type(ctx, sel, v) -} - -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalOActivity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivity(ctx context.Context, sel ast.SelectionSet, v *model.Activity) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Activity(ctx, sel, v) -} - -func (ec *executionContext) marshalOActivityConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityConnection(ctx context.Context, sel ast.SelectionSet, v *model.ActivityConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ActivityConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOActivityEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityEdge(ctx context.Context, sel ast.SelectionSet, v []*model.ActivityEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOActivityEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOActivityEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityEdge(ctx context.Context, sel ast.SelectionSet, v *model.ActivityEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ActivityEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOActivityFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityFilter(ctx context.Context, v interface{}) (*model.ActivityFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputActivityFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOActivityStatusValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx context.Context, v interface{}) ([]*model.ActivityStatusValues, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*model.ActivityStatusValues, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalOActivityStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOActivityStatusValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx context.Context, sel ast.SelectionSet, v []*model.ActivityStatusValues) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOActivityStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) unmarshalOActivityStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx context.Context, v interface{}) (*model.ActivityStatusValues, error) { - if v == nil { - return nil, nil - } - var res = new(model.ActivityStatusValues) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOActivityStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐActivityStatusValues(ctx context.Context, sel ast.SelectionSet, v *model.ActivityStatusValues) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - return res -} - -func (ec *executionContext) unmarshalOBoolean2ᚕᚖbool(ctx context.Context, v interface{}) ([]*bool, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*bool, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalOBoolean2ᚖbool(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOBoolean2ᚕᚖbool(ctx context.Context, sel ast.SelectionSet, v []*bool) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalOBoolean2ᚖbool(ctx, sel, v[i]) - } - - return ret -} - -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalBoolean(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalBoolean(*v) - return res -} - -func (ec *executionContext) marshalOCVSS2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐCvss(ctx context.Context, sel ast.SelectionSet, v *model.Cvss) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CVSS(ctx, sel, v) -} - -func (ec *executionContext) marshalOCVSSBase2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐCVSSBase(ctx context.Context, sel ast.SelectionSet, v *model.CVSSBase) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CVSSBase(ctx, sel, v) -} - -func (ec *executionContext) marshalOCVSSEnvironmental2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐCVSSEnvironmental(ctx context.Context, sel ast.SelectionSet, v *model.CVSSEnvironmental) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CVSSEnvironmental(ctx, sel, v) -} - -func (ec *executionContext) marshalOCVSSTemporal2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐCVSSTemporal(ctx context.Context, sel ast.SelectionSet, v *model.CVSSTemporal) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CVSSTemporal(ctx, sel, v) -} - -func (ec *executionContext) marshalOComponent2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponent(ctx context.Context, sel ast.SelectionSet, v *model.Component) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Component(ctx, sel, v) -} - -func (ec *executionContext) marshalOComponentConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentConnection(ctx context.Context, sel ast.SelectionSet, v *model.ComponentConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ComponentConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOComponentEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentEdge(ctx context.Context, sel ast.SelectionSet, v []*model.ComponentEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOComponentEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOComponentEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentEdge(ctx context.Context, sel ast.SelectionSet, v *model.ComponentEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ComponentEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOComponentFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilter(ctx context.Context, v interface{}) (*model.ComponentFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputComponentFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOComponentFilterValue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentFilterValue(ctx context.Context, sel ast.SelectionSet, v *model.ComponentFilterValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ComponentFilterValue(ctx, sel, v) -} - -func (ec *executionContext) marshalOComponentInstanceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceConnection(ctx context.Context, sel ast.SelectionSet, v *model.ComponentInstanceConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ComponentInstanceConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOComponentInstanceEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceEdge(ctx context.Context, sel ast.SelectionSet, v *model.ComponentInstanceEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ComponentInstanceEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOComponentInstanceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilter(ctx context.Context, v interface{}) (*model.ComponentInstanceFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputComponentInstanceFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOComponentInstanceFilterValue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentInstanceFilterValue(ctx context.Context, sel ast.SelectionSet, v *model.ComponentInstanceFilterValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ComponentInstanceFilterValue(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOComponentTypeValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentTypeValues(ctx context.Context, v interface{}) (*model.ComponentTypeValues, error) { - if v == nil { - return nil, nil - } - var res = new(model.ComponentTypeValues) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOComponentTypeValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentTypeValues(ctx context.Context, sel ast.SelectionSet, v *model.ComponentTypeValues) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) marshalOComponentVersion2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersion(ctx context.Context, sel ast.SelectionSet, v *model.ComponentVersion) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ComponentVersion(ctx, sel, v) -} - -func (ec *executionContext) marshalOComponentVersionConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionConnection(ctx context.Context, sel ast.SelectionSet, v *model.ComponentVersionConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ComponentVersionConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOComponentVersionEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionEdge(ctx context.Context, sel ast.SelectionSet, v *model.ComponentVersionEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ComponentVersionEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOComponentVersionFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐComponentVersionFilter(ctx context.Context, v interface{}) (*model.ComponentVersionFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputComponentVersionFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODateTime2ᚖstring(ctx context.Context, v interface{}) (*string, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalString(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODateTime2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(*v) - return res -} - -func (ec *executionContext) marshalOEvidenceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceConnection(ctx context.Context, sel ast.SelectionSet, v *model.EvidenceConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EvidenceConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOEvidenceEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceEdge(ctx context.Context, sel ast.SelectionSet, v []*model.EvidenceEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOEvidenceEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOEvidenceEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceEdge(ctx context.Context, sel ast.SelectionSet, v *model.EvidenceEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EvidenceEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOEvidenceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐEvidenceFilter(ctx context.Context, v interface{}) (*model.EvidenceFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputEvidenceFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOFilterItem2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐFilterItem(ctx context.Context, sel ast.SelectionSet, v *model.FilterItem) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._FilterItem(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOFloat2ᚖfloat64(ctx context.Context, v interface{}) (*float64, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalFloatContext(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOFloat2ᚖfloat64(ctx context.Context, sel ast.SelectionSet, v *float64) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalFloatContext(*v) - return graphql.WrapContextMarshaler(ctx, res) -} - -func (ec *executionContext) unmarshalOInt2ᚕᚖint(ctx context.Context, v interface{}) ([]*int, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*int, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalOInt2ᚖint(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOInt2ᚕᚖint(ctx context.Context, sel ast.SelectionSet, v []*int) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalOInt2ᚖint(ctx, sel, v[i]) - } - - return ret -} - -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalInt(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalInt(*v) - return res -} - -func (ec *executionContext) marshalOIssue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssue(ctx context.Context, sel ast.SelectionSet, v *model.Issue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Issue(ctx, sel, v) -} - -func (ec *executionContext) marshalOIssueConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueConnection(ctx context.Context, sel ast.SelectionSet, v *model.IssueConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOIssueEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueEdge(ctx context.Context, sel ast.SelectionSet, v *model.IssueEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOIssueFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueFilter(ctx context.Context, v interface{}) (*model.IssueFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputIssueFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOIssueMatchChangeActions2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeActions(ctx context.Context, v interface{}) ([]*model.IssueMatchChangeActions, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*model.IssueMatchChangeActions, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalOIssueMatchChangeActions2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeActions(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOIssueMatchChangeActions2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeActions(ctx context.Context, sel ast.SelectionSet, v []*model.IssueMatchChangeActions) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOIssueMatchChangeActions2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeActions(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) unmarshalOIssueMatchChangeActions2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeActions(ctx context.Context, v interface{}) (*model.IssueMatchChangeActions, error) { - if v == nil { - return nil, nil - } - var res = new(model.IssueMatchChangeActions) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOIssueMatchChangeActions2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeActions(ctx context.Context, sel ast.SelectionSet, v *model.IssueMatchChangeActions) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) marshalOIssueMatchChangeConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeConnection(ctx context.Context, sel ast.SelectionSet, v *model.IssueMatchChangeConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueMatchChangeConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOIssueMatchChangeEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeEdge(ctx context.Context, sel ast.SelectionSet, v []*model.IssueMatchChangeEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOIssueMatchChangeEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOIssueMatchChangeEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeEdge(ctx context.Context, sel ast.SelectionSet, v *model.IssueMatchChangeEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueMatchChangeEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOIssueMatchChangeFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchChangeFilter(ctx context.Context, v interface{}) (*model.IssueMatchChangeFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputIssueMatchChangeFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOIssueMatchConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchConnection(ctx context.Context, sel ast.SelectionSet, v *model.IssueMatchConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueMatchConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOIssueMatchEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchEdge(ctx context.Context, sel ast.SelectionSet, v []*model.IssueMatchEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOIssueMatchEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOIssueMatchEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchEdge(ctx context.Context, sel ast.SelectionSet, v *model.IssueMatchEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueMatchEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOIssueMatchFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilter(ctx context.Context, v interface{}) (*model.IssueMatchFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputIssueMatchFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOIssueMatchFilterValue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchFilterValue(ctx context.Context, sel ast.SelectionSet, v *model.IssueMatchFilterValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueMatchFilterValue(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOIssueMatchStatusValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx context.Context, v interface{}) ([]*model.IssueMatchStatusValues, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*model.IssueMatchStatusValues, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalOIssueMatchStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOIssueMatchStatusValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx context.Context, sel ast.SelectionSet, v []*model.IssueMatchStatusValues) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOIssueMatchStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) unmarshalOIssueMatchStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx context.Context, v interface{}) (*model.IssueMatchStatusValues, error) { - if v == nil { - return nil, nil - } - var res = new(model.IssueMatchStatusValues) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOIssueMatchStatusValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMatchStatusValues(ctx context.Context, sel ast.SelectionSet, v *model.IssueMatchStatusValues) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) marshalOIssueMetadata2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueMetadata(ctx context.Context, sel ast.SelectionSet, v *model.IssueMetadata) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueMetadata(ctx, sel, v) -} - -func (ec *executionContext) marshalOIssueRepository2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepository(ctx context.Context, sel ast.SelectionSet, v *model.IssueRepository) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueRepository(ctx, sel, v) -} - -func (ec *executionContext) marshalOIssueRepositoryConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryConnection(ctx context.Context, sel ast.SelectionSet, v *model.IssueRepositoryConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueRepositoryConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOIssueRepositoryEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryEdge(ctx context.Context, sel ast.SelectionSet, v []*model.IssueRepositoryEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOIssueRepositoryEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOIssueRepositoryEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryEdge(ctx context.Context, sel ast.SelectionSet, v *model.IssueRepositoryEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueRepositoryEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOIssueRepositoryFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueRepositoryFilter(ctx context.Context, v interface{}) (*model.IssueRepositoryFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputIssueRepositoryFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOIssueTypes2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx context.Context, v interface{}) ([]*model.IssueTypes, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*model.IssueTypes, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalOIssueTypes2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOIssueTypes2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx context.Context, sel ast.SelectionSet, v []*model.IssueTypes) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOIssueTypes2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) unmarshalOIssueTypes2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx context.Context, v interface{}) (*model.IssueTypes, error) { - if v == nil { - return nil, nil - } - var res = new(model.IssueTypes) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOIssueTypes2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueTypes(ctx context.Context, sel ast.SelectionSet, v *model.IssueTypes) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) marshalOIssueVariantConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantConnection(ctx context.Context, sel ast.SelectionSet, v *model.IssueVariantConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueVariantConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOIssueVariantEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantEdge(ctx context.Context, sel ast.SelectionSet, v []*model.IssueVariantEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOIssueVariantEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOIssueVariantEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantEdge(ctx context.Context, sel ast.SelectionSet, v *model.IssueVariantEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IssueVariantEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOIssueVariantFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐIssueVariantFilter(ctx context.Context, v interface{}) (*model.IssueVariantFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputIssueVariantFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOPage2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPage(ctx context.Context, sel ast.SelectionSet, v []*model.Page) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOPage2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPage(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOPage2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPage(ctx context.Context, sel ast.SelectionSet, v *model.Page) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Page(ctx, sel, v) -} - -func (ec *executionContext) marshalOPageInfo2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *model.PageInfo) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._PageInfo(ctx, sel, v) -} - -func (ec *executionContext) marshalOService2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐService(ctx context.Context, sel ast.SelectionSet, v *model.Service) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Service(ctx, sel, v) -} - -func (ec *executionContext) marshalOServiceConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceConnection(ctx context.Context, sel ast.SelectionSet, v *model.ServiceConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ServiceConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOServiceEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceEdge(ctx context.Context, sel ast.SelectionSet, v []*model.ServiceEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOServiceEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOServiceEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceEdge(ctx context.Context, sel ast.SelectionSet, v *model.ServiceEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ServiceEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOServiceFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilter(ctx context.Context, v interface{}) (*model.ServiceFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputServiceFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOServiceFilterValue2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceFilterValue(ctx context.Context, sel ast.SelectionSet, v *model.ServiceFilterValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ServiceFilterValue(ctx, sel, v) -} - -func (ec *executionContext) marshalOServiceMetadata2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐServiceMetadata(ctx context.Context, sel ast.SelectionSet, v *model.ServiceMetadata) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ServiceMetadata(ctx, sel, v) -} - -func (ec *executionContext) marshalOSeverity2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverity(ctx context.Context, sel ast.SelectionSet, v *model.Severity) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Severity(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOSeverityInput2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityInput(ctx context.Context, v interface{}) (*model.SeverityInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputSeverityInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOSeverityValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityValues(ctx context.Context, v interface{}) ([]*model.SeverityValues, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*model.SeverityValues, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalOSeverityValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityValues(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOSeverityValues2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityValues(ctx context.Context, sel ast.SelectionSet, v []*model.SeverityValues) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOSeverityValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityValues(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) unmarshalOSeverityValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityValues(ctx context.Context, v interface{}) (*model.SeverityValues, error) { - if v == nil { - return nil, nil - } - var res = new(model.SeverityValues) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOSeverityValues2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSeverityValues(ctx context.Context, sel ast.SelectionSet, v *model.SeverityValues) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOString2ᚕᚖstring(ctx context.Context, v interface{}) ([]*string, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*string, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalOString2ᚖstring(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOString2ᚕᚖstring(ctx context.Context, sel ast.SelectionSet, v []*string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalOString2ᚖstring(ctx, sel, v[i]) - } - - return ret -} - -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalString(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(*v) - return res -} - -func (ec *executionContext) marshalOSupportGroupConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupConnection(ctx context.Context, sel ast.SelectionSet, v *model.SupportGroupConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SupportGroupConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOSupportGroupEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupEdge(ctx context.Context, sel ast.SelectionSet, v []*model.SupportGroupEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOSupportGroupEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOSupportGroupEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupEdge(ctx context.Context, sel ast.SelectionSet, v *model.SupportGroupEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SupportGroupEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOSupportGroupFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐSupportGroupFilter(ctx context.Context, v interface{}) (*model.SupportGroupFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputSupportGroupFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOUser2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUser(ctx context.Context, sel ast.SelectionSet, v *model.User) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._User(ctx, sel, v) -} - -func (ec *executionContext) marshalOUserConnection2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserConnection(ctx context.Context, sel ast.SelectionSet, v *model.UserConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._UserConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOUserEdge2ᚕᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserEdge(ctx context.Context, sel ast.SelectionSet, v []*model.UserEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOUserEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOUserEdge2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserEdge(ctx context.Context, sel ast.SelectionSet, v *model.UserEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._UserEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOUserFilter2ᚖgithubᚗcomᚋcloudoperatorsᚋheurekaᚋinternalᚋapiᚋgraphqlᚋgraphᚋmodelᚐUserFilter(ctx context.Context, v interface{}) (*model.UserFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputUserFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.___Schema(ctx, sel, v) -} - -func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec.___Type(ctx, sel, v) -} - -// endregion ***************************** type.gotpl ***************************** diff --git a/internal/api/graphql/graph/model/models_gen.go b/internal/api/graphql/graph/model/models_gen.go deleted file mode 100644 index 5f3e7318..00000000 --- a/internal/api/graphql/graph/model/models_gen.go +++ /dev/null @@ -1,1064 +0,0 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package model - -import ( - "fmt" - "io" - "strconv" -) - -type Connection interface { - IsConnection() - GetTotalCount() int - GetPageInfo() *PageInfo -} - -type Edge interface { - IsEdge() - GetNode() Node - GetCursor() *string -} - -type Node interface { - IsNode() - GetID() string -} - -type Activity struct { - ID string `json:"id"` - Status *ActivityStatusValues `json:"status,omitempty"` - Services *ServiceConnection `json:"services,omitempty"` - Issues *IssueConnection `json:"issues,omitempty"` - Evidences *EvidenceConnection `json:"evidences,omitempty"` - IssueMatchChanges *IssueMatchChangeConnection `json:"issueMatchChanges,omitempty"` -} - -func (Activity) IsNode() {} -func (this Activity) GetID() string { return this.ID } - -type ActivityConnection struct { - TotalCount int `json:"totalCount"` - Edges []*ActivityEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (ActivityConnection) IsConnection() {} -func (this ActivityConnection) GetTotalCount() int { return this.TotalCount } -func (this ActivityConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type ActivityEdge struct { - Node *Activity `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (ActivityEdge) IsEdge() {} -func (this ActivityEdge) GetNode() Node { return *this.Node } -func (this ActivityEdge) GetCursor() *string { return this.Cursor } - -type ActivityFilter struct { - ServiceName []*string `json:"serviceName,omitempty"` - Status []*ActivityStatusValues `json:"status,omitempty"` -} - -type ActivityInput struct { - Status *ActivityStatusValues `json:"status,omitempty"` -} - -type Cvss struct { - Vector *string `json:"vector,omitempty"` - Base *CVSSBase `json:"base,omitempty"` - Temporal *CVSSTemporal `json:"temporal,omitempty"` - Environmental *CVSSEnvironmental `json:"environmental,omitempty"` -} - -type CVSSBase struct { - Score *float64 `json:"score,omitempty"` - AttackVector *string `json:"attackVector,omitempty"` - AttackComplexity *string `json:"attackComplexity,omitempty"` - PrivilegesRequired *string `json:"privilegesRequired,omitempty"` - UserInteraction *string `json:"userInteraction,omitempty"` - Scope *string `json:"scope,omitempty"` - ConfidentialityImpact *string `json:"confidentialityImpact,omitempty"` - IntegrityImpact *string `json:"integrityImpact,omitempty"` - AvailabilityImpact *string `json:"availabilityImpact,omitempty"` -} - -type CVSSEnvironmental struct { - Score *float64 `json:"score,omitempty"` - ModifiedAttackVector *string `json:"modifiedAttackVector,omitempty"` - ModifiedAttackComplexity *string `json:"modifiedAttackComplexity,omitempty"` - ModifiedPrivilegesRequired *string `json:"modifiedPrivilegesRequired,omitempty"` - ModifiedUserInteraction *string `json:"modifiedUserInteraction,omitempty"` - ModifiedScope *string `json:"modifiedScope,omitempty"` - ModifiedConfidentialityImpact *string `json:"modifiedConfidentialityImpact,omitempty"` - ModifiedIntegrityImpact *string `json:"modifiedIntegrityImpact,omitempty"` - ModifiedAvailabilityImpact *string `json:"modifiedAvailabilityImpact,omitempty"` - ConfidentialityRequirement *string `json:"confidentialityRequirement,omitempty"` - AvailabilityRequirement *string `json:"availabilityRequirement,omitempty"` - IntegrityRequirement *string `json:"integrityRequirement,omitempty"` -} - -type CVSSParameter struct { - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` -} - -type CVSSTemporal struct { - Score *float64 `json:"score,omitempty"` - ExploitCodeMaturity *string `json:"exploitCodeMaturity,omitempty"` - RemediationLevel *string `json:"remediationLevel,omitempty"` - ReportConfidence *string `json:"reportConfidence,omitempty"` -} - -type Component struct { - ID string `json:"id"` - Name *string `json:"name,omitempty"` - Type *ComponentTypeValues `json:"type,omitempty"` - ComponentVersions *ComponentVersionConnection `json:"componentVersions,omitempty"` -} - -func (Component) IsNode() {} -func (this Component) GetID() string { return this.ID } - -type ComponentConnection struct { - TotalCount int `json:"totalCount"` - Edges []*ComponentEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (ComponentConnection) IsConnection() {} -func (this ComponentConnection) GetTotalCount() int { return this.TotalCount } -func (this ComponentConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type ComponentEdge struct { - Node *Component `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (ComponentEdge) IsEdge() {} -func (this ComponentEdge) GetNode() Node { return *this.Node } -func (this ComponentEdge) GetCursor() *string { return this.Cursor } - -type ComponentFilter struct { - ComponentName []*string `json:"componentName,omitempty"` -} - -type ComponentFilterValue struct { - ComponentName *FilterItem `json:"componentName,omitempty"` -} - -type ComponentInput struct { - Name *string `json:"name,omitempty"` - Type *ComponentTypeValues `json:"type,omitempty"` -} - -type ComponentInstance struct { - ID string `json:"id"` - Ccrn *string `json:"ccrn,omitempty"` - Count *int `json:"count,omitempty"` - ComponentVersionID *string `json:"componentVersionId,omitempty"` - ComponentVersion *ComponentVersion `json:"componentVersion,omitempty"` - IssueMatches *IssueMatchConnection `json:"issueMatches,omitempty"` - ServiceID *string `json:"serviceId,omitempty"` - Service *Service `json:"service,omitempty"` - CreatedAt *string `json:"createdAt,omitempty"` - UpdatedAt *string `json:"updatedAt,omitempty"` -} - -func (ComponentInstance) IsNode() {} -func (this ComponentInstance) GetID() string { return this.ID } - -type ComponentInstanceConnection struct { - TotalCount int `json:"totalCount"` - Edges []*ComponentInstanceEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (ComponentInstanceConnection) IsConnection() {} -func (this ComponentInstanceConnection) GetTotalCount() int { return this.TotalCount } -func (this ComponentInstanceConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type ComponentInstanceEdge struct { - Node *ComponentInstance `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (ComponentInstanceEdge) IsEdge() {} -func (this ComponentInstanceEdge) GetNode() Node { return *this.Node } -func (this ComponentInstanceEdge) GetCursor() *string { return this.Cursor } - -type ComponentInstanceFilter struct { - ServiceName []*string `json:"serviceName,omitempty"` - Ccrn []*string `json:"ccrn,omitempty"` - SupportGroup []*string `json:"supportGroup,omitempty"` - Search []*string `json:"search,omitempty"` -} - -type ComponentInstanceFilterValue struct { - ServiceName *FilterItem `json:"serviceName,omitempty"` - SupportGroupName *FilterItem `json:"supportGroupName,omitempty"` - Ccrn *FilterItem `json:"ccrn,omitempty"` -} - -type ComponentInstanceInput struct { - Ccrn *string `json:"ccrn,omitempty"` - Count *int `json:"count,omitempty"` - ComponentVersionID *string `json:"componentVersionId,omitempty"` - ServiceID *string `json:"serviceId,omitempty"` -} - -type ComponentVersion struct { - ID string `json:"id"` - Version *string `json:"version,omitempty"` - ComponentID *string `json:"componentId,omitempty"` - Component *Component `json:"component,omitempty"` - Issues *IssueConnection `json:"issues,omitempty"` - ComponentInstances *ComponentInstanceConnection `json:"componentInstances,omitempty"` -} - -func (ComponentVersion) IsNode() {} -func (this ComponentVersion) GetID() string { return this.ID } - -type ComponentVersionConnection struct { - TotalCount int `json:"totalCount"` - Edges []*ComponentVersionEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (ComponentVersionConnection) IsConnection() {} -func (this ComponentVersionConnection) GetTotalCount() int { return this.TotalCount } -func (this ComponentVersionConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type ComponentVersionEdge struct { - Node *ComponentVersion `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (ComponentVersionEdge) IsEdge() {} -func (this ComponentVersionEdge) GetNode() Node { return *this.Node } -func (this ComponentVersionEdge) GetCursor() *string { return this.Cursor } - -type ComponentVersionFilter struct { - ComponentID []*string `json:"componentId,omitempty"` - ComponentName []*string `json:"componentName,omitempty"` - IssueID []*string `json:"issueId,omitempty"` - Version []*string `json:"version,omitempty"` -} - -type ComponentVersionInput struct { - Version *string `json:"version,omitempty"` - ComponentID *string `json:"componentId,omitempty"` -} - -type DateTimeFilter struct { - After *string `json:"after,omitempty"` - Before *string `json:"before,omitempty"` -} - -type Evidence struct { - ID string `json:"id"` - Description *string `json:"description,omitempty"` - Type *string `json:"type,omitempty"` - Vector *string `json:"vector,omitempty"` - RaaEnd *string `json:"raaEnd,omitempty"` - AuthorID *string `json:"authorId,omitempty"` - Author *User `json:"author,omitempty"` - ActivityID *string `json:"activityId,omitempty"` - Activity *Activity `json:"activity,omitempty"` - IssueMatches *IssueMatchConnection `json:"issueMatches,omitempty"` -} - -func (Evidence) IsNode() {} -func (this Evidence) GetID() string { return this.ID } - -type EvidenceConnection struct { - TotalCount int `json:"totalCount"` - Edges []*EvidenceEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (EvidenceConnection) IsConnection() {} -func (this EvidenceConnection) GetTotalCount() int { return this.TotalCount } -func (this EvidenceConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type EvidenceEdge struct { - Node *Evidence `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (EvidenceEdge) IsEdge() {} -func (this EvidenceEdge) GetNode() Node { return *this.Node } -func (this EvidenceEdge) GetCursor() *string { return this.Cursor } - -type EvidenceFilter struct { - Placeholder []*bool `json:"placeholder,omitempty"` -} - -type EvidenceInput struct { - Description *string `json:"description,omitempty"` - Type *string `json:"type,omitempty"` - RaaEnd *string `json:"raaEnd,omitempty"` - AuthorID *string `json:"authorId,omitempty"` - ActivityID *string `json:"activityId,omitempty"` - Severity *SeverityInput `json:"severity,omitempty"` -} - -type FilterItem struct { - DisplayName *string `json:"displayName,omitempty"` - FilterName *string `json:"filterName,omitempty"` - Values []*string `json:"values,omitempty"` -} - -type Issue struct { - ID string `json:"id"` - Type *IssueTypes `json:"type,omitempty"` - PrimaryName *string `json:"primaryName,omitempty"` - Description *string `json:"description,omitempty"` - LastModified *string `json:"lastModified,omitempty"` - IssueVariants *IssueVariantConnection `json:"issueVariants,omitempty"` - Activities *ActivityConnection `json:"activities,omitempty"` - IssueMatches *IssueMatchConnection `json:"issueMatches,omitempty"` - ComponentVersions *ComponentVersionConnection `json:"componentVersions,omitempty"` - Metadata *IssueMetadata `json:"metadata,omitempty"` -} - -func (Issue) IsNode() {} -func (this Issue) GetID() string { return this.ID } - -type IssueConnection struct { - TotalCount int `json:"totalCount"` - VulnerabilityCount int `json:"vulnerabilityCount"` - PolicyViolationCount int `json:"policyViolationCount"` - SecurityEventCount int `json:"securityEventCount"` - Edges []*IssueEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (IssueConnection) IsConnection() {} -func (this IssueConnection) GetTotalCount() int { return this.TotalCount } -func (this IssueConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type IssueEdge struct { - Node *Issue `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (IssueEdge) IsEdge() {} -func (this IssueEdge) GetNode() Node { return *this.Node } -func (this IssueEdge) GetCursor() *string { return this.Cursor } - -type IssueFilter struct { - AffectedService []*string `json:"affectedService,omitempty"` - PrimaryName []*string `json:"primaryName,omitempty"` - IssueMatchStatus []*IssueMatchStatusValues `json:"issueMatchStatus,omitempty"` - IssueType []*IssueTypes `json:"issueType,omitempty"` - ComponentVersionID []*string `json:"componentVersionId,omitempty"` - Search []*string `json:"search,omitempty"` -} - -type IssueInput struct { - PrimaryName *string `json:"primaryName,omitempty"` - Description *string `json:"description,omitempty"` - Type *IssueTypes `json:"type,omitempty"` -} - -type IssueMatch struct { - ID string `json:"id"` - Status *IssueMatchStatusValues `json:"status,omitempty"` - RemediationDate *string `json:"remediationDate,omitempty"` - DiscoveryDate *string `json:"discoveryDate,omitempty"` - TargetRemediationDate *string `json:"targetRemediationDate,omitempty"` - Severity *Severity `json:"severity,omitempty"` - EffectiveIssueVariants *IssueVariantConnection `json:"effectiveIssueVariants,omitempty"` - Evidences *EvidenceConnection `json:"evidences,omitempty"` - IssueID *string `json:"issueId,omitempty"` - Issue *Issue `json:"issue"` - UserID *string `json:"userId,omitempty"` - User *User `json:"user,omitempty"` - ComponentInstanceID *string `json:"componentInstanceId,omitempty"` - ComponentInstance *ComponentInstance `json:"componentInstance"` - IssueMatchChanges *IssueMatchChangeConnection `json:"issueMatchChanges,omitempty"` -} - -func (IssueMatch) IsNode() {} -func (this IssueMatch) GetID() string { return this.ID } - -type IssueMatchChange struct { - ID string `json:"id"` - Action *IssueMatchChangeActions `json:"action,omitempty"` - IssueMatchID *string `json:"issueMatchId,omitempty"` - IssueMatch *IssueMatch `json:"issueMatch"` - ActivityID *string `json:"activityId,omitempty"` - Activity *Activity `json:"activity"` -} - -func (IssueMatchChange) IsNode() {} -func (this IssueMatchChange) GetID() string { return this.ID } - -type IssueMatchChangeConnection struct { - TotalCount int `json:"totalCount"` - Edges []*IssueMatchChangeEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (IssueMatchChangeConnection) IsConnection() {} -func (this IssueMatchChangeConnection) GetTotalCount() int { return this.TotalCount } -func (this IssueMatchChangeConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type IssueMatchChangeEdge struct { - Node *IssueMatchChange `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (IssueMatchChangeEdge) IsEdge() {} -func (this IssueMatchChangeEdge) GetNode() Node { return *this.Node } -func (this IssueMatchChangeEdge) GetCursor() *string { return this.Cursor } - -type IssueMatchChangeFilter struct { - Action []*IssueMatchChangeActions `json:"action,omitempty"` -} - -type IssueMatchChangeInput struct { - Action *IssueMatchChangeActions `json:"action,omitempty"` - IssueMatchID *string `json:"issueMatchId,omitempty"` - ActivityID *string `json:"activityId,omitempty"` -} - -type IssueMatchConnection struct { - TotalCount int `json:"totalCount"` - Edges []*IssueMatchEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (IssueMatchConnection) IsConnection() {} -func (this IssueMatchConnection) GetTotalCount() int { return this.TotalCount } -func (this IssueMatchConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type IssueMatchEdge struct { - Node *IssueMatch `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (IssueMatchEdge) IsEdge() {} -func (this IssueMatchEdge) GetNode() Node { return *this.Node } -func (this IssueMatchEdge) GetCursor() *string { return this.Cursor } - -type IssueMatchFilter struct { - ID []*string `json:"id,omitempty"` - Search []*string `json:"search,omitempty"` - PrimaryName []*string `json:"primaryName,omitempty"` - ComponentName []*string `json:"componentName,omitempty"` - IssueType []*IssueTypes `json:"issueType,omitempty"` - Status []*IssueMatchStatusValues `json:"status,omitempty"` - Severity []*SeverityValues `json:"severity,omitempty"` - AffectedService []*string `json:"affectedService,omitempty"` - SupportGroupName []*string `json:"supportGroupName,omitempty"` -} - -type IssueMatchFilterValue struct { - Status *FilterItem `json:"status,omitempty"` - Severity *FilterItem `json:"severity,omitempty"` - IssueType *FilterItem `json:"issueType,omitempty"` - PrimaryName *FilterItem `json:"primaryName,omitempty"` - AffectedService *FilterItem `json:"affectedService,omitempty"` - ComponentName *FilterItem `json:"componentName,omitempty"` - SupportGroupName *FilterItem `json:"supportGroupName,omitempty"` -} - -type IssueMatchInput struct { - Status *IssueMatchStatusValues `json:"status,omitempty"` - RemediationDate *string `json:"remediationDate,omitempty"` - DiscoveryDate *string `json:"discoveryDate,omitempty"` - TargetRemediationDate *string `json:"targetRemediationDate,omitempty"` - IssueID *string `json:"issueId,omitempty"` - ComponentInstanceID *string `json:"componentInstanceId,omitempty"` - UserID *string `json:"userId,omitempty"` -} - -type IssueMetadata struct { - ServiceCount int `json:"serviceCount"` - ActivityCount int `json:"activityCount"` - IssueMatchCount int `json:"issueMatchCount"` - ComponentInstanceCount int `json:"componentInstanceCount"` - ComponentVersionCount int `json:"componentVersionCount"` - EarliestDiscoveryDate string `json:"earliestDiscoveryDate"` - EarliestTargetRemediationDate string `json:"earliestTargetRemediationDate"` -} - -type IssueRepository struct { - ID string `json:"id"` - Name *string `json:"name,omitempty"` - URL *string `json:"url,omitempty"` - IssueVariants *IssueVariantConnection `json:"issueVariants,omitempty"` - Services *ServiceConnection `json:"services,omitempty"` - CreatedAt *string `json:"created_at,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` -} - -func (IssueRepository) IsNode() {} -func (this IssueRepository) GetID() string { return this.ID } - -type IssueRepositoryConnection struct { - TotalCount int `json:"totalCount"` - Edges []*IssueRepositoryEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (IssueRepositoryConnection) IsConnection() {} -func (this IssueRepositoryConnection) GetTotalCount() int { return this.TotalCount } -func (this IssueRepositoryConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type IssueRepositoryEdge struct { - Node *IssueRepository `json:"node"` - Cursor *string `json:"cursor,omitempty"` - Priority *int `json:"priority,omitempty"` - CreatedAt *string `json:"created_at,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` -} - -func (IssueRepositoryEdge) IsEdge() {} -func (this IssueRepositoryEdge) GetNode() Node { return *this.Node } -func (this IssueRepositoryEdge) GetCursor() *string { return this.Cursor } - -type IssueRepositoryFilter struct { - ServiceName []*string `json:"serviceName,omitempty"` - ServiceID []*string `json:"serviceId,omitempty"` - Name []*string `json:"name,omitempty"` -} - -type IssueRepositoryInput struct { - Name *string `json:"name,omitempty"` - URL *string `json:"url,omitempty"` -} - -type IssueVariant struct { - ID string `json:"id"` - SecondaryName *string `json:"secondaryName,omitempty"` - Description *string `json:"description,omitempty"` - Severity *Severity `json:"severity,omitempty"` - IssueRepositoryID *string `json:"issueRepositoryId,omitempty"` - IssueRepository *IssueRepository `json:"issueRepository,omitempty"` - IssueID *string `json:"issueId,omitempty"` - Issue *Issue `json:"issue,omitempty"` - CreatedAt *string `json:"created_at,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` -} - -func (IssueVariant) IsNode() {} -func (this IssueVariant) GetID() string { return this.ID } - -type IssueVariantConnection struct { - TotalCount int `json:"totalCount"` - Edges []*IssueVariantEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (IssueVariantConnection) IsConnection() {} -func (this IssueVariantConnection) GetTotalCount() int { return this.TotalCount } -func (this IssueVariantConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type IssueVariantEdge struct { - Node *IssueVariant `json:"node"` - Cursor *string `json:"cursor,omitempty"` - CreatedAt *string `json:"created_at,omitempty"` - UpdatedAt *string `json:"updated_at,omitempty"` -} - -func (IssueVariantEdge) IsEdge() {} -func (this IssueVariantEdge) GetNode() Node { return *this.Node } -func (this IssueVariantEdge) GetCursor() *string { return this.Cursor } - -type IssueVariantFilter struct { - SecondaryName []*string `json:"secondaryName,omitempty"` -} - -type IssueVariantInput struct { - SecondaryName *string `json:"secondaryName,omitempty"` - Description *string `json:"description,omitempty"` - IssueRepositoryID *string `json:"issueRepositoryId,omitempty"` - IssueID *string `json:"issueId,omitempty"` - Severity *SeverityInput `json:"severity,omitempty"` -} - -type Mutation struct { -} - -type Page struct { - After *string `json:"after,omitempty"` - IsCurrent *bool `json:"isCurrent,omitempty"` - PageNumber *int `json:"pageNumber,omitempty"` - PageCount *int `json:"pageCount,omitempty"` -} - -type PageInfo struct { - HasNextPage *bool `json:"hasNextPage,omitempty"` - HasPreviousPage *bool `json:"hasPreviousPage,omitempty"` - IsValidPage *bool `json:"isValidPage,omitempty"` - PageNumber *int `json:"pageNumber,omitempty"` - NextPageAfter *string `json:"nextPageAfter,omitempty"` - Pages []*Page `json:"pages,omitempty"` -} - -type Query struct { -} - -type Service struct { - ID string `json:"id"` - Name *string `json:"name,omitempty"` - Owners *UserConnection `json:"owners,omitempty"` - SupportGroups *SupportGroupConnection `json:"supportGroups,omitempty"` - Activities *ActivityConnection `json:"activities,omitempty"` - IssueRepositories *IssueRepositoryConnection `json:"issueRepositories,omitempty"` - ComponentInstances *ComponentInstanceConnection `json:"componentInstances,omitempty"` - Metadata *ServiceMetadata `json:"metadata,omitempty"` -} - -func (Service) IsNode() {} -func (this Service) GetID() string { return this.ID } - -type ServiceConnection struct { - TotalCount int `json:"totalCount"` - Edges []*ServiceEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (ServiceConnection) IsConnection() {} -func (this ServiceConnection) GetTotalCount() int { return this.TotalCount } -func (this ServiceConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type ServiceEdge struct { - Node *Service `json:"node"` - Cursor *string `json:"cursor,omitempty"` - Priority *int `json:"priority,omitempty"` -} - -func (ServiceEdge) IsEdge() {} -func (this ServiceEdge) GetNode() Node { return *this.Node } -func (this ServiceEdge) GetCursor() *string { return this.Cursor } - -type ServiceFilter struct { - ServiceName []*string `json:"serviceName,omitempty"` - UniqueUserID []*string `json:"uniqueUserId,omitempty"` - Type []*int `json:"type,omitempty"` - UserName []*string `json:"userName,omitempty"` - SupportGroupName []*string `json:"supportGroupName,omitempty"` - Search []*string `json:"search,omitempty"` -} - -type ServiceFilterValue struct { - ServiceName *FilterItem `json:"serviceName,omitempty"` - UniqueUserID *FilterItem `json:"uniqueUserId,omitempty"` - UserName *FilterItem `json:"userName,omitempty"` - SupportGroupName *FilterItem `json:"supportGroupName,omitempty"` -} - -type ServiceInput struct { - Name *string `json:"name,omitempty"` -} - -type ServiceMetadata struct { - IssueMatchCount int `json:"issueMatchCount"` - ComponentInstanceCount int `json:"componentInstanceCount"` -} - -type Severity struct { - Value *SeverityValues `json:"value,omitempty"` - Score *float64 `json:"score,omitempty"` - Cvss *Cvss `json:"cvss,omitempty"` -} - -type SeverityInput struct { - Vector *string `json:"vector,omitempty"` -} - -type SupportGroup struct { - ID string `json:"id"` - Name *string `json:"name,omitempty"` - Users *UserConnection `json:"users,omitempty"` - Services *ServiceConnection `json:"services,omitempty"` -} - -func (SupportGroup) IsNode() {} -func (this SupportGroup) GetID() string { return this.ID } - -type SupportGroupConnection struct { - TotalCount int `json:"totalCount"` - Edges []*SupportGroupEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (SupportGroupConnection) IsConnection() {} -func (this SupportGroupConnection) GetTotalCount() int { return this.TotalCount } -func (this SupportGroupConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type SupportGroupEdge struct { - Node *SupportGroup `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (SupportGroupEdge) IsEdge() {} -func (this SupportGroupEdge) GetNode() Node { return *this.Node } -func (this SupportGroupEdge) GetCursor() *string { return this.Cursor } - -type SupportGroupFilter struct { - SupportGroupName []*string `json:"supportGroupName,omitempty"` - UserIds []*string `json:"userIds,omitempty"` -} - -type SupportGroupInput struct { - Name *string `json:"name,omitempty"` -} - -type User struct { - ID string `json:"id"` - UniqueUserID *string `json:"uniqueUserId,omitempty"` - Type int `json:"type"` - Name *string `json:"name,omitempty"` - SupportGroups *SupportGroupConnection `json:"supportGroups,omitempty"` - Services *ServiceConnection `json:"services,omitempty"` -} - -func (User) IsNode() {} -func (this User) GetID() string { return this.ID } - -type UserConnection struct { - TotalCount int `json:"totalCount"` - Edges []*UserEdge `json:"edges,omitempty"` - PageInfo *PageInfo `json:"pageInfo,omitempty"` -} - -func (UserConnection) IsConnection() {} -func (this UserConnection) GetTotalCount() int { return this.TotalCount } -func (this UserConnection) GetPageInfo() *PageInfo { return this.PageInfo } - -type UserEdge struct { - Node *User `json:"node"` - Cursor *string `json:"cursor,omitempty"` -} - -func (UserEdge) IsEdge() {} -func (this UserEdge) GetNode() Node { return *this.Node } -func (this UserEdge) GetCursor() *string { return this.Cursor } - -type UserFilter struct { - UserName []*string `json:"userName,omitempty"` - SupportGroupIds []*string `json:"supportGroupIds,omitempty"` - UniqueUserID []*string `json:"uniqueUserId,omitempty"` -} - -type UserInput struct { - UniqueUserID *string `json:"uniqueUserId,omitempty"` - Type *string `json:"type,omitempty"` - Name *string `json:"name,omitempty"` -} - -type ActivityStatusValues string - -const ( - ActivityStatusValuesOpen ActivityStatusValues = "open" - ActivityStatusValuesClosed ActivityStatusValues = "closed" - ActivityStatusValuesInProgress ActivityStatusValues = "in_progress" -) - -var AllActivityStatusValues = []ActivityStatusValues{ - ActivityStatusValuesOpen, - ActivityStatusValuesClosed, - ActivityStatusValuesInProgress, -} - -func (e ActivityStatusValues) IsValid() bool { - switch e { - case ActivityStatusValuesOpen, ActivityStatusValuesClosed, ActivityStatusValuesInProgress: - return true - } - return false -} - -func (e ActivityStatusValues) String() string { - return string(e) -} - -func (e *ActivityStatusValues) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ActivityStatusValues(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ActivityStatusValues", str) - } - return nil -} - -func (e ActivityStatusValues) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type ComponentTypeValues string - -const ( - ComponentTypeValuesContainerImage ComponentTypeValues = "containerImage" - ComponentTypeValuesVirtualMachineImage ComponentTypeValues = "virtualMachineImage" - ComponentTypeValuesRepository ComponentTypeValues = "repository" -) - -var AllComponentTypeValues = []ComponentTypeValues{ - ComponentTypeValuesContainerImage, - ComponentTypeValuesVirtualMachineImage, - ComponentTypeValuesRepository, -} - -func (e ComponentTypeValues) IsValid() bool { - switch e { - case ComponentTypeValuesContainerImage, ComponentTypeValuesVirtualMachineImage, ComponentTypeValuesRepository: - return true - } - return false -} - -func (e ComponentTypeValues) String() string { - return string(e) -} - -func (e *ComponentTypeValues) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ComponentTypeValues(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ComponentTypeValues", str) - } - return nil -} - -func (e ComponentTypeValues) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type IssueMatchChangeActions string - -const ( - IssueMatchChangeActionsAdd IssueMatchChangeActions = "add" - IssueMatchChangeActionsRemove IssueMatchChangeActions = "remove" -) - -var AllIssueMatchChangeActions = []IssueMatchChangeActions{ - IssueMatchChangeActionsAdd, - IssueMatchChangeActionsRemove, -} - -func (e IssueMatchChangeActions) IsValid() bool { - switch e { - case IssueMatchChangeActionsAdd, IssueMatchChangeActionsRemove: - return true - } - return false -} - -func (e IssueMatchChangeActions) String() string { - return string(e) -} - -func (e *IssueMatchChangeActions) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = IssueMatchChangeActions(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid IssueMatchChangeActions", str) - } - return nil -} - -func (e IssueMatchChangeActions) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type IssueMatchStatusValues string - -const ( - IssueMatchStatusValuesNew IssueMatchStatusValues = "new" - IssueMatchStatusValuesRiskAccepted IssueMatchStatusValues = "risk_accepted" - IssueMatchStatusValuesFalsePositive IssueMatchStatusValues = "false_positive" - IssueMatchStatusValuesMitigated IssueMatchStatusValues = "mitigated" -) - -var AllIssueMatchStatusValues = []IssueMatchStatusValues{ - IssueMatchStatusValuesNew, - IssueMatchStatusValuesRiskAccepted, - IssueMatchStatusValuesFalsePositive, - IssueMatchStatusValuesMitigated, -} - -func (e IssueMatchStatusValues) IsValid() bool { - switch e { - case IssueMatchStatusValuesNew, IssueMatchStatusValuesRiskAccepted, IssueMatchStatusValuesFalsePositive, IssueMatchStatusValuesMitigated: - return true - } - return false -} - -func (e IssueMatchStatusValues) String() string { - return string(e) -} - -func (e *IssueMatchStatusValues) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = IssueMatchStatusValues(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid IssueMatchStatusValues", str) - } - return nil -} - -func (e IssueMatchStatusValues) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type IssueStatusValues string - -const ( - IssueStatusValuesUnaffected IssueStatusValues = "unaffected" - IssueStatusValuesOpen IssueStatusValues = "open" - IssueStatusValuesRemediated IssueStatusValues = "remediated" - IssueStatusValuesOverdue IssueStatusValues = "overdue" -) - -var AllIssueStatusValues = []IssueStatusValues{ - IssueStatusValuesUnaffected, - IssueStatusValuesOpen, - IssueStatusValuesRemediated, - IssueStatusValuesOverdue, -} - -func (e IssueStatusValues) IsValid() bool { - switch e { - case IssueStatusValuesUnaffected, IssueStatusValuesOpen, IssueStatusValuesRemediated, IssueStatusValuesOverdue: - return true - } - return false -} - -func (e IssueStatusValues) String() string { - return string(e) -} - -func (e *IssueStatusValues) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = IssueStatusValues(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid IssueStatusValues", str) - } - return nil -} - -func (e IssueStatusValues) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type IssueTypes string - -const ( - IssueTypesVulnerability IssueTypes = "Vulnerability" - IssueTypesPolicyViolation IssueTypes = "PolicyViolation" - IssueTypesSecurityEvent IssueTypes = "SecurityEvent" -) - -var AllIssueTypes = []IssueTypes{ - IssueTypesVulnerability, - IssueTypesPolicyViolation, - IssueTypesSecurityEvent, -} - -func (e IssueTypes) IsValid() bool { - switch e { - case IssueTypesVulnerability, IssueTypesPolicyViolation, IssueTypesSecurityEvent: - return true - } - return false -} - -func (e IssueTypes) String() string { - return string(e) -} - -func (e *IssueTypes) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = IssueTypes(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid IssueTypes", str) - } - return nil -} - -func (e IssueTypes) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -type SeverityValues string - -const ( - SeverityValuesNone SeverityValues = "None" - SeverityValuesLow SeverityValues = "Low" - SeverityValuesMedium SeverityValues = "Medium" - SeverityValuesHigh SeverityValues = "High" - SeverityValuesCritical SeverityValues = "Critical" -) - -var AllSeverityValues = []SeverityValues{ - SeverityValuesNone, - SeverityValuesLow, - SeverityValuesMedium, - SeverityValuesHigh, - SeverityValuesCritical, -} - -func (e SeverityValues) IsValid() bool { - switch e { - case SeverityValuesNone, SeverityValuesLow, SeverityValuesMedium, SeverityValuesHigh, SeverityValuesCritical: - return true - } - return false -} - -func (e SeverityValues) String() string { - return string(e) -} - -func (e *SeverityValues) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = SeverityValues(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid SeverityValues", str) - } - return nil -} - -func (e SeverityValues) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} diff --git a/internal/api/graphql/graph/resolver/activity.go b/internal/api/graphql/graph/resolver/activity.go index 39fa84a0..5ed75ab4 100644 --- a/internal/api/graphql/graph/resolver/activity.go +++ b/internal/api/graphql/graph/resolver/activity.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// Services is the resolver for the services field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *activityResolver) Services(ctx context.Context, obj *model.Activity, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) { return baseResolver.ServiceBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -23,7 +22,6 @@ func (r *activityResolver) Services(ctx context.Context, obj *model.Activity, fi }) } -// Issues is the resolver for the issues field. func (r *activityResolver) Issues(ctx context.Context, obj *model.Activity, filter *model.IssueFilter, first *int, after *string) (*model.IssueConnection, error) { return baseResolver.IssueBaseResolver( r.App, @@ -37,7 +35,6 @@ func (r *activityResolver) Issues(ctx context.Context, obj *model.Activity, filt }) } -// Evidences is the resolver for the evidences field. func (r *activityResolver) Evidences(ctx context.Context, obj *model.Activity, filter *model.EvidenceFilter, first *int, after *string) (*model.EvidenceConnection, error) { return baseResolver.EvidenceBaseResolver( r.App, @@ -51,7 +48,6 @@ func (r *activityResolver) Evidences(ctx context.Context, obj *model.Activity, f }) } -// IssueMatchChanges is the resolver for the issueMatchChanges field. func (r *activityResolver) IssueMatchChanges(ctx context.Context, obj *model.Activity, filter *model.IssueMatchChangeFilter, first *int, after *string) (*model.IssueMatchChangeConnection, error) { return baseResolver.IssueMatchChangeBaseResolver( r.App, @@ -65,7 +61,6 @@ func (r *activityResolver) IssueMatchChanges(ctx context.Context, obj *model.Act }) } -// Activity returns graph.ActivityResolver implementation. func (r *Resolver) Activity() graph.ActivityResolver { return &activityResolver{r} } type activityResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/component.go b/internal/api/graphql/graph/resolver/component.go index 9f39f8d2..2ee7f488 100644 --- a/internal/api/graphql/graph/resolver/component.go +++ b/internal/api/graphql/graph/resolver/component.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// ComponentVersions is the resolver for the componentVersions field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *componentResolver) ComponentVersions(ctx context.Context, obj *model.Component, filter *model.ComponentVersionFilter, first *int, after *string) (*model.ComponentVersionConnection, error) { return baseResolver.ComponentVersionBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ @@ -24,7 +23,6 @@ func (r *componentResolver) ComponentVersions(ctx context.Context, obj *model.Co }) } -// Component returns graph.ComponentResolver implementation. func (r *Resolver) Component() graph.ComponentResolver { return &componentResolver{r} } type componentResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/component_filter.go b/internal/api/graphql/graph/resolver/component_filter.go index 24f4235b..d06c5e84 100644 --- a/internal/api/graphql/graph/resolver/component_filter.go +++ b/internal/api/graphql/graph/resolver/component_filter.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.55 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// ComponentName is the resolver for the componentName field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *componentFilterValueResolver) ComponentName(ctx context.Context, obj *model.ComponentFilterValue, filter *model.ComponentFilter) (*model.FilterItem, error) { item, err := baseResolver.ComponentNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -25,7 +24,6 @@ func (r *componentFilterValueResolver) ComponentName(ctx context.Context, obj *m return item, err } -// ComponentFilterValue returns graph.ComponentFilterValueResolver implementation. func (r *Resolver) ComponentFilterValue() graph.ComponentFilterValueResolver { return &componentFilterValueResolver{r} } diff --git a/internal/api/graphql/graph/resolver/component_instance.go b/internal/api/graphql/graph/resolver/component_instance.go index 7b31647a..9dc4d4ef 100644 --- a/internal/api/graphql/graph/resolver/component_instance.go +++ b/internal/api/graphql/graph/resolver/component_instance.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -17,7 +14,9 @@ import ( "github.com/sirupsen/logrus" ) -// ComponentVersion is the resolver for the componentVersion field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *componentInstanceResolver) ComponentVersion(ctx context.Context, obj *model.ComponentInstance) (*model.ComponentVersion, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.ComponentVersionID}) @@ -33,7 +32,6 @@ func (r *componentInstanceResolver) ComponentVersion(ctx context.Context, obj *m }) } -// IssueMatches is the resolver for the issueMatches field. func (r *componentInstanceResolver) IssueMatches(ctx context.Context, obj *model.ComponentInstance, filter *model.IssueMatchFilter, first *int, after *string) (*model.IssueMatchConnection, error) { return baseResolver.IssueMatchBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -41,7 +39,6 @@ func (r *componentInstanceResolver) IssueMatches(ctx context.Context, obj *model }) } -// Service is the resolver for the service field. func (r *componentInstanceResolver) Service(ctx context.Context, obj *model.ComponentInstance) (*model.Service, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.ServiceID}) @@ -57,7 +54,6 @@ func (r *componentInstanceResolver) Service(ctx context.Context, obj *model.Comp }) } -// ComponentInstance returns graph.ComponentInstanceResolver implementation. func (r *Resolver) ComponentInstance() graph.ComponentInstanceResolver { return &componentInstanceResolver{r} } diff --git a/internal/api/graphql/graph/resolver/component_instance_filter.go b/internal/api/graphql/graph/resolver/component_instance_filter.go index 00cf6b3e..15327d13 100644 --- a/internal/api/graphql/graph/resolver/component_instance_filter.go +++ b/internal/api/graphql/graph/resolver/component_instance_filter.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.51 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// ServiceName is the resolver for the serviceName field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *componentInstanceFilterValueResolver) ServiceName(ctx context.Context, obj *model.ComponentInstanceFilterValue, filter *model.ServiceFilter) (*model.FilterItem, error) { item, err := baseResolver.ServiceNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -25,7 +24,6 @@ func (r *componentInstanceFilterValueResolver) ServiceName(ctx context.Context, return item, err } -// SupportGroup is the resolver for the supportGroup field. func (r *componentInstanceFilterValueResolver) SupportGroupName(ctx context.Context, obj *model.ComponentInstanceFilterValue, filter *model.SupportGroupFilter) (*model.FilterItem, error) { item, err := baseResolver.SupportGroupNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -35,7 +33,6 @@ func (r *componentInstanceFilterValueResolver) SupportGroupName(ctx context.Cont return item, err } -// Ccrn is the resolver for the ccrn field. func (r *componentInstanceFilterValueResolver) Ccrn(ctx context.Context, obj *model.ComponentInstanceFilterValue, filter *model.ComponentInstanceFilter) (*model.FilterItem, error) { item, err := baseResolver.CcrnBaseResolver(r.App, ctx, filter) if err != nil { @@ -45,7 +42,6 @@ func (r *componentInstanceFilterValueResolver) Ccrn(ctx context.Context, obj *mo return item, err } -// ComponentInstanceFilterValue returns graph.ComponentInstanceFilterValueResolver implementation. func (r *Resolver) ComponentInstanceFilterValue() graph.ComponentInstanceFilterValueResolver { return &componentInstanceFilterValueResolver{r} } diff --git a/internal/api/graphql/graph/resolver/component_version.go b/internal/api/graphql/graph/resolver/component_version.go index deafa872..2ffbf29e 100644 --- a/internal/api/graphql/graph/resolver/component_version.go +++ b/internal/api/graphql/graph/resolver/component_version.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -17,7 +14,9 @@ import ( "github.com/sirupsen/logrus" ) -// Component is the resolver for the component field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *componentVersionResolver) Component(ctx context.Context, obj *model.ComponentVersion) (*model.Component, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.ComponentID}) @@ -36,7 +35,6 @@ func (r *componentVersionResolver) Component(ctx context.Context, obj *model.Com }) } -// Issues is the resolver for the issues field. func (r *componentVersionResolver) Issues(ctx context.Context, obj *model.ComponentVersion, first *int, after *string) (*model.IssueConnection, error) { return baseResolver.IssueBaseResolver(r.App, ctx, nil, first, after, &model.NodeParent{ Parent: obj, @@ -44,7 +42,6 @@ func (r *componentVersionResolver) Issues(ctx context.Context, obj *model.Compon }) } -// ComponentInstances is the resolver for the componentInstances field. func (r *componentVersionResolver) ComponentInstances(ctx context.Context, obj *model.ComponentVersion, first *int, after *string) (*model.ComponentInstanceConnection, error) { return baseResolver.ComponentInstanceBaseResolver(r.App, ctx, nil, first, after, &model.NodeParent{ Parent: obj, @@ -52,7 +49,6 @@ func (r *componentVersionResolver) ComponentInstances(ctx context.Context, obj * }) } -// ComponentVersion returns graph.ComponentVersionResolver implementation. func (r *Resolver) ComponentVersion() graph.ComponentVersionResolver { return &componentVersionResolver{r} } diff --git a/internal/api/graphql/graph/resolver/evidence.go b/internal/api/graphql/graph/resolver/evidence.go index 9d303be4..76175a33 100644 --- a/internal/api/graphql/graph/resolver/evidence.go +++ b/internal/api/graphql/graph/resolver/evidence.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -17,7 +14,9 @@ import ( "github.com/sirupsen/logrus" ) -// Author is the resolver for the author field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *evidenceResolver) Author(ctx context.Context, obj *model.Evidence) (*model.User, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.AuthorID}) @@ -33,7 +32,6 @@ func (r *evidenceResolver) Author(ctx context.Context, obj *model.Evidence) (*mo }) } -// Activity is the resolver for the activity field. func (r *evidenceResolver) Activity(ctx context.Context, obj *model.Evidence) (*model.Activity, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.ActivityID}) @@ -49,7 +47,6 @@ func (r *evidenceResolver) Activity(ctx context.Context, obj *model.Evidence) (* }) } -// IssueMatches is the resolver for the issueMatches field. func (r *evidenceResolver) IssueMatches(ctx context.Context, obj *model.Evidence, filter *model.IssueMatchFilter, first *int, after *string) (*model.IssueMatchConnection, error) { return baseResolver.IssueMatchBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -57,7 +54,6 @@ func (r *evidenceResolver) IssueMatches(ctx context.Context, obj *model.Evidence }) } -// Evidence returns graph.EvidenceResolver implementation. func (r *Resolver) Evidence() graph.EvidenceResolver { return &evidenceResolver{r} } type evidenceResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/issue.go b/internal/api/graphql/graph/resolver/issue.go index 7eebf7dd..36b06d40 100644 --- a/internal/api/graphql/graph/resolver/issue.go +++ b/internal/api/graphql/graph/resolver/issue.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// IssueVariants is the resolver for the issueVariants field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *issueResolver) IssueVariants(ctx context.Context, obj *model.Issue, filter *model.IssueVariantFilter, first *int, after *string) (*model.IssueVariantConnection, error) { return baseResolver.IssueVariantBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -23,7 +22,6 @@ func (r *issueResolver) IssueVariants(ctx context.Context, obj *model.Issue, fil }) } -// Activities is the resolver for the activities field. func (r *issueResolver) Activities(ctx context.Context, obj *model.Issue, filter *model.ActivityFilter, first *int, after *string) (*model.ActivityConnection, error) { return baseResolver.ActivityBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -31,7 +29,6 @@ func (r *issueResolver) Activities(ctx context.Context, obj *model.Issue, filter }) } -// IssueMatches is the resolver for the issueMatches field. func (r *issueResolver) IssueMatches(ctx context.Context, obj *model.Issue, filter *model.IssueMatchFilter, first *int, after *string) (*model.IssueMatchConnection, error) { return baseResolver.IssueMatchBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -39,7 +36,6 @@ func (r *issueResolver) IssueMatches(ctx context.Context, obj *model.Issue, filt }) } -// ComponentVersions is the resolver for the componentVersions field. func (r *issueResolver) ComponentVersions(ctx context.Context, obj *model.Issue, filter *model.ComponentVersionFilter, first *int, after *string) (*model.ComponentVersionConnection, error) { return baseResolver.ComponentVersionBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -47,7 +43,6 @@ func (r *issueResolver) ComponentVersions(ctx context.Context, obj *model.Issue, }) } -// Issue returns graph.IssueResolver implementation. func (r *Resolver) Issue() graph.IssueResolver { return &issueResolver{r} } type issueResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/issue_match.go b/internal/api/graphql/graph/resolver/issue_match.go index 584d23c3..33d244b0 100644 --- a/internal/api/graphql/graph/resolver/issue_match.go +++ b/internal/api/graphql/graph/resolver/issue_match.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -18,7 +15,9 @@ import ( "github.com/sirupsen/logrus" ) -// Severity is the resolver for the severity field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *issueMatchResolver) Severity(ctx context.Context, obj *model.IssueMatch) (*model.Severity, error) { imIds, err := util.ConvertStrToIntSlice([]*string{&obj.ID}) if err != nil { @@ -46,7 +45,6 @@ func (r *issueMatchResolver) Severity(ctx context.Context, obj *model.IssueMatch return s, nil } -// EffectiveIssueVariants is the resolver for the effectiveIssueVariants field. func (r *issueMatchResolver) EffectiveIssueVariants(ctx context.Context, obj *model.IssueMatch, filter *model.IssueVariantFilter, first *int, after *string) (*model.IssueVariantConnection, error) { return baseResolver.EffectiveIssueVariantBaseResolver( r.App, @@ -60,7 +58,6 @@ func (r *issueMatchResolver) EffectiveIssueVariants(ctx context.Context, obj *mo }) } -// Evidences is the resolver for the evidences field. func (r *issueMatchResolver) Evidences(ctx context.Context, obj *model.IssueMatch, filter *model.EvidenceFilter, first *int, after *string) (*model.EvidenceConnection, error) { return baseResolver.EvidenceBaseResolver( r.App, @@ -74,7 +71,6 @@ func (r *issueMatchResolver) Evidences(ctx context.Context, obj *model.IssueMatc }) } -// Issue is the resolver for the issue field. func (r *issueMatchResolver) Issue(ctx context.Context, obj *model.IssueMatch) (*model.Issue, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.IssueID}) @@ -93,7 +89,6 @@ func (r *issueMatchResolver) Issue(ctx context.Context, obj *model.IssueMatch) ( }) } -// ComponentInstance is the resolver for the componentInstance field. func (r *issueMatchResolver) ComponentInstance(ctx context.Context, obj *model.IssueMatch) (*model.ComponentInstance, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.ComponentInstanceID}) @@ -112,7 +107,6 @@ func (r *issueMatchResolver) ComponentInstance(ctx context.Context, obj *model.I }) } -// IssueMatchChanges is the resolver for the issueMatchChanges field. func (r *issueMatchResolver) IssueMatchChanges(ctx context.Context, obj *model.IssueMatch, filter *model.IssueMatchChangeFilter, first *int, after *string) (*model.IssueMatchChangeConnection, error) { return baseResolver.IssueMatchChangeBaseResolver( r.App, @@ -126,7 +120,6 @@ func (r *issueMatchResolver) IssueMatchChanges(ctx context.Context, obj *model.I }) } -// IssueMatch returns graph.IssueMatchResolver implementation. func (r *Resolver) IssueMatch() graph.IssueMatchResolver { return &issueMatchResolver{r} } type issueMatchResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/issue_match_change.go b/internal/api/graphql/graph/resolver/issue_match_change.go index c19deb43..f1101dd1 100644 --- a/internal/api/graphql/graph/resolver/issue_match_change.go +++ b/internal/api/graphql/graph/resolver/issue_match_change.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -17,7 +14,9 @@ import ( "github.com/sirupsen/logrus" ) -// IssueMatch is the resolver for the issueMatch field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *issueMatchChangeResolver) IssueMatch(ctx context.Context, obj *model.IssueMatchChange) (*model.IssueMatch, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.IssueMatchID}) @@ -36,7 +35,6 @@ func (r *issueMatchChangeResolver) IssueMatch(ctx context.Context, obj *model.Is }) } -// Activity is the resolver for the activity field. func (r *issueMatchChangeResolver) Activity(ctx context.Context, obj *model.IssueMatchChange) (*model.Activity, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.ActivityID}) @@ -55,7 +53,6 @@ func (r *issueMatchChangeResolver) Activity(ctx context.Context, obj *model.Issu }) } -// IssueMatchChange returns graph.IssueMatchChangeResolver implementation. func (r *Resolver) IssueMatchChange() graph.IssueMatchChangeResolver { return &issueMatchChangeResolver{r} } diff --git a/internal/api/graphql/graph/resolver/issue_match_filter_value.go b/internal/api/graphql/graph/resolver/issue_match_filter_value.go index ed9ad6db..5d4b1757 100644 --- a/internal/api/graphql/graph/resolver/issue_match_filter_value.go +++ b/internal/api/graphql/graph/resolver/issue_match_filter_value.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// PrimaryName is the resolver for the primaryName field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *issueMatchFilterValueResolver) PrimaryName(ctx context.Context, obj *model.IssueMatchFilterValue, filter *model.IssueFilter) (*model.FilterItem, error) { item, err := baseResolver.IssueNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -25,7 +24,6 @@ func (r *issueMatchFilterValueResolver) PrimaryName(ctx context.Context, obj *mo return item, nil } -// AffectedService is the resolver for the affectedService field. func (r *issueMatchFilterValueResolver) AffectedService(ctx context.Context, obj *model.IssueMatchFilterValue, filter *model.ServiceFilter) (*model.FilterItem, error) { item, err := baseResolver.ServiceNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -35,7 +33,6 @@ func (r *issueMatchFilterValueResolver) AffectedService(ctx context.Context, obj return item, nil } -// ComponentName is the resolver for the componentName field. func (r *issueMatchFilterValueResolver) ComponentName(ctx context.Context, obj *model.IssueMatchFilterValue, filter *model.ComponentFilter) (*model.FilterItem, error) { item, err := baseResolver.ComponentNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -45,7 +42,6 @@ func (r *issueMatchFilterValueResolver) ComponentName(ctx context.Context, obj * return item, nil } -// SupportGroupName is the resolver for the supportGroupName field. func (r *issueMatchFilterValueResolver) SupportGroupName(ctx context.Context, obj *model.IssueMatchFilterValue, filter *model.SupportGroupFilter) (*model.FilterItem, error) { item, err := baseResolver.SupportGroupNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -55,7 +51,6 @@ func (r *issueMatchFilterValueResolver) SupportGroupName(ctx context.Context, ob return item, nil } -// IssueMatchFilterValue returns graph.IssueMatchFilterValueResolver implementation. func (r *Resolver) IssueMatchFilterValue() graph.IssueMatchFilterValueResolver { return &issueMatchFilterValueResolver{r} } diff --git a/internal/api/graphql/graph/resolver/issue_repository.go b/internal/api/graphql/graph/resolver/issue_repository.go index 8c75b2f1..0a664883 100644 --- a/internal/api/graphql/graph/resolver/issue_repository.go +++ b/internal/api/graphql/graph/resolver/issue_repository.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// IssueVariants is the resolver for the issueVariants field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *issueRepositoryResolver) IssueVariants(ctx context.Context, obj *model.IssueRepository, filter *model.IssueVariantFilter, first *int, after *string) (*model.IssueVariantConnection, error) { return baseResolver.IssueVariantBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -23,7 +22,6 @@ func (r *issueRepositoryResolver) IssueVariants(ctx context.Context, obj *model. }) } -// Services is the resolver for the services field. func (r *issueRepositoryResolver) Services(ctx context.Context, obj *model.IssueRepository, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) { return baseResolver.ServiceBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ @@ -32,7 +30,6 @@ func (r *issueRepositoryResolver) Services(ctx context.Context, obj *model.Issue }) } -// IssueRepository returns graph.IssueRepositoryResolver implementation. func (r *Resolver) IssueRepository() graph.IssueRepositoryResolver { return &issueRepositoryResolver{r} } diff --git a/internal/api/graphql/graph/resolver/issue_variant.go b/internal/api/graphql/graph/resolver/issue_variant.go index c39e90b6..fcaacd5b 100644 --- a/internal/api/graphql/graph/resolver/issue_variant.go +++ b/internal/api/graphql/graph/resolver/issue_variant.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -17,7 +14,9 @@ import ( "github.com/sirupsen/logrus" ) -// IssueRepository is the resolver for the issueRepository field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *issueVariantResolver) IssueRepository(ctx context.Context, obj *model.IssueVariant) (*model.IssueRepository, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.IssueRepositoryID}) @@ -33,7 +32,6 @@ func (r *issueVariantResolver) IssueRepository(ctx context.Context, obj *model.I }) } -// Issue is the resolver for the issue field. func (r *issueVariantResolver) Issue(ctx context.Context, obj *model.IssueVariant) (*model.Issue, error) { childIds, err := util.ConvertStrToIntSlice([]*string{obj.IssueID}) @@ -49,7 +47,6 @@ func (r *issueVariantResolver) Issue(ctx context.Context, obj *model.IssueVarian }) } -// IssueVariant returns graph.IssueVariantResolver implementation. func (r *Resolver) IssueVariant() graph.IssueVariantResolver { return &issueVariantResolver{r} } type issueVariantResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/mutation.go b/internal/api/graphql/graph/resolver/mutation.go index 05ee4f96..bc36105e 100644 --- a/internal/api/graphql/graph/resolver/mutation.go +++ b/internal/api/graphql/graph/resolver/mutation.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,6 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + // CreateUser is the resolver for the createUser field. func (r *mutationResolver) CreateUser(ctx context.Context, input model.UserInput) (*model.User, error) { user := model.NewUserEntity(&input) @@ -887,7 +887,6 @@ func (r *mutationResolver) RemoveIssueFromActivity(ctx context.Context, activity return &a, nil } -// Mutation returns graph.MutationResolver implementation. func (r *Resolver) Mutation() graph.MutationResolver { return &mutationResolver{r} } type mutationResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/query.go b/internal/api/graphql/graph/resolver/query.go index a6629ebb..7fb5d14d 100644 --- a/internal/api/graphql/graph/resolver/query.go +++ b/internal/api/graphql/graph/resolver/query.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.55 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -17,77 +14,65 @@ import ( "k8s.io/utils/pointer" ) -// Issues is the resolver for the Issues field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *queryResolver) Issues(ctx context.Context, filter *model.IssueFilter, first *int, after *string) (*model.IssueConnection, error) { return baseResolver.IssueBaseResolver(r.App, ctx, filter, first, after, nil) } -// IssueMatches is the resolver for the IssueMatches field. func (r *queryResolver) IssueMatches(ctx context.Context, filter *model.IssueMatchFilter, first *int, after *string) (*model.IssueMatchConnection, error) { return baseResolver.IssueMatchBaseResolver(r.App, ctx, filter, first, after, nil) } -// IssueMatchChanges is the resolver for the IssueMatchChanges field. func (r *queryResolver) IssueMatchChanges(ctx context.Context, filter *model.IssueMatchChangeFilter, first *int, after *string) (*model.IssueMatchChangeConnection, error) { return baseResolver.IssueMatchChangeBaseResolver(r.App, ctx, filter, first, after, nil) } -// Services is the resolver for the Services field. func (r *queryResolver) Services(ctx context.Context, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) { return baseResolver.ServiceBaseResolver(r.App, ctx, filter, first, after, nil) } -// Components is the resolver for the Components field. func (r *queryResolver) Components(ctx context.Context, filter *model.ComponentFilter, first *int, after *string) (*model.ComponentConnection, error) { return baseResolver.ComponentBaseResolver(r.App, ctx, filter, first, after, nil) } -// ComponentVersions is the resolver for the ComponentVersions field. func (r *queryResolver) ComponentVersions(ctx context.Context, filter *model.ComponentVersionFilter, first *int, after *string) (*model.ComponentVersionConnection, error) { return baseResolver.ComponentVersionBaseResolver(r.App, ctx, filter, first, after, nil) } -// ComponentInstances is the resolver for the ComponentInstances field. func (r *queryResolver) ComponentInstances(ctx context.Context, filter *model.ComponentInstanceFilter, first *int, after *string) (*model.ComponentInstanceConnection, error) { return baseResolver.ComponentInstanceBaseResolver(r.App, ctx, filter, first, after, nil) } -// Activities is the resolver for the Activities field. func (r *queryResolver) Activities(ctx context.Context, filter *model.ActivityFilter, first *int, after *string) (*model.ActivityConnection, error) { return baseResolver.ActivityBaseResolver(r.App, ctx, filter, first, after, nil) } -// IssueVariants is the resolver for the IssueVariants field. func (r *queryResolver) IssueVariants(ctx context.Context, filter *model.IssueVariantFilter, first *int, after *string) (*model.IssueVariantConnection, error) { return baseResolver.IssueVariantBaseResolver(r.App, ctx, filter, first, after, nil) } -// IssueRepositories is the resolver for the IssueRepositories field. func (r *queryResolver) IssueRepositories(ctx context.Context, filter *model.IssueRepositoryFilter, first *int, after *string) (*model.IssueRepositoryConnection, error) { return baseResolver.IssueRepositoryBaseResolver(r.App, ctx, filter, first, after, nil) } -// Evidences is the resolver for the Evidences field. func (r *queryResolver) Evidences(ctx context.Context, filter *model.EvidenceFilter, first *int, after *string) (*model.EvidenceConnection, error) { return baseResolver.EvidenceBaseResolver(r.App, ctx, filter, first, after, nil) } -// SupportGroups is the resolver for the SupportGroups field. func (r *queryResolver) SupportGroups(ctx context.Context, filter *model.SupportGroupFilter, first *int, after *string) (*model.SupportGroupConnection, error) { return baseResolver.SupportGroupBaseResolver(r.App, ctx, filter, first, after, nil) } -// Users is the resolver for the Users field. func (r *queryResolver) Users(ctx context.Context, filter *model.UserFilter, first *int, after *string) (*model.UserConnection, error) { return baseResolver.UserBaseResolver(r.App, ctx, filter, first, after, nil) } -// ServiceFilterValues is the resolver for the ServiceFilterValues field. func (r *queryResolver) ServiceFilterValues(ctx context.Context) (*model.ServiceFilterValue, error) { return &model.ServiceFilterValue{}, nil } -// IssueMatchFilterValues is the resolver for the IssueMatchFilterValues field. func (r *queryResolver) IssueMatchFilterValues(ctx context.Context) (*model.IssueMatchFilterValue, error) { return &model.IssueMatchFilterValue{ Status: &model.FilterItem{ @@ -108,17 +93,14 @@ func (r *queryResolver) IssueMatchFilterValues(ctx context.Context) (*model.Issu }, nil } -// ComponentInstanceFilterValues is the resolver for the ComponentInstanceFilterValues field. func (r *queryResolver) ComponentInstanceFilterValues(ctx context.Context) (*model.ComponentInstanceFilterValue, error) { return &model.ComponentInstanceFilterValue{}, nil } -// ComponentFilterValues is the resolver for the ComponentFilterValues field. func (r *queryResolver) ComponentFilterValues(ctx context.Context) (*model.ComponentFilterValue, error) { return &model.ComponentFilterValue{}, nil } -// Query returns graph.QueryResolver implementation. func (r *Resolver) Query() graph.QueryResolver { return &queryResolver{r} } type queryResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/resolver.gotpl b/internal/api/graphql/graph/resolver/resolver.gotpl new file mode 100644 index 00000000..d6d4d956 --- /dev/null +++ b/internal/api/graphql/graph/resolver/resolver.gotpl @@ -0,0 +1,58 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + +{{ reserveImport "context" }} +{{ reserveImport "fmt" }} +{{ reserveImport "io" }} +{{ reserveImport "strconv" }} +{{ reserveImport "time" }} +{{ reserveImport "sync" }} +{{ reserveImport "errors" }} +{{ reserveImport "bytes" }} + +{{ reserveImport "github.com/vektah/gqlparser/v2" }} +{{ reserveImport "github.com/vektah/gqlparser/v2/ast" }} +{{ reserveImport "github.com/99designs/gqlgen/graphql" }} +{{ reserveImport "github.com/99designs/gqlgen/graphql/introspection" }} + +{{ .Imports }} + +{{ if .HasRoot }} + type {{.ResolverType}} struct {} +{{ end }} + +{{ range $resolver := .Resolvers -}} + {{ if $resolver.Comment -}} + // {{ $resolver.Comment }} + {{- else if not $.OmitTemplateComment -}} + // {{ $resolver.Field.GoFieldName }} is the resolver for the {{ $resolver.Field.Name }} field. + {{- end }} + func (r *{{lcFirst $resolver.Object.Name}}{{ucFirst $.ResolverType}}) {{$resolver.Field.GoFieldName}}{{ with $resolver.PrevDecl }}{{ $resolver.Field.ShortResolverSignature .Type }}{{ else }}{{ $resolver.Field.ShortResolverDeclaration }}{{ end }}{ + {{ $resolver.Implementation }} + } + +{{ end }} + +{{ range $object := .Objects -}} + {{ if not $.OmitTemplateComment -}} + // {{ucFirst $object.Name}} returns {{ $object.ResolverInterface | ref }} implementation. + {{- end }} + func (r *{{$.ResolverType}}) {{ucFirst $object.Name}}() {{ $object.ResolverInterface | ref }} { return &{{lcFirst $object.Name}}{{ucFirst $.ResolverType}}{r} } +{{ end }} + +{{ range $object := .Objects -}} + type {{lcFirst $object.Name}}{{ucFirst $.ResolverType}} struct { *{{$.ResolverType}} } +{{ end }} + +{{ if (ne .RemainingSource "") }} + // !!! WARNING !!! + // The code below was going to be deleted when updating resolvers. It has been copied here so you have + // one last chance to move it out of harms way if you want. There are two reasons this happens: + // - When renaming or deleting a resolver the old code will be put in here. You can safely delete + // it when you're done. + // - You have helper methods in this file. Move them out to keep these resolver files clean. + /* + {{ .RemainingSource }} + */ +{{ end }} + diff --git a/internal/api/graphql/graph/resolver/service.go b/internal/api/graphql/graph/resolver/service.go index 3f60b4cd..49823a29 100644 --- a/internal/api/graphql/graph/resolver/service.go +++ b/internal/api/graphql/graph/resolver/service.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// Owners is the resolver for the owners field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *serviceResolver) Owners(ctx context.Context, obj *model.Service, filter *model.UserFilter, first *int, after *string) (*model.UserConnection, error) { return baseResolver.UserBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ @@ -24,7 +23,6 @@ func (r *serviceResolver) Owners(ctx context.Context, obj *model.Service, filter }) } -// SupportGroups is the resolver for the supportGroups field. func (r *serviceResolver) SupportGroups(ctx context.Context, obj *model.Service, filter *model.SupportGroupFilter, first *int, after *string) (*model.SupportGroupConnection, error) { return baseResolver.SupportGroupBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ @@ -33,7 +31,6 @@ func (r *serviceResolver) SupportGroups(ctx context.Context, obj *model.Service, }) } -// Activities is the resolver for the activities field. func (r *serviceResolver) Activities(ctx context.Context, obj *model.Service, filter *model.ActivityFilter, first *int, after *string) (*model.ActivityConnection, error) { return baseResolver.ActivityBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ @@ -42,7 +39,6 @@ func (r *serviceResolver) Activities(ctx context.Context, obj *model.Service, fi }) } -// IssueRepositories is the resolver for the issueRepositories field. func (r *serviceResolver) IssueRepositories(ctx context.Context, obj *model.Service, filter *model.IssueRepositoryFilter, first *int, after *string) (*model.IssueRepositoryConnection, error) { return baseResolver.IssueRepositoryBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ @@ -51,7 +47,6 @@ func (r *serviceResolver) IssueRepositories(ctx context.Context, obj *model.Serv }) } -// ComponentInstances is the resolver for the componentInstances field. func (r *serviceResolver) ComponentInstances(ctx context.Context, obj *model.Service, filter *model.ComponentInstanceFilter, first *int, after *string) (*model.ComponentInstanceConnection, error) { return baseResolver.ComponentInstanceBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ @@ -60,7 +55,6 @@ func (r *serviceResolver) ComponentInstances(ctx context.Context, obj *model.Ser }) } -// Service returns graph.ServiceResolver implementation. func (r *Resolver) Service() graph.ServiceResolver { return &serviceResolver{r} } type serviceResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/service_filter.go b/internal/api/graphql/graph/resolver/service_filter.go index d7fbb600..f56c5086 100644 --- a/internal/api/graphql/graph/resolver/service_filter.go +++ b/internal/api/graphql/graph/resolver/service_filter.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// ServiceName is the resolver for the serviceName field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *serviceFilterValueResolver) ServiceName(ctx context.Context, obj *model.ServiceFilterValue, filter *model.ServiceFilter) (*model.FilterItem, error) { item, err := baseResolver.ServiceNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -25,7 +24,6 @@ func (r *serviceFilterValueResolver) ServiceName(ctx context.Context, obj *model return item, err } -// UniqueUserID is the resolver for the uniqueUserId field. func (r *serviceFilterValueResolver) UniqueUserID(ctx context.Context, obj *model.ServiceFilterValue, filter *model.UserFilter) (*model.FilterItem, error) { item, err := baseResolver.UniqueUserIDBaseResolver(r.App, ctx, filter) if err != nil { @@ -35,7 +33,6 @@ func (r *serviceFilterValueResolver) UniqueUserID(ctx context.Context, obj *mode return item, err } -// UserName is the resolver for the userName field. func (r *serviceFilterValueResolver) UserName(ctx context.Context, obj *model.ServiceFilterValue, filter *model.UserFilter) (*model.FilterItem, error) { item, err := baseResolver.UserNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -45,7 +42,6 @@ func (r *serviceFilterValueResolver) UserName(ctx context.Context, obj *model.Se return item, err } -// SupportGroupName is the resolver for the supportGroupName field. func (r *serviceFilterValueResolver) SupportGroupName(ctx context.Context, obj *model.ServiceFilterValue, filter *model.SupportGroupFilter) (*model.FilterItem, error) { item, err := baseResolver.SupportGroupNameBaseResolver(r.App, ctx, filter) if err != nil { @@ -55,7 +51,6 @@ func (r *serviceFilterValueResolver) SupportGroupName(ctx context.Context, obj * return item, err } -// ServiceFilterValue returns graph.ServiceFilterValueResolver implementation. func (r *Resolver) ServiceFilterValue() graph.ServiceFilterValueResolver { return &serviceFilterValueResolver{r} } diff --git a/internal/api/graphql/graph/resolver/support_group.go b/internal/api/graphql/graph/resolver/support_group.go index a14b007c..e5eb802c 100644 --- a/internal/api/graphql/graph/resolver/support_group.go +++ b/internal/api/graphql/graph/resolver/support_group.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// Users is the resolver for the users field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *supportGroupResolver) Users(ctx context.Context, obj *model.SupportGroup, filter *model.UserFilter, first *int, after *string) (*model.UserConnection, error) { return baseResolver.UserBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -23,7 +22,6 @@ func (r *supportGroupResolver) Users(ctx context.Context, obj *model.SupportGrou }) } -// Services is the resolver for the services field. func (r *supportGroupResolver) Services(ctx context.Context, obj *model.SupportGroup, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) { return baseResolver.ServiceBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -31,7 +29,6 @@ func (r *supportGroupResolver) Services(ctx context.Context, obj *model.SupportG }) } -// SupportGroup returns graph.SupportGroupResolver implementation. func (r *Resolver) SupportGroup() graph.SupportGroupResolver { return &supportGroupResolver{r} } type supportGroupResolver struct{ *Resolver } diff --git a/internal/api/graphql/graph/resolver/user.go b/internal/api/graphql/graph/resolver/user.go index 624f2d87..6a75610d 100644 --- a/internal/api/graphql/graph/resolver/user.go +++ b/internal/api/graphql/graph/resolver/user.go @@ -1,11 +1,8 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - package resolver // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.54 +// Code generated by github.com/99designs/gqlgen import ( "context" @@ -15,7 +12,9 @@ import ( "github.com/cloudoperators/heureka/internal/api/graphql/graph/model" ) -// SupportGroups is the resolver for the supportGroups field. +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + func (r *userResolver) SupportGroups(ctx context.Context, obj *model.User, filter *model.SupportGroupFilter, first *int, after *string) (*model.SupportGroupConnection, error) { return baseResolver.SupportGroupBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -23,7 +22,6 @@ func (r *userResolver) SupportGroups(ctx context.Context, obj *model.User, filte }) } -// Services is the resolver for the services field. func (r *userResolver) Services(ctx context.Context, obj *model.User, filter *model.ServiceFilter, first *int, after *string) (*model.ServiceConnection, error) { return baseResolver.ServiceBaseResolver(r.App, ctx, filter, first, after, &model.NodeParent{ Parent: obj, @@ -31,7 +29,6 @@ func (r *userResolver) Services(ctx context.Context, obj *model.User, filter *mo }) } -// User returns graph.UserResolver implementation. func (r *Resolver) User() graph.UserResolver { return &userResolver{r} } type userResolver struct{ *Resolver } diff --git a/internal/database/mariadb/internal/mocks/mock_Database.go b/internal/database/mariadb/internal/mocks/mock_Database.go deleted file mode 100644 index 94837644..00000000 --- a/internal/database/mariadb/internal/mocks/mock_Database.go +++ /dev/null @@ -1,3877 +0,0 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by mockery v2.42.1. DO NOT EDIT. - -package mocks - -import ( - mock "github.com/stretchr/testify/mock" - entity "github.com/cloudoperators/heureka/internal/entity" -) - -// MockDatabase is an autogenerated mock type for the Database type -type MockDatabase struct { - mock.Mock -} - -type MockDatabase_Expecter struct { - mock *mock.Mock -} - -func (_m *MockDatabase) EXPECT() *MockDatabase_Expecter { - return &MockDatabase_Expecter{mock: &_m.Mock} -} - -// CloseConnection provides a mock function with given fields: -func (_m *MockDatabase) CloseConnection() error { - ret := _m.Called() - - if len(ret) == 0 { - panic("no return value specified for CloseConnection") - } - - var r0 error - if rf, ok := ret.Get(0).(func() error); ok { - r0 = rf() - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_CloseConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseConnection' -type MockDatabase_CloseConnection_Call struct { - *mock.Call -} - -// CloseConnection is a helper method to define mock.On call -func (_e *MockDatabase_Expecter) CloseConnection() *MockDatabase_CloseConnection_Call { - return &MockDatabase_CloseConnection_Call{Call: _e.mock.On("CloseConnection")} -} - -func (_c *MockDatabase_CloseConnection_Call) Run(run func()) *MockDatabase_CloseConnection_Call { - _c.Call.Run(func(args mock.Arguments) { - run() - }) - return _c -} - -func (_c *MockDatabase_CloseConnection_Call) Return(_a0 error) *MockDatabase_CloseConnection_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_CloseConnection_Call) RunAndReturn(run func() error) *MockDatabase_CloseConnection_Call { - _c.Call.Return(run) - return _c -} - -// CountActivities provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountActivities(_a0 *entity.ActivityFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountActivities") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ActivityFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ActivityFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.ActivityFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountActivities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountActivities' -type MockDatabase_CountActivities_Call struct { - *mock.Call -} - -// CountActivities is a helper method to define mock.On call -// - _a0 *entity.ActivityFilter -func (_e *MockDatabase_Expecter) CountActivities(_a0 interface{}) *MockDatabase_CountActivities_Call { - return &MockDatabase_CountActivities_Call{Call: _e.mock.On("CountActivities", _a0)} -} - -func (_c *MockDatabase_CountActivities_Call) Run(run func(_a0 *entity.ActivityFilter)) *MockDatabase_CountActivities_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ActivityFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountActivities_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountActivities_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountActivities_Call) RunAndReturn(run func(*entity.ActivityFilter) (int64, error)) *MockDatabase_CountActivities_Call { - _c.Call.Return(run) - return _c -} - -// CountComponentInstances provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountComponentInstances(_a0 *entity.ComponentInstanceFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountComponentInstances") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentInstanceFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentInstanceFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentInstanceFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountComponentInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountComponentInstances' -type MockDatabase_CountComponentInstances_Call struct { - *mock.Call -} - -// CountComponentInstances is a helper method to define mock.On call -// - _a0 *entity.ComponentInstanceFilter -func (_e *MockDatabase_Expecter) CountComponentInstances(_a0 interface{}) *MockDatabase_CountComponentInstances_Call { - return &MockDatabase_CountComponentInstances_Call{Call: _e.mock.On("CountComponentInstances", _a0)} -} - -func (_c *MockDatabase_CountComponentInstances_Call) Run(run func(_a0 *entity.ComponentInstanceFilter)) *MockDatabase_CountComponentInstances_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentInstanceFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountComponentInstances_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountComponentInstances_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountComponentInstances_Call) RunAndReturn(run func(*entity.ComponentInstanceFilter) (int64, error)) *MockDatabase_CountComponentInstances_Call { - _c.Call.Return(run) - return _c -} - -// CountComponentVersions provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountComponentVersions(_a0 *entity.ComponentVersionFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountComponentVersions") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentVersionFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentVersionFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentVersionFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountComponentVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountComponentVersions' -type MockDatabase_CountComponentVersions_Call struct { - *mock.Call -} - -// CountComponentVersions is a helper method to define mock.On call -// - _a0 *entity.ComponentVersionFilter -func (_e *MockDatabase_Expecter) CountComponentVersions(_a0 interface{}) *MockDatabase_CountComponentVersions_Call { - return &MockDatabase_CountComponentVersions_Call{Call: _e.mock.On("CountComponentVersions", _a0)} -} - -func (_c *MockDatabase_CountComponentVersions_Call) Run(run func(_a0 *entity.ComponentVersionFilter)) *MockDatabase_CountComponentVersions_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentVersionFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountComponentVersions_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountComponentVersions_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountComponentVersions_Call) RunAndReturn(run func(*entity.ComponentVersionFilter) (int64, error)) *MockDatabase_CountComponentVersions_Call { - _c.Call.Return(run) - return _c -} - -// CountComponents provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountComponents(_a0 *entity.ComponentFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountComponents") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountComponents' -type MockDatabase_CountComponents_Call struct { - *mock.Call -} - -// CountComponents is a helper method to define mock.On call -// - _a0 *entity.ComponentFilter -func (_e *MockDatabase_Expecter) CountComponents(_a0 interface{}) *MockDatabase_CountComponents_Call { - return &MockDatabase_CountComponents_Call{Call: _e.mock.On("CountComponents", _a0)} -} - -func (_c *MockDatabase_CountComponents_Call) Run(run func(_a0 *entity.ComponentFilter)) *MockDatabase_CountComponents_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountComponents_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountComponents_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountComponents_Call) RunAndReturn(run func(*entity.ComponentFilter) (int64, error)) *MockDatabase_CountComponents_Call { - _c.Call.Return(run) - return _c -} - -// CountEvidences provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountEvidences(_a0 *entity.EvidenceFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountEvidences") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.EvidenceFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.EvidenceFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.EvidenceFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountEvidences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountEvidences' -type MockDatabase_CountEvidences_Call struct { - *mock.Call -} - -// CountEvidences is a helper method to define mock.On call -// - _a0 *entity.EvidenceFilter -func (_e *MockDatabase_Expecter) CountEvidences(_a0 interface{}) *MockDatabase_CountEvidences_Call { - return &MockDatabase_CountEvidences_Call{Call: _e.mock.On("CountEvidences", _a0)} -} - -func (_c *MockDatabase_CountEvidences_Call) Run(run func(_a0 *entity.EvidenceFilter)) *MockDatabase_CountEvidences_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.EvidenceFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountEvidences_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountEvidences_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountEvidences_Call) RunAndReturn(run func(*entity.EvidenceFilter) (int64, error)) *MockDatabase_CountEvidences_Call { - _c.Call.Return(run) - return _c -} - -// CountIssueMatchChanges provides a mock function with given fields: filter -func (_m *MockDatabase) CountIssueMatchChanges(filter *entity.IssueMatchChangeFilter) (int64, error) { - ret := _m.Called(filter) - - if len(ret) == 0 { - panic("no return value specified for CountIssueMatchChanges") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatchChangeFilter) (int64, error)); ok { - return rf(filter) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatchChangeFilter) int64); ok { - r0 = rf(filter) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatchChangeFilter) error); ok { - r1 = rf(filter) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountIssueMatchChanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountIssueMatchChanges' -type MockDatabase_CountIssueMatchChanges_Call struct { - *mock.Call -} - -// CountIssueMatchChanges is a helper method to define mock.On call -// - filter *entity.IssueMatchChangeFilter -func (_e *MockDatabase_Expecter) CountIssueMatchChanges(filter interface{}) *MockDatabase_CountIssueMatchChanges_Call { - return &MockDatabase_CountIssueMatchChanges_Call{Call: _e.mock.On("CountIssueMatchChanges", filter)} -} - -func (_c *MockDatabase_CountIssueMatchChanges_Call) Run(run func(filter *entity.IssueMatchChangeFilter)) *MockDatabase_CountIssueMatchChanges_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatchChangeFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountIssueMatchChanges_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountIssueMatchChanges_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountIssueMatchChanges_Call) RunAndReturn(run func(*entity.IssueMatchChangeFilter) (int64, error)) *MockDatabase_CountIssueMatchChanges_Call { - _c.Call.Return(run) - return _c -} - -// CountIssueMatches provides a mock function with given fields: filter -func (_m *MockDatabase) CountIssueMatches(filter *entity.IssueMatchFilter) (int64, error) { - ret := _m.Called(filter) - - if len(ret) == 0 { - panic("no return value specified for CountIssueMatches") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatchFilter) (int64, error)); ok { - return rf(filter) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatchFilter) int64); ok { - r0 = rf(filter) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatchFilter) error); ok { - r1 = rf(filter) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountIssueMatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountIssueMatches' -type MockDatabase_CountIssueMatches_Call struct { - *mock.Call -} - -// CountIssueMatches is a helper method to define mock.On call -// - filter *entity.IssueMatchFilter -func (_e *MockDatabase_Expecter) CountIssueMatches(filter interface{}) *MockDatabase_CountIssueMatches_Call { - return &MockDatabase_CountIssueMatches_Call{Call: _e.mock.On("CountIssueMatches", filter)} -} - -func (_c *MockDatabase_CountIssueMatches_Call) Run(run func(filter *entity.IssueMatchFilter)) *MockDatabase_CountIssueMatches_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatchFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountIssueMatches_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountIssueMatches_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountIssueMatches_Call) RunAndReturn(run func(*entity.IssueMatchFilter) (int64, error)) *MockDatabase_CountIssueMatches_Call { - _c.Call.Return(run) - return _c -} - -// CountIssueRepositories provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountIssueRepositories(_a0 *entity.IssueRepositoryFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountIssueRepositories") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueRepositoryFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueRepositoryFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.IssueRepositoryFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountIssueRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountIssueRepositories' -type MockDatabase_CountIssueRepositories_Call struct { - *mock.Call -} - -// CountIssueRepositories is a helper method to define mock.On call -// - _a0 *entity.IssueRepositoryFilter -func (_e *MockDatabase_Expecter) CountIssueRepositories(_a0 interface{}) *MockDatabase_CountIssueRepositories_Call { - return &MockDatabase_CountIssueRepositories_Call{Call: _e.mock.On("CountIssueRepositories", _a0)} -} - -func (_c *MockDatabase_CountIssueRepositories_Call) Run(run func(_a0 *entity.IssueRepositoryFilter)) *MockDatabase_CountIssueRepositories_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueRepositoryFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountIssueRepositories_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountIssueRepositories_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountIssueRepositories_Call) RunAndReturn(run func(*entity.IssueRepositoryFilter) (int64, error)) *MockDatabase_CountIssueRepositories_Call { - _c.Call.Return(run) - return _c -} - -// CountIssueVariants provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountIssueVariants(_a0 *entity.IssueVariantFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountIssueVariants") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.IssueVariantFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountIssueVariants_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountIssueVariants' -type MockDatabase_CountIssueVariants_Call struct { - *mock.Call -} - -// CountIssueVariants is a helper method to define mock.On call -// - _a0 *entity.IssueVariantFilter -func (_e *MockDatabase_Expecter) CountIssueVariants(_a0 interface{}) *MockDatabase_CountIssueVariants_Call { - return &MockDatabase_CountIssueVariants_Call{Call: _e.mock.On("CountIssueVariants", _a0)} -} - -func (_c *MockDatabase_CountIssueVariants_Call) Run(run func(_a0 *entity.IssueVariantFilter)) *MockDatabase_CountIssueVariants_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueVariantFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountIssueVariants_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountIssueVariants_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountIssueVariants_Call) RunAndReturn(run func(*entity.IssueVariantFilter) (int64, error)) *MockDatabase_CountIssueVariants_Call { - _c.Call.Return(run) - return _c -} - -// CountIssues provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountIssues(_a0 *entity.IssueFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountIssues") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.IssueFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountIssues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountIssues' -type MockDatabase_CountIssues_Call struct { - *mock.Call -} - -// CountIssues is a helper method to define mock.On call -// - _a0 *entity.IssueFilter -func (_e *MockDatabase_Expecter) CountIssues(_a0 interface{}) *MockDatabase_CountIssues_Call { - return &MockDatabase_CountIssues_Call{Call: _e.mock.On("CountIssues", _a0)} -} - -func (_c *MockDatabase_CountIssues_Call) Run(run func(_a0 *entity.IssueFilter)) *MockDatabase_CountIssues_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountIssues_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountIssues_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountIssues_Call) RunAndReturn(run func(*entity.IssueFilter) (int64, error)) *MockDatabase_CountIssues_Call { - _c.Call.Return(run) - return _c -} - -// CountServices provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountServices(_a0 *entity.ServiceFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountServices") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ServiceFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ServiceFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.ServiceFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountServices' -type MockDatabase_CountServices_Call struct { - *mock.Call -} - -// CountServices is a helper method to define mock.On call -// - _a0 *entity.ServiceFilter -func (_e *MockDatabase_Expecter) CountServices(_a0 interface{}) *MockDatabase_CountServices_Call { - return &MockDatabase_CountServices_Call{Call: _e.mock.On("CountServices", _a0)} -} - -func (_c *MockDatabase_CountServices_Call) Run(run func(_a0 *entity.ServiceFilter)) *MockDatabase_CountServices_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ServiceFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountServices_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountServices_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountServices_Call) RunAndReturn(run func(*entity.ServiceFilter) (int64, error)) *MockDatabase_CountServices_Call { - _c.Call.Return(run) - return _c -} - -// CountSupportGroups provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountSupportGroups(_a0 *entity.SupportGroupFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountSupportGroups") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.SupportGroupFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.SupportGroupFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.SupportGroupFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountSupportGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountSupportGroups' -type MockDatabase_CountSupportGroups_Call struct { - *mock.Call -} - -// CountSupportGroups is a helper method to define mock.On call -// - _a0 *entity.SupportGroupFilter -func (_e *MockDatabase_Expecter) CountSupportGroups(_a0 interface{}) *MockDatabase_CountSupportGroups_Call { - return &MockDatabase_CountSupportGroups_Call{Call: _e.mock.On("CountSupportGroups", _a0)} -} - -func (_c *MockDatabase_CountSupportGroups_Call) Run(run func(_a0 *entity.SupportGroupFilter)) *MockDatabase_CountSupportGroups_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.SupportGroupFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountSupportGroups_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountSupportGroups_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountSupportGroups_Call) RunAndReturn(run func(*entity.SupportGroupFilter) (int64, error)) *MockDatabase_CountSupportGroups_Call { - _c.Call.Return(run) - return _c -} - -// CountUsers provides a mock function with given fields: _a0 -func (_m *MockDatabase) CountUsers(_a0 *entity.UserFilter) (int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CountUsers") - } - - var r0 int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.UserFilter) (int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.UserFilter) int64); ok { - r0 = rf(_a0) - } else { - r0 = ret.Get(0).(int64) - } - - if rf, ok := ret.Get(1).(func(*entity.UserFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CountUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountUsers' -type MockDatabase_CountUsers_Call struct { - *mock.Call -} - -// CountUsers is a helper method to define mock.On call -// - _a0 *entity.UserFilter -func (_e *MockDatabase_Expecter) CountUsers(_a0 interface{}) *MockDatabase_CountUsers_Call { - return &MockDatabase_CountUsers_Call{Call: _e.mock.On("CountUsers", _a0)} -} - -func (_c *MockDatabase_CountUsers_Call) Run(run func(_a0 *entity.UserFilter)) *MockDatabase_CountUsers_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.UserFilter)) - }) - return _c -} - -func (_c *MockDatabase_CountUsers_Call) Return(_a0 int64, _a1 error) *MockDatabase_CountUsers_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CountUsers_Call) RunAndReturn(run func(*entity.UserFilter) (int64, error)) *MockDatabase_CountUsers_Call { - _c.Call.Return(run) - return _c -} - -// CreateComponent provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateComponent(_a0 *entity.Component) (*entity.Component, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateComponent") - } - - var r0 *entity.Component - var r1 error - if rf, ok := ret.Get(0).(func(*entity.Component) (*entity.Component, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.Component) *entity.Component); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Component) - } - } - - if rf, ok := ret.Get(1).(func(*entity.Component) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateComponent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateComponent' -type MockDatabase_CreateComponent_Call struct { - *mock.Call -} - -// CreateComponent is a helper method to define mock.On call -// - _a0 *entity.Component -func (_e *MockDatabase_Expecter) CreateComponent(_a0 interface{}) *MockDatabase_CreateComponent_Call { - return &MockDatabase_CreateComponent_Call{Call: _e.mock.On("CreateComponent", _a0)} -} - -func (_c *MockDatabase_CreateComponent_Call) Run(run func(_a0 *entity.Component)) *MockDatabase_CreateComponent_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Component)) - }) - return _c -} - -func (_c *MockDatabase_CreateComponent_Call) Return(_a0 *entity.Component, _a1 error) *MockDatabase_CreateComponent_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateComponent_Call) RunAndReturn(run func(*entity.Component) (*entity.Component, error)) *MockDatabase_CreateComponent_Call { - _c.Call.Return(run) - return _c -} - -// CreateComponentInstance provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateComponentInstance(_a0 *entity.ComponentInstance) (*entity.ComponentInstance, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateComponentInstance") - } - - var r0 *entity.ComponentInstance - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentInstance) (*entity.ComponentInstance, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentInstance) *entity.ComponentInstance); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.ComponentInstance) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentInstance) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateComponentInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateComponentInstance' -type MockDatabase_CreateComponentInstance_Call struct { - *mock.Call -} - -// CreateComponentInstance is a helper method to define mock.On call -// - _a0 *entity.ComponentInstance -func (_e *MockDatabase_Expecter) CreateComponentInstance(_a0 interface{}) *MockDatabase_CreateComponentInstance_Call { - return &MockDatabase_CreateComponentInstance_Call{Call: _e.mock.On("CreateComponentInstance", _a0)} -} - -func (_c *MockDatabase_CreateComponentInstance_Call) Run(run func(_a0 *entity.ComponentInstance)) *MockDatabase_CreateComponentInstance_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentInstance)) - }) - return _c -} - -func (_c *MockDatabase_CreateComponentInstance_Call) Return(_a0 *entity.ComponentInstance, _a1 error) *MockDatabase_CreateComponentInstance_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateComponentInstance_Call) RunAndReturn(run func(*entity.ComponentInstance) (*entity.ComponentInstance, error)) *MockDatabase_CreateComponentInstance_Call { - _c.Call.Return(run) - return _c -} - -// CreateComponentVersion provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateComponentVersion(_a0 *entity.ComponentVersion) (*entity.ComponentVersion, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateComponentVersion") - } - - var r0 *entity.ComponentVersion - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentVersion) (*entity.ComponentVersion, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentVersion) *entity.ComponentVersion); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.ComponentVersion) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentVersion) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateComponentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateComponentVersion' -type MockDatabase_CreateComponentVersion_Call struct { - *mock.Call -} - -// CreateComponentVersion is a helper method to define mock.On call -// - _a0 *entity.ComponentVersion -func (_e *MockDatabase_Expecter) CreateComponentVersion(_a0 interface{}) *MockDatabase_CreateComponentVersion_Call { - return &MockDatabase_CreateComponentVersion_Call{Call: _e.mock.On("CreateComponentVersion", _a0)} -} - -func (_c *MockDatabase_CreateComponentVersion_Call) Run(run func(_a0 *entity.ComponentVersion)) *MockDatabase_CreateComponentVersion_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentVersion)) - }) - return _c -} - -func (_c *MockDatabase_CreateComponentVersion_Call) Return(_a0 *entity.ComponentVersion, _a1 error) *MockDatabase_CreateComponentVersion_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateComponentVersion_Call) RunAndReturn(run func(*entity.ComponentVersion) (*entity.ComponentVersion, error)) *MockDatabase_CreateComponentVersion_Call { - _c.Call.Return(run) - return _c -} - -// CreateEvidence provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateEvidence(_a0 *entity.Evidence) (*entity.Evidence, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateEvidence") - } - - var r0 *entity.Evidence - var r1 error - if rf, ok := ret.Get(0).(func(*entity.Evidence) (*entity.Evidence, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.Evidence) *entity.Evidence); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Evidence) - } - } - - if rf, ok := ret.Get(1).(func(*entity.Evidence) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateEvidence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEvidence' -type MockDatabase_CreateEvidence_Call struct { - *mock.Call -} - -// CreateEvidence is a helper method to define mock.On call -// - _a0 *entity.Evidence -func (_e *MockDatabase_Expecter) CreateEvidence(_a0 interface{}) *MockDatabase_CreateEvidence_Call { - return &MockDatabase_CreateEvidence_Call{Call: _e.mock.On("CreateEvidence", _a0)} -} - -func (_c *MockDatabase_CreateEvidence_Call) Run(run func(_a0 *entity.Evidence)) *MockDatabase_CreateEvidence_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Evidence)) - }) - return _c -} - -func (_c *MockDatabase_CreateEvidence_Call) Return(_a0 *entity.Evidence, _a1 error) *MockDatabase_CreateEvidence_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateEvidence_Call) RunAndReturn(run func(*entity.Evidence) (*entity.Evidence, error)) *MockDatabase_CreateEvidence_Call { - _c.Call.Return(run) - return _c -} - -// CreateIssueMatch provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateIssueMatch(_a0 *entity.IssueMatch) (*entity.IssueMatch, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateIssueMatch") - } - - var r0 *entity.IssueMatch - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatch) (*entity.IssueMatch, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatch) *entity.IssueMatch); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.IssueMatch) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatch) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateIssueMatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueMatch' -type MockDatabase_CreateIssueMatch_Call struct { - *mock.Call -} - -// CreateIssueMatch is a helper method to define mock.On call -// - _a0 *entity.IssueMatch -func (_e *MockDatabase_Expecter) CreateIssueMatch(_a0 interface{}) *MockDatabase_CreateIssueMatch_Call { - return &MockDatabase_CreateIssueMatch_Call{Call: _e.mock.On("CreateIssueMatch", _a0)} -} - -func (_c *MockDatabase_CreateIssueMatch_Call) Run(run func(_a0 *entity.IssueMatch)) *MockDatabase_CreateIssueMatch_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatch)) - }) - return _c -} - -func (_c *MockDatabase_CreateIssueMatch_Call) Return(_a0 *entity.IssueMatch, _a1 error) *MockDatabase_CreateIssueMatch_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateIssueMatch_Call) RunAndReturn(run func(*entity.IssueMatch) (*entity.IssueMatch, error)) *MockDatabase_CreateIssueMatch_Call { - _c.Call.Return(run) - return _c -} - -// CreateIssueRepository provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateIssueRepository(_a0 *entity.IssueRepository) (*entity.IssueRepository, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateIssueRepository") - } - - var r0 *entity.IssueRepository - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueRepository) (*entity.IssueRepository, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueRepository) *entity.IssueRepository); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.IssueRepository) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueRepository) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateIssueRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueRepository' -type MockDatabase_CreateIssueRepository_Call struct { - *mock.Call -} - -// CreateIssueRepository is a helper method to define mock.On call -// - _a0 *entity.IssueRepository -func (_e *MockDatabase_Expecter) CreateIssueRepository(_a0 interface{}) *MockDatabase_CreateIssueRepository_Call { - return &MockDatabase_CreateIssueRepository_Call{Call: _e.mock.On("CreateIssueRepository", _a0)} -} - -func (_c *MockDatabase_CreateIssueRepository_Call) Run(run func(_a0 *entity.IssueRepository)) *MockDatabase_CreateIssueRepository_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueRepository)) - }) - return _c -} - -func (_c *MockDatabase_CreateIssueRepository_Call) Return(_a0 *entity.IssueRepository, _a1 error) *MockDatabase_CreateIssueRepository_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateIssueRepository_Call) RunAndReturn(run func(*entity.IssueRepository) (*entity.IssueRepository, error)) *MockDatabase_CreateIssueRepository_Call { - _c.Call.Return(run) - return _c -} - -// CreateIssueVariant provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateIssueVariant(_a0 *entity.IssueVariant) (*entity.IssueVariant, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateIssueVariant") - } - - var r0 *entity.IssueVariant - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueVariant) (*entity.IssueVariant, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueVariant) *entity.IssueVariant); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.IssueVariant) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueVariant) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateIssueVariant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueVariant' -type MockDatabase_CreateIssueVariant_Call struct { - *mock.Call -} - -// CreateIssueVariant is a helper method to define mock.On call -// - _a0 *entity.IssueVariant -func (_e *MockDatabase_Expecter) CreateIssueVariant(_a0 interface{}) *MockDatabase_CreateIssueVariant_Call { - return &MockDatabase_CreateIssueVariant_Call{Call: _e.mock.On("CreateIssueVariant", _a0)} -} - -func (_c *MockDatabase_CreateIssueVariant_Call) Run(run func(_a0 *entity.IssueVariant)) *MockDatabase_CreateIssueVariant_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueVariant)) - }) - return _c -} - -func (_c *MockDatabase_CreateIssueVariant_Call) Return(_a0 *entity.IssueVariant, _a1 error) *MockDatabase_CreateIssueVariant_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateIssueVariant_Call) RunAndReturn(run func(*entity.IssueVariant) (*entity.IssueVariant, error)) *MockDatabase_CreateIssueVariant_Call { - _c.Call.Return(run) - return _c -} - -// CreateService provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateService(_a0 *entity.Service) (*entity.Service, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateService") - } - - var r0 *entity.Service - var r1 error - if rf, ok := ret.Get(0).(func(*entity.Service) (*entity.Service, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.Service) *entity.Service); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Service) - } - } - - if rf, ok := ret.Get(1).(func(*entity.Service) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateService' -type MockDatabase_CreateService_Call struct { - *mock.Call -} - -// CreateService is a helper method to define mock.On call -// - _a0 *entity.Service -func (_e *MockDatabase_Expecter) CreateService(_a0 interface{}) *MockDatabase_CreateService_Call { - return &MockDatabase_CreateService_Call{Call: _e.mock.On("CreateService", _a0)} -} - -func (_c *MockDatabase_CreateService_Call) Run(run func(_a0 *entity.Service)) *MockDatabase_CreateService_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Service)) - }) - return _c -} - -func (_c *MockDatabase_CreateService_Call) Return(_a0 *entity.Service, _a1 error) *MockDatabase_CreateService_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateService_Call) RunAndReturn(run func(*entity.Service) (*entity.Service, error)) *MockDatabase_CreateService_Call { - _c.Call.Return(run) - return _c -} - -// CreateSupportGroup provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateSupportGroup(_a0 *entity.SupportGroup) (*entity.SupportGroup, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateSupportGroup") - } - - var r0 *entity.SupportGroup - var r1 error - if rf, ok := ret.Get(0).(func(*entity.SupportGroup) (*entity.SupportGroup, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.SupportGroup) *entity.SupportGroup); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.SupportGroup) - } - } - - if rf, ok := ret.Get(1).(func(*entity.SupportGroup) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateSupportGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSupportGroup' -type MockDatabase_CreateSupportGroup_Call struct { - *mock.Call -} - -// CreateSupportGroup is a helper method to define mock.On call -// - _a0 *entity.SupportGroup -func (_e *MockDatabase_Expecter) CreateSupportGroup(_a0 interface{}) *MockDatabase_CreateSupportGroup_Call { - return &MockDatabase_CreateSupportGroup_Call{Call: _e.mock.On("CreateSupportGroup", _a0)} -} - -func (_c *MockDatabase_CreateSupportGroup_Call) Run(run func(_a0 *entity.SupportGroup)) *MockDatabase_CreateSupportGroup_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.SupportGroup)) - }) - return _c -} - -func (_c *MockDatabase_CreateSupportGroup_Call) Return(_a0 *entity.SupportGroup, _a1 error) *MockDatabase_CreateSupportGroup_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateSupportGroup_Call) RunAndReturn(run func(*entity.SupportGroup) (*entity.SupportGroup, error)) *MockDatabase_CreateSupportGroup_Call { - _c.Call.Return(run) - return _c -} - -// CreateUser provides a mock function with given fields: _a0 -func (_m *MockDatabase) CreateUser(_a0 *entity.User) (*entity.User, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateUser") - } - - var r0 *entity.User - var r1 error - if rf, ok := ret.Get(0).(func(*entity.User) (*entity.User, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.User) *entity.User); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.User) - } - } - - if rf, ok := ret.Get(1).(func(*entity.User) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser' -type MockDatabase_CreateUser_Call struct { - *mock.Call -} - -// CreateUser is a helper method to define mock.On call -// - _a0 *entity.User -func (_e *MockDatabase_Expecter) CreateUser(_a0 interface{}) *MockDatabase_CreateUser_Call { - return &MockDatabase_CreateUser_Call{Call: _e.mock.On("CreateUser", _a0)} -} - -func (_c *MockDatabase_CreateUser_Call) Run(run func(_a0 *entity.User)) *MockDatabase_CreateUser_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.User)) - }) - return _c -} - -func (_c *MockDatabase_CreateUser_Call) Return(_a0 *entity.User, _a1 error) *MockDatabase_CreateUser_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_CreateUser_Call) RunAndReturn(run func(*entity.User) (*entity.User, error)) *MockDatabase_CreateUser_Call { - _c.Call.Return(run) - return _c -} - -// DeleteComponent provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteComponent(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteComponent") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteComponent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteComponent' -type MockDatabase_DeleteComponent_Call struct { - *mock.Call -} - -// DeleteComponent is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteComponent(_a0 interface{}) *MockDatabase_DeleteComponent_Call { - return &MockDatabase_DeleteComponent_Call{Call: _e.mock.On("DeleteComponent", _a0)} -} - -func (_c *MockDatabase_DeleteComponent_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteComponent_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteComponent_Call) Return(_a0 error) *MockDatabase_DeleteComponent_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteComponent_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteComponent_Call { - _c.Call.Return(run) - return _c -} - -// DeleteComponentInstance provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteComponentInstance(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteComponentInstance") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteComponentInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteComponentInstance' -type MockDatabase_DeleteComponentInstance_Call struct { - *mock.Call -} - -// DeleteComponentInstance is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteComponentInstance(_a0 interface{}) *MockDatabase_DeleteComponentInstance_Call { - return &MockDatabase_DeleteComponentInstance_Call{Call: _e.mock.On("DeleteComponentInstance", _a0)} -} - -func (_c *MockDatabase_DeleteComponentInstance_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteComponentInstance_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteComponentInstance_Call) Return(_a0 error) *MockDatabase_DeleteComponentInstance_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteComponentInstance_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteComponentInstance_Call { - _c.Call.Return(run) - return _c -} - -// DeleteComponentVersion provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteComponentVersion(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteComponentVersion") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteComponentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteComponentVersion' -type MockDatabase_DeleteComponentVersion_Call struct { - *mock.Call -} - -// DeleteComponentVersion is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteComponentVersion(_a0 interface{}) *MockDatabase_DeleteComponentVersion_Call { - return &MockDatabase_DeleteComponentVersion_Call{Call: _e.mock.On("DeleteComponentVersion", _a0)} -} - -func (_c *MockDatabase_DeleteComponentVersion_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteComponentVersion_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteComponentVersion_Call) Return(_a0 error) *MockDatabase_DeleteComponentVersion_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteComponentVersion_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteComponentVersion_Call { - _c.Call.Return(run) - return _c -} - -// DeleteEvidence provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteEvidence(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteEvidence") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteEvidence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEvidence' -type MockDatabase_DeleteEvidence_Call struct { - *mock.Call -} - -// DeleteEvidence is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteEvidence(_a0 interface{}) *MockDatabase_DeleteEvidence_Call { - return &MockDatabase_DeleteEvidence_Call{Call: _e.mock.On("DeleteEvidence", _a0)} -} - -func (_c *MockDatabase_DeleteEvidence_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteEvidence_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteEvidence_Call) Return(_a0 error) *MockDatabase_DeleteEvidence_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteEvidence_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteEvidence_Call { - _c.Call.Return(run) - return _c -} - -// DeleteIssueMatch provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteIssueMatch(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteIssueMatch") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteIssueMatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIssueMatch' -type MockDatabase_DeleteIssueMatch_Call struct { - *mock.Call -} - -// DeleteIssueMatch is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteIssueMatch(_a0 interface{}) *MockDatabase_DeleteIssueMatch_Call { - return &MockDatabase_DeleteIssueMatch_Call{Call: _e.mock.On("DeleteIssueMatch", _a0)} -} - -func (_c *MockDatabase_DeleteIssueMatch_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteIssueMatch_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteIssueMatch_Call) Return(_a0 error) *MockDatabase_DeleteIssueMatch_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteIssueMatch_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteIssueMatch_Call { - _c.Call.Return(run) - return _c -} - -// DeleteIssueRepository provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteIssueRepository(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteIssueRepository") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteIssueRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIssueRepository' -type MockDatabase_DeleteIssueRepository_Call struct { - *mock.Call -} - -// DeleteIssueRepository is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteIssueRepository(_a0 interface{}) *MockDatabase_DeleteIssueRepository_Call { - return &MockDatabase_DeleteIssueRepository_Call{Call: _e.mock.On("DeleteIssueRepository", _a0)} -} - -func (_c *MockDatabase_DeleteIssueRepository_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteIssueRepository_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteIssueRepository_Call) Return(_a0 error) *MockDatabase_DeleteIssueRepository_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteIssueRepository_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteIssueRepository_Call { - _c.Call.Return(run) - return _c -} - -// DeleteIssueVariant provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteIssueVariant(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteIssueVariant") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteIssueVariant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIssueVariant' -type MockDatabase_DeleteIssueVariant_Call struct { - *mock.Call -} - -// DeleteIssueVariant is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteIssueVariant(_a0 interface{}) *MockDatabase_DeleteIssueVariant_Call { - return &MockDatabase_DeleteIssueVariant_Call{Call: _e.mock.On("DeleteIssueVariant", _a0)} -} - -func (_c *MockDatabase_DeleteIssueVariant_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteIssueVariant_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteIssueVariant_Call) Return(_a0 error) *MockDatabase_DeleteIssueVariant_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteIssueVariant_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteIssueVariant_Call { - _c.Call.Return(run) - return _c -} - -// DeleteService provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteService(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteService") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteService' -type MockDatabase_DeleteService_Call struct { - *mock.Call -} - -// DeleteService is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteService(_a0 interface{}) *MockDatabase_DeleteService_Call { - return &MockDatabase_DeleteService_Call{Call: _e.mock.On("DeleteService", _a0)} -} - -func (_c *MockDatabase_DeleteService_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteService_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteService_Call) Return(_a0 error) *MockDatabase_DeleteService_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteService_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteService_Call { - _c.Call.Return(run) - return _c -} - -// DeleteSupportGroup provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteSupportGroup(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteSupportGroup") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteSupportGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSupportGroup' -type MockDatabase_DeleteSupportGroup_Call struct { - *mock.Call -} - -// DeleteSupportGroup is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteSupportGroup(_a0 interface{}) *MockDatabase_DeleteSupportGroup_Call { - return &MockDatabase_DeleteSupportGroup_Call{Call: _e.mock.On("DeleteSupportGroup", _a0)} -} - -func (_c *MockDatabase_DeleteSupportGroup_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteSupportGroup_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteSupportGroup_Call) Return(_a0 error) *MockDatabase_DeleteSupportGroup_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteSupportGroup_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteSupportGroup_Call { - _c.Call.Return(run) - return _c -} - -// DeleteUser provides a mock function with given fields: _a0 -func (_m *MockDatabase) DeleteUser(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteUser") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser' -type MockDatabase_DeleteUser_Call struct { - *mock.Call -} - -// DeleteUser is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockDatabase_Expecter) DeleteUser(_a0 interface{}) *MockDatabase_DeleteUser_Call { - return &MockDatabase_DeleteUser_Call{Call: _e.mock.On("DeleteUser", _a0)} -} - -func (_c *MockDatabase_DeleteUser_Call) Run(run func(_a0 int64)) *MockDatabase_DeleteUser_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockDatabase_DeleteUser_Call) Return(_a0 error) *MockDatabase_DeleteUser_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_DeleteUser_Call) RunAndReturn(run func(int64) error) *MockDatabase_DeleteUser_Call { - _c.Call.Return(run) - return _c -} - -// GetActivities provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetActivities(_a0 *entity.ActivityFilter) ([]entity.Activity, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetActivities") - } - - var r0 []entity.Activity - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ActivityFilter) ([]entity.Activity, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ActivityFilter) []entity.Activity); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.Activity) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ActivityFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetActivities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActivities' -type MockDatabase_GetActivities_Call struct { - *mock.Call -} - -// GetActivities is a helper method to define mock.On call -// - _a0 *entity.ActivityFilter -func (_e *MockDatabase_Expecter) GetActivities(_a0 interface{}) *MockDatabase_GetActivities_Call { - return &MockDatabase_GetActivities_Call{Call: _e.mock.On("GetActivities", _a0)} -} - -func (_c *MockDatabase_GetActivities_Call) Run(run func(_a0 *entity.ActivityFilter)) *MockDatabase_GetActivities_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ActivityFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetActivities_Call) Return(_a0 []entity.Activity, _a1 error) *MockDatabase_GetActivities_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetActivities_Call) RunAndReturn(run func(*entity.ActivityFilter) ([]entity.Activity, error)) *MockDatabase_GetActivities_Call { - _c.Call.Return(run) - return _c -} - -// GetAllActivityIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllActivityIds(_a0 *entity.ActivityFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllActivityIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ActivityFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ActivityFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ActivityFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllActivityIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllActivityIds' -type MockDatabase_GetAllActivityIds_Call struct { - *mock.Call -} - -// GetAllActivityIds is a helper method to define mock.On call -// - _a0 *entity.ActivityFilter -func (_e *MockDatabase_Expecter) GetAllActivityIds(_a0 interface{}) *MockDatabase_GetAllActivityIds_Call { - return &MockDatabase_GetAllActivityIds_Call{Call: _e.mock.On("GetAllActivityIds", _a0)} -} - -func (_c *MockDatabase_GetAllActivityIds_Call) Run(run func(_a0 *entity.ActivityFilter)) *MockDatabase_GetAllActivityIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ActivityFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllActivityIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllActivityIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllActivityIds_Call) RunAndReturn(run func(*entity.ActivityFilter) ([]int64, error)) *MockDatabase_GetAllActivityIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllComponentIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllComponentIds(_a0 *entity.ComponentFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllComponentIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllComponentIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllComponentIds' -type MockDatabase_GetAllComponentIds_Call struct { - *mock.Call -} - -// GetAllComponentIds is a helper method to define mock.On call -// - _a0 *entity.ComponentFilter -func (_e *MockDatabase_Expecter) GetAllComponentIds(_a0 interface{}) *MockDatabase_GetAllComponentIds_Call { - return &MockDatabase_GetAllComponentIds_Call{Call: _e.mock.On("GetAllComponentIds", _a0)} -} - -func (_c *MockDatabase_GetAllComponentIds_Call) Run(run func(_a0 *entity.ComponentFilter)) *MockDatabase_GetAllComponentIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllComponentIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllComponentIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllComponentIds_Call) RunAndReturn(run func(*entity.ComponentFilter) ([]int64, error)) *MockDatabase_GetAllComponentIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllComponentInstanceIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllComponentInstanceIds(_a0 *entity.ComponentInstanceFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllComponentInstanceIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentInstanceFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentInstanceFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentInstanceFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllComponentInstanceIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllComponentInstanceIds' -type MockDatabase_GetAllComponentInstanceIds_Call struct { - *mock.Call -} - -// GetAllComponentInstanceIds is a helper method to define mock.On call -// - _a0 *entity.ComponentInstanceFilter -func (_e *MockDatabase_Expecter) GetAllComponentInstanceIds(_a0 interface{}) *MockDatabase_GetAllComponentInstanceIds_Call { - return &MockDatabase_GetAllComponentInstanceIds_Call{Call: _e.mock.On("GetAllComponentInstanceIds", _a0)} -} - -func (_c *MockDatabase_GetAllComponentInstanceIds_Call) Run(run func(_a0 *entity.ComponentInstanceFilter)) *MockDatabase_GetAllComponentInstanceIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentInstanceFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllComponentInstanceIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllComponentInstanceIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllComponentInstanceIds_Call) RunAndReturn(run func(*entity.ComponentInstanceFilter) ([]int64, error)) *MockDatabase_GetAllComponentInstanceIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllComponentVersionIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllComponentVersionIds(_a0 *entity.ComponentVersionFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllComponentVersionIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentVersionFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentVersionFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentVersionFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllComponentVersionIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllComponentVersionIds' -type MockDatabase_GetAllComponentVersionIds_Call struct { - *mock.Call -} - -// GetAllComponentVersionIds is a helper method to define mock.On call -// - _a0 *entity.ComponentVersionFilter -func (_e *MockDatabase_Expecter) GetAllComponentVersionIds(_a0 interface{}) *MockDatabase_GetAllComponentVersionIds_Call { - return &MockDatabase_GetAllComponentVersionIds_Call{Call: _e.mock.On("GetAllComponentVersionIds", _a0)} -} - -func (_c *MockDatabase_GetAllComponentVersionIds_Call) Run(run func(_a0 *entity.ComponentVersionFilter)) *MockDatabase_GetAllComponentVersionIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentVersionFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllComponentVersionIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllComponentVersionIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllComponentVersionIds_Call) RunAndReturn(run func(*entity.ComponentVersionFilter) ([]int64, error)) *MockDatabase_GetAllComponentVersionIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllEvidenceIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllEvidenceIds(_a0 *entity.EvidenceFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllEvidenceIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.EvidenceFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.EvidenceFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.EvidenceFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllEvidenceIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllEvidenceIds' -type MockDatabase_GetAllEvidenceIds_Call struct { - *mock.Call -} - -// GetAllEvidenceIds is a helper method to define mock.On call -// - _a0 *entity.EvidenceFilter -func (_e *MockDatabase_Expecter) GetAllEvidenceIds(_a0 interface{}) *MockDatabase_GetAllEvidenceIds_Call { - return &MockDatabase_GetAllEvidenceIds_Call{Call: _e.mock.On("GetAllEvidenceIds", _a0)} -} - -func (_c *MockDatabase_GetAllEvidenceIds_Call) Run(run func(_a0 *entity.EvidenceFilter)) *MockDatabase_GetAllEvidenceIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.EvidenceFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllEvidenceIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllEvidenceIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllEvidenceIds_Call) RunAndReturn(run func(*entity.EvidenceFilter) ([]int64, error)) *MockDatabase_GetAllEvidenceIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllIssueIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllIssueIds(_a0 *entity.IssueFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllIssueIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllIssueIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllIssueIds' -type MockDatabase_GetAllIssueIds_Call struct { - *mock.Call -} - -// GetAllIssueIds is a helper method to define mock.On call -// - _a0 *entity.IssueFilter -func (_e *MockDatabase_Expecter) GetAllIssueIds(_a0 interface{}) *MockDatabase_GetAllIssueIds_Call { - return &MockDatabase_GetAllIssueIds_Call{Call: _e.mock.On("GetAllIssueIds", _a0)} -} - -func (_c *MockDatabase_GetAllIssueIds_Call) Run(run func(_a0 *entity.IssueFilter)) *MockDatabase_GetAllIssueIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllIssueIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllIssueIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllIssueIds_Call) RunAndReturn(run func(*entity.IssueFilter) ([]int64, error)) *MockDatabase_GetAllIssueIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllIssueMatchChangeIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllIssueMatchChangeIds(_a0 *entity.IssueMatchChangeFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllIssueMatchChangeIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatchChangeFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatchChangeFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatchChangeFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllIssueMatchChangeIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllIssueMatchChangeIds' -type MockDatabase_GetAllIssueMatchChangeIds_Call struct { - *mock.Call -} - -// GetAllIssueMatchChangeIds is a helper method to define mock.On call -// - _a0 *entity.IssueMatchChangeFilter -func (_e *MockDatabase_Expecter) GetAllIssueMatchChangeIds(_a0 interface{}) *MockDatabase_GetAllIssueMatchChangeIds_Call { - return &MockDatabase_GetAllIssueMatchChangeIds_Call{Call: _e.mock.On("GetAllIssueMatchChangeIds", _a0)} -} - -func (_c *MockDatabase_GetAllIssueMatchChangeIds_Call) Run(run func(_a0 *entity.IssueMatchChangeFilter)) *MockDatabase_GetAllIssueMatchChangeIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatchChangeFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllIssueMatchChangeIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllIssueMatchChangeIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllIssueMatchChangeIds_Call) RunAndReturn(run func(*entity.IssueMatchChangeFilter) ([]int64, error)) *MockDatabase_GetAllIssueMatchChangeIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllIssueMatchIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllIssueMatchIds(_a0 *entity.IssueMatchFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllIssueMatchIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatchFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatchFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatchFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllIssueMatchIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllIssueMatchIds' -type MockDatabase_GetAllIssueMatchIds_Call struct { - *mock.Call -} - -// GetAllIssueMatchIds is a helper method to define mock.On call -// - _a0 *entity.IssueMatchFilter -func (_e *MockDatabase_Expecter) GetAllIssueMatchIds(_a0 interface{}) *MockDatabase_GetAllIssueMatchIds_Call { - return &MockDatabase_GetAllIssueMatchIds_Call{Call: _e.mock.On("GetAllIssueMatchIds", _a0)} -} - -func (_c *MockDatabase_GetAllIssueMatchIds_Call) Run(run func(_a0 *entity.IssueMatchFilter)) *MockDatabase_GetAllIssueMatchIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatchFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllIssueMatchIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllIssueMatchIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllIssueMatchIds_Call) RunAndReturn(run func(*entity.IssueMatchFilter) ([]int64, error)) *MockDatabase_GetAllIssueMatchIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllIssueRepositoryIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllIssueRepositoryIds(_a0 *entity.IssueRepositoryFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllIssueRepositoryIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueRepositoryFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueRepositoryFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueRepositoryFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllIssueRepositoryIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllIssueRepositoryIds' -type MockDatabase_GetAllIssueRepositoryIds_Call struct { - *mock.Call -} - -// GetAllIssueRepositoryIds is a helper method to define mock.On call -// - _a0 *entity.IssueRepositoryFilter -func (_e *MockDatabase_Expecter) GetAllIssueRepositoryIds(_a0 interface{}) *MockDatabase_GetAllIssueRepositoryIds_Call { - return &MockDatabase_GetAllIssueRepositoryIds_Call{Call: _e.mock.On("GetAllIssueRepositoryIds", _a0)} -} - -func (_c *MockDatabase_GetAllIssueRepositoryIds_Call) Run(run func(_a0 *entity.IssueRepositoryFilter)) *MockDatabase_GetAllIssueRepositoryIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueRepositoryFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllIssueRepositoryIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllIssueRepositoryIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllIssueRepositoryIds_Call) RunAndReturn(run func(*entity.IssueRepositoryFilter) ([]int64, error)) *MockDatabase_GetAllIssueRepositoryIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllIssueVariantIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllIssueVariantIds(_a0 *entity.IssueVariantFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllIssueVariantIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueVariantFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllIssueVariantIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllIssueVariantIds' -type MockDatabase_GetAllIssueVariantIds_Call struct { - *mock.Call -} - -// GetAllIssueVariantIds is a helper method to define mock.On call -// - _a0 *entity.IssueVariantFilter -func (_e *MockDatabase_Expecter) GetAllIssueVariantIds(_a0 interface{}) *MockDatabase_GetAllIssueVariantIds_Call { - return &MockDatabase_GetAllIssueVariantIds_Call{Call: _e.mock.On("GetAllIssueVariantIds", _a0)} -} - -func (_c *MockDatabase_GetAllIssueVariantIds_Call) Run(run func(_a0 *entity.IssueVariantFilter)) *MockDatabase_GetAllIssueVariantIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueVariantFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllIssueVariantIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllIssueVariantIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllIssueVariantIds_Call) RunAndReturn(run func(*entity.IssueVariantFilter) ([]int64, error)) *MockDatabase_GetAllIssueVariantIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllServiceIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllServiceIds(_a0 *entity.ServiceFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllServiceIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ServiceFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ServiceFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ServiceFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllServiceIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllServiceIds' -type MockDatabase_GetAllServiceIds_Call struct { - *mock.Call -} - -// GetAllServiceIds is a helper method to define mock.On call -// - _a0 *entity.ServiceFilter -func (_e *MockDatabase_Expecter) GetAllServiceIds(_a0 interface{}) *MockDatabase_GetAllServiceIds_Call { - return &MockDatabase_GetAllServiceIds_Call{Call: _e.mock.On("GetAllServiceIds", _a0)} -} - -func (_c *MockDatabase_GetAllServiceIds_Call) Run(run func(_a0 *entity.ServiceFilter)) *MockDatabase_GetAllServiceIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ServiceFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllServiceIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllServiceIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllServiceIds_Call) RunAndReturn(run func(*entity.ServiceFilter) ([]int64, error)) *MockDatabase_GetAllServiceIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllSupportGroupIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllSupportGroupIds(_a0 *entity.SupportGroupFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllSupportGroupIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.SupportGroupFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.SupportGroupFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.SupportGroupFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllSupportGroupIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllSupportGroupIds' -type MockDatabase_GetAllSupportGroupIds_Call struct { - *mock.Call -} - -// GetAllSupportGroupIds is a helper method to define mock.On call -// - _a0 *entity.SupportGroupFilter -func (_e *MockDatabase_Expecter) GetAllSupportGroupIds(_a0 interface{}) *MockDatabase_GetAllSupportGroupIds_Call { - return &MockDatabase_GetAllSupportGroupIds_Call{Call: _e.mock.On("GetAllSupportGroupIds", _a0)} -} - -func (_c *MockDatabase_GetAllSupportGroupIds_Call) Run(run func(_a0 *entity.SupportGroupFilter)) *MockDatabase_GetAllSupportGroupIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.SupportGroupFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllSupportGroupIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllSupportGroupIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllSupportGroupIds_Call) RunAndReturn(run func(*entity.SupportGroupFilter) ([]int64, error)) *MockDatabase_GetAllSupportGroupIds_Call { - _c.Call.Return(run) - return _c -} - -// GetAllUserIds provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetAllUserIds(_a0 *entity.UserFilter) ([]int64, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetAllUserIds") - } - - var r0 []int64 - var r1 error - if rf, ok := ret.Get(0).(func(*entity.UserFilter) ([]int64, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.UserFilter) []int64); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]int64) - } - } - - if rf, ok := ret.Get(1).(func(*entity.UserFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetAllUserIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllUserIds' -type MockDatabase_GetAllUserIds_Call struct { - *mock.Call -} - -// GetAllUserIds is a helper method to define mock.On call -// - _a0 *entity.UserFilter -func (_e *MockDatabase_Expecter) GetAllUserIds(_a0 interface{}) *MockDatabase_GetAllUserIds_Call { - return &MockDatabase_GetAllUserIds_Call{Call: _e.mock.On("GetAllUserIds", _a0)} -} - -func (_c *MockDatabase_GetAllUserIds_Call) Run(run func(_a0 *entity.UserFilter)) *MockDatabase_GetAllUserIds_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.UserFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetAllUserIds_Call) Return(_a0 []int64, _a1 error) *MockDatabase_GetAllUserIds_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetAllUserIds_Call) RunAndReturn(run func(*entity.UserFilter) ([]int64, error)) *MockDatabase_GetAllUserIds_Call { - _c.Call.Return(run) - return _c -} - -// GetComponentInstances provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetComponentInstances(_a0 *entity.ComponentInstanceFilter) ([]entity.ComponentInstance, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetComponentInstances") - } - - var r0 []entity.ComponentInstance - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentInstanceFilter) ([]entity.ComponentInstance, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentInstanceFilter) []entity.ComponentInstance); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.ComponentInstance) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentInstanceFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetComponentInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentInstances' -type MockDatabase_GetComponentInstances_Call struct { - *mock.Call -} - -// GetComponentInstances is a helper method to define mock.On call -// - _a0 *entity.ComponentInstanceFilter -func (_e *MockDatabase_Expecter) GetComponentInstances(_a0 interface{}) *MockDatabase_GetComponentInstances_Call { - return &MockDatabase_GetComponentInstances_Call{Call: _e.mock.On("GetComponentInstances", _a0)} -} - -func (_c *MockDatabase_GetComponentInstances_Call) Run(run func(_a0 *entity.ComponentInstanceFilter)) *MockDatabase_GetComponentInstances_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentInstanceFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetComponentInstances_Call) Return(_a0 []entity.ComponentInstance, _a1 error) *MockDatabase_GetComponentInstances_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetComponentInstances_Call) RunAndReturn(run func(*entity.ComponentInstanceFilter) ([]entity.ComponentInstance, error)) *MockDatabase_GetComponentInstances_Call { - _c.Call.Return(run) - return _c -} - -// GetComponentVersions provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetComponentVersions(_a0 *entity.ComponentVersionFilter) ([]entity.ComponentVersion, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetComponentVersions") - } - - var r0 []entity.ComponentVersion - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentVersionFilter) ([]entity.ComponentVersion, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentVersionFilter) []entity.ComponentVersion); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.ComponentVersion) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentVersionFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetComponentVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentVersions' -type MockDatabase_GetComponentVersions_Call struct { - *mock.Call -} - -// GetComponentVersions is a helper method to define mock.On call -// - _a0 *entity.ComponentVersionFilter -func (_e *MockDatabase_Expecter) GetComponentVersions(_a0 interface{}) *MockDatabase_GetComponentVersions_Call { - return &MockDatabase_GetComponentVersions_Call{Call: _e.mock.On("GetComponentVersions", _a0)} -} - -func (_c *MockDatabase_GetComponentVersions_Call) Run(run func(_a0 *entity.ComponentVersionFilter)) *MockDatabase_GetComponentVersions_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentVersionFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetComponentVersions_Call) Return(_a0 []entity.ComponentVersion, _a1 error) *MockDatabase_GetComponentVersions_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetComponentVersions_Call) RunAndReturn(run func(*entity.ComponentVersionFilter) ([]entity.ComponentVersion, error)) *MockDatabase_GetComponentVersions_Call { - _c.Call.Return(run) - return _c -} - -// GetComponents provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetComponents(_a0 *entity.ComponentFilter) ([]entity.Component, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetComponents") - } - - var r0 []entity.Component - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentFilter) ([]entity.Component, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentFilter) []entity.Component); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.Component) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponents' -type MockDatabase_GetComponents_Call struct { - *mock.Call -} - -// GetComponents is a helper method to define mock.On call -// - _a0 *entity.ComponentFilter -func (_e *MockDatabase_Expecter) GetComponents(_a0 interface{}) *MockDatabase_GetComponents_Call { - return &MockDatabase_GetComponents_Call{Call: _e.mock.On("GetComponents", _a0)} -} - -func (_c *MockDatabase_GetComponents_Call) Run(run func(_a0 *entity.ComponentFilter)) *MockDatabase_GetComponents_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetComponents_Call) Return(_a0 []entity.Component, _a1 error) *MockDatabase_GetComponents_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetComponents_Call) RunAndReturn(run func(*entity.ComponentFilter) ([]entity.Component, error)) *MockDatabase_GetComponents_Call { - _c.Call.Return(run) - return _c -} - -// GetEvidences provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetEvidences(_a0 *entity.EvidenceFilter) ([]entity.Evidence, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetEvidences") - } - - var r0 []entity.Evidence - var r1 error - if rf, ok := ret.Get(0).(func(*entity.EvidenceFilter) ([]entity.Evidence, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.EvidenceFilter) []entity.Evidence); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.Evidence) - } - } - - if rf, ok := ret.Get(1).(func(*entity.EvidenceFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetEvidences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvidences' -type MockDatabase_GetEvidences_Call struct { - *mock.Call -} - -// GetEvidences is a helper method to define mock.On call -// - _a0 *entity.EvidenceFilter -func (_e *MockDatabase_Expecter) GetEvidences(_a0 interface{}) *MockDatabase_GetEvidences_Call { - return &MockDatabase_GetEvidences_Call{Call: _e.mock.On("GetEvidences", _a0)} -} - -func (_c *MockDatabase_GetEvidences_Call) Run(run func(_a0 *entity.EvidenceFilter)) *MockDatabase_GetEvidences_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.EvidenceFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetEvidences_Call) Return(_a0 []entity.Evidence, _a1 error) *MockDatabase_GetEvidences_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetEvidences_Call) RunAndReturn(run func(*entity.EvidenceFilter) ([]entity.Evidence, error)) *MockDatabase_GetEvidences_Call { - _c.Call.Return(run) - return _c -} - -// GetIssueMatchChanges provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetIssueMatchChanges(_a0 *entity.IssueMatchChangeFilter) ([]entity.IssueMatchChange, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetIssueMatchChanges") - } - - var r0 []entity.IssueMatchChange - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatchChangeFilter) ([]entity.IssueMatchChange, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatchChangeFilter) []entity.IssueMatchChange); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.IssueMatchChange) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatchChangeFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetIssueMatchChanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIssueMatchChanges' -type MockDatabase_GetIssueMatchChanges_Call struct { - *mock.Call -} - -// GetIssueMatchChanges is a helper method to define mock.On call -// - _a0 *entity.IssueMatchChangeFilter -func (_e *MockDatabase_Expecter) GetIssueMatchChanges(_a0 interface{}) *MockDatabase_GetIssueMatchChanges_Call { - return &MockDatabase_GetIssueMatchChanges_Call{Call: _e.mock.On("GetIssueMatchChanges", _a0)} -} - -func (_c *MockDatabase_GetIssueMatchChanges_Call) Run(run func(_a0 *entity.IssueMatchChangeFilter)) *MockDatabase_GetIssueMatchChanges_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatchChangeFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetIssueMatchChanges_Call) Return(_a0 []entity.IssueMatchChange, _a1 error) *MockDatabase_GetIssueMatchChanges_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetIssueMatchChanges_Call) RunAndReturn(run func(*entity.IssueMatchChangeFilter) ([]entity.IssueMatchChange, error)) *MockDatabase_GetIssueMatchChanges_Call { - _c.Call.Return(run) - return _c -} - -// GetIssueMatches provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetIssueMatches(_a0 *entity.IssueMatchFilter) ([]entity.IssueMatch, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetIssueMatches") - } - - var r0 []entity.IssueMatch - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatchFilter) ([]entity.IssueMatch, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatchFilter) []entity.IssueMatch); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.IssueMatch) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatchFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetIssueMatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIssueMatches' -type MockDatabase_GetIssueMatches_Call struct { - *mock.Call -} - -// GetIssueMatches is a helper method to define mock.On call -// - _a0 *entity.IssueMatchFilter -func (_e *MockDatabase_Expecter) GetIssueMatches(_a0 interface{}) *MockDatabase_GetIssueMatches_Call { - return &MockDatabase_GetIssueMatches_Call{Call: _e.mock.On("GetIssueMatches", _a0)} -} - -func (_c *MockDatabase_GetIssueMatches_Call) Run(run func(_a0 *entity.IssueMatchFilter)) *MockDatabase_GetIssueMatches_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatchFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetIssueMatches_Call) Return(_a0 []entity.IssueMatch, _a1 error) *MockDatabase_GetIssueMatches_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetIssueMatches_Call) RunAndReturn(run func(*entity.IssueMatchFilter) ([]entity.IssueMatch, error)) *MockDatabase_GetIssueMatches_Call { - _c.Call.Return(run) - return _c -} - -// GetIssueRepositories provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetIssueRepositories(_a0 *entity.IssueRepositoryFilter) ([]entity.IssueRepository, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetIssueRepositories") - } - - var r0 []entity.IssueRepository - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueRepositoryFilter) ([]entity.IssueRepository, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueRepositoryFilter) []entity.IssueRepository); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.IssueRepository) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueRepositoryFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetIssueRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIssueRepositories' -type MockDatabase_GetIssueRepositories_Call struct { - *mock.Call -} - -// GetIssueRepositories is a helper method to define mock.On call -// - _a0 *entity.IssueRepositoryFilter -func (_e *MockDatabase_Expecter) GetIssueRepositories(_a0 interface{}) *MockDatabase_GetIssueRepositories_Call { - return &MockDatabase_GetIssueRepositories_Call{Call: _e.mock.On("GetIssueRepositories", _a0)} -} - -func (_c *MockDatabase_GetIssueRepositories_Call) Run(run func(_a0 *entity.IssueRepositoryFilter)) *MockDatabase_GetIssueRepositories_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueRepositoryFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetIssueRepositories_Call) Return(_a0 []entity.IssueRepository, _a1 error) *MockDatabase_GetIssueRepositories_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetIssueRepositories_Call) RunAndReturn(run func(*entity.IssueRepositoryFilter) ([]entity.IssueRepository, error)) *MockDatabase_GetIssueRepositories_Call { - _c.Call.Return(run) - return _c -} - -// GetIssueVariants provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetIssueVariants(_a0 *entity.IssueVariantFilter) ([]entity.IssueVariant, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetIssueVariants") - } - - var r0 []entity.IssueVariant - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter) ([]entity.IssueVariant, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter) []entity.IssueVariant); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.IssueVariant) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueVariantFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetIssueVariants_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIssueVariants' -type MockDatabase_GetIssueVariants_Call struct { - *mock.Call -} - -// GetIssueVariants is a helper method to define mock.On call -// - _a0 *entity.IssueVariantFilter -func (_e *MockDatabase_Expecter) GetIssueVariants(_a0 interface{}) *MockDatabase_GetIssueVariants_Call { - return &MockDatabase_GetIssueVariants_Call{Call: _e.mock.On("GetIssueVariants", _a0)} -} - -func (_c *MockDatabase_GetIssueVariants_Call) Run(run func(_a0 *entity.IssueVariantFilter)) *MockDatabase_GetIssueVariants_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueVariantFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetIssueVariants_Call) Return(_a0 []entity.IssueVariant, _a1 error) *MockDatabase_GetIssueVariants_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetIssueVariants_Call) RunAndReturn(run func(*entity.IssueVariantFilter) ([]entity.IssueVariant, error)) *MockDatabase_GetIssueVariants_Call { - _c.Call.Return(run) - return _c -} - -// GetIssues provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetIssues(_a0 *entity.IssueFilter) ([]entity.Issue, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetIssues") - } - - var r0 []entity.Issue - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueFilter) ([]entity.Issue, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueFilter) []entity.Issue); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.Issue) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetIssues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIssues' -type MockDatabase_GetIssues_Call struct { - *mock.Call -} - -// GetIssues is a helper method to define mock.On call -// - _a0 *entity.IssueFilter -func (_e *MockDatabase_Expecter) GetIssues(_a0 interface{}) *MockDatabase_GetIssues_Call { - return &MockDatabase_GetIssues_Call{Call: _e.mock.On("GetIssues", _a0)} -} - -func (_c *MockDatabase_GetIssues_Call) Run(run func(_a0 *entity.IssueFilter)) *MockDatabase_GetIssues_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetIssues_Call) Return(_a0 []entity.Issue, _a1 error) *MockDatabase_GetIssues_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetIssues_Call) RunAndReturn(run func(*entity.IssueFilter) ([]entity.Issue, error)) *MockDatabase_GetIssues_Call { - _c.Call.Return(run) - return _c -} - -// GetIssuesWithAggregations provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetIssuesWithAggregations(_a0 *entity.IssueFilter) ([]entity.IssueWithAggregations, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetIssuesWithAggregations") - } - - var r0 []entity.IssueWithAggregations - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueFilter) ([]entity.IssueWithAggregations, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueFilter) []entity.IssueWithAggregations); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.IssueWithAggregations) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetIssuesWithAggregations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIssuesWithAggregations' -type MockDatabase_GetIssuesWithAggregations_Call struct { - *mock.Call -} - -// GetIssuesWithAggregations is a helper method to define mock.On call -// - _a0 *entity.IssueFilter -func (_e *MockDatabase_Expecter) GetIssuesWithAggregations(_a0 interface{}) *MockDatabase_GetIssuesWithAggregations_Call { - return &MockDatabase_GetIssuesWithAggregations_Call{Call: _e.mock.On("GetIssuesWithAggregations", _a0)} -} - -func (_c *MockDatabase_GetIssuesWithAggregations_Call) Run(run func(_a0 *entity.IssueFilter)) *MockDatabase_GetIssuesWithAggregations_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetIssuesWithAggregations_Call) Return(_a0 []entity.IssueWithAggregations, _a1 error) *MockDatabase_GetIssuesWithAggregations_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetIssuesWithAggregations_Call) RunAndReturn(run func(*entity.IssueFilter) ([]entity.IssueWithAggregations, error)) *MockDatabase_GetIssuesWithAggregations_Call { - _c.Call.Return(run) - return _c -} - -// GetServices provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetServices(_a0 *entity.ServiceFilter) ([]entity.Service, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetServices") - } - - var r0 []entity.Service - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ServiceFilter) ([]entity.Service, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ServiceFilter) []entity.Service); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.Service) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ServiceFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetServices' -type MockDatabase_GetServices_Call struct { - *mock.Call -} - -// GetServices is a helper method to define mock.On call -// - _a0 *entity.ServiceFilter -func (_e *MockDatabase_Expecter) GetServices(_a0 interface{}) *MockDatabase_GetServices_Call { - return &MockDatabase_GetServices_Call{Call: _e.mock.On("GetServices", _a0)} -} - -func (_c *MockDatabase_GetServices_Call) Run(run func(_a0 *entity.ServiceFilter)) *MockDatabase_GetServices_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ServiceFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetServices_Call) Return(_a0 []entity.Service, _a1 error) *MockDatabase_GetServices_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetServices_Call) RunAndReturn(run func(*entity.ServiceFilter) ([]entity.Service, error)) *MockDatabase_GetServices_Call { - _c.Call.Return(run) - return _c -} - -// GetSupportGroups provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetSupportGroups(_a0 *entity.SupportGroupFilter) ([]entity.SupportGroup, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetSupportGroups") - } - - var r0 []entity.SupportGroup - var r1 error - if rf, ok := ret.Get(0).(func(*entity.SupportGroupFilter) ([]entity.SupportGroup, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.SupportGroupFilter) []entity.SupportGroup); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.SupportGroup) - } - } - - if rf, ok := ret.Get(1).(func(*entity.SupportGroupFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetSupportGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSupportGroups' -type MockDatabase_GetSupportGroups_Call struct { - *mock.Call -} - -// GetSupportGroups is a helper method to define mock.On call -// - _a0 *entity.SupportGroupFilter -func (_e *MockDatabase_Expecter) GetSupportGroups(_a0 interface{}) *MockDatabase_GetSupportGroups_Call { - return &MockDatabase_GetSupportGroups_Call{Call: _e.mock.On("GetSupportGroups", _a0)} -} - -func (_c *MockDatabase_GetSupportGroups_Call) Run(run func(_a0 *entity.SupportGroupFilter)) *MockDatabase_GetSupportGroups_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.SupportGroupFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetSupportGroups_Call) Return(_a0 []entity.SupportGroup, _a1 error) *MockDatabase_GetSupportGroups_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetSupportGroups_Call) RunAndReturn(run func(*entity.SupportGroupFilter) ([]entity.SupportGroup, error)) *MockDatabase_GetSupportGroups_Call { - _c.Call.Return(run) - return _c -} - -// GetUsers provides a mock function with given fields: _a0 -func (_m *MockDatabase) GetUsers(_a0 *entity.UserFilter) ([]entity.User, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetUsers") - } - - var r0 []entity.User - var r1 error - if rf, ok := ret.Get(0).(func(*entity.UserFilter) ([]entity.User, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.UserFilter) []entity.User); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]entity.User) - } - } - - if rf, ok := ret.Get(1).(func(*entity.UserFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockDatabase_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers' -type MockDatabase_GetUsers_Call struct { - *mock.Call -} - -// GetUsers is a helper method to define mock.On call -// - _a0 *entity.UserFilter -func (_e *MockDatabase_Expecter) GetUsers(_a0 interface{}) *MockDatabase_GetUsers_Call { - return &MockDatabase_GetUsers_Call{Call: _e.mock.On("GetUsers", _a0)} -} - -func (_c *MockDatabase_GetUsers_Call) Run(run func(_a0 *entity.UserFilter)) *MockDatabase_GetUsers_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.UserFilter)) - }) - return _c -} - -func (_c *MockDatabase_GetUsers_Call) Return(_a0 []entity.User, _a1 error) *MockDatabase_GetUsers_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockDatabase_GetUsers_Call) RunAndReturn(run func(*entity.UserFilter) ([]entity.User, error)) *MockDatabase_GetUsers_Call { - _c.Call.Return(run) - return _c -} - -// UpdateComponent provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateComponent(_a0 *entity.Component) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateComponent") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.Component) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateComponent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateComponent' -type MockDatabase_UpdateComponent_Call struct { - *mock.Call -} - -// UpdateComponent is a helper method to define mock.On call -// - _a0 *entity.Component -func (_e *MockDatabase_Expecter) UpdateComponent(_a0 interface{}) *MockDatabase_UpdateComponent_Call { - return &MockDatabase_UpdateComponent_Call{Call: _e.mock.On("UpdateComponent", _a0)} -} - -func (_c *MockDatabase_UpdateComponent_Call) Run(run func(_a0 *entity.Component)) *MockDatabase_UpdateComponent_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Component)) - }) - return _c -} - -func (_c *MockDatabase_UpdateComponent_Call) Return(_a0 error) *MockDatabase_UpdateComponent_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateComponent_Call) RunAndReturn(run func(*entity.Component) error) *MockDatabase_UpdateComponent_Call { - _c.Call.Return(run) - return _c -} - -// UpdateComponentInstance provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateComponentInstance(_a0 *entity.ComponentInstance) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateComponentInstance") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.ComponentInstance) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateComponentInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateComponentInstance' -type MockDatabase_UpdateComponentInstance_Call struct { - *mock.Call -} - -// UpdateComponentInstance is a helper method to define mock.On call -// - _a0 *entity.ComponentInstance -func (_e *MockDatabase_Expecter) UpdateComponentInstance(_a0 interface{}) *MockDatabase_UpdateComponentInstance_Call { - return &MockDatabase_UpdateComponentInstance_Call{Call: _e.mock.On("UpdateComponentInstance", _a0)} -} - -func (_c *MockDatabase_UpdateComponentInstance_Call) Run(run func(_a0 *entity.ComponentInstance)) *MockDatabase_UpdateComponentInstance_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentInstance)) - }) - return _c -} - -func (_c *MockDatabase_UpdateComponentInstance_Call) Return(_a0 error) *MockDatabase_UpdateComponentInstance_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateComponentInstance_Call) RunAndReturn(run func(*entity.ComponentInstance) error) *MockDatabase_UpdateComponentInstance_Call { - _c.Call.Return(run) - return _c -} - -// UpdateComponentVersion provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateComponentVersion(_a0 *entity.ComponentVersion) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateComponentVersion") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.ComponentVersion) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateComponentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateComponentVersion' -type MockDatabase_UpdateComponentVersion_Call struct { - *mock.Call -} - -// UpdateComponentVersion is a helper method to define mock.On call -// - _a0 *entity.ComponentVersion -func (_e *MockDatabase_Expecter) UpdateComponentVersion(_a0 interface{}) *MockDatabase_UpdateComponentVersion_Call { - return &MockDatabase_UpdateComponentVersion_Call{Call: _e.mock.On("UpdateComponentVersion", _a0)} -} - -func (_c *MockDatabase_UpdateComponentVersion_Call) Run(run func(_a0 *entity.ComponentVersion)) *MockDatabase_UpdateComponentVersion_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentVersion)) - }) - return _c -} - -func (_c *MockDatabase_UpdateComponentVersion_Call) Return(_a0 error) *MockDatabase_UpdateComponentVersion_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateComponentVersion_Call) RunAndReturn(run func(*entity.ComponentVersion) error) *MockDatabase_UpdateComponentVersion_Call { - _c.Call.Return(run) - return _c -} - -// UpdateEvidence provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateEvidence(_a0 *entity.Evidence) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateEvidence") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.Evidence) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateEvidence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEvidence' -type MockDatabase_UpdateEvidence_Call struct { - *mock.Call -} - -// UpdateEvidence is a helper method to define mock.On call -// - _a0 *entity.Evidence -func (_e *MockDatabase_Expecter) UpdateEvidence(_a0 interface{}) *MockDatabase_UpdateEvidence_Call { - return &MockDatabase_UpdateEvidence_Call{Call: _e.mock.On("UpdateEvidence", _a0)} -} - -func (_c *MockDatabase_UpdateEvidence_Call) Run(run func(_a0 *entity.Evidence)) *MockDatabase_UpdateEvidence_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Evidence)) - }) - return _c -} - -func (_c *MockDatabase_UpdateEvidence_Call) Return(_a0 error) *MockDatabase_UpdateEvidence_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateEvidence_Call) RunAndReturn(run func(*entity.Evidence) error) *MockDatabase_UpdateEvidence_Call { - _c.Call.Return(run) - return _c -} - -// UpdateIssueMatch provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateIssueMatch(_a0 *entity.IssueMatch) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateIssueMatch") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatch) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateIssueMatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIssueMatch' -type MockDatabase_UpdateIssueMatch_Call struct { - *mock.Call -} - -// UpdateIssueMatch is a helper method to define mock.On call -// - _a0 *entity.IssueMatch -func (_e *MockDatabase_Expecter) UpdateIssueMatch(_a0 interface{}) *MockDatabase_UpdateIssueMatch_Call { - return &MockDatabase_UpdateIssueMatch_Call{Call: _e.mock.On("UpdateIssueMatch", _a0)} -} - -func (_c *MockDatabase_UpdateIssueMatch_Call) Run(run func(_a0 *entity.IssueMatch)) *MockDatabase_UpdateIssueMatch_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatch)) - }) - return _c -} - -func (_c *MockDatabase_UpdateIssueMatch_Call) Return(_a0 error) *MockDatabase_UpdateIssueMatch_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateIssueMatch_Call) RunAndReturn(run func(*entity.IssueMatch) error) *MockDatabase_UpdateIssueMatch_Call { - _c.Call.Return(run) - return _c -} - -// UpdateIssueRepository provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateIssueRepository(_a0 *entity.IssueRepository) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateIssueRepository") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.IssueRepository) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateIssueRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIssueRepository' -type MockDatabase_UpdateIssueRepository_Call struct { - *mock.Call -} - -// UpdateIssueRepository is a helper method to define mock.On call -// - _a0 *entity.IssueRepository -func (_e *MockDatabase_Expecter) UpdateIssueRepository(_a0 interface{}) *MockDatabase_UpdateIssueRepository_Call { - return &MockDatabase_UpdateIssueRepository_Call{Call: _e.mock.On("UpdateIssueRepository", _a0)} -} - -func (_c *MockDatabase_UpdateIssueRepository_Call) Run(run func(_a0 *entity.IssueRepository)) *MockDatabase_UpdateIssueRepository_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueRepository)) - }) - return _c -} - -func (_c *MockDatabase_UpdateIssueRepository_Call) Return(_a0 error) *MockDatabase_UpdateIssueRepository_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateIssueRepository_Call) RunAndReturn(run func(*entity.IssueRepository) error) *MockDatabase_UpdateIssueRepository_Call { - _c.Call.Return(run) - return _c -} - -// UpdateIssueVariant provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateIssueVariant(_a0 *entity.IssueVariant) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateIssueVariant") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.IssueVariant) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateIssueVariant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIssueVariant' -type MockDatabase_UpdateIssueVariant_Call struct { - *mock.Call -} - -// UpdateIssueVariant is a helper method to define mock.On call -// - _a0 *entity.IssueVariant -func (_e *MockDatabase_Expecter) UpdateIssueVariant(_a0 interface{}) *MockDatabase_UpdateIssueVariant_Call { - return &MockDatabase_UpdateIssueVariant_Call{Call: _e.mock.On("UpdateIssueVariant", _a0)} -} - -func (_c *MockDatabase_UpdateIssueVariant_Call) Run(run func(_a0 *entity.IssueVariant)) *MockDatabase_UpdateIssueVariant_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueVariant)) - }) - return _c -} - -func (_c *MockDatabase_UpdateIssueVariant_Call) Return(_a0 error) *MockDatabase_UpdateIssueVariant_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateIssueVariant_Call) RunAndReturn(run func(*entity.IssueVariant) error) *MockDatabase_UpdateIssueVariant_Call { - _c.Call.Return(run) - return _c -} - -// UpdateService provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateService(_a0 *entity.Service) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateService") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.Service) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateService' -type MockDatabase_UpdateService_Call struct { - *mock.Call -} - -// UpdateService is a helper method to define mock.On call -// - _a0 *entity.Service -func (_e *MockDatabase_Expecter) UpdateService(_a0 interface{}) *MockDatabase_UpdateService_Call { - return &MockDatabase_UpdateService_Call{Call: _e.mock.On("UpdateService", _a0)} -} - -func (_c *MockDatabase_UpdateService_Call) Run(run func(_a0 *entity.Service)) *MockDatabase_UpdateService_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Service)) - }) - return _c -} - -func (_c *MockDatabase_UpdateService_Call) Return(_a0 error) *MockDatabase_UpdateService_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateService_Call) RunAndReturn(run func(*entity.Service) error) *MockDatabase_UpdateService_Call { - _c.Call.Return(run) - return _c -} - -// UpdateSupportGroup provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateSupportGroup(_a0 *entity.SupportGroup) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateSupportGroup") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.SupportGroup) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateSupportGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSupportGroup' -type MockDatabase_UpdateSupportGroup_Call struct { - *mock.Call -} - -// UpdateSupportGroup is a helper method to define mock.On call -// - _a0 *entity.SupportGroup -func (_e *MockDatabase_Expecter) UpdateSupportGroup(_a0 interface{}) *MockDatabase_UpdateSupportGroup_Call { - return &MockDatabase_UpdateSupportGroup_Call{Call: _e.mock.On("UpdateSupportGroup", _a0)} -} - -func (_c *MockDatabase_UpdateSupportGroup_Call) Run(run func(_a0 *entity.SupportGroup)) *MockDatabase_UpdateSupportGroup_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.SupportGroup)) - }) - return _c -} - -func (_c *MockDatabase_UpdateSupportGroup_Call) Return(_a0 error) *MockDatabase_UpdateSupportGroup_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateSupportGroup_Call) RunAndReturn(run func(*entity.SupportGroup) error) *MockDatabase_UpdateSupportGroup_Call { - _c.Call.Return(run) - return _c -} - -// UpdateUser provides a mock function with given fields: _a0 -func (_m *MockDatabase) UpdateUser(_a0 *entity.User) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateUser") - } - - var r0 error - if rf, ok := ret.Get(0).(func(*entity.User) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockDatabase_UpdateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUser' -type MockDatabase_UpdateUser_Call struct { - *mock.Call -} - -// UpdateUser is a helper method to define mock.On call -// - _a0 *entity.User -func (_e *MockDatabase_Expecter) UpdateUser(_a0 interface{}) *MockDatabase_UpdateUser_Call { - return &MockDatabase_UpdateUser_Call{Call: _e.mock.On("UpdateUser", _a0)} -} - -func (_c *MockDatabase_UpdateUser_Call) Run(run func(_a0 *entity.User)) *MockDatabase_UpdateUser_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.User)) - }) - return _c -} - -func (_c *MockDatabase_UpdateUser_Call) Return(_a0 error) *MockDatabase_UpdateUser_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockDatabase_UpdateUser_Call) RunAndReturn(run func(*entity.User) error) *MockDatabase_UpdateUser_Call { - _c.Call.Return(run) - return _c -} - -// NewMockDatabase creates a new instance of MockDatabase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewMockDatabase(t interface { - mock.TestingT - Cleanup(func()) -}) *MockDatabase { - mock := &MockDatabase{} - mock.Mock.Test(t) - - t.Cleanup(func() { mock.AssertExpectations(t) }) - - return mock -} diff --git a/internal/database/mariadb/internal/mocks/mock_Heureka.go b/internal/database/mariadb/internal/mocks/mock_Heureka.go deleted file mode 100644 index 89974edc..00000000 --- a/internal/database/mariadb/internal/mocks/mock_Heureka.go +++ /dev/null @@ -1,2587 +0,0 @@ -// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors -// SPDX-License-Identifier: Apache-2.0 - -// Code generated by mockery v2.42.1. DO NOT EDIT. - -package mocks - -import ( - mock "github.com/stretchr/testify/mock" - entity "github.com/cloudoperators/heureka/internal/entity" -) - -// MockHeureka is an autogenerated mock type for the Heureka type -type MockHeureka struct { - mock.Mock -} - -type MockHeureka_Expecter struct { - mock *mock.Mock -} - -func (_m *MockHeureka) EXPECT() *MockHeureka_Expecter { - return &MockHeureka_Expecter{mock: &_m.Mock} -} - -// CreateComponent provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateComponent(_a0 *entity.Component) (*entity.Component, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateComponent") - } - - var r0 *entity.Component - var r1 error - if rf, ok := ret.Get(0).(func(*entity.Component) (*entity.Component, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.Component) *entity.Component); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Component) - } - } - - if rf, ok := ret.Get(1).(func(*entity.Component) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateComponent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateComponent' -type MockHeureka_CreateComponent_Call struct { - *mock.Call -} - -// CreateComponent is a helper method to define mock.On call -// - _a0 *entity.Component -func (_e *MockHeureka_Expecter) CreateComponent(_a0 interface{}) *MockHeureka_CreateComponent_Call { - return &MockHeureka_CreateComponent_Call{Call: _e.mock.On("CreateComponent", _a0)} -} - -func (_c *MockHeureka_CreateComponent_Call) Run(run func(_a0 *entity.Component)) *MockHeureka_CreateComponent_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Component)) - }) - return _c -} - -func (_c *MockHeureka_CreateComponent_Call) Return(_a0 *entity.Component, _a1 error) *MockHeureka_CreateComponent_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateComponent_Call) RunAndReturn(run func(*entity.Component) (*entity.Component, error)) *MockHeureka_CreateComponent_Call { - _c.Call.Return(run) - return _c -} - -// CreateComponentInstance provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateComponentInstance(_a0 *entity.ComponentInstance) (*entity.ComponentInstance, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateComponentInstance") - } - - var r0 *entity.ComponentInstance - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentInstance) (*entity.ComponentInstance, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentInstance) *entity.ComponentInstance); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.ComponentInstance) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentInstance) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateComponentInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateComponentInstance' -type MockHeureka_CreateComponentInstance_Call struct { - *mock.Call -} - -// CreateComponentInstance is a helper method to define mock.On call -// - _a0 *entity.ComponentInstance -func (_e *MockHeureka_Expecter) CreateComponentInstance(_a0 interface{}) *MockHeureka_CreateComponentInstance_Call { - return &MockHeureka_CreateComponentInstance_Call{Call: _e.mock.On("CreateComponentInstance", _a0)} -} - -func (_c *MockHeureka_CreateComponentInstance_Call) Run(run func(_a0 *entity.ComponentInstance)) *MockHeureka_CreateComponentInstance_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentInstance)) - }) - return _c -} - -func (_c *MockHeureka_CreateComponentInstance_Call) Return(_a0 *entity.ComponentInstance, _a1 error) *MockHeureka_CreateComponentInstance_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateComponentInstance_Call) RunAndReturn(run func(*entity.ComponentInstance) (*entity.ComponentInstance, error)) *MockHeureka_CreateComponentInstance_Call { - _c.Call.Return(run) - return _c -} - -// CreateComponentVersion provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateComponentVersion(_a0 *entity.ComponentVersion) (*entity.ComponentVersion, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateComponentVersion") - } - - var r0 *entity.ComponentVersion - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentVersion) (*entity.ComponentVersion, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentVersion) *entity.ComponentVersion); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.ComponentVersion) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentVersion) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateComponentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateComponentVersion' -type MockHeureka_CreateComponentVersion_Call struct { - *mock.Call -} - -// CreateComponentVersion is a helper method to define mock.On call -// - _a0 *entity.ComponentVersion -func (_e *MockHeureka_Expecter) CreateComponentVersion(_a0 interface{}) *MockHeureka_CreateComponentVersion_Call { - return &MockHeureka_CreateComponentVersion_Call{Call: _e.mock.On("CreateComponentVersion", _a0)} -} - -func (_c *MockHeureka_CreateComponentVersion_Call) Run(run func(_a0 *entity.ComponentVersion)) *MockHeureka_CreateComponentVersion_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentVersion)) - }) - return _c -} - -func (_c *MockHeureka_CreateComponentVersion_Call) Return(_a0 *entity.ComponentVersion, _a1 error) *MockHeureka_CreateComponentVersion_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateComponentVersion_Call) RunAndReturn(run func(*entity.ComponentVersion) (*entity.ComponentVersion, error)) *MockHeureka_CreateComponentVersion_Call { - _c.Call.Return(run) - return _c -} - -// CreateEvidence provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateEvidence(_a0 *entity.Evidence) (*entity.Evidence, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateEvidence") - } - - var r0 *entity.Evidence - var r1 error - if rf, ok := ret.Get(0).(func(*entity.Evidence) (*entity.Evidence, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.Evidence) *entity.Evidence); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Evidence) - } - } - - if rf, ok := ret.Get(1).(func(*entity.Evidence) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateEvidence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEvidence' -type MockHeureka_CreateEvidence_Call struct { - *mock.Call -} - -// CreateEvidence is a helper method to define mock.On call -// - _a0 *entity.Evidence -func (_e *MockHeureka_Expecter) CreateEvidence(_a0 interface{}) *MockHeureka_CreateEvidence_Call { - return &MockHeureka_CreateEvidence_Call{Call: _e.mock.On("CreateEvidence", _a0)} -} - -func (_c *MockHeureka_CreateEvidence_Call) Run(run func(_a0 *entity.Evidence)) *MockHeureka_CreateEvidence_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Evidence)) - }) - return _c -} - -func (_c *MockHeureka_CreateEvidence_Call) Return(_a0 *entity.Evidence, _a1 error) *MockHeureka_CreateEvidence_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateEvidence_Call) RunAndReturn(run func(*entity.Evidence) (*entity.Evidence, error)) *MockHeureka_CreateEvidence_Call { - _c.Call.Return(run) - return _c -} - -// CreateIssueMatch provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateIssueMatch(_a0 *entity.IssueMatch) (*entity.IssueMatch, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateIssueMatch") - } - - var r0 *entity.IssueMatch - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatch) (*entity.IssueMatch, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatch) *entity.IssueMatch); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.IssueMatch) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatch) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateIssueMatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueMatch' -type MockHeureka_CreateIssueMatch_Call struct { - *mock.Call -} - -// CreateIssueMatch is a helper method to define mock.On call -// - _a0 *entity.IssueMatch -func (_e *MockHeureka_Expecter) CreateIssueMatch(_a0 interface{}) *MockHeureka_CreateIssueMatch_Call { - return &MockHeureka_CreateIssueMatch_Call{Call: _e.mock.On("CreateIssueMatch", _a0)} -} - -func (_c *MockHeureka_CreateIssueMatch_Call) Run(run func(_a0 *entity.IssueMatch)) *MockHeureka_CreateIssueMatch_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatch)) - }) - return _c -} - -func (_c *MockHeureka_CreateIssueMatch_Call) Return(_a0 *entity.IssueMatch, _a1 error) *MockHeureka_CreateIssueMatch_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateIssueMatch_Call) RunAndReturn(run func(*entity.IssueMatch) (*entity.IssueMatch, error)) *MockHeureka_CreateIssueMatch_Call { - _c.Call.Return(run) - return _c -} - -// CreateIssueRepository provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateIssueRepository(_a0 *entity.IssueRepository) (*entity.IssueRepository, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateIssueRepository") - } - - var r0 *entity.IssueRepository - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueRepository) (*entity.IssueRepository, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueRepository) *entity.IssueRepository); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.IssueRepository) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueRepository) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateIssueRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueRepository' -type MockHeureka_CreateIssueRepository_Call struct { - *mock.Call -} - -// CreateIssueRepository is a helper method to define mock.On call -// - _a0 *entity.IssueRepository -func (_e *MockHeureka_Expecter) CreateIssueRepository(_a0 interface{}) *MockHeureka_CreateIssueRepository_Call { - return &MockHeureka_CreateIssueRepository_Call{Call: _e.mock.On("CreateIssueRepository", _a0)} -} - -func (_c *MockHeureka_CreateIssueRepository_Call) Run(run func(_a0 *entity.IssueRepository)) *MockHeureka_CreateIssueRepository_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueRepository)) - }) - return _c -} - -func (_c *MockHeureka_CreateIssueRepository_Call) Return(_a0 *entity.IssueRepository, _a1 error) *MockHeureka_CreateIssueRepository_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateIssueRepository_Call) RunAndReturn(run func(*entity.IssueRepository) (*entity.IssueRepository, error)) *MockHeureka_CreateIssueRepository_Call { - _c.Call.Return(run) - return _c -} - -// CreateIssueVariant provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateIssueVariant(_a0 *entity.IssueVariant) (*entity.IssueVariant, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateIssueVariant") - } - - var r0 *entity.IssueVariant - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueVariant) (*entity.IssueVariant, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueVariant) *entity.IssueVariant); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.IssueVariant) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueVariant) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateIssueVariant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueVariant' -type MockHeureka_CreateIssueVariant_Call struct { - *mock.Call -} - -// CreateIssueVariant is a helper method to define mock.On call -// - _a0 *entity.IssueVariant -func (_e *MockHeureka_Expecter) CreateIssueVariant(_a0 interface{}) *MockHeureka_CreateIssueVariant_Call { - return &MockHeureka_CreateIssueVariant_Call{Call: _e.mock.On("CreateIssueVariant", _a0)} -} - -func (_c *MockHeureka_CreateIssueVariant_Call) Run(run func(_a0 *entity.IssueVariant)) *MockHeureka_CreateIssueVariant_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueVariant)) - }) - return _c -} - -func (_c *MockHeureka_CreateIssueVariant_Call) Return(_a0 *entity.IssueVariant, _a1 error) *MockHeureka_CreateIssueVariant_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateIssueVariant_Call) RunAndReturn(run func(*entity.IssueVariant) (*entity.IssueVariant, error)) *MockHeureka_CreateIssueVariant_Call { - _c.Call.Return(run) - return _c -} - -// CreateService provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateService(_a0 *entity.Service) (*entity.Service, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateService") - } - - var r0 *entity.Service - var r1 error - if rf, ok := ret.Get(0).(func(*entity.Service) (*entity.Service, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.Service) *entity.Service); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Service) - } - } - - if rf, ok := ret.Get(1).(func(*entity.Service) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateService' -type MockHeureka_CreateService_Call struct { - *mock.Call -} - -// CreateService is a helper method to define mock.On call -// - _a0 *entity.Service -func (_e *MockHeureka_Expecter) CreateService(_a0 interface{}) *MockHeureka_CreateService_Call { - return &MockHeureka_CreateService_Call{Call: _e.mock.On("CreateService", _a0)} -} - -func (_c *MockHeureka_CreateService_Call) Run(run func(_a0 *entity.Service)) *MockHeureka_CreateService_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Service)) - }) - return _c -} - -func (_c *MockHeureka_CreateService_Call) Return(_a0 *entity.Service, _a1 error) *MockHeureka_CreateService_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateService_Call) RunAndReturn(run func(*entity.Service) (*entity.Service, error)) *MockHeureka_CreateService_Call { - _c.Call.Return(run) - return _c -} - -// CreateSupportGroup provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateSupportGroup(_a0 *entity.SupportGroup) (*entity.SupportGroup, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateSupportGroup") - } - - var r0 *entity.SupportGroup - var r1 error - if rf, ok := ret.Get(0).(func(*entity.SupportGroup) (*entity.SupportGroup, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.SupportGroup) *entity.SupportGroup); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.SupportGroup) - } - } - - if rf, ok := ret.Get(1).(func(*entity.SupportGroup) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateSupportGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSupportGroup' -type MockHeureka_CreateSupportGroup_Call struct { - *mock.Call -} - -// CreateSupportGroup is a helper method to define mock.On call -// - _a0 *entity.SupportGroup -func (_e *MockHeureka_Expecter) CreateSupportGroup(_a0 interface{}) *MockHeureka_CreateSupportGroup_Call { - return &MockHeureka_CreateSupportGroup_Call{Call: _e.mock.On("CreateSupportGroup", _a0)} -} - -func (_c *MockHeureka_CreateSupportGroup_Call) Run(run func(_a0 *entity.SupportGroup)) *MockHeureka_CreateSupportGroup_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.SupportGroup)) - }) - return _c -} - -func (_c *MockHeureka_CreateSupportGroup_Call) Return(_a0 *entity.SupportGroup, _a1 error) *MockHeureka_CreateSupportGroup_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateSupportGroup_Call) RunAndReturn(run func(*entity.SupportGroup) (*entity.SupportGroup, error)) *MockHeureka_CreateSupportGroup_Call { - _c.Call.Return(run) - return _c -} - -// CreateUser provides a mock function with given fields: _a0 -func (_m *MockHeureka) CreateUser(_a0 *entity.User) (*entity.User, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for CreateUser") - } - - var r0 *entity.User - var r1 error - if rf, ok := ret.Get(0).(func(*entity.User) (*entity.User, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.User) *entity.User); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.User) - } - } - - if rf, ok := ret.Get(1).(func(*entity.User) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser' -type MockHeureka_CreateUser_Call struct { - *mock.Call -} - -// CreateUser is a helper method to define mock.On call -// - _a0 *entity.User -func (_e *MockHeureka_Expecter) CreateUser(_a0 interface{}) *MockHeureka_CreateUser_Call { - return &MockHeureka_CreateUser_Call{Call: _e.mock.On("CreateUser", _a0)} -} - -func (_c *MockHeureka_CreateUser_Call) Run(run func(_a0 *entity.User)) *MockHeureka_CreateUser_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.User)) - }) - return _c -} - -func (_c *MockHeureka_CreateUser_Call) Return(_a0 *entity.User, _a1 error) *MockHeureka_CreateUser_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_CreateUser_Call) RunAndReturn(run func(*entity.User) (*entity.User, error)) *MockHeureka_CreateUser_Call { - _c.Call.Return(run) - return _c -} - -// DeleteComponent provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteComponent(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteComponent") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteComponent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteComponent' -type MockHeureka_DeleteComponent_Call struct { - *mock.Call -} - -// DeleteComponent is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteComponent(_a0 interface{}) *MockHeureka_DeleteComponent_Call { - return &MockHeureka_DeleteComponent_Call{Call: _e.mock.On("DeleteComponent", _a0)} -} - -func (_c *MockHeureka_DeleteComponent_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteComponent_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteComponent_Call) Return(_a0 error) *MockHeureka_DeleteComponent_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteComponent_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteComponent_Call { - _c.Call.Return(run) - return _c -} - -// DeleteComponentInstance provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteComponentInstance(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteComponentInstance") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteComponentInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteComponentInstance' -type MockHeureka_DeleteComponentInstance_Call struct { - *mock.Call -} - -// DeleteComponentInstance is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteComponentInstance(_a0 interface{}) *MockHeureka_DeleteComponentInstance_Call { - return &MockHeureka_DeleteComponentInstance_Call{Call: _e.mock.On("DeleteComponentInstance", _a0)} -} - -func (_c *MockHeureka_DeleteComponentInstance_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteComponentInstance_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteComponentInstance_Call) Return(_a0 error) *MockHeureka_DeleteComponentInstance_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteComponentInstance_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteComponentInstance_Call { - _c.Call.Return(run) - return _c -} - -// DeleteComponentVersion provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteComponentVersion(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteComponentVersion") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteComponentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteComponentVersion' -type MockHeureka_DeleteComponentVersion_Call struct { - *mock.Call -} - -// DeleteComponentVersion is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteComponentVersion(_a0 interface{}) *MockHeureka_DeleteComponentVersion_Call { - return &MockHeureka_DeleteComponentVersion_Call{Call: _e.mock.On("DeleteComponentVersion", _a0)} -} - -func (_c *MockHeureka_DeleteComponentVersion_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteComponentVersion_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteComponentVersion_Call) Return(_a0 error) *MockHeureka_DeleteComponentVersion_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteComponentVersion_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteComponentVersion_Call { - _c.Call.Return(run) - return _c -} - -// DeleteEvidence provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteEvidence(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteEvidence") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteEvidence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEvidence' -type MockHeureka_DeleteEvidence_Call struct { - *mock.Call -} - -// DeleteEvidence is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteEvidence(_a0 interface{}) *MockHeureka_DeleteEvidence_Call { - return &MockHeureka_DeleteEvidence_Call{Call: _e.mock.On("DeleteEvidence", _a0)} -} - -func (_c *MockHeureka_DeleteEvidence_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteEvidence_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteEvidence_Call) Return(_a0 error) *MockHeureka_DeleteEvidence_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteEvidence_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteEvidence_Call { - _c.Call.Return(run) - return _c -} - -// DeleteIssueMatch provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteIssueMatch(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteIssueMatch") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteIssueMatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIssueMatch' -type MockHeureka_DeleteIssueMatch_Call struct { - *mock.Call -} - -// DeleteIssueMatch is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteIssueMatch(_a0 interface{}) *MockHeureka_DeleteIssueMatch_Call { - return &MockHeureka_DeleteIssueMatch_Call{Call: _e.mock.On("DeleteIssueMatch", _a0)} -} - -func (_c *MockHeureka_DeleteIssueMatch_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteIssueMatch_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteIssueMatch_Call) Return(_a0 error) *MockHeureka_DeleteIssueMatch_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteIssueMatch_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteIssueMatch_Call { - _c.Call.Return(run) - return _c -} - -// DeleteIssueRepository provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteIssueRepository(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteIssueRepository") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteIssueRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIssueRepository' -type MockHeureka_DeleteIssueRepository_Call struct { - *mock.Call -} - -// DeleteIssueRepository is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteIssueRepository(_a0 interface{}) *MockHeureka_DeleteIssueRepository_Call { - return &MockHeureka_DeleteIssueRepository_Call{Call: _e.mock.On("DeleteIssueRepository", _a0)} -} - -func (_c *MockHeureka_DeleteIssueRepository_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteIssueRepository_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteIssueRepository_Call) Return(_a0 error) *MockHeureka_DeleteIssueRepository_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteIssueRepository_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteIssueRepository_Call { - _c.Call.Return(run) - return _c -} - -// DeleteIssueVariant provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteIssueVariant(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteIssueVariant") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteIssueVariant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIssueVariant' -type MockHeureka_DeleteIssueVariant_Call struct { - *mock.Call -} - -// DeleteIssueVariant is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteIssueVariant(_a0 interface{}) *MockHeureka_DeleteIssueVariant_Call { - return &MockHeureka_DeleteIssueVariant_Call{Call: _e.mock.On("DeleteIssueVariant", _a0)} -} - -func (_c *MockHeureka_DeleteIssueVariant_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteIssueVariant_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteIssueVariant_Call) Return(_a0 error) *MockHeureka_DeleteIssueVariant_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteIssueVariant_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteIssueVariant_Call { - _c.Call.Return(run) - return _c -} - -// DeleteService provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteService(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteService") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteService' -type MockHeureka_DeleteService_Call struct { - *mock.Call -} - -// DeleteService is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteService(_a0 interface{}) *MockHeureka_DeleteService_Call { - return &MockHeureka_DeleteService_Call{Call: _e.mock.On("DeleteService", _a0)} -} - -func (_c *MockHeureka_DeleteService_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteService_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteService_Call) Return(_a0 error) *MockHeureka_DeleteService_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteService_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteService_Call { - _c.Call.Return(run) - return _c -} - -// DeleteSupportGroup provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteSupportGroup(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteSupportGroup") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteSupportGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSupportGroup' -type MockHeureka_DeleteSupportGroup_Call struct { - *mock.Call -} - -// DeleteSupportGroup is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteSupportGroup(_a0 interface{}) *MockHeureka_DeleteSupportGroup_Call { - return &MockHeureka_DeleteSupportGroup_Call{Call: _e.mock.On("DeleteSupportGroup", _a0)} -} - -func (_c *MockHeureka_DeleteSupportGroup_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteSupportGroup_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteSupportGroup_Call) Return(_a0 error) *MockHeureka_DeleteSupportGroup_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteSupportGroup_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteSupportGroup_Call { - _c.Call.Return(run) - return _c -} - -// DeleteUser provides a mock function with given fields: _a0 -func (_m *MockHeureka) DeleteUser(_a0 int64) error { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for DeleteUser") - } - - var r0 error - if rf, ok := ret.Get(0).(func(int64) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser' -type MockHeureka_DeleteUser_Call struct { - *mock.Call -} - -// DeleteUser is a helper method to define mock.On call -// - _a0 int64 -func (_e *MockHeureka_Expecter) DeleteUser(_a0 interface{}) *MockHeureka_DeleteUser_Call { - return &MockHeureka_DeleteUser_Call{Call: _e.mock.On("DeleteUser", _a0)} -} - -func (_c *MockHeureka_DeleteUser_Call) Run(run func(_a0 int64)) *MockHeureka_DeleteUser_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(int64)) - }) - return _c -} - -func (_c *MockHeureka_DeleteUser_Call) Return(_a0 error) *MockHeureka_DeleteUser_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_DeleteUser_Call) RunAndReturn(run func(int64) error) *MockHeureka_DeleteUser_Call { - _c.Call.Return(run) - return _c -} - -// GetSeverity provides a mock function with given fields: _a0 -func (_m *MockHeureka) GetSeverity(_a0 *entity.SeverityFilter) (*entity.Severity, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for GetSeverity") - } - - var r0 *entity.Severity - var r1 error - if rf, ok := ret.Get(0).(func(*entity.SeverityFilter) (*entity.Severity, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.SeverityFilter) *entity.Severity); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Severity) - } - } - - if rf, ok := ret.Get(1).(func(*entity.SeverityFilter) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_GetSeverity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSeverity' -type MockHeureka_GetSeverity_Call struct { - *mock.Call -} - -// GetSeverity is a helper method to define mock.On call -// - _a0 *entity.SeverityFilter -func (_e *MockHeureka_Expecter) GetSeverity(_a0 interface{}) *MockHeureka_GetSeverity_Call { - return &MockHeureka_GetSeverity_Call{Call: _e.mock.On("GetSeverity", _a0)} -} - -func (_c *MockHeureka_GetSeverity_Call) Run(run func(_a0 *entity.SeverityFilter)) *MockHeureka_GetSeverity_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.SeverityFilter)) - }) - return _c -} - -func (_c *MockHeureka_GetSeverity_Call) Return(_a0 *entity.Severity, _a1 error) *MockHeureka_GetSeverity_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_GetSeverity_Call) RunAndReturn(run func(*entity.SeverityFilter) (*entity.Severity, error)) *MockHeureka_GetSeverity_Call { - _c.Call.Return(run) - return _c -} - -// ListActivities provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListActivities(_a0 *entity.ActivityFilter, _a1 *entity.ListOptions) (*entity.List[entity.ActivityResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListActivities") - } - - var r0 *entity.List[entity.ActivityResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ActivityFilter, *entity.ListOptions) (*entity.List[entity.ActivityResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.ActivityFilter, *entity.ListOptions) *entity.List[entity.ActivityResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.ActivityResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ActivityFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListActivities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListActivities' -type MockHeureka_ListActivities_Call struct { - *mock.Call -} - -// ListActivities is a helper method to define mock.On call -// - _a0 *entity.ActivityFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListActivities(_a0 interface{}, _a1 interface{}) *MockHeureka_ListActivities_Call { - return &MockHeureka_ListActivities_Call{Call: _e.mock.On("ListActivities", _a0, _a1)} -} - -func (_c *MockHeureka_ListActivities_Call) Run(run func(_a0 *entity.ActivityFilter, _a1 *entity.ListOptions)) *MockHeureka_ListActivities_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ActivityFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListActivities_Call) Return(_a0 *entity.List[entity.ActivityResult], _a1 error) *MockHeureka_ListActivities_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListActivities_Call) RunAndReturn(run func(*entity.ActivityFilter, *entity.ListOptions) (*entity.List[entity.ActivityResult], error)) *MockHeureka_ListActivities_Call { - _c.Call.Return(run) - return _c -} - -// ListComponentInstances provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListComponentInstances(_a0 *entity.ComponentInstanceFilter, _a1 *entity.ListOptions) (*entity.List[entity.ComponentInstanceResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListComponentInstances") - } - - var r0 *entity.List[entity.ComponentInstanceResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentInstanceFilter, *entity.ListOptions) (*entity.List[entity.ComponentInstanceResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentInstanceFilter, *entity.ListOptions) *entity.List[entity.ComponentInstanceResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.ComponentInstanceResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentInstanceFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListComponentInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListComponentInstances' -type MockHeureka_ListComponentInstances_Call struct { - *mock.Call -} - -// ListComponentInstances is a helper method to define mock.On call -// - _a0 *entity.ComponentInstanceFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListComponentInstances(_a0 interface{}, _a1 interface{}) *MockHeureka_ListComponentInstances_Call { - return &MockHeureka_ListComponentInstances_Call{Call: _e.mock.On("ListComponentInstances", _a0, _a1)} -} - -func (_c *MockHeureka_ListComponentInstances_Call) Run(run func(_a0 *entity.ComponentInstanceFilter, _a1 *entity.ListOptions)) *MockHeureka_ListComponentInstances_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentInstanceFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListComponentInstances_Call) Return(_a0 *entity.List[entity.ComponentInstanceResult], _a1 error) *MockHeureka_ListComponentInstances_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListComponentInstances_Call) RunAndReturn(run func(*entity.ComponentInstanceFilter, *entity.ListOptions) (*entity.List[entity.ComponentInstanceResult], error)) *MockHeureka_ListComponentInstances_Call { - _c.Call.Return(run) - return _c -} - -// ListComponentVersions provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListComponentVersions(_a0 *entity.ComponentVersionFilter, _a1 *entity.ListOptions) (*entity.List[entity.ComponentVersionResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListComponentVersions") - } - - var r0 *entity.List[entity.ComponentVersionResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentVersionFilter, *entity.ListOptions) (*entity.List[entity.ComponentVersionResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentVersionFilter, *entity.ListOptions) *entity.List[entity.ComponentVersionResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.ComponentVersionResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentVersionFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListComponentVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListComponentVersions' -type MockHeureka_ListComponentVersions_Call struct { - *mock.Call -} - -// ListComponentVersions is a helper method to define mock.On call -// - _a0 *entity.ComponentVersionFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListComponentVersions(_a0 interface{}, _a1 interface{}) *MockHeureka_ListComponentVersions_Call { - return &MockHeureka_ListComponentVersions_Call{Call: _e.mock.On("ListComponentVersions", _a0, _a1)} -} - -func (_c *MockHeureka_ListComponentVersions_Call) Run(run func(_a0 *entity.ComponentVersionFilter, _a1 *entity.ListOptions)) *MockHeureka_ListComponentVersions_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentVersionFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListComponentVersions_Call) Return(_a0 *entity.List[entity.ComponentVersionResult], _a1 error) *MockHeureka_ListComponentVersions_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListComponentVersions_Call) RunAndReturn(run func(*entity.ComponentVersionFilter, *entity.ListOptions) (*entity.List[entity.ComponentVersionResult], error)) *MockHeureka_ListComponentVersions_Call { - _c.Call.Return(run) - return _c -} - -// ListComponents provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListComponents(_a0 *entity.ComponentFilter, _a1 *entity.ListOptions) (*entity.List[entity.ComponentResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListComponents") - } - - var r0 *entity.List[entity.ComponentResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentFilter, *entity.ListOptions) (*entity.List[entity.ComponentResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentFilter, *entity.ListOptions) *entity.List[entity.ComponentResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.ComponentResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListComponents' -type MockHeureka_ListComponents_Call struct { - *mock.Call -} - -// ListComponents is a helper method to define mock.On call -// - _a0 *entity.ComponentFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListComponents(_a0 interface{}, _a1 interface{}) *MockHeureka_ListComponents_Call { - return &MockHeureka_ListComponents_Call{Call: _e.mock.On("ListComponents", _a0, _a1)} -} - -func (_c *MockHeureka_ListComponents_Call) Run(run func(_a0 *entity.ComponentFilter, _a1 *entity.ListOptions)) *MockHeureka_ListComponents_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListComponents_Call) Return(_a0 *entity.List[entity.ComponentResult], _a1 error) *MockHeureka_ListComponents_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListComponents_Call) RunAndReturn(run func(*entity.ComponentFilter, *entity.ListOptions) (*entity.List[entity.ComponentResult], error)) *MockHeureka_ListComponents_Call { - _c.Call.Return(run) - return _c -} - -// ListEffectiveIssueVariants provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListEffectiveIssueVariants(_a0 *entity.IssueVariantFilter, _a1 *entity.ListOptions) (*entity.List[entity.IssueVariantResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListEffectiveIssueVariants") - } - - var r0 *entity.List[entity.IssueVariantResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter, *entity.ListOptions) (*entity.List[entity.IssueVariantResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter, *entity.ListOptions) *entity.List[entity.IssueVariantResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.IssueVariantResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueVariantFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListEffectiveIssueVariants_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEffectiveIssueVariants' -type MockHeureka_ListEffectiveIssueVariants_Call struct { - *mock.Call -} - -// ListEffectiveIssueVariants is a helper method to define mock.On call -// - _a0 *entity.IssueVariantFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListEffectiveIssueVariants(_a0 interface{}, _a1 interface{}) *MockHeureka_ListEffectiveIssueVariants_Call { - return &MockHeureka_ListEffectiveIssueVariants_Call{Call: _e.mock.On("ListEffectiveIssueVariants", _a0, _a1)} -} - -func (_c *MockHeureka_ListEffectiveIssueVariants_Call) Run(run func(_a0 *entity.IssueVariantFilter, _a1 *entity.ListOptions)) *MockHeureka_ListEffectiveIssueVariants_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueVariantFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListEffectiveIssueVariants_Call) Return(_a0 *entity.List[entity.IssueVariantResult], _a1 error) *MockHeureka_ListEffectiveIssueVariants_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListEffectiveIssueVariants_Call) RunAndReturn(run func(*entity.IssueVariantFilter, *entity.ListOptions) (*entity.List[entity.IssueVariantResult], error)) *MockHeureka_ListEffectiveIssueVariants_Call { - _c.Call.Return(run) - return _c -} - -// ListEvidences provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListEvidences(_a0 *entity.EvidenceFilter, _a1 *entity.ListOptions) (*entity.List[entity.EvidenceResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListEvidences") - } - - var r0 *entity.List[entity.EvidenceResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.EvidenceFilter, *entity.ListOptions) (*entity.List[entity.EvidenceResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.EvidenceFilter, *entity.ListOptions) *entity.List[entity.EvidenceResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.EvidenceResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.EvidenceFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListEvidences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEvidences' -type MockHeureka_ListEvidences_Call struct { - *mock.Call -} - -// ListEvidences is a helper method to define mock.On call -// - _a0 *entity.EvidenceFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListEvidences(_a0 interface{}, _a1 interface{}) *MockHeureka_ListEvidences_Call { - return &MockHeureka_ListEvidences_Call{Call: _e.mock.On("ListEvidences", _a0, _a1)} -} - -func (_c *MockHeureka_ListEvidences_Call) Run(run func(_a0 *entity.EvidenceFilter, _a1 *entity.ListOptions)) *MockHeureka_ListEvidences_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.EvidenceFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListEvidences_Call) Return(_a0 *entity.List[entity.EvidenceResult], _a1 error) *MockHeureka_ListEvidences_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListEvidences_Call) RunAndReturn(run func(*entity.EvidenceFilter, *entity.ListOptions) (*entity.List[entity.EvidenceResult], error)) *MockHeureka_ListEvidences_Call { - _c.Call.Return(run) - return _c -} - -// ListIssueMatchChanges provides a mock function with given fields: filter, options -func (_m *MockHeureka) ListIssueMatchChanges(filter *entity.IssueMatchChangeFilter, options *entity.ListOptions) (*entity.List[entity.IssueMatchChangeResult], error) { - ret := _m.Called(filter, options) - - if len(ret) == 0 { - panic("no return value specified for ListIssueMatchChanges") - } - - var r0 *entity.List[entity.IssueMatchChangeResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatchChangeFilter, *entity.ListOptions) (*entity.List[entity.IssueMatchChangeResult], error)); ok { - return rf(filter, options) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatchChangeFilter, *entity.ListOptions) *entity.List[entity.IssueMatchChangeResult]); ok { - r0 = rf(filter, options) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.IssueMatchChangeResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatchChangeFilter, *entity.ListOptions) error); ok { - r1 = rf(filter, options) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListIssueMatchChanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListIssueMatchChanges' -type MockHeureka_ListIssueMatchChanges_Call struct { - *mock.Call -} - -// ListIssueMatchChanges is a helper method to define mock.On call -// - filter *entity.IssueMatchChangeFilter -// - options *entity.ListOptions -func (_e *MockHeureka_Expecter) ListIssueMatchChanges(filter interface{}, options interface{}) *MockHeureka_ListIssueMatchChanges_Call { - return &MockHeureka_ListIssueMatchChanges_Call{Call: _e.mock.On("ListIssueMatchChanges", filter, options)} -} - -func (_c *MockHeureka_ListIssueMatchChanges_Call) Run(run func(filter *entity.IssueMatchChangeFilter, options *entity.ListOptions)) *MockHeureka_ListIssueMatchChanges_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatchChangeFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListIssueMatchChanges_Call) Return(_a0 *entity.List[entity.IssueMatchChangeResult], _a1 error) *MockHeureka_ListIssueMatchChanges_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListIssueMatchChanges_Call) RunAndReturn(run func(*entity.IssueMatchChangeFilter, *entity.ListOptions) (*entity.List[entity.IssueMatchChangeResult], error)) *MockHeureka_ListIssueMatchChanges_Call { - _c.Call.Return(run) - return _c -} - -// ListIssueMatches provides a mock function with given fields: filter, options -func (_m *MockHeureka) ListIssueMatches(filter *entity.IssueMatchFilter, options *entity.ListOptions) (*entity.List[entity.IssueMatchResult], error) { - ret := _m.Called(filter, options) - - if len(ret) == 0 { - panic("no return value specified for ListIssueMatches") - } - - var r0 *entity.List[entity.IssueMatchResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatchFilter, *entity.ListOptions) (*entity.List[entity.IssueMatchResult], error)); ok { - return rf(filter, options) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatchFilter, *entity.ListOptions) *entity.List[entity.IssueMatchResult]); ok { - r0 = rf(filter, options) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.IssueMatchResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatchFilter, *entity.ListOptions) error); ok { - r1 = rf(filter, options) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListIssueMatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListIssueMatches' -type MockHeureka_ListIssueMatches_Call struct { - *mock.Call -} - -// ListIssueMatches is a helper method to define mock.On call -// - filter *entity.IssueMatchFilter -// - options *entity.ListOptions -func (_e *MockHeureka_Expecter) ListIssueMatches(filter interface{}, options interface{}) *MockHeureka_ListIssueMatches_Call { - return &MockHeureka_ListIssueMatches_Call{Call: _e.mock.On("ListIssueMatches", filter, options)} -} - -func (_c *MockHeureka_ListIssueMatches_Call) Run(run func(filter *entity.IssueMatchFilter, options *entity.ListOptions)) *MockHeureka_ListIssueMatches_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatchFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListIssueMatches_Call) Return(_a0 *entity.List[entity.IssueMatchResult], _a1 error) *MockHeureka_ListIssueMatches_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListIssueMatches_Call) RunAndReturn(run func(*entity.IssueMatchFilter, *entity.ListOptions) (*entity.List[entity.IssueMatchResult], error)) *MockHeureka_ListIssueMatches_Call { - _c.Call.Return(run) - return _c -} - -// ListIssueRepositories provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListIssueRepositories(_a0 *entity.IssueRepositoryFilter, _a1 *entity.ListOptions) (*entity.List[entity.IssueRepositoryResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListIssueRepositories") - } - - var r0 *entity.List[entity.IssueRepositoryResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueRepositoryFilter, *entity.ListOptions) (*entity.List[entity.IssueRepositoryResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.IssueRepositoryFilter, *entity.ListOptions) *entity.List[entity.IssueRepositoryResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.IssueRepositoryResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueRepositoryFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListIssueRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListIssueRepositories' -type MockHeureka_ListIssueRepositories_Call struct { - *mock.Call -} - -// ListIssueRepositories is a helper method to define mock.On call -// - _a0 *entity.IssueRepositoryFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListIssueRepositories(_a0 interface{}, _a1 interface{}) *MockHeureka_ListIssueRepositories_Call { - return &MockHeureka_ListIssueRepositories_Call{Call: _e.mock.On("ListIssueRepositories", _a0, _a1)} -} - -func (_c *MockHeureka_ListIssueRepositories_Call) Run(run func(_a0 *entity.IssueRepositoryFilter, _a1 *entity.ListOptions)) *MockHeureka_ListIssueRepositories_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueRepositoryFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListIssueRepositories_Call) Return(_a0 *entity.List[entity.IssueRepositoryResult], _a1 error) *MockHeureka_ListIssueRepositories_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListIssueRepositories_Call) RunAndReturn(run func(*entity.IssueRepositoryFilter, *entity.ListOptions) (*entity.List[entity.IssueRepositoryResult], error)) *MockHeureka_ListIssueRepositories_Call { - _c.Call.Return(run) - return _c -} - -// ListIssueVariants provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListIssueVariants(_a0 *entity.IssueVariantFilter, _a1 *entity.ListOptions) (*entity.List[entity.IssueVariantResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListIssueVariants") - } - - var r0 *entity.List[entity.IssueVariantResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter, *entity.ListOptions) (*entity.List[entity.IssueVariantResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.IssueVariantFilter, *entity.ListOptions) *entity.List[entity.IssueVariantResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.IssueVariantResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueVariantFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListIssueVariants_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListIssueVariants' -type MockHeureka_ListIssueVariants_Call struct { - *mock.Call -} - -// ListIssueVariants is a helper method to define mock.On call -// - _a0 *entity.IssueVariantFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListIssueVariants(_a0 interface{}, _a1 interface{}) *MockHeureka_ListIssueVariants_Call { - return &MockHeureka_ListIssueVariants_Call{Call: _e.mock.On("ListIssueVariants", _a0, _a1)} -} - -func (_c *MockHeureka_ListIssueVariants_Call) Run(run func(_a0 *entity.IssueVariantFilter, _a1 *entity.ListOptions)) *MockHeureka_ListIssueVariants_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueVariantFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListIssueVariants_Call) Return(_a0 *entity.List[entity.IssueVariantResult], _a1 error) *MockHeureka_ListIssueVariants_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListIssueVariants_Call) RunAndReturn(run func(*entity.IssueVariantFilter, *entity.ListOptions) (*entity.List[entity.IssueVariantResult], error)) *MockHeureka_ListIssueVariants_Call { - _c.Call.Return(run) - return _c -} - -// ListIssues provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListIssues(_a0 *entity.IssueFilter, _a1 *entity.ListOptions) (*entity.List[entity.IssueResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListIssues") - } - - var r0 *entity.List[entity.IssueResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueFilter, *entity.ListOptions) (*entity.List[entity.IssueResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.IssueFilter, *entity.ListOptions) *entity.List[entity.IssueResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.IssueResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListIssues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListIssues' -type MockHeureka_ListIssues_Call struct { - *mock.Call -} - -// ListIssues is a helper method to define mock.On call -// - _a0 *entity.IssueFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListIssues(_a0 interface{}, _a1 interface{}) *MockHeureka_ListIssues_Call { - return &MockHeureka_ListIssues_Call{Call: _e.mock.On("ListIssues", _a0, _a1)} -} - -func (_c *MockHeureka_ListIssues_Call) Run(run func(_a0 *entity.IssueFilter, _a1 *entity.ListOptions)) *MockHeureka_ListIssues_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListIssues_Call) Return(_a0 *entity.List[entity.IssueResult], _a1 error) *MockHeureka_ListIssues_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListIssues_Call) RunAndReturn(run func(*entity.IssueFilter, *entity.ListOptions) (*entity.List[entity.IssueResult], error)) *MockHeureka_ListIssues_Call { - _c.Call.Return(run) - return _c -} - -// ListServices provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListServices(_a0 *entity.ServiceFilter, _a1 *entity.ListOptions) (*entity.List[entity.ServiceResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListServices") - } - - var r0 *entity.List[entity.ServiceResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ServiceFilter, *entity.ListOptions) (*entity.List[entity.ServiceResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.ServiceFilter, *entity.ListOptions) *entity.List[entity.ServiceResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.ServiceResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ServiceFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServices' -type MockHeureka_ListServices_Call struct { - *mock.Call -} - -// ListServices is a helper method to define mock.On call -// - _a0 *entity.ServiceFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListServices(_a0 interface{}, _a1 interface{}) *MockHeureka_ListServices_Call { - return &MockHeureka_ListServices_Call{Call: _e.mock.On("ListServices", _a0, _a1)} -} - -func (_c *MockHeureka_ListServices_Call) Run(run func(_a0 *entity.ServiceFilter, _a1 *entity.ListOptions)) *MockHeureka_ListServices_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ServiceFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListServices_Call) Return(_a0 *entity.List[entity.ServiceResult], _a1 error) *MockHeureka_ListServices_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListServices_Call) RunAndReturn(run func(*entity.ServiceFilter, *entity.ListOptions) (*entity.List[entity.ServiceResult], error)) *MockHeureka_ListServices_Call { - _c.Call.Return(run) - return _c -} - -// ListSupportGroups provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListSupportGroups(_a0 *entity.SupportGroupFilter, _a1 *entity.ListOptions) (*entity.List[entity.SupportGroupResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListSupportGroups") - } - - var r0 *entity.List[entity.SupportGroupResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.SupportGroupFilter, *entity.ListOptions) (*entity.List[entity.SupportGroupResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.SupportGroupFilter, *entity.ListOptions) *entity.List[entity.SupportGroupResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.SupportGroupResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.SupportGroupFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListSupportGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSupportGroups' -type MockHeureka_ListSupportGroups_Call struct { - *mock.Call -} - -// ListSupportGroups is a helper method to define mock.On call -// - _a0 *entity.SupportGroupFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListSupportGroups(_a0 interface{}, _a1 interface{}) *MockHeureka_ListSupportGroups_Call { - return &MockHeureka_ListSupportGroups_Call{Call: _e.mock.On("ListSupportGroups", _a0, _a1)} -} - -func (_c *MockHeureka_ListSupportGroups_Call) Run(run func(_a0 *entity.SupportGroupFilter, _a1 *entity.ListOptions)) *MockHeureka_ListSupportGroups_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.SupportGroupFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListSupportGroups_Call) Return(_a0 *entity.List[entity.SupportGroupResult], _a1 error) *MockHeureka_ListSupportGroups_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListSupportGroups_Call) RunAndReturn(run func(*entity.SupportGroupFilter, *entity.ListOptions) (*entity.List[entity.SupportGroupResult], error)) *MockHeureka_ListSupportGroups_Call { - _c.Call.Return(run) - return _c -} - -// ListUsers provides a mock function with given fields: _a0, _a1 -func (_m *MockHeureka) ListUsers(_a0 *entity.UserFilter, _a1 *entity.ListOptions) (*entity.List[entity.UserResult], error) { - ret := _m.Called(_a0, _a1) - - if len(ret) == 0 { - panic("no return value specified for ListUsers") - } - - var r0 *entity.List[entity.UserResult] - var r1 error - if rf, ok := ret.Get(0).(func(*entity.UserFilter, *entity.ListOptions) (*entity.List[entity.UserResult], error)); ok { - return rf(_a0, _a1) - } - if rf, ok := ret.Get(0).(func(*entity.UserFilter, *entity.ListOptions) *entity.List[entity.UserResult]); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.List[entity.UserResult]) - } - } - - if rf, ok := ret.Get(1).(func(*entity.UserFilter, *entity.ListOptions) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_ListUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUsers' -type MockHeureka_ListUsers_Call struct { - *mock.Call -} - -// ListUsers is a helper method to define mock.On call -// - _a0 *entity.UserFilter -// - _a1 *entity.ListOptions -func (_e *MockHeureka_Expecter) ListUsers(_a0 interface{}, _a1 interface{}) *MockHeureka_ListUsers_Call { - return &MockHeureka_ListUsers_Call{Call: _e.mock.On("ListUsers", _a0, _a1)} -} - -func (_c *MockHeureka_ListUsers_Call) Run(run func(_a0 *entity.UserFilter, _a1 *entity.ListOptions)) *MockHeureka_ListUsers_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.UserFilter), args[1].(*entity.ListOptions)) - }) - return _c -} - -func (_c *MockHeureka_ListUsers_Call) Return(_a0 *entity.List[entity.UserResult], _a1 error) *MockHeureka_ListUsers_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_ListUsers_Call) RunAndReturn(run func(*entity.UserFilter, *entity.ListOptions) (*entity.List[entity.UserResult], error)) *MockHeureka_ListUsers_Call { - _c.Call.Return(run) - return _c -} - -// Shutdown provides a mock function with given fields: -func (_m *MockHeureka) Shutdown() error { - ret := _m.Called() - - if len(ret) == 0 { - panic("no return value specified for Shutdown") - } - - var r0 error - if rf, ok := ret.Get(0).(func() error); ok { - r0 = rf() - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockHeureka_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown' -type MockHeureka_Shutdown_Call struct { - *mock.Call -} - -// Shutdown is a helper method to define mock.On call -func (_e *MockHeureka_Expecter) Shutdown() *MockHeureka_Shutdown_Call { - return &MockHeureka_Shutdown_Call{Call: _e.mock.On("Shutdown")} -} - -func (_c *MockHeureka_Shutdown_Call) Run(run func()) *MockHeureka_Shutdown_Call { - _c.Call.Run(func(args mock.Arguments) { - run() - }) - return _c -} - -func (_c *MockHeureka_Shutdown_Call) Return(_a0 error) *MockHeureka_Shutdown_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockHeureka_Shutdown_Call) RunAndReturn(run func() error) *MockHeureka_Shutdown_Call { - _c.Call.Return(run) - return _c -} - -// UpdateComponent provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateComponent(_a0 *entity.Component) (*entity.Component, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateComponent") - } - - var r0 *entity.Component - var r1 error - if rf, ok := ret.Get(0).(func(*entity.Component) (*entity.Component, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.Component) *entity.Component); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Component) - } - } - - if rf, ok := ret.Get(1).(func(*entity.Component) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateComponent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateComponent' -type MockHeureka_UpdateComponent_Call struct { - *mock.Call -} - -// UpdateComponent is a helper method to define mock.On call -// - _a0 *entity.Component -func (_e *MockHeureka_Expecter) UpdateComponent(_a0 interface{}) *MockHeureka_UpdateComponent_Call { - return &MockHeureka_UpdateComponent_Call{Call: _e.mock.On("UpdateComponent", _a0)} -} - -func (_c *MockHeureka_UpdateComponent_Call) Run(run func(_a0 *entity.Component)) *MockHeureka_UpdateComponent_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Component)) - }) - return _c -} - -func (_c *MockHeureka_UpdateComponent_Call) Return(_a0 *entity.Component, _a1 error) *MockHeureka_UpdateComponent_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateComponent_Call) RunAndReturn(run func(*entity.Component) (*entity.Component, error)) *MockHeureka_UpdateComponent_Call { - _c.Call.Return(run) - return _c -} - -// UpdateComponentInstance provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateComponentInstance(_a0 *entity.ComponentInstance) (*entity.ComponentInstance, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateComponentInstance") - } - - var r0 *entity.ComponentInstance - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentInstance) (*entity.ComponentInstance, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentInstance) *entity.ComponentInstance); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.ComponentInstance) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentInstance) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateComponentInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateComponentInstance' -type MockHeureka_UpdateComponentInstance_Call struct { - *mock.Call -} - -// UpdateComponentInstance is a helper method to define mock.On call -// - _a0 *entity.ComponentInstance -func (_e *MockHeureka_Expecter) UpdateComponentInstance(_a0 interface{}) *MockHeureka_UpdateComponentInstance_Call { - return &MockHeureka_UpdateComponentInstance_Call{Call: _e.mock.On("UpdateComponentInstance", _a0)} -} - -func (_c *MockHeureka_UpdateComponentInstance_Call) Run(run func(_a0 *entity.ComponentInstance)) *MockHeureka_UpdateComponentInstance_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentInstance)) - }) - return _c -} - -func (_c *MockHeureka_UpdateComponentInstance_Call) Return(_a0 *entity.ComponentInstance, _a1 error) *MockHeureka_UpdateComponentInstance_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateComponentInstance_Call) RunAndReturn(run func(*entity.ComponentInstance) (*entity.ComponentInstance, error)) *MockHeureka_UpdateComponentInstance_Call { - _c.Call.Return(run) - return _c -} - -// UpdateComponentVersion provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateComponentVersion(_a0 *entity.ComponentVersion) (*entity.ComponentVersion, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateComponentVersion") - } - - var r0 *entity.ComponentVersion - var r1 error - if rf, ok := ret.Get(0).(func(*entity.ComponentVersion) (*entity.ComponentVersion, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.ComponentVersion) *entity.ComponentVersion); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.ComponentVersion) - } - } - - if rf, ok := ret.Get(1).(func(*entity.ComponentVersion) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateComponentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateComponentVersion' -type MockHeureka_UpdateComponentVersion_Call struct { - *mock.Call -} - -// UpdateComponentVersion is a helper method to define mock.On call -// - _a0 *entity.ComponentVersion -func (_e *MockHeureka_Expecter) UpdateComponentVersion(_a0 interface{}) *MockHeureka_UpdateComponentVersion_Call { - return &MockHeureka_UpdateComponentVersion_Call{Call: _e.mock.On("UpdateComponentVersion", _a0)} -} - -func (_c *MockHeureka_UpdateComponentVersion_Call) Run(run func(_a0 *entity.ComponentVersion)) *MockHeureka_UpdateComponentVersion_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.ComponentVersion)) - }) - return _c -} - -func (_c *MockHeureka_UpdateComponentVersion_Call) Return(_a0 *entity.ComponentVersion, _a1 error) *MockHeureka_UpdateComponentVersion_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateComponentVersion_Call) RunAndReturn(run func(*entity.ComponentVersion) (*entity.ComponentVersion, error)) *MockHeureka_UpdateComponentVersion_Call { - _c.Call.Return(run) - return _c -} - -// UpdateEvidence provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateEvidence(_a0 *entity.Evidence) (*entity.Evidence, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateEvidence") - } - - var r0 *entity.Evidence - var r1 error - if rf, ok := ret.Get(0).(func(*entity.Evidence) (*entity.Evidence, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.Evidence) *entity.Evidence); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Evidence) - } - } - - if rf, ok := ret.Get(1).(func(*entity.Evidence) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateEvidence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEvidence' -type MockHeureka_UpdateEvidence_Call struct { - *mock.Call -} - -// UpdateEvidence is a helper method to define mock.On call -// - _a0 *entity.Evidence -func (_e *MockHeureka_Expecter) UpdateEvidence(_a0 interface{}) *MockHeureka_UpdateEvidence_Call { - return &MockHeureka_UpdateEvidence_Call{Call: _e.mock.On("UpdateEvidence", _a0)} -} - -func (_c *MockHeureka_UpdateEvidence_Call) Run(run func(_a0 *entity.Evidence)) *MockHeureka_UpdateEvidence_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Evidence)) - }) - return _c -} - -func (_c *MockHeureka_UpdateEvidence_Call) Return(_a0 *entity.Evidence, _a1 error) *MockHeureka_UpdateEvidence_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateEvidence_Call) RunAndReturn(run func(*entity.Evidence) (*entity.Evidence, error)) *MockHeureka_UpdateEvidence_Call { - _c.Call.Return(run) - return _c -} - -// UpdateIssueMatch provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateIssueMatch(_a0 *entity.IssueMatch) (*entity.IssueMatch, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateIssueMatch") - } - - var r0 *entity.IssueMatch - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueMatch) (*entity.IssueMatch, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueMatch) *entity.IssueMatch); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.IssueMatch) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueMatch) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateIssueMatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIssueMatch' -type MockHeureka_UpdateIssueMatch_Call struct { - *mock.Call -} - -// UpdateIssueMatch is a helper method to define mock.On call -// - _a0 *entity.IssueMatch -func (_e *MockHeureka_Expecter) UpdateIssueMatch(_a0 interface{}) *MockHeureka_UpdateIssueMatch_Call { - return &MockHeureka_UpdateIssueMatch_Call{Call: _e.mock.On("UpdateIssueMatch", _a0)} -} - -func (_c *MockHeureka_UpdateIssueMatch_Call) Run(run func(_a0 *entity.IssueMatch)) *MockHeureka_UpdateIssueMatch_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueMatch)) - }) - return _c -} - -func (_c *MockHeureka_UpdateIssueMatch_Call) Return(_a0 *entity.IssueMatch, _a1 error) *MockHeureka_UpdateIssueMatch_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateIssueMatch_Call) RunAndReturn(run func(*entity.IssueMatch) (*entity.IssueMatch, error)) *MockHeureka_UpdateIssueMatch_Call { - _c.Call.Return(run) - return _c -} - -// UpdateIssueRepository provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateIssueRepository(_a0 *entity.IssueRepository) (*entity.IssueRepository, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateIssueRepository") - } - - var r0 *entity.IssueRepository - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueRepository) (*entity.IssueRepository, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueRepository) *entity.IssueRepository); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.IssueRepository) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueRepository) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateIssueRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIssueRepository' -type MockHeureka_UpdateIssueRepository_Call struct { - *mock.Call -} - -// UpdateIssueRepository is a helper method to define mock.On call -// - _a0 *entity.IssueRepository -func (_e *MockHeureka_Expecter) UpdateIssueRepository(_a0 interface{}) *MockHeureka_UpdateIssueRepository_Call { - return &MockHeureka_UpdateIssueRepository_Call{Call: _e.mock.On("UpdateIssueRepository", _a0)} -} - -func (_c *MockHeureka_UpdateIssueRepository_Call) Run(run func(_a0 *entity.IssueRepository)) *MockHeureka_UpdateIssueRepository_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueRepository)) - }) - return _c -} - -func (_c *MockHeureka_UpdateIssueRepository_Call) Return(_a0 *entity.IssueRepository, _a1 error) *MockHeureka_UpdateIssueRepository_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateIssueRepository_Call) RunAndReturn(run func(*entity.IssueRepository) (*entity.IssueRepository, error)) *MockHeureka_UpdateIssueRepository_Call { - _c.Call.Return(run) - return _c -} - -// UpdateIssueVariant provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateIssueVariant(_a0 *entity.IssueVariant) (*entity.IssueVariant, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateIssueVariant") - } - - var r0 *entity.IssueVariant - var r1 error - if rf, ok := ret.Get(0).(func(*entity.IssueVariant) (*entity.IssueVariant, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.IssueVariant) *entity.IssueVariant); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.IssueVariant) - } - } - - if rf, ok := ret.Get(1).(func(*entity.IssueVariant) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateIssueVariant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIssueVariant' -type MockHeureka_UpdateIssueVariant_Call struct { - *mock.Call -} - -// UpdateIssueVariant is a helper method to define mock.On call -// - _a0 *entity.IssueVariant -func (_e *MockHeureka_Expecter) UpdateIssueVariant(_a0 interface{}) *MockHeureka_UpdateIssueVariant_Call { - return &MockHeureka_UpdateIssueVariant_Call{Call: _e.mock.On("UpdateIssueVariant", _a0)} -} - -func (_c *MockHeureka_UpdateIssueVariant_Call) Run(run func(_a0 *entity.IssueVariant)) *MockHeureka_UpdateIssueVariant_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.IssueVariant)) - }) - return _c -} - -func (_c *MockHeureka_UpdateIssueVariant_Call) Return(_a0 *entity.IssueVariant, _a1 error) *MockHeureka_UpdateIssueVariant_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateIssueVariant_Call) RunAndReturn(run func(*entity.IssueVariant) (*entity.IssueVariant, error)) *MockHeureka_UpdateIssueVariant_Call { - _c.Call.Return(run) - return _c -} - -// UpdateService provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateService(_a0 *entity.Service) (*entity.Service, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateService") - } - - var r0 *entity.Service - var r1 error - if rf, ok := ret.Get(0).(func(*entity.Service) (*entity.Service, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.Service) *entity.Service); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.Service) - } - } - - if rf, ok := ret.Get(1).(func(*entity.Service) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateService' -type MockHeureka_UpdateService_Call struct { - *mock.Call -} - -// UpdateService is a helper method to define mock.On call -// - _a0 *entity.Service -func (_e *MockHeureka_Expecter) UpdateService(_a0 interface{}) *MockHeureka_UpdateService_Call { - return &MockHeureka_UpdateService_Call{Call: _e.mock.On("UpdateService", _a0)} -} - -func (_c *MockHeureka_UpdateService_Call) Run(run func(_a0 *entity.Service)) *MockHeureka_UpdateService_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.Service)) - }) - return _c -} - -func (_c *MockHeureka_UpdateService_Call) Return(_a0 *entity.Service, _a1 error) *MockHeureka_UpdateService_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateService_Call) RunAndReturn(run func(*entity.Service) (*entity.Service, error)) *MockHeureka_UpdateService_Call { - _c.Call.Return(run) - return _c -} - -// UpdateSupportGroup provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateSupportGroup(_a0 *entity.SupportGroup) (*entity.SupportGroup, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateSupportGroup") - } - - var r0 *entity.SupportGroup - var r1 error - if rf, ok := ret.Get(0).(func(*entity.SupportGroup) (*entity.SupportGroup, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.SupportGroup) *entity.SupportGroup); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.SupportGroup) - } - } - - if rf, ok := ret.Get(1).(func(*entity.SupportGroup) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateSupportGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSupportGroup' -type MockHeureka_UpdateSupportGroup_Call struct { - *mock.Call -} - -// UpdateSupportGroup is a helper method to define mock.On call -// - _a0 *entity.SupportGroup -func (_e *MockHeureka_Expecter) UpdateSupportGroup(_a0 interface{}) *MockHeureka_UpdateSupportGroup_Call { - return &MockHeureka_UpdateSupportGroup_Call{Call: _e.mock.On("UpdateSupportGroup", _a0)} -} - -func (_c *MockHeureka_UpdateSupportGroup_Call) Run(run func(_a0 *entity.SupportGroup)) *MockHeureka_UpdateSupportGroup_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.SupportGroup)) - }) - return _c -} - -func (_c *MockHeureka_UpdateSupportGroup_Call) Return(_a0 *entity.SupportGroup, _a1 error) *MockHeureka_UpdateSupportGroup_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateSupportGroup_Call) RunAndReturn(run func(*entity.SupportGroup) (*entity.SupportGroup, error)) *MockHeureka_UpdateSupportGroup_Call { - _c.Call.Return(run) - return _c -} - -// UpdateUser provides a mock function with given fields: _a0 -func (_m *MockHeureka) UpdateUser(_a0 *entity.User) (*entity.User, error) { - ret := _m.Called(_a0) - - if len(ret) == 0 { - panic("no return value specified for UpdateUser") - } - - var r0 *entity.User - var r1 error - if rf, ok := ret.Get(0).(func(*entity.User) (*entity.User, error)); ok { - return rf(_a0) - } - if rf, ok := ret.Get(0).(func(*entity.User) *entity.User); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*entity.User) - } - } - - if rf, ok := ret.Get(1).(func(*entity.User) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockHeureka_UpdateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUser' -type MockHeureka_UpdateUser_Call struct { - *mock.Call -} - -// UpdateUser is a helper method to define mock.On call -// - _a0 *entity.User -func (_e *MockHeureka_Expecter) UpdateUser(_a0 interface{}) *MockHeureka_UpdateUser_Call { - return &MockHeureka_UpdateUser_Call{Call: _e.mock.On("UpdateUser", _a0)} -} - -func (_c *MockHeureka_UpdateUser_Call) Run(run func(_a0 *entity.User)) *MockHeureka_UpdateUser_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(*entity.User)) - }) - return _c -} - -func (_c *MockHeureka_UpdateUser_Call) Return(_a0 *entity.User, _a1 error) *MockHeureka_UpdateUser_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockHeureka_UpdateUser_Call) RunAndReturn(run func(*entity.User) (*entity.User, error)) *MockHeureka_UpdateUser_Call { - _c.Call.Return(run) - return _c -} - -// NewMockHeureka creates a new instance of MockHeureka. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewMockHeureka(t interface { - mock.TestingT - Cleanup(func()) -}) *MockHeureka { - mock := &MockHeureka{} - mock.Mock.Test(t) - - t.Cleanup(func() { mock.AssertExpectations(t) }) - - return mock -} diff --git a/internal/mocks/.gitkeep b/internal/mocks/.gitkeep new file mode 100644 index 00000000..e69de29b