From ff584108c3d1411fa5e1d14f885c7ae103038ae9 Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Tue, 26 Mar 2024 17:50:45 +0530 Subject: [PATCH 01/11] feat: updates graphql types, and resolvers --- apps/container-registry/Taskfile.yml | 5 +- .../internal/app/adapter-github.go | 12 + .../app/graph/buildcachekey.resolvers.go | 62 - .../internal/app/graph/entity.resolvers.go | 3 +- .../internal/app/graph/generated/generated.go | 7586 +++++++---------- .../internal/app/graph/model/models_gen.go | 32 +- .../internal/app/graph/schema.graphqls | 61 +- .../internal/app/graph/schema.resolvers.go | 210 +- .../struct-to-graphql/buildcachekey.graphqls | 31 - .../struct-to-graphql/common-types.graphqls | 14 +- .../container-registry/internal/domain/api.go | 12 +- .../internal/domain/build-cache.go | 256 +- .../internal/domain/build-run.go | 3 +- .../internal/domain/build.go | 44 +- .../field-constants/generated_constants.go | 4 +- .../internal/domain/github.go | 11 +- go.mod | 3 +- go.sum | 4 + 18 files changed, 3240 insertions(+), 5113 deletions(-) delete mode 100644 apps/container-registry/internal/app/graph/buildcachekey.resolvers.go delete mode 100644 apps/container-registry/internal/app/graph/struct-to-graphql/buildcachekey.graphqls diff --git a/apps/container-registry/Taskfile.yml b/apps/container-registry/Taskfile.yml index d3012d064..5c41f5949 100644 --- a/apps/container-registry/Taskfile.yml +++ b/apps/container-registry/Taskfile.yml @@ -23,19 +23,18 @@ tasks: --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.GithubListRepository --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.GithubSearchRepository --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.GitBranch - --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.BuildRun + --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.BuildRun --struct github.com/kloudlite/api/pkg/types.Pagination --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Credential --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Repository --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Digest --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Build - --struct github.com/kloudlite/api/apps/container-registry/internal/domain/entities.BuildCacheKey --struct github.com/kloudlite/api/pkg/repos.MatchFilter --struct github.com/kloudlite/api/pkg/repos.CursorPagination > ./internal/app/_struct-to-graphql/main.go - |+ pushd ./internal/app/_struct-to-graphql - go run main.go --dev --out-dir ../graph/struct-to-graphql --with-pagination Credential,BuildRun,Repository,Digest,Build,BuildCacheKey + go run main.go --dev --out-dir ../graph/struct-to-graphql --with-pagination Credential,BuildRun,Repository,Digest,Build popd - rm -rf ./internal/app/_struct-to-graphql diff --git a/apps/container-registry/internal/app/adapter-github.go b/apps/container-registry/internal/app/adapter-github.go index 8752d9238..2ec576745 100644 --- a/apps/container-registry/internal/app/adapter-github.go +++ b/apps/container-registry/internal/app/adapter-github.go @@ -253,7 +253,19 @@ func (gh *githubI) SearchRepos(ctx context.Context, accToken *entities.AccessTok if err != nil { return nil, errors.NewEf(err, "could not search repositories") } + + pushFilteredRepos := make([]*github.Repository, 0, len(rsr.Repositories)) + + for i := range rsr.Repositories { + if rsr.Repositories[i].Permissions["push"] { + pushFilteredRepos = append(pushFilteredRepos, rsr.Repositories[i]) + } + } + gh.logger.Warnf("github rate {limit: %d, remaining: %d}", resp.Rate.Limit, resp.Rate.Remaining) + + rsr.Repositories = pushFilteredRepos + return rsr, nil } diff --git a/apps/container-registry/internal/app/graph/buildcachekey.resolvers.go b/apps/container-registry/internal/app/graph/buildcachekey.resolvers.go deleted file mode 100644 index f33bca042..000000000 --- a/apps/container-registry/internal/app/graph/buildcachekey.resolvers.go +++ /dev/null @@ -1,62 +0,0 @@ -package graph - -// 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.39 - -import ( - "context" - "github.com/kloudlite/api/pkg/errors" - "time" - - "github.com/kloudlite/api/apps/container-registry/internal/app/graph/generated" - "github.com/kloudlite/api/apps/container-registry/internal/domain/entities" -) - -// CreationTime is the resolver for the creationTime field. -func (r *buildCacheKeyResolver) CreationTime(ctx context.Context, obj *entities.BuildCacheKey) (string, error) { - if obj == nil { - return "", errors.Newf("buildCacheKey is nil") - } - - return obj.CreationTime.Format(time.RFC3339), nil -} - -// UpdateTime is the resolver for the updateTime field. -func (r *buildCacheKeyResolver) UpdateTime(ctx context.Context, obj *entities.BuildCacheKey) (string, error) { - if obj == nil { - return "", errors.Newf("buildCacheKey is nil") - } - - return obj.UpdateTime.Format(time.RFC3339), nil -} - -// VolumeSizeInGb is the resolver for the volumeSizeInGB field. -func (r *buildCacheKeyResolver) VolumeSizeInGb(ctx context.Context, obj *entities.BuildCacheKey) (float64, error) { - if obj == nil { - return 0, errors.Newf("buildCacheKey is nil") - } - - return float64(obj.VolumeSize), nil -} - -// VolumeSizeInGb is the resolver for the volumeSizeInGB field. -func (r *buildCacheKeyInResolver) VolumeSizeInGb(ctx context.Context, obj *entities.BuildCacheKey, data float64) error { - if obj == nil { - return errors.Newf("buildCacheKey is nil") - } - - obj.VolumeSize = float32(data) - return nil -} - -// BuildCacheKey returns generated.BuildCacheKeyResolver implementation. -func (r *Resolver) BuildCacheKey() generated.BuildCacheKeyResolver { return &buildCacheKeyResolver{r} } - -// BuildCacheKeyIn returns generated.BuildCacheKeyInResolver implementation. -func (r *Resolver) BuildCacheKeyIn() generated.BuildCacheKeyInResolver { - return &buildCacheKeyInResolver{r} -} - -type buildCacheKeyResolver struct{ *Resolver } -type buildCacheKeyInResolver struct{ *Resolver } diff --git a/apps/container-registry/internal/app/graph/entity.resolvers.go b/apps/container-registry/internal/app/graph/entity.resolvers.go index 40ea4999f..8b34d3882 100644 --- a/apps/container-registry/internal/app/graph/entity.resolvers.go +++ b/apps/container-registry/internal/app/graph/entity.resolvers.go @@ -6,8 +6,7 @@ package graph import ( "context" - - "github.com/gofiber/fiber/v2" + fiber "github.com/gofiber/fiber/v2" "github.com/kloudlite/api/apps/container-registry/internal/app/graph/generated" "github.com/kloudlite/api/apps/container-registry/internal/domain/entities" "github.com/kloudlite/api/common" diff --git a/apps/container-registry/internal/app/graph/generated/generated.go b/apps/container-registry/internal/app/graph/generated/generated.go index 4052c6f78..45bf16e1e 100644 --- a/apps/container-registry/internal/app/graph/generated/generated.go +++ b/apps/container-registry/internal/app/graph/generated/generated.go @@ -46,7 +46,6 @@ type Config struct { type ResolverRoot interface { Build() BuildResolver - BuildCacheKey() BuildCacheKeyResolver BuildRun() BuildRunResolver Credential() CredentialResolver Digest() DigestResolver @@ -60,7 +59,6 @@ type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Repository() RepositoryResolver - BuildCacheKeyIn() BuildCacheKeyInResolver BuildIn() BuildInResolver CredentialIn() CredentialInResolver MetadataIn() MetadataInResolver @@ -90,31 +88,6 @@ type ComplexityRoot struct { UpdateTime func(childComplexity int) int } - BuildCacheKey struct { - AccountName func(childComplexity int) int - CreatedBy func(childComplexity int) int - CreationTime func(childComplexity int) int - DisplayName func(childComplexity int) int - Id func(childComplexity int) int - LastUpdatedBy func(childComplexity int) int - MarkedForDeletion func(childComplexity int) int - Name func(childComplexity int) int - RecordVersion func(childComplexity int) int - UpdateTime func(childComplexity int) int - VolumeSizeInGb func(childComplexity int) int - } - - BuildCacheKeyEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - BuildCacheKeyPaginatedRecords struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - BuildEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int @@ -335,11 +308,16 @@ type ComplexityRoot struct { Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec struct { AccountName func(childComplexity int) int BuildOptions func(childComplexity int) int - CacheKeyName func(childComplexity int) int + Caches func(childComplexity int) int Registry func(childComplexity int) int Resource func(childComplexity int) int } + Github__com___kloudlite___operator___apis___distribution___v1__Cache struct { + Name func(childComplexity int) int + Path func(childComplexity int) int + } + Github__com___kloudlite___operator___apis___distribution___v1__Registry struct { Repo func(childComplexity int) int } @@ -450,19 +428,15 @@ type ComplexityRoot struct { } Mutation struct { - CrAddBuild func(childComplexity int, build entities.Build) int - CrAddBuildCacheKey func(childComplexity int, buildCacheKey entities.BuildCacheKey) int - CrCreateCred func(childComplexity int, credential entities.Credential) int - CrCreateRepo func(childComplexity int, repository entities.Repository) int - CrDeleteBuild func(childComplexity int, id repos.ID) int - CrDeleteBuildCacheKey func(childComplexity int, id repos.ID) int - CrDeleteCred func(childComplexity int, username string) int - CrDeleteDigest func(childComplexity int, repoName string, digest string) int - CrDeleteRepo func(childComplexity int, name string) int - CrListBuildsByBuildCacheID func(childComplexity int, buildCacheKeyID repos.ID, pagination *repos.CursorPagination) int - CrTriggerBuild func(childComplexity int, id repos.ID) int - CrUpdateBuild func(childComplexity int, id repos.ID, build entities.Build) int - CrUpdateBuildCacheKey func(childComplexity int, id repos.ID, buildCacheKey entities.BuildCacheKey) int + CrAddBuild func(childComplexity int, build entities.Build) int + CrCreateCred func(childComplexity int, credential entities.Credential) int + CrCreateRepo func(childComplexity int, repository entities.Repository) int + CrDeleteBuild func(childComplexity int, id repos.ID) int + CrDeleteCred func(childComplexity int, username string) int + CrDeleteDigest func(childComplexity int, repoName string, digest string) int + CrDeleteRepo func(childComplexity int, name string) int + CrTriggerBuild func(childComplexity int, id repos.ID) int + CrUpdateBuild func(childComplexity int, id repos.ID, build entities.Build) int } PageInfo struct { @@ -482,8 +456,7 @@ type ComplexityRoot struct { CrGetBuild func(childComplexity int, id repos.ID) int CrGetBuildRun func(childComplexity int, buildID repos.ID, buildRunName string) int CrGetCredToken func(childComplexity int, username string) int - CrListBuildCacheKeys func(childComplexity int, pq *repos.CursorPagination, search *model.SearchBuildCacheKeys) int - CrListBuildRuns func(childComplexity int, buildID repos.ID, search *model.SearchBuildRuns, pq *repos.CursorPagination) int + CrListBuildRuns func(childComplexity int, search *model.SearchBuildRuns, pq *repos.CursorPagination) int CrListBuilds func(childComplexity int, repoName string, search *model.SearchBuilds, pagination *repos.CursorPagination) int CrListCreds func(childComplexity int, search *model.SearchCreds, pagination *repos.CursorPagination) int CrListDigests func(childComplexity int, repoName string, search *model.SearchRepos, pagination *repos.CursorPagination) int @@ -538,12 +511,6 @@ type BuildResolver interface { UpdateTime(ctx context.Context, obj *entities.Build) (string, error) LatestBuildRun(ctx context.Context, obj *entities.Build) (*entities.BuildRun, error) } -type BuildCacheKeyResolver interface { - CreationTime(ctx context.Context, obj *entities.BuildCacheKey) (string, error) - - UpdateTime(ctx context.Context, obj *entities.BuildCacheKey) (string, error) - VolumeSizeInGb(ctx context.Context, obj *entities.BuildCacheKey) (float64, error) -} type BuildRunResolver interface { CreationTime(ctx context.Context, obj *entities.BuildRun) (string, error) @@ -602,10 +569,6 @@ type MutationResolver interface { CrUpdateBuild(ctx context.Context, id repos.ID, build entities.Build) (*entities.Build, error) CrDeleteBuild(ctx context.Context, id repos.ID) (bool, error) CrTriggerBuild(ctx context.Context, id repos.ID) (bool, error) - CrAddBuildCacheKey(ctx context.Context, buildCacheKey entities.BuildCacheKey) (*entities.BuildCacheKey, error) - CrDeleteBuildCacheKey(ctx context.Context, id repos.ID) (bool, error) - CrUpdateBuildCacheKey(ctx context.Context, id repos.ID, buildCacheKey entities.BuildCacheKey) (*entities.BuildCacheKey, error) - CrListBuildsByBuildCacheID(ctx context.Context, buildCacheKeyID repos.ID, pagination *repos.CursorPagination) (*model.BuildPaginatedRecords, error) } type QueryResolver interface { CrListRepos(ctx context.Context, search *model.SearchRepos, pagination *repos.CursorPagination) (*model.RepositoryPaginatedRecords, error) @@ -622,8 +585,7 @@ type QueryResolver interface { CrListGitlabGroups(ctx context.Context, query *string, pagination *types.Pagination) ([]*entities.GitlabGroup, error) CrListGitlabRepositories(ctx context.Context, groupID string, query *string, pagination *types.Pagination) ([]*entities.GitlabProject, error) CrListGitlabBranches(ctx context.Context, repoID string, query *string, pagination *types.Pagination) ([]*entities.GitBranch, error) - CrListBuildCacheKeys(ctx context.Context, pq *repos.CursorPagination, search *model.SearchBuildCacheKeys) (*model.BuildCacheKeyPaginatedRecords, error) - CrListBuildRuns(ctx context.Context, buildID repos.ID, search *model.SearchBuildRuns, pq *repos.CursorPagination) (*model.BuildRunPaginatedRecords, error) + CrListBuildRuns(ctx context.Context, search *model.SearchBuildRuns, pq *repos.CursorPagination) (*model.BuildRunPaginatedRecords, error) CrGetBuildRun(ctx context.Context, buildID repos.ID, buildRunName string) (*entities.BuildRun, error) } type RepositoryResolver interface { @@ -632,9 +594,6 @@ type RepositoryResolver interface { UpdateTime(ctx context.Context, obj *entities.Repository) (string, error) } -type BuildCacheKeyInResolver interface { - VolumeSizeInGb(ctx context.Context, obj *entities.BuildCacheKey, data float64) error -} type BuildInResolver interface { Source(ctx context.Context, obj *entities.Build, data *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSourceIn) error Spec(ctx context.Context, obj *entities.Build, data *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpecIn) error @@ -772,118 +731,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Build.UpdateTime(childComplexity), true - case "BuildCacheKey.accountName": - if e.complexity.BuildCacheKey.AccountName == nil { - break - } - - return e.complexity.BuildCacheKey.AccountName(childComplexity), true - - case "BuildCacheKey.createdBy": - if e.complexity.BuildCacheKey.CreatedBy == nil { - break - } - - return e.complexity.BuildCacheKey.CreatedBy(childComplexity), true - - case "BuildCacheKey.creationTime": - if e.complexity.BuildCacheKey.CreationTime == nil { - break - } - - return e.complexity.BuildCacheKey.CreationTime(childComplexity), true - - case "BuildCacheKey.displayName": - if e.complexity.BuildCacheKey.DisplayName == nil { - break - } - - return e.complexity.BuildCacheKey.DisplayName(childComplexity), true - - case "BuildCacheKey.id": - if e.complexity.BuildCacheKey.Id == nil { - break - } - - return e.complexity.BuildCacheKey.Id(childComplexity), true - - case "BuildCacheKey.lastUpdatedBy": - if e.complexity.BuildCacheKey.LastUpdatedBy == nil { - break - } - - return e.complexity.BuildCacheKey.LastUpdatedBy(childComplexity), true - - case "BuildCacheKey.markedForDeletion": - if e.complexity.BuildCacheKey.MarkedForDeletion == nil { - break - } - - return e.complexity.BuildCacheKey.MarkedForDeletion(childComplexity), true - - case "BuildCacheKey.name": - if e.complexity.BuildCacheKey.Name == nil { - break - } - - return e.complexity.BuildCacheKey.Name(childComplexity), true - - case "BuildCacheKey.recordVersion": - if e.complexity.BuildCacheKey.RecordVersion == nil { - break - } - - return e.complexity.BuildCacheKey.RecordVersion(childComplexity), true - - case "BuildCacheKey.updateTime": - if e.complexity.BuildCacheKey.UpdateTime == nil { - break - } - - return e.complexity.BuildCacheKey.UpdateTime(childComplexity), true - - case "BuildCacheKey.volumeSizeInGB": - if e.complexity.BuildCacheKey.VolumeSizeInGb == nil { - break - } - - return e.complexity.BuildCacheKey.VolumeSizeInGb(childComplexity), true - - case "BuildCacheKeyEdge.cursor": - if e.complexity.BuildCacheKeyEdge.Cursor == nil { - break - } - - return e.complexity.BuildCacheKeyEdge.Cursor(childComplexity), true - - case "BuildCacheKeyEdge.node": - if e.complexity.BuildCacheKeyEdge.Node == nil { - break - } - - return e.complexity.BuildCacheKeyEdge.Node(childComplexity), true - - case "BuildCacheKeyPaginatedRecords.edges": - if e.complexity.BuildCacheKeyPaginatedRecords.Edges == nil { - break - } - - return e.complexity.BuildCacheKeyPaginatedRecords.Edges(childComplexity), true - - case "BuildCacheKeyPaginatedRecords.pageInfo": - if e.complexity.BuildCacheKeyPaginatedRecords.PageInfo == nil { - break - } - - return e.complexity.BuildCacheKeyPaginatedRecords.PageInfo(childComplexity), true - - case "BuildCacheKeyPaginatedRecords.totalCount": - if e.complexity.BuildCacheKeyPaginatedRecords.TotalCount == nil { - break - } - - return e.complexity.BuildCacheKeyPaginatedRecords.TotalCount(childComplexity), true - case "BuildEdge.cursor": if e.complexity.BuildEdge.Cursor == nil { break @@ -1876,12 +1723,12 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.BuildOptions(childComplexity), true - case "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.cacheKeyName": - if e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.CacheKeyName == nil { + case "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.caches": + if e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.Caches == nil { break } - return e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.CacheKeyName(childComplexity), true + return e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.Caches(childComplexity), true case "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.registry": if e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.Registry == nil { @@ -1897,6 +1744,20 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec.Resource(childComplexity), true + case "Github__com___kloudlite___operator___apis___distribution___v1__Cache.name": + if e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__Cache.Name == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__Cache.Name(childComplexity), true + + case "Github__com___kloudlite___operator___apis___distribution___v1__Cache.path": + if e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__Cache.Path == nil { + break + } + + return e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__Cache.Path(childComplexity), true + case "Github__com___kloudlite___operator___apis___distribution___v1__Registry.repo": if e.complexity.Github__com___kloudlite___operator___apis___distribution___v1__Registry.Repo == nil { break @@ -2399,18 +2260,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CrAddBuild(childComplexity, args["build"].(entities.Build)), true - case "Mutation.cr_addBuildCacheKey": - if e.complexity.Mutation.CrAddBuildCacheKey == nil { - break - } - - args, err := ec.field_Mutation_cr_addBuildCacheKey_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CrAddBuildCacheKey(childComplexity, args["buildCacheKey"].(entities.BuildCacheKey)), true - case "Mutation.cr_createCred": if e.complexity.Mutation.CrCreateCred == nil { break @@ -2447,18 +2296,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CrDeleteBuild(childComplexity, args["id"].(repos.ID)), true - case "Mutation.cr_deleteBuildCacheKey": - if e.complexity.Mutation.CrDeleteBuildCacheKey == nil { - break - } - - args, err := ec.field_Mutation_cr_deleteBuildCacheKey_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CrDeleteBuildCacheKey(childComplexity, args["id"].(repos.ID)), true - case "Mutation.cr_deleteCred": if e.complexity.Mutation.CrDeleteCred == nil { break @@ -2495,18 +2332,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CrDeleteRepo(childComplexity, args["name"].(string)), true - case "Mutation.cr_listBuildsByBuildCacheId": - if e.complexity.Mutation.CrListBuildsByBuildCacheID == nil { - break - } - - args, err := ec.field_Mutation_cr_listBuildsByBuildCacheId_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CrListBuildsByBuildCacheID(childComplexity, args["buildCacheKeyId"].(repos.ID), args["pagination"].(*repos.CursorPagination)), true - case "Mutation.cr_triggerBuild": if e.complexity.Mutation.CrTriggerBuild == nil { break @@ -2531,18 +2356,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CrUpdateBuild(childComplexity, args["id"].(repos.ID), args["build"].(entities.Build)), true - case "Mutation.cr_updateBuildCacheKey": - if e.complexity.Mutation.CrUpdateBuildCacheKey == nil { - break - } - - args, err := ec.field_Mutation_cr_updateBuildCacheKey_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CrUpdateBuildCacheKey(childComplexity, args["id"].(repos.ID), args["buildCacheKey"].(entities.BuildCacheKey)), true - case "PageInfo.endCursor": if e.complexity.PageInfo.EndCursor == nil { break @@ -2633,18 +2446,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.CrGetCredToken(childComplexity, args["username"].(string)), true - case "Query.cr_listBuildCacheKeys": - if e.complexity.Query.CrListBuildCacheKeys == nil { - break - } - - args, err := ec.field_Query_cr_listBuildCacheKeys_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.CrListBuildCacheKeys(childComplexity, args["pq"].(*repos.CursorPagination), args["search"].(*model.SearchBuildCacheKeys)), true - case "Query.cr_listBuildRuns": if e.complexity.Query.CrListBuildRuns == nil { break @@ -2655,7 +2456,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return 0, false } - return e.complexity.Query.CrListBuildRuns(childComplexity, args["buildID"].(repos.ID), args["search"].(*model.SearchBuildRuns), args["pq"].(*repos.CursorPagination)), true + return e.complexity.Query.CrListBuildRuns(childComplexity, args["search"].(*model.SearchBuildRuns), args["pq"].(*repos.CursorPagination)), true case "Query.cr_listBuilds": if e.complexity.Query.CrListBuilds == nil { @@ -2921,7 +2722,6 @@ 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.unmarshalInputBuildCacheKeyIn, ec.unmarshalInputBuildIn, ec.unmarshalInputBuildRunIn, ec.unmarshalInputCredentialIn, @@ -2931,6 +2731,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccountIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___distribution___v1__BuildOptionsIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___distribution___v1__BuildRunSpecIn, + ec.unmarshalInputGithub__com___kloudlite___operator___apis___distribution___v1__CacheIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___distribution___v1__RegistryIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___distribution___v1__RepoIn, ec.unmarshalInputGithub__com___kloudlite___operator___apis___distribution___v1__ResourceIn, @@ -2943,7 +2744,6 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputMetadataIn, ec.unmarshalInputPaginationIn, ec.unmarshalInputRepositoryIn, - ec.unmarshalInputSearchBuildCacheKeys, ec.unmarshalInputSearchBuildRuns, ec.unmarshalInputSearchBuilds, ec.unmarshalInputSearchCreds, @@ -3061,11 +2861,8 @@ input SearchBuilds { } input SearchBuildRuns { - text: MatchFilterIn -} - -input SearchBuildCacheKeys { - text: MatchFilterIn + buildId: ID + repoName: MatchFilterIn } type CRCheckNameAvailabilityOutput @shareable { @@ -3075,48 +2872,42 @@ type CRCheckNameAvailabilityOutput @shareable { type Query { cr_listRepos(search: SearchRepos, pagination: CursorPaginationIn): RepositoryPaginatedRecords @isLoggedInAndVerified @hasAccount - cr_listCreds(search:SearchCreds, pagination:CursorPaginationIn) : CredentialPaginatedRecords @isLoggedInAndVerified @hasAccount - cr_listDigests(repoName:String!, search: SearchRepos, pagination:CursorPaginationIn) : DigestPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_listCreds(search: SearchCreds, pagination: CursorPaginationIn): CredentialPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_listDigests(repoName: String!, search: SearchRepos, pagination: CursorPaginationIn): DigestPaginatedRecords @isLoggedInAndVerified @hasAccount - cr_getCredToken(username:String!) : String! @isLoggedInAndVerified @hasAccount + cr_getCredToken(username: String!): String! @isLoggedInAndVerified @hasAccount - cr_checkUserNameAvailability(name:String!) :CRCheckNameAvailabilityOutput! @isLoggedInAndVerified @hasAccount + cr_checkUserNameAvailability(name: String!): CRCheckNameAvailabilityOutput! @isLoggedInAndVerified @hasAccount - cr_getBuild(id:ID!) : Build @isLoggedInAndVerified @hasAccount - cr_listBuilds(repoName:String!, search:SearchBuilds, pagination:CursorPaginationIn) : BuildPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_getBuild(id: ID!): Build @isLoggedInAndVerified @hasAccount + cr_listBuilds(repoName: String!, search: SearchBuilds, pagination: CursorPaginationIn): BuildPaginatedRecords @isLoggedInAndVerified @hasAccount - cr_listGithubInstallations(pagination:PaginationIn) : [GithubInstallation!] @isLoggedInAndVerified - cr_listGithubRepos(installationId:Int!, pagination:PaginationIn): GithubListRepository @isLoggedInAndVerified - cr_searchGithubRepos(organization:String!, search:String!, pagination:PaginationIn): GithubSearchRepository @isLoggedInAndVerified - cr_listGithubBranches(repoUrl:String!, pagination:PaginationIn) : [GitBranch!] @isLoggedInAndVerified + cr_listGithubInstallations(pagination: PaginationIn): [GithubInstallation!] @isLoggedInAndVerified + cr_listGithubRepos(installationId: Int!, pagination: PaginationIn): GithubListRepository @isLoggedInAndVerified + cr_searchGithubRepos(organization: String!, search: String!, pagination: PaginationIn): GithubSearchRepository @isLoggedInAndVerified + cr_listGithubBranches(repoUrl: String!, pagination: PaginationIn): [GitBranch!] @isLoggedInAndVerified - cr_listGitlabGroups(query:String, pagination:PaginationIn) : [GitlabGroup!] @isLoggedInAndVerified - cr_listGitlabRepositories(groupId:String!, query:String, pagination:PaginationIn) : [GitlabProject!] @isLoggedInAndVerified - cr_listGitlabBranches(repoId: String!, query:String, pagination:PaginationIn) : [GitBranch!] @isLoggedInAndVerified - cr_listBuildCacheKeys(pq: CursorPaginationIn, search: SearchBuildCacheKeys) : BuildCacheKeyPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_listGitlabGroups(query: String, pagination: PaginationIn): [GitlabGroup!] @isLoggedInAndVerified + cr_listGitlabRepositories(groupId: String!, query: String, pagination: PaginationIn): [GitlabProject!] @isLoggedInAndVerified + cr_listGitlabBranches(repoId: String!, query: String, pagination: PaginationIn): [GitBranch!] @isLoggedInAndVerified - cr_listBuildRuns(buildID: ID!, search: SearchBuildRuns, pq: CursorPaginationIn): BuildRunPaginatedRecords @isLoggedInAndVerified @hasAccount + # cr_listBuildRuns(buildID: ID!, search: SearchBuildRuns, pq: CursorPaginationIn): BuildRunPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_listBuildRuns(search: SearchBuildRuns, pq: CursorPaginationIn): BuildRunPaginatedRecords @isLoggedInAndVerified @hasAccount cr_getBuildRun(buildID: ID!, buildRunName: String!): BuildRun @isLoggedInAndVerified @hasAccount } type Mutation { - cr_createRepo(repository:RepositoryIn!) : Repository @isLoggedInAndVerified @hasAccount - cr_createCred(credential: CredentialIn!) : Credential @isLoggedInAndVerified @hasAccount - - cr_deleteRepo(name:String!) :Boolean! @isLoggedInAndVerified @hasAccount - cr_deleteCred(username:String!) :Boolean! @isLoggedInAndVerified @hasAccount - cr_deleteDigest(repoName:String!, digest:String!) :Boolean! @isLoggedInAndVerified @hasAccount + cr_createRepo(repository: RepositoryIn!): Repository @isLoggedInAndVerified @hasAccount + cr_createCred(credential: CredentialIn!): Credential @isLoggedInAndVerified @hasAccount - cr_addBuild(build:BuildIn!) : Build @isLoggedInAndVerified @hasAccount - cr_updateBuild(id:ID!, build:BuildIn!) : Build @isLoggedInAndVerified @hasAccount - cr_deleteBuild(id:ID!) : Boolean! @isLoggedInAndVerified @hasAccount - cr_triggerBuild(id:ID!) : Boolean! @isLoggedInAndVerified @hasAccount + cr_deleteRepo(name: String!): Boolean! @isLoggedInAndVerified @hasAccount + cr_deleteCred(username: String!): Boolean! @isLoggedInAndVerified @hasAccount + cr_deleteDigest(repoName: String!, digest: String!): Boolean! @isLoggedInAndVerified @hasAccount - cr_addBuildCacheKey(buildCacheKey:BuildCacheKeyIn!) : BuildCacheKey @isLoggedInAndVerified @hasAccount - cr_deleteBuildCacheKey(id:ID!) : Boolean! @isLoggedInAndVerified @hasAccount - cr_updateBuildCacheKey(id:ID!, buildCacheKey:BuildCacheKeyIn!) : BuildCacheKey @isLoggedInAndVerified @hasAccount - - cr_listBuildsByBuildCacheId(buildCacheKeyId:ID!, pagination:CursorPaginationIn) : BuildPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_addBuild(build: BuildIn!): Build @isLoggedInAndVerified @hasAccount + cr_updateBuild(id: ID!, build: BuildIn!): Build @isLoggedInAndVerified @hasAccount + cr_deleteBuild(id: ID!): Boolean! @isLoggedInAndVerified @hasAccount + cr_triggerBuild(id: ID!): Boolean! @isLoggedInAndVerified @hasAccount } extend type Build @key(fields: "id") { @@ -3158,38 +2949,6 @@ input BuildIn { spec: Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpecIn! } -`, BuiltIn: false}, - {Name: "../struct-to-graphql/buildcachekey.graphqls", Input: `type BuildCacheKey @shareable { - accountName: String! - createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - creationTime: Date! - displayName: String! - id: ID! - lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - markedForDeletion: Boolean - name: String! - recordVersion: Int! - updateTime: Date! - volumeSizeInGB: Float! -} - -type BuildCacheKeyEdge @shareable { - cursor: String! - node: BuildCacheKey! -} - -type BuildCacheKeyPaginatedRecords @shareable { - edges: [BuildCacheKeyEdge!]! - pageInfo: PageInfo! - totalCount: Int! -} - -input BuildCacheKeyIn { - displayName: String! - name: String! - volumeSizeInGB: Float! -} - `, BuiltIn: false}, {Name: "../struct-to-graphql/buildrun.graphqls", Input: `type BuildRun @shareable { accountName: String! @@ -3301,11 +3060,16 @@ type Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions type Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec @shareable { accountName: String! buildOptions: Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions - cacheKeyName: String + caches: [Github__com___kloudlite___operator___apis___distribution___v1__Cache!] registry: Github__com___kloudlite___operator___apis___distribution___v1__Registry! resource: Github__com___kloudlite___operator___apis___distribution___v1__Resource! } +type Github__com___kloudlite___operator___apis___distribution___v1__Cache @shareable { + name: String! + path: String! +} + type Github__com___kloudlite___operator___apis___distribution___v1__Registry @shareable { repo: Github__com___kloudlite___operator___apis___distribution___v1__Repo! } @@ -3406,11 +3170,16 @@ input Github__com___kloudlite___operator___apis___distribution___v1__BuildOption input Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpecIn { buildOptions: Github__com___kloudlite___operator___apis___distribution___v1__BuildOptionsIn - cacheKeyName: String + caches: [Github__com___kloudlite___operator___apis___distribution___v1__CacheIn!] registry: Github__com___kloudlite___operator___apis___distribution___v1__RegistryIn! resource: Github__com___kloudlite___operator___apis___distribution___v1__ResourceIn! } +input Github__com___kloudlite___operator___apis___distribution___v1__CacheIn { + name: String! + path: String! +} + input Github__com___kloudlite___operator___apis___distribution___v1__RegistryIn { repo: Github__com___kloudlite___operator___apis___distribution___v1__RepoIn! } @@ -3845,21 +3614,6 @@ func (ec *executionContext) field_Entity_findBuildByID_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Mutation_cr_addBuildCacheKey_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 entities.BuildCacheKey - if tmp, ok := rawArgs["buildCacheKey"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("buildCacheKey")) - arg0, err = ec.unmarshalNBuildCacheKeyIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildCacheKey(ctx, tmp) - if err != nil { - return nil, err - } - } - args["buildCacheKey"] = arg0 - return args, nil -} - func (ec *executionContext) field_Mutation_cr_addBuild_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -3905,21 +3659,6 @@ func (ec *executionContext) field_Mutation_cr_createRepo_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Mutation_cr_deleteBuildCacheKey_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 repos.ID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - return args, nil -} - func (ec *executionContext) field_Mutation_cr_deleteBuild_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -3989,30 +3728,6 @@ func (ec *executionContext) field_Mutation_cr_deleteRepo_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Mutation_cr_listBuildsByBuildCacheId_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 repos.ID - if tmp, ok := rawArgs["buildCacheKeyId"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("buildCacheKeyId")) - arg0, err = ec.unmarshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["buildCacheKeyId"] = arg0 - var arg1 *repos.CursorPagination - if tmp, ok := rawArgs["pagination"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pagination")) - arg1, err = ec.unmarshalOCursorPaginationIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐCursorPagination(ctx, tmp) - if err != nil { - return nil, err - } - } - args["pagination"] = arg1 - return args, nil -} - func (ec *executionContext) field_Mutation_cr_triggerBuild_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -4028,30 +3743,6 @@ func (ec *executionContext) field_Mutation_cr_triggerBuild_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Mutation_cr_updateBuildCacheKey_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 repos.ID - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["id"] = arg0 - var arg1 entities.BuildCacheKey - if tmp, ok := rawArgs["buildCacheKey"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("buildCacheKey")) - arg1, err = ec.unmarshalNBuildCacheKeyIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildCacheKey(ctx, tmp) - if err != nil { - return nil, err - } - } - args["buildCacheKey"] = arg1 - return args, nil -} - func (ec *executionContext) field_Mutation_cr_updateBuild_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -4175,64 +3866,31 @@ func (ec *executionContext) field_Query_cr_getCredToken_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_cr_listBuildCacheKeys_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_cr_listBuildRuns_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *repos.CursorPagination - if tmp, ok := rawArgs["pq"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pq")) - arg0, err = ec.unmarshalOCursorPaginationIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐCursorPagination(ctx, tmp) + var arg0 *model.SearchBuildRuns + if tmp, ok := rawArgs["search"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) + arg0, err = ec.unmarshalOSearchBuildRuns2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐSearchBuildRuns(ctx, tmp) if err != nil { return nil, err } } - args["pq"] = arg0 - var arg1 *model.SearchBuildCacheKeys - if tmp, ok := rawArgs["search"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - arg1, err = ec.unmarshalOSearchBuildCacheKeys2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐSearchBuildCacheKeys(ctx, tmp) + args["search"] = arg0 + var arg1 *repos.CursorPagination + if tmp, ok := rawArgs["pq"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pq")) + arg1, err = ec.unmarshalOCursorPaginationIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐCursorPagination(ctx, tmp) if err != nil { return nil, err } } - args["search"] = arg1 + args["pq"] = arg1 return args, nil } -func (ec *executionContext) field_Query_cr_listBuildRuns_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 repos.ID - if tmp, ok := rawArgs["buildID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("buildID")) - arg0, err = ec.unmarshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, tmp) - if err != nil { - return nil, err - } - } - args["buildID"] = arg0 - var arg1 *model.SearchBuildRuns - if tmp, ok := rawArgs["search"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("search")) - arg1, err = ec.unmarshalOSearchBuildRuns2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐSearchBuildRuns(ctx, tmp) - if err != nil { - return nil, err - } - } - args["search"] = arg1 - var arg2 *repos.CursorPagination - if tmp, ok := rawArgs["pq"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pq")) - arg2, err = ec.unmarshalOCursorPaginationIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐCursorPagination(ctx, tmp) - if err != nil { - return nil, err - } - } - args["pq"] = arg2 - return args, nil -} - -func (ec *executionContext) field_Query_cr_listBuilds_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Query_cr_listBuilds_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} var arg0 string @@ -5128,8 +4786,8 @@ func (ec *executionContext) fieldContext_Build_spec(ctx context.Context, field g return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_accountName(ctx, field) case "buildOptions": return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx, field) - case "cacheKeyName": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_cacheKeyName(ctx, field) + case "caches": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_caches(ctx, field) case "registry": return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx, field) case "resource": @@ -5332,8 +4990,8 @@ func (ec *executionContext) fieldContext_Build_latestBuildRun(ctx context.Contex return fc, nil } -func (ec *executionContext) _BuildCacheKey_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_accountName(ctx, field) +func (ec *executionContext) _BuildEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.BuildEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -5346,7 +5004,7 @@ func (ec *executionContext) _BuildCacheKey_accountName(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccountName, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -5363,9 +5021,9 @@ func (ec *executionContext) _BuildCacheKey_accountName(ctx context.Context, fiel return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildEdge", Field: field, IsMethod: false, IsResolver: false, @@ -5376,8 +5034,8 @@ func (ec *executionContext) fieldContext_BuildCacheKey_accountName(ctx context.C return fc, nil } -func (ec *executionContext) _BuildCacheKey_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_createdBy(ctx, field) +func (ec *executionContext) _BuildEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.BuildEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -5390,7 +5048,7 @@ func (ec *executionContext) _BuildCacheKey_createdBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -5402,34 +5060,58 @@ func (ec *executionContext) _BuildCacheKey_createdBy(ctx context.Context, field } return graphql.Null } - res := resTmp.(common.CreatedOrUpdatedBy) + res := resTmp.(*entities.Build) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalNBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuild(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "userEmail": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) - case "userId": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) - case "userName": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) + case "buildClusterName": + return ec.fieldContext_Build_buildClusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Build_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Build_creationTime(ctx, field) + case "credUser": + return ec.fieldContext_Build_credUser(ctx, field) + case "errorMessages": + return ec.fieldContext_Build_errorMessages(ctx, field) + case "id": + return ec.fieldContext_Build_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Build_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Build_markedForDeletion(ctx, field) + case "name": + return ec.fieldContext_Build_name(ctx, field) + case "recordVersion": + return ec.fieldContext_Build_recordVersion(ctx, field) + case "source": + return ec.fieldContext_Build_source(ctx, field) + case "spec": + return ec.fieldContext_Build_spec(ctx, field) + case "status": + return ec.fieldContext_Build_status(ctx, field) + case "updateTime": + return ec.fieldContext_Build_updateTime(ctx, field) + case "latestBuildRun": + return ec.fieldContext_Build_latestBuildRun(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Build", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildCacheKey_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_creationTime(ctx, field) +func (ec *executionContext) _BuildPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.BuildPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildPaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -5442,7 +5124,7 @@ func (ec *executionContext) _BuildCacheKey_creationTime(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.BuildCacheKey().CreationTime(rctx, obj) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -5454,26 +5136,32 @@ func (ec *executionContext) _BuildCacheKey_creationTime(ctx context.Context, fie } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*model.BuildEdge) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalNBuildEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_creationTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildPaginatedRecords", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + switch field.Name { + case "cursor": + return ec.fieldContext_BuildEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_BuildEdge_node(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BuildEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildCacheKey_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_displayName(ctx, field) +func (ec *executionContext) _BuildPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.BuildPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildPaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -5486,7 +5174,7 @@ func (ec *executionContext) _BuildCacheKey_displayName(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -5498,26 +5186,36 @@ func (ec *executionContext) _BuildCacheKey_displayName(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.PageInfo) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_displayName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildPaginatedRecords", 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") + switch field.Name { + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildCacheKey_id(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_id(ctx, field) +func (ec *executionContext) _BuildPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.BuildPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildPaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -5530,7 +5228,7 @@ func (ec *executionContext) _BuildCacheKey_id(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Id, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -5542,26 +5240,26 @@ func (ec *executionContext) _BuildCacheKey_id(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(repos.ID) + res := resTmp.(int) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildPaginatedRecords", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildCacheKey_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_lastUpdatedBy(ctx, field) +func (ec *executionContext) _BuildRun_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_accountName(ctx, field) if err != nil { return graphql.Null } @@ -5574,7 +5272,7 @@ func (ec *executionContext) _BuildCacheKey_lastUpdatedBy(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastUpdatedBy, nil + return obj.AccountName, nil }) if err != nil { ec.Error(ctx, err) @@ -5586,34 +5284,26 @@ func (ec *executionContext) _BuildCacheKey_lastUpdatedBy(ctx context.Context, fi } return graphql.Null } - res := resTmp.(common.CreatedOrUpdatedBy) + res := resTmp.(string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_lastUpdatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildRun", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userEmail": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) - case "userId": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) - case "userName": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildCacheKey_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_markedForDeletion(ctx, field) +func (ec *executionContext) _BuildRun_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -5626,7 +5316,7 @@ func (ec *executionContext) _BuildCacheKey_markedForDeletion(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MarkedForDeletion, nil + return obj.APIVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -5635,26 +5325,26 @@ func (ec *executionContext) _BuildCacheKey_markedForDeletion(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_markedForDeletion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_apiVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildRun", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildCacheKey_name(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_name(ctx, field) +func (ec *executionContext) _BuildRun_buildId(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_buildId(ctx, field) if err != nil { return graphql.Null } @@ -5667,7 +5357,7 @@ func (ec *executionContext) _BuildCacheKey_name(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.BuildId, nil }) if err != nil { ec.Error(ctx, err) @@ -5679,26 +5369,26 @@ func (ec *executionContext) _BuildCacheKey_name(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(string) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_buildId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildRun", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildCacheKey_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_recordVersion(ctx, field) +func (ec *executionContext) _BuildRun_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_clusterName(ctx, field) if err != nil { return graphql.Null } @@ -5711,7 +5401,7 @@ func (ec *executionContext) _BuildCacheKey_recordVersion(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RecordVersion, nil + return obj.ClusterName, nil }) if err != nil { ec.Error(ctx, err) @@ -5723,26 +5413,26 @@ func (ec *executionContext) _BuildCacheKey_recordVersion(ctx context.Context, fi } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_clusterName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildRun", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildCacheKey_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_updateTime(ctx, field) +func (ec *executionContext) _BuildRun_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -5755,7 +5445,7 @@ func (ec *executionContext) _BuildCacheKey_updateTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.BuildCacheKey().UpdateTime(rctx, obj) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -5767,26 +5457,34 @@ func (ec *executionContext) _BuildCacheKey_updateTime(ctx context.Context, field } return graphql.Null } - res := resTmp.(string) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_updateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildRun", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + switch field.Name { + case "userEmail": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) + case "userId": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) + case "userName": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildCacheKey_volumeSizeInGB(ctx context.Context, field graphql.CollectedField, obj *entities.BuildCacheKey) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKey_volumeSizeInGB(ctx, field) +func (ec *executionContext) _BuildRun_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -5799,7 +5497,7 @@ func (ec *executionContext) _BuildCacheKey_volumeSizeInGB(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.BuildCacheKey().VolumeSizeInGb(rctx, obj) + return ec.resolvers.BuildRun().CreationTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -5811,26 +5509,26 @@ func (ec *executionContext) _BuildCacheKey_volumeSizeInGB(ctx context.Context, f } return graphql.Null } - res := resTmp.(float64) + res := resTmp.(string) fc.Result = res - return ec.marshalNFloat2float64(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKey_volumeSizeInGB(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_creationTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKey", + Object: "BuildRun", Field: field, IsMethod: true, IsResolver: true, 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildCacheKeyEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.BuildCacheKeyEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKeyEdge_cursor(ctx, field) +func (ec *executionContext) _BuildRun_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_displayName(ctx, field) if err != nil { return graphql.Null } @@ -5843,7 +5541,7 @@ func (ec *executionContext) _BuildCacheKeyEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -5860,9 +5558,9 @@ func (ec *executionContext) _BuildCacheKeyEdge_cursor(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKeyEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_displayName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKeyEdge", + Object: "BuildRun", Field: field, IsMethod: false, IsResolver: false, @@ -5873,8 +5571,8 @@ func (ec *executionContext) fieldContext_BuildCacheKeyEdge_cursor(ctx context.Co return fc, nil } -func (ec *executionContext) _BuildCacheKeyEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.BuildCacheKeyEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKeyEdge_node(ctx, field) +func (ec *executionContext) _BuildRun_id(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_id(ctx, field) if err != nil { return graphql.Null } @@ -5887,7 +5585,7 @@ func (ec *executionContext) _BuildCacheKeyEdge_node(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Id, nil }) if err != nil { ec.Error(ctx, err) @@ -5899,50 +5597,26 @@ func (ec *executionContext) _BuildCacheKeyEdge_node(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*entities.BuildCacheKey) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalNBuildCacheKey2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildCacheKey(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKeyEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKeyEdge", + Object: "BuildRun", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "accountName": - return ec.fieldContext_BuildCacheKey_accountName(ctx, field) - case "createdBy": - return ec.fieldContext_BuildCacheKey_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_BuildCacheKey_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_BuildCacheKey_displayName(ctx, field) - case "id": - return ec.fieldContext_BuildCacheKey_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_BuildCacheKey_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_BuildCacheKey_markedForDeletion(ctx, field) - case "name": - return ec.fieldContext_BuildCacheKey_name(ctx, field) - case "recordVersion": - return ec.fieldContext_BuildCacheKey_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_BuildCacheKey_updateTime(ctx, field) - case "volumeSizeInGB": - return ec.fieldContext_BuildCacheKey_volumeSizeInGB(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type BuildCacheKey", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildCacheKeyPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.BuildCacheKeyPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKeyPaginatedRecords_edges(ctx, field) +func (ec *executionContext) _BuildRun_kind(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_kind(ctx, field) if err != nil { return graphql.Null } @@ -5955,44 +5629,35 @@ func (ec *executionContext) _BuildCacheKeyPaginatedRecords_edges(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + 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.([]*model.BuildCacheKeyEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalNBuildCacheKeyEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildCacheKeyEdgeᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKeyPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKeyPaginatedRecords", + Object: "BuildRun", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_BuildCacheKeyEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_BuildCacheKeyEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type BuildCacheKeyEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildCacheKeyPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.BuildCacheKeyPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKeyPaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _BuildRun_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_lastUpdatedBy(ctx, field) if err != nil { return graphql.Null } @@ -6005,7 +5670,7 @@ func (ec *executionContext) _BuildCacheKeyPaginatedRecords_pageInfo(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.LastUpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -6017,36 +5682,34 @@ func (ec *executionContext) _BuildCacheKeyPaginatedRecords_pageInfo(ctx context. } return graphql.Null } - res := resTmp.(*model.PageInfo) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKeyPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_lastUpdatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKeyPaginatedRecords", + Object: "BuildRun", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "userEmail": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) + case "userId": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) + case "userName": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildCacheKeyPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.BuildCacheKeyPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildCacheKeyPaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _BuildRun_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -6059,38 +5722,35 @@ func (ec *executionContext) _BuildCacheKeyPaginatedRecords_totalCount(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.MarkedForDeletion, 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) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildCacheKeyPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_markedForDeletion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildCacheKeyPaginatedRecords", + Object: "BuildRun", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.BuildEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildEdge_cursor(ctx, field) +func (ec *executionContext) _BuildRun_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_metadata(ctx, field) if err != nil { return graphql.Null } @@ -6103,38 +5763,51 @@ func (ec *executionContext) _BuildEdge_cursor(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.ObjectMeta, 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) + res := resTmp.(v1.ObjectMeta) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_metadata(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildEdge", + Object: "BuildRun", 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") + switch field.Name { + case "annotations": + return ec.fieldContext_Metadata_annotations(ctx, field) + case "creationTimestamp": + return ec.fieldContext_Metadata_creationTimestamp(ctx, field) + case "deletionTimestamp": + return ec.fieldContext_Metadata_deletionTimestamp(ctx, field) + case "generation": + return ec.fieldContext_Metadata_generation(ctx, field) + case "labels": + return ec.fieldContext_Metadata_labels(ctx, field) + case "name": + return ec.fieldContext_Metadata_name(ctx, field) + case "namespace": + return ec.fieldContext_Metadata_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Metadata", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.BuildEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildEdge_node(ctx, field) +func (ec *executionContext) _BuildRun_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -6147,7 +5820,7 @@ func (ec *executionContext) _BuildEdge_node(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.RecordVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -6159,58 +5832,26 @@ func (ec *executionContext) _BuildEdge_node(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(*entities.Build) + res := resTmp.(int) fc.Result = res - return ec.marshalNBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuild(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildEdge", + Object: "BuildRun", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "buildClusterName": - return ec.fieldContext_Build_buildClusterName(ctx, field) - case "createdBy": - return ec.fieldContext_Build_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Build_creationTime(ctx, field) - case "credUser": - return ec.fieldContext_Build_credUser(ctx, field) - case "errorMessages": - return ec.fieldContext_Build_errorMessages(ctx, field) - case "id": - return ec.fieldContext_Build_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Build_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Build_markedForDeletion(ctx, field) - case "name": - return ec.fieldContext_Build_name(ctx, field) - case "recordVersion": - return ec.fieldContext_Build_recordVersion(ctx, field) - case "source": - return ec.fieldContext_Build_source(ctx, field) - case "spec": - return ec.fieldContext_Build_spec(ctx, field) - case "status": - return ec.fieldContext_Build_status(ctx, field) - case "updateTime": - return ec.fieldContext_Build_updateTime(ctx, field) - case "latestBuildRun": - return ec.fieldContext_Build_latestBuildRun(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Build", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.BuildPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildPaginatedRecords_edges(ctx, field) +func (ec *executionContext) _BuildRun_spec(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_spec(ctx, field) if err != nil { return graphql.Null } @@ -6223,44 +5864,47 @@ func (ec *executionContext) _BuildPaginatedRecords_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.BuildRun().Spec(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.BuildEdge) + res := resTmp.(*model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) fc.Result = res - return ec.marshalNBuildEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildEdgeᚄ(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1BuildRunSpec(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_spec(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildPaginatedRecords", + Object: "BuildRun", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "cursor": - return ec.fieldContext_BuildEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_BuildEdge_node(ctx, field) + case "accountName": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_accountName(ctx, field) + case "buildOptions": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx, field) + case "caches": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_caches(ctx, field) + case "registry": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx, field) + case "resource": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_resource(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type BuildEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.BuildPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildPaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _BuildRun_status(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_status(ctx, field) if err != nil { return graphql.Null } @@ -6273,48 +5917,51 @@ func (ec *executionContext) _BuildPaginatedRecords_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.BuildRun().Status(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.PageInfo) + res := resTmp.(*model.GithubComKloudliteOperatorPkgOperatorStatus) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__Status2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildPaginatedRecords", + Object: "BuildRun", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "checkList": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(ctx, field) + case "checks": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(ctx, field) + case "isReady": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(ctx, field) + case "lastReadyGeneration": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(ctx, field) + case "lastReconcileTime": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(ctx, field) + case "message": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(ctx, field) + case "resources": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___pkg___operator__Status", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.BuildPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildPaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _BuildRun_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_syncStatus(ctx, field) if err != nil { return graphql.Null } @@ -6327,7 +5974,7 @@ func (ec *executionContext) _BuildPaginatedRecords_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.BuildRun().SyncStatus(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -6339,26 +5986,40 @@ func (ec *executionContext) _BuildPaginatedRecords_totalCount(ctx context.Contex } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*model.GithubComKloudliteAPIPkgTypesSyncStatus) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIPkgTypesSyncStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_syncStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildPaginatedRecords", + Object: "BuildRun", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "action": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_action(ctx, field) + case "error": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_error(ctx, field) + case "lastSyncedAt": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_lastSyncedAt(ctx, field) + case "recordVersion": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_recordVersion(ctx, field) + case "state": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_state(ctx, field) + case "syncScheduledAt": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_syncScheduledAt(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___pkg___types__SyncStatus", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildRun_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_accountName(ctx, field) +func (ec *executionContext) _BuildRun_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRun_updateTime(ctx, field) if err != nil { return graphql.Null } @@ -6371,7 +6032,7 @@ func (ec *executionContext) _BuildRun_accountName(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccountName, nil + return ec.resolvers.BuildRun().UpdateTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -6385,24 +6046,24 @@ func (ec *executionContext) _BuildRun_accountName(ctx context.Context, field gra } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRun_updateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "BuildRun", Field: field, - IsMethod: false, - IsResolver: false, + 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") + return nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildRun_apiVersion(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_apiVersion(ctx, field) +func (ec *executionContext) _BuildRunEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRunEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -6415,23 +6076,26 @@ func (ec *executionContext) _BuildRun_apiVersion(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.APIVersion, nil + return obj.Cursor, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_apiVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRunEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "BuildRunEdge", Field: field, IsMethod: false, IsResolver: false, @@ -6442,8 +6106,8 @@ func (ec *executionContext) fieldContext_BuildRun_apiVersion(ctx context.Context return fc, nil } -func (ec *executionContext) _BuildRun_buildId(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_buildId(ctx, field) +func (ec *executionContext) _BuildRunEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRunEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -6456,7 +6120,7 @@ func (ec *executionContext) _BuildRun_buildId(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BuildId, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -6468,26 +6132,62 @@ func (ec *executionContext) _BuildRun_buildId(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(repos.ID) + res := resTmp.(*entities.BuildRun) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalNBuildRun2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildRun(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_buildId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRunEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "BuildRunEdge", 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") + switch field.Name { + case "accountName": + return ec.fieldContext_BuildRun_accountName(ctx, field) + case "apiVersion": + return ec.fieldContext_BuildRun_apiVersion(ctx, field) + case "buildId": + return ec.fieldContext_BuildRun_buildId(ctx, field) + case "clusterName": + return ec.fieldContext_BuildRun_clusterName(ctx, field) + case "createdBy": + return ec.fieldContext_BuildRun_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_BuildRun_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_BuildRun_displayName(ctx, field) + case "id": + return ec.fieldContext_BuildRun_id(ctx, field) + case "kind": + return ec.fieldContext_BuildRun_kind(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_BuildRun_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_BuildRun_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_BuildRun_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_BuildRun_recordVersion(ctx, field) + case "spec": + return ec.fieldContext_BuildRun_spec(ctx, field) + case "status": + return ec.fieldContext_BuildRun_status(ctx, field) + case "syncStatus": + return ec.fieldContext_BuildRun_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_BuildRun_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BuildRun", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildRun_clusterName(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_clusterName(ctx, field) +func (ec *executionContext) _BuildRunPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRunPaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -6500,7 +6200,7 @@ func (ec *executionContext) _BuildRun_clusterName(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClusterName, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -6512,26 +6212,32 @@ func (ec *executionContext) _BuildRun_clusterName(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*model.BuildRunEdge) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBuildRunEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildRunEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_clusterName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRunPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "BuildRunPaginatedRecords", 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") + switch field.Name { + case "cursor": + return ec.fieldContext_BuildRunEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_BuildRunEdge_node(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BuildRunEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildRun_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_createdBy(ctx, field) +func (ec *executionContext) _BuildRunPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRunPaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -6544,7 +6250,7 @@ func (ec *executionContext) _BuildRun_createdBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -6556,34 +6262,36 @@ func (ec *executionContext) _BuildRun_createdBy(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(common.CreatedOrUpdatedBy) + res := resTmp.(*model.PageInfo) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRunPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "BuildRunPaginatedRecords", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "userEmail": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) - case "userId": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) - case "userName": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildRun_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_creationTime(ctx, field) +func (ec *executionContext) _BuildRunPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BuildRunPaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -6596,7 +6304,7 @@ func (ec *executionContext) _BuildRun_creationTime(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.BuildRun().CreationTime(rctx, obj) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -6608,26 +6316,26 @@ func (ec *executionContext) _BuildRun_creationTime(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_creationTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_BuildRunPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "BuildRunPaginatedRecords", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildRun_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_displayName(ctx, field) +func (ec *executionContext) _CRCheckNameAvailabilityOutput_result(ctx context.Context, field graphql.CollectedField, obj *domain.CheckNameAvailabilityOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CRCheckNameAvailabilityOutput_result(ctx, field) if err != nil { return graphql.Null } @@ -6640,7 +6348,7 @@ func (ec *executionContext) _BuildRun_displayName(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.Result, nil }) if err != nil { ec.Error(ctx, err) @@ -6652,14 +6360,55 @@ func (ec *executionContext) _BuildRun_displayName(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_displayName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CRCheckNameAvailabilityOutput_result(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "CRCheckNameAvailabilityOutput", + 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) _CRCheckNameAvailabilityOutput_suggestedNames(ctx context.Context, field graphql.CollectedField, obj *domain.CheckNameAvailabilityOutput) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CRCheckNameAvailabilityOutput_suggestedNames(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.SuggestedNames, 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_CRCheckNameAvailabilityOutput_suggestedNames(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CRCheckNameAvailabilityOutput", Field: field, IsMethod: false, IsResolver: false, @@ -6670,8 +6419,8 @@ func (ec *executionContext) fieldContext_BuildRun_displayName(ctx context.Contex return fc, nil } -func (ec *executionContext) _BuildRun_id(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_id(ctx, field) +func (ec *executionContext) _Credential_access(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_access(ctx, field) if err != nil { return graphql.Null } @@ -6684,7 +6433,7 @@ func (ec *executionContext) _BuildRun_id(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Id, nil + return ec.resolvers.Credential().Access(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -6696,26 +6445,26 @@ func (ec *executionContext) _BuildRun_id(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(repos.ID) + res := resTmp.(model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesRepoAccess) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__RepoAccess2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesRepoAccess(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_access(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, 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 nil, errors.New("field of type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__RepoAccess does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildRun_kind(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_kind(ctx, field) +func (ec *executionContext) _Credential_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_accountName(ctx, field) if err != nil { return graphql.Null } @@ -6728,23 +6477,26 @@ func (ec *executionContext) _BuildRun_kind(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + return obj.AccountName, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", Field: field, IsMethod: false, IsResolver: false, @@ -6755,8 +6507,8 @@ func (ec *executionContext) fieldContext_BuildRun_kind(ctx context.Context, fiel return fc, nil } -func (ec *executionContext) _BuildRun_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_lastUpdatedBy(ctx, field) +func (ec *executionContext) _Credential_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -6769,7 +6521,7 @@ func (ec *executionContext) _BuildRun_lastUpdatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastUpdatedBy, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -6786,9 +6538,9 @@ func (ec *executionContext) _BuildRun_lastUpdatedBy(ctx context.Context, field g return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_lastUpdatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", Field: field, IsMethod: false, IsResolver: false, @@ -6807,8 +6559,8 @@ func (ec *executionContext) fieldContext_BuildRun_lastUpdatedBy(ctx context.Cont return fc, nil } -func (ec *executionContext) _BuildRun_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_markedForDeletion(ctx, field) +func (ec *executionContext) _Credential_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -6821,35 +6573,38 @@ func (ec *executionContext) _BuildRun_markedForDeletion(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MarkedForDeletion, nil + return ec.resolvers.Credential().CreationTime(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.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_markedForDeletion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_creationTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildRun_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_metadata(ctx, field) +func (ec *executionContext) _Credential_expiration(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_expiration(ctx, field) if err != nil { return graphql.Null } @@ -6862,51 +6617,44 @@ func (ec *executionContext) _BuildRun_metadata(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ObjectMeta, nil + return ec.resolvers.Credential().Expiration(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.(v1.ObjectMeta) + res := resTmp.(*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpiration) fc.Result = res - return ec.marshalOMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpiration(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_metadata(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_expiration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "annotations": - return ec.fieldContext_Metadata_annotations(ctx, field) - case "creationTimestamp": - return ec.fieldContext_Metadata_creationTimestamp(ctx, field) - case "deletionTimestamp": - return ec.fieldContext_Metadata_deletionTimestamp(ctx, field) - case "generation": - return ec.fieldContext_Metadata_generation(ctx, field) - case "labels": - return ec.fieldContext_Metadata_labels(ctx, field) - case "name": - return ec.fieldContext_Metadata_name(ctx, field) - case "namespace": - return ec.fieldContext_Metadata_namespace(ctx, field) + case "unit": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_unit(ctx, field) + case "value": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Metadata", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildRun_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_recordVersion(ctx, field) +func (ec *executionContext) _Credential_id(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_id(ctx, field) if err != nil { return graphql.Null } @@ -6919,7 +6667,7 @@ func (ec *executionContext) _BuildRun_recordVersion(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RecordVersion, nil + return obj.Id, nil }) if err != nil { ec.Error(ctx, err) @@ -6931,26 +6679,26 @@ func (ec *executionContext) _BuildRun_recordVersion(ctx context.Context, field g } return graphql.Null } - res := resTmp.(int) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildRun_spec(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_spec(ctx, field) +func (ec *executionContext) _Credential_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_lastUpdatedBy(ctx, field) if err != nil { return graphql.Null } @@ -6963,47 +6711,46 @@ func (ec *executionContext) _BuildRun_spec(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.BuildRun().Spec(rctx, obj) + return obj.LastUpdatedBy, 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.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) + res := resTmp.(common.CreatedOrUpdatedBy) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1BuildRunSpec(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_spec(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_lastUpdatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "accountName": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_accountName(ctx, field) - case "buildOptions": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx, field) - case "cacheKeyName": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_cacheKeyName(ctx, field) - case "registry": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx, field) - case "resource": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_resource(ctx, field) + case "userEmail": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) + case "userId": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) + case "userName": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildRun_status(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_status(ctx, field) +func (ec *executionContext) _Credential_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -7016,7 +6763,7 @@ func (ec *executionContext) _BuildRun_status(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.BuildRun().Status(rctx, obj) + return obj.MarkedForDeletion, nil }) if err != nil { ec.Error(ctx, err) @@ -7025,42 +6772,26 @@ func (ec *executionContext) _BuildRun_status(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorPkgOperatorStatus) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__Status2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorStatus(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_markedForDeletion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "checkList": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(ctx, field) - case "checks": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(ctx, field) - case "isReady": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(ctx, field) - case "lastReadyGeneration": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(ctx, field) - case "lastReconcileTime": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(ctx, field) - case "message": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(ctx, field) - case "resources": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___pkg___operator__Status", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildRun_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_syncStatus(ctx, field) +func (ec *executionContext) _Credential_name(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_name(ctx, field) if err != nil { return graphql.Null } @@ -7073,7 +6804,7 @@ func (ec *executionContext) _BuildRun_syncStatus(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.BuildRun().SyncStatus(rctx, obj) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -7085,40 +6816,26 @@ func (ec *executionContext) _BuildRun_syncStatus(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*model.GithubComKloudliteAPIPkgTypesSyncStatus) + res := resTmp.(string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIPkgTypesSyncStatus(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_syncStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "action": - return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_action(ctx, field) - case "error": - return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_error(ctx, field) - case "lastSyncedAt": - return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_lastSyncedAt(ctx, field) - case "recordVersion": - return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_recordVersion(ctx, field) - case "state": - return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_state(ctx, field) - case "syncScheduledAt": - return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_syncScheduledAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___pkg___types__SyncStatus", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _BuildRun_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.BuildRun) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRun_updateTime(ctx, field) +func (ec *executionContext) _Credential_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -7131,7 +6848,51 @@ func (ec *executionContext) _BuildRun_updateTime(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.BuildRun().UpdateTime(rctx, obj) + return obj.RecordVersion, 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_Credential_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Credential", + 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) _Credential_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_updateTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.Credential().UpdateTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -7148,9 +6909,9 @@ func (ec *executionContext) _BuildRun_updateTime(ctx context.Context, field grap return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRun_updateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_updateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRun", + Object: "Credential", Field: field, IsMethod: true, IsResolver: true, @@ -7161,8 +6922,8 @@ func (ec *executionContext) fieldContext_BuildRun_updateTime(ctx context.Context return fc, nil } -func (ec *executionContext) _BuildRunEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRunEdge_cursor(ctx, field) +func (ec *executionContext) _Credential_username(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Credential_username(ctx, field) if err != nil { return graphql.Null } @@ -7175,7 +6936,7 @@ func (ec *executionContext) _BuildRunEdge_cursor(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.UserName, nil }) if err != nil { ec.Error(ctx, err) @@ -7192,9 +6953,9 @@ func (ec *executionContext) _BuildRunEdge_cursor(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRunEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Credential_username(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRunEdge", + Object: "Credential", Field: field, IsMethod: false, IsResolver: false, @@ -7205,8 +6966,8 @@ func (ec *executionContext) fieldContext_BuildRunEdge_cursor(ctx context.Context return fc, nil } -func (ec *executionContext) _BuildRunEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRunEdge_node(ctx, field) +func (ec *executionContext) _CredentialEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.CredentialEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CredentialEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -7219,7 +6980,7 @@ func (ec *executionContext) _BuildRunEdge_node(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -7231,62 +6992,96 @@ func (ec *executionContext) _BuildRunEdge_node(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*entities.BuildRun) + res := resTmp.(string) fc.Result = res - return ec.marshalNBuildRun2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildRun(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRunEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CredentialEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRunEdge", + Object: "CredentialEdge", + 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) _CredentialEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.CredentialEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CredentialEdge_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.(*entities.Credential) + fc.Result = res + return ec.marshalNCredential2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐCredential(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_CredentialEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CredentialEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "access": + return ec.fieldContext_Credential_access(ctx, field) case "accountName": - return ec.fieldContext_BuildRun_accountName(ctx, field) - case "apiVersion": - return ec.fieldContext_BuildRun_apiVersion(ctx, field) - case "buildId": - return ec.fieldContext_BuildRun_buildId(ctx, field) - case "clusterName": - return ec.fieldContext_BuildRun_clusterName(ctx, field) + return ec.fieldContext_Credential_accountName(ctx, field) case "createdBy": - return ec.fieldContext_BuildRun_createdBy(ctx, field) + return ec.fieldContext_Credential_createdBy(ctx, field) case "creationTime": - return ec.fieldContext_BuildRun_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_BuildRun_displayName(ctx, field) + return ec.fieldContext_Credential_creationTime(ctx, field) + case "expiration": + return ec.fieldContext_Credential_expiration(ctx, field) case "id": - return ec.fieldContext_BuildRun_id(ctx, field) - case "kind": - return ec.fieldContext_BuildRun_kind(ctx, field) + return ec.fieldContext_Credential_id(ctx, field) case "lastUpdatedBy": - return ec.fieldContext_BuildRun_lastUpdatedBy(ctx, field) + return ec.fieldContext_Credential_lastUpdatedBy(ctx, field) case "markedForDeletion": - return ec.fieldContext_BuildRun_markedForDeletion(ctx, field) - case "metadata": - return ec.fieldContext_BuildRun_metadata(ctx, field) + return ec.fieldContext_Credential_markedForDeletion(ctx, field) + case "name": + return ec.fieldContext_Credential_name(ctx, field) case "recordVersion": - return ec.fieldContext_BuildRun_recordVersion(ctx, field) - case "spec": - return ec.fieldContext_BuildRun_spec(ctx, field) - case "status": - return ec.fieldContext_BuildRun_status(ctx, field) - case "syncStatus": - return ec.fieldContext_BuildRun_syncStatus(ctx, field) + return ec.fieldContext_Credential_recordVersion(ctx, field) case "updateTime": - return ec.fieldContext_BuildRun_updateTime(ctx, field) + return ec.fieldContext_Credential_updateTime(ctx, field) + case "username": + return ec.fieldContext_Credential_username(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type BuildRun", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Credential", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildRunPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRunPaginatedRecords_edges(ctx, field) +func (ec *executionContext) _CredentialPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.CredentialPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CredentialPaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -7311,32 +7106,32 @@ func (ec *executionContext) _BuildRunPaginatedRecords_edges(ctx context.Context, } return graphql.Null } - res := resTmp.([]*model.BuildRunEdge) + res := resTmp.([]*model.CredentialEdge) fc.Result = res - return ec.marshalNBuildRunEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildRunEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNCredentialEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐCredentialEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRunPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CredentialPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRunPaginatedRecords", + Object: "CredentialPaginatedRecords", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "cursor": - return ec.fieldContext_BuildRunEdge_cursor(ctx, field) + return ec.fieldContext_CredentialEdge_cursor(ctx, field) case "node": - return ec.fieldContext_BuildRunEdge_node(ctx, field) + return ec.fieldContext_CredentialEdge_node(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type BuildRunEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type CredentialEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _BuildRunPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRunPaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _CredentialPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.CredentialPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CredentialPaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -7366,9 +7161,9 @@ func (ec *executionContext) _BuildRunPaginatedRecords_pageInfo(ctx context.Conte return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRunPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CredentialPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRunPaginatedRecords", + Object: "CredentialPaginatedRecords", Field: field, IsMethod: false, IsResolver: false, @@ -7389,8 +7184,8 @@ func (ec *executionContext) fieldContext_BuildRunPaginatedRecords_pageInfo(ctx c return fc, nil } -func (ec *executionContext) _BuildRunPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.BuildRunPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_BuildRunPaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _CredentialPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.CredentialPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CredentialPaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -7420,9 +7215,9 @@ func (ec *executionContext) _BuildRunPaginatedRecords_totalCount(ctx context.Con return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_BuildRunPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CredentialPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "BuildRunPaginatedRecords", + Object: "CredentialPaginatedRecords", Field: field, IsMethod: false, IsResolver: false, @@ -7433,8 +7228,8 @@ func (ec *executionContext) fieldContext_BuildRunPaginatedRecords_totalCount(ctx return fc, nil } -func (ec *executionContext) _CRCheckNameAvailabilityOutput_result(ctx context.Context, field graphql.CollectedField, obj *domain.CheckNameAvailabilityOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CRCheckNameAvailabilityOutput_result(ctx, field) +func (ec *executionContext) _CursorPagination_after(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CursorPagination_after(ctx, field) if err != nil { return graphql.Null } @@ -7447,38 +7242,35 @@ func (ec *executionContext) _CRCheckNameAvailabilityOutput_result(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Result, nil + return obj.After, 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CRCheckNameAvailabilityOutput_result(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CursorPagination_after(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CRCheckNameAvailabilityOutput", + Object: "CursorPagination", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _CRCheckNameAvailabilityOutput_suggestedNames(ctx context.Context, field graphql.CollectedField, obj *domain.CheckNameAvailabilityOutput) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CRCheckNameAvailabilityOutput_suggestedNames(ctx, field) +func (ec *executionContext) _CursorPagination_before(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CursorPagination_before(ctx, field) if err != nil { return graphql.Null } @@ -7491,7 +7283,7 @@ func (ec *executionContext) _CRCheckNameAvailabilityOutput_suggestedNames(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SuggestedNames, nil + return obj.Before, nil }) if err != nil { ec.Error(ctx, err) @@ -7500,14 +7292,14 @@ func (ec *executionContext) _CRCheckNameAvailabilityOutput_suggestedNames(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CRCheckNameAvailabilityOutput_suggestedNames(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CursorPagination_before(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CRCheckNameAvailabilityOutput", + Object: "CursorPagination", Field: field, IsMethod: false, IsResolver: false, @@ -7518,8 +7310,8 @@ func (ec *executionContext) fieldContext_CRCheckNameAvailabilityOutput_suggested return fc, nil } -func (ec *executionContext) _Credential_access(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_access(ctx, field) +func (ec *executionContext) _CursorPagination_first(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CursorPagination_first(ctx, field) if err != nil { return graphql.Null } @@ -7532,38 +7324,35 @@ func (ec *executionContext) _Credential_access(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Credential().Access(rctx, obj) + return obj.First, 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.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesRepoAccess) + res := resTmp.(*int64) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__RepoAccess2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesRepoAccess(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_access(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CursorPagination_first(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "CursorPagination", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__RepoAccess does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Credential_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_accountName(ctx, field) +func (ec *executionContext) _CursorPagination_last(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CursorPagination_last(ctx, field) if err != nil { return graphql.Null } @@ -7576,38 +7365,35 @@ func (ec *executionContext) _Credential_accountName(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccountName, nil + return obj.Last, 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) + res := resTmp.(*int64) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CursorPagination_last(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "CursorPagination", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Credential_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_createdBy(ctx, field) +func (ec *executionContext) _CursorPagination_orderBy(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CursorPagination_orderBy(ctx, field) if err != nil { return graphql.Null } @@ -7620,46 +7406,35 @@ func (ec *executionContext) _Credential_createdBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.OrderBy, 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.(common.CreatedOrUpdatedBy) + res := resTmp.(string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CursorPagination_orderBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "CursorPagination", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userEmail": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) - case "userId": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) - case "userName": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Credential_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_creationTime(ctx, field) +func (ec *executionContext) _CursorPagination_sortDirection(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_CursorPagination_sortDirection(ctx, field) if err != nil { return graphql.Null } @@ -7672,38 +7447,35 @@ func (ec *executionContext) _Credential_creationTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Credential().CreationTime(rctx, obj) + return obj.SortDirection, 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) + res := resTmp.(repos.SortDirection) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalOCursorPaginationSortDirection2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐSortDirection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_creationTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CursorPagination_sortDirection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "CursorPagination", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type CursorPaginationSortDirection does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Credential_expiration(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_expiration(ctx, field) +func (ec *executionContext) _Digest_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_accountName(ctx, field) if err != nil { return graphql.Null } @@ -7716,7 +7488,7 @@ func (ec *executionContext) _Credential_expiration(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Credential().Expiration(rctx, obj) + return obj.AccountName, nil }) if err != nil { ec.Error(ctx, err) @@ -7728,32 +7500,26 @@ func (ec *executionContext) _Credential_expiration(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpiration) + res := resTmp.(string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpiration(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_expiration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "Digest", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "unit": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_unit(ctx, field) - case "value": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Credential_id(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_id(ctx, field) +func (ec *executionContext) _Digest_actor(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_actor(ctx, field) if err != nil { return graphql.Null } @@ -7766,7 +7532,7 @@ func (ec *executionContext) _Credential_id(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Id, nil + return obj.Actor, nil }) if err != nil { ec.Error(ctx, err) @@ -7778,26 +7544,26 @@ func (ec *executionContext) _Credential_id(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.(repos.ID) + res := resTmp.(string) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "Digest", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Credential_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_lastUpdatedBy(ctx, field) +func (ec *executionContext) _Digest_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_creationTime(ctx, field) if err != nil { return graphql.Null } @@ -7810,7 +7576,7 @@ func (ec *executionContext) _Credential_lastUpdatedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastUpdatedBy, nil + return ec.resolvers.Digest().CreationTime(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -7822,34 +7588,26 @@ func (ec *executionContext) _Credential_lastUpdatedBy(ctx context.Context, field } return graphql.Null } - res := resTmp.(common.CreatedOrUpdatedBy) + res := resTmp.(string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_lastUpdatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_creationTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "Digest", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userEmail": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) - case "userId": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) - case "userName": - return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) + return nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Credential_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_markedForDeletion(ctx, field) +func (ec *executionContext) _Digest_deleting(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_deleting(ctx, field) if err != nil { return graphql.Null } @@ -7862,23 +7620,26 @@ func (ec *executionContext) _Credential_markedForDeletion(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MarkedForDeletion, nil + return obj.Deleting, 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) + res := resTmp.(bool) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_markedForDeletion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_deleting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "Digest", Field: field, IsMethod: false, IsResolver: false, @@ -7889,8 +7650,8 @@ func (ec *executionContext) fieldContext_Credential_markedForDeletion(ctx contex return fc, nil } -func (ec *executionContext) _Credential_name(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_name(ctx, field) +func (ec *executionContext) _Digest_digest(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_digest(ctx, field) if err != nil { return graphql.Null } @@ -7903,7 +7664,7 @@ func (ec *executionContext) _Credential_name(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Digest, nil }) if err != nil { ec.Error(ctx, err) @@ -7920,9 +7681,9 @@ func (ec *executionContext) _Credential_name(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "Digest", Field: field, IsMethod: false, IsResolver: false, @@ -7933,8 +7694,8 @@ func (ec *executionContext) fieldContext_Credential_name(ctx context.Context, fi return fc, nil } -func (ec *executionContext) _Credential_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_recordVersion(ctx, field) +func (ec *executionContext) _Digest_id(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_id(ctx, field) if err != nil { return graphql.Null } @@ -7947,7 +7708,7 @@ func (ec *executionContext) _Credential_recordVersion(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RecordVersion, nil + return obj.Id, nil }) if err != nil { ec.Error(ctx, err) @@ -7959,26 +7720,26 @@ func (ec *executionContext) _Credential_recordVersion(ctx context.Context, field } return graphql.Null } - res := resTmp.(int) + res := resTmp.(repos.ID) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "Digest", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Credential_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_updateTime(ctx, field) +func (ec *executionContext) _Digest_length(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_length(ctx, field) if err != nil { return graphql.Null } @@ -7991,7 +7752,7 @@ func (ec *executionContext) _Credential_updateTime(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Credential().UpdateTime(rctx, obj) + return obj.Length, nil }) if err != nil { ec.Error(ctx, err) @@ -8003,26 +7764,26 @@ func (ec *executionContext) _Credential_updateTime(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_updateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_length(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "Digest", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Credential_username(ctx context.Context, field graphql.CollectedField, obj *entities.Credential) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Credential_username(ctx, field) +func (ec *executionContext) _Digest_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_markedForDeletion(ctx, field) if err != nil { return graphql.Null } @@ -8035,38 +7796,35 @@ func (ec *executionContext) _Credential_username(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserName, nil + return obj.MarkedForDeletion, 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) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Credential_username(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_markedForDeletion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Credential", + Object: "Digest", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _CredentialEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.CredentialEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CredentialEdge_cursor(ctx, field) +func (ec *executionContext) _Digest_mediaType(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_mediaType(ctx, field) if err != nil { return graphql.Null } @@ -8079,7 +7837,7 @@ func (ec *executionContext) _CredentialEdge_cursor(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.MediaType, nil }) if err != nil { ec.Error(ctx, err) @@ -8096,9 +7854,9 @@ func (ec *executionContext) _CredentialEdge_cursor(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CredentialEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_mediaType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CredentialEdge", + Object: "Digest", Field: field, IsMethod: false, IsResolver: false, @@ -8109,8 +7867,8 @@ func (ec *executionContext) fieldContext_CredentialEdge_cursor(ctx context.Conte return fc, nil } -func (ec *executionContext) _CredentialEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.CredentialEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CredentialEdge_node(ctx, field) +func (ec *executionContext) _Digest_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -8123,7 +7881,7 @@ func (ec *executionContext) _CredentialEdge_node(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.RecordVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -8135,52 +7893,26 @@ func (ec *executionContext) _CredentialEdge_node(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*entities.Credential) + res := resTmp.(int) fc.Result = res - return ec.marshalNCredential2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐCredential(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CredentialEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CredentialEdge", + Object: "Digest", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "access": - return ec.fieldContext_Credential_access(ctx, field) - case "accountName": - return ec.fieldContext_Credential_accountName(ctx, field) - case "createdBy": - return ec.fieldContext_Credential_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Credential_creationTime(ctx, field) - case "expiration": - return ec.fieldContext_Credential_expiration(ctx, field) - case "id": - return ec.fieldContext_Credential_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Credential_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Credential_markedForDeletion(ctx, field) - case "name": - return ec.fieldContext_Credential_name(ctx, field) - case "recordVersion": - return ec.fieldContext_Credential_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_Credential_updateTime(ctx, field) - case "username": - return ec.fieldContext_Credential_username(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Credential", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _CredentialPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.CredentialPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CredentialPaginatedRecords_edges(ctx, field) +func (ec *executionContext) _Digest_repository(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_repository(ctx, field) if err != nil { return graphql.Null } @@ -8193,7 +7925,7 @@ func (ec *executionContext) _CredentialPaginatedRecords_edges(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Repository, nil }) if err != nil { ec.Error(ctx, err) @@ -8205,32 +7937,26 @@ func (ec *executionContext) _CredentialPaginatedRecords_edges(ctx context.Contex } return graphql.Null } - res := resTmp.([]*model.CredentialEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalNCredentialEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐCredentialEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CredentialPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_repository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CredentialPaginatedRecords", + Object: "Digest", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_CredentialEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_CredentialEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CredentialEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _CredentialPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.CredentialPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CredentialPaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _Digest_size(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_size(ctx, field) if err != nil { return graphql.Null } @@ -8243,7 +7969,7 @@ func (ec *executionContext) _CredentialPaginatedRecords_pageInfo(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Size, nil }) if err != nil { ec.Error(ctx, err) @@ -8255,36 +7981,26 @@ func (ec *executionContext) _CredentialPaginatedRecords_pageInfo(ctx context.Con } return graphql.Null } - res := resTmp.(*model.PageInfo) + res := resTmp.(int) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CredentialPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CredentialPaginatedRecords", + Object: "Digest", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _CredentialPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.CredentialPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CredentialPaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _Digest_tags(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_tags(ctx, field) if err != nil { return graphql.Null } @@ -8297,7 +8013,7 @@ func (ec *executionContext) _CredentialPaginatedRecords_totalCount(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -8309,26 +8025,26 @@ func (ec *executionContext) _CredentialPaginatedRecords_totalCount(ctx context.C } return graphql.Null } - res := resTmp.(int) + res := resTmp.([]string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CredentialPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CredentialPaginatedRecords", + Object: "Digest", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _CursorPagination_after(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CursorPagination_after(ctx, field) +func (ec *executionContext) _Digest_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_updateTime(ctx, field) if err != nil { return graphql.Null } @@ -8341,35 +8057,38 @@ func (ec *executionContext) _CursorPagination_after(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.After, nil + return ec.resolvers.Digest().UpdateTime(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.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CursorPagination_after(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_updateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CursorPagination", + Object: "Digest", Field: field, - IsMethod: false, - IsResolver: false, + 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") + return nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _CursorPagination_before(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CursorPagination_before(ctx, field) +func (ec *executionContext) _Digest_url(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Digest_url(ctx, field) if err != nil { return graphql.Null } @@ -8382,23 +8101,26 @@ func (ec *executionContext) _CursorPagination_before(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Before, nil + return obj.URL, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CursorPagination_before(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Digest_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CursorPagination", + Object: "Digest", Field: field, IsMethod: false, IsResolver: false, @@ -8409,8 +8131,8 @@ func (ec *executionContext) fieldContext_CursorPagination_before(ctx context.Con return fc, nil } -func (ec *executionContext) _CursorPagination_first(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CursorPagination_first(ctx, field) +func (ec *executionContext) _DigestEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.DigestEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DigestEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -8423,35 +8145,38 @@ func (ec *executionContext) _CursorPagination_first(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.First, nil + return obj.Cursor, 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.(*int64) + res := resTmp.(string) fc.Result = res - return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CursorPagination_first(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DigestEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CursorPagination", + Object: "DigestEdge", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _CursorPagination_last(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CursorPagination_last(ctx, field) +func (ec *executionContext) _DigestEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.DigestEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DigestEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -8464,35 +8189,70 @@ func (ec *executionContext) _CursorPagination_last(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Last, nil + 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.(*int64) + res := resTmp.(*entities.Digest) fc.Result = res - return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) + return ec.marshalNDigest2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐDigest(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CursorPagination_last(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DigestEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CursorPagination", + Object: "DigestEdge", 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") + switch field.Name { + case "accountName": + return ec.fieldContext_Digest_accountName(ctx, field) + case "actor": + return ec.fieldContext_Digest_actor(ctx, field) + case "creationTime": + return ec.fieldContext_Digest_creationTime(ctx, field) + case "deleting": + return ec.fieldContext_Digest_deleting(ctx, field) + case "digest": + return ec.fieldContext_Digest_digest(ctx, field) + case "id": + return ec.fieldContext_Digest_id(ctx, field) + case "length": + return ec.fieldContext_Digest_length(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Digest_markedForDeletion(ctx, field) + case "mediaType": + return ec.fieldContext_Digest_mediaType(ctx, field) + case "recordVersion": + return ec.fieldContext_Digest_recordVersion(ctx, field) + case "repository": + return ec.fieldContext_Digest_repository(ctx, field) + case "size": + return ec.fieldContext_Digest_size(ctx, field) + case "tags": + return ec.fieldContext_Digest_tags(ctx, field) + case "updateTime": + return ec.fieldContext_Digest_updateTime(ctx, field) + case "url": + return ec.fieldContext_Digest_url(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Digest", field.Name) }, } return fc, nil } -func (ec *executionContext) _CursorPagination_orderBy(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CursorPagination_orderBy(ctx, field) +func (ec *executionContext) _DigestPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.DigestPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DigestPaginatedRecords_edges(ctx, field) if err != nil { return graphql.Null } @@ -8505,35 +8265,44 @@ func (ec *executionContext) _CursorPagination_orderBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrderBy, nil + 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.(string) + res := resTmp.([]*model.DigestEdge) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNDigestEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐDigestEdgeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CursorPagination_orderBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DigestPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CursorPagination", + Object: "DigestPaginatedRecords", 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") + switch field.Name { + case "cursor": + return ec.fieldContext_DigestEdge_cursor(ctx, field) + case "node": + return ec.fieldContext_DigestEdge_node(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DigestEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _CursorPagination_sortDirection(ctx context.Context, field graphql.CollectedField, obj *repos.CursorPagination) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_CursorPagination_sortDirection(ctx, field) +func (ec *executionContext) _DigestPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.DigestPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DigestPaginatedRecords_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -8546,35 +8315,48 @@ func (ec *executionContext) _CursorPagination_sortDirection(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SortDirection, nil + return obj.PageInfo, 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.(repos.SortDirection) + res := resTmp.(*model.PageInfo) fc.Result = res - return ec.marshalOCursorPaginationSortDirection2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐSortDirection(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_CursorPagination_sortDirection(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DigestPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CursorPagination", + Object: "DigestPaginatedRecords", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorPaginationSortDirection does not have child fields") + switch field.Name { + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Digest_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_accountName(ctx, field) +func (ec *executionContext) _DigestPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.DigestPaginatedRecords) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DigestPaginatedRecords_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -8587,7 +8369,7 @@ func (ec *executionContext) _Digest_accountName(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccountName, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -8599,26 +8381,26 @@ func (ec *executionContext) _Digest_accountName(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DigestPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "DigestPaginatedRecords", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Digest_actor(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_actor(ctx, field) +func (ec *executionContext) _Entity_findBuildByID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_findBuildByID(ctx, field) if err != nil { return graphql.Null } @@ -8631,7 +8413,7 @@ func (ec *executionContext) _Digest_actor(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Actor, nil + return ec.resolvers.Entity().FindBuildByID(rctx, fc.Args["id"].(repos.ID)) }) if err != nil { ec.Error(ctx, err) @@ -8643,26 +8425,69 @@ func (ec *executionContext) _Digest_actor(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*entities.Build) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuild(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_actor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_findBuildByID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "Entity", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "buildClusterName": + return ec.fieldContext_Build_buildClusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Build_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Build_creationTime(ctx, field) + case "credUser": + return ec.fieldContext_Build_credUser(ctx, field) + case "errorMessages": + return ec.fieldContext_Build_errorMessages(ctx, field) + case "id": + return ec.fieldContext_Build_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Build_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Build_markedForDeletion(ctx, field) + case "name": + return ec.fieldContext_Build_name(ctx, field) + case "recordVersion": + return ec.fieldContext_Build_recordVersion(ctx, field) + case "source": + return ec.fieldContext_Build_source(ctx, field) + case "spec": + return ec.fieldContext_Build_spec(ctx, field) + case "status": + return ec.fieldContext_Build_status(ctx, field) + case "updateTime": + return ec.fieldContext_Build_updateTime(ctx, field) + case "latestBuildRun": + return ec.fieldContext_Build_latestBuildRun(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Build", 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_Entity_findBuildByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Digest_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_creationTime(ctx, field) +func (ec *executionContext) _GitBranch_name(ctx context.Context, field graphql.CollectedField, obj *entities.GitBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitBranch_name(ctx, field) if err != nil { return graphql.Null } @@ -8675,38 +8500,35 @@ func (ec *executionContext) _Digest_creationTime(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Digest().CreationTime(rctx, obj) + 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.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_creationTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitBranch_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GitBranch", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Digest_deleting(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_deleting(ctx, field) +func (ec *executionContext) _GitBranch_protected(ctx context.Context, field graphql.CollectedField, obj *entities.GitBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitBranch_protected(ctx, field) if err != nil { return graphql.Null } @@ -8719,26 +8541,23 @@ func (ec *executionContext) _Digest_deleting(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Deleting, nil + return obj.Protected, 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) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_deleting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitBranch_protected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GitBranch", Field: field, IsMethod: false, IsResolver: false, @@ -8749,8 +8568,8 @@ func (ec *executionContext) fieldContext_Digest_deleting(ctx context.Context, fi return fc, nil } -func (ec *executionContext) _Digest_digest(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_digest(ctx, field) +func (ec *executionContext) _GithubBranch_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubBranch_name(ctx, field) if err != nil { return graphql.Null } @@ -8763,26 +8582,23 @@ func (ec *executionContext) _Digest_digest(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Digest, nil + 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_digest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubBranch_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubBranch", Field: field, IsMethod: false, IsResolver: false, @@ -8793,8 +8609,8 @@ func (ec *executionContext) fieldContext_Digest_digest(ctx context.Context, fiel return fc, nil } -func (ec *executionContext) _Digest_id(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_id(ctx, field) +func (ec *executionContext) _GithubBranch_protected(ctx context.Context, field graphql.CollectedField, obj *model.GithubBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubBranch_protected(ctx, field) if err != nil { return graphql.Null } @@ -8807,38 +8623,35 @@ func (ec *executionContext) _Digest_id(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Id, nil + return obj.Protected, 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.(repos.ID) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubBranch_protected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubBranch", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Digest_length(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_length(ctx, field) +func (ec *executionContext) _GithubInstallation_account(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubInstallation_account(ctx, field) if err != nil { return graphql.Null } @@ -8851,38 +8664,47 @@ func (ec *executionContext) _Digest_length(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Length, nil + return ec.resolvers.GithubInstallation().Account(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.(int) + res := resTmp.(*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_length(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubInstallation_account(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubInstallation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "avatarUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_avatarUrl(ctx, field) + case "id": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_id(ctx, field) + case "login": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_login(ctx, field) + case "nodeId": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_nodeId(ctx, field) + case "type": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_type(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", field.Name) }, } return fc, nil } -func (ec *executionContext) _Digest_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_markedForDeletion(ctx, field) +func (ec *executionContext) _GithubInstallation_appId(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubInstallation_appId(ctx, field) if err != nil { return graphql.Null } @@ -8895,7 +8717,7 @@ func (ec *executionContext) _Digest_markedForDeletion(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MarkedForDeletion, nil + return obj.AppID, nil }) if err != nil { ec.Error(ctx, err) @@ -8904,26 +8726,26 @@ func (ec *executionContext) _Digest_markedForDeletion(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*int64) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_markedForDeletion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubInstallation_appId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubInstallation", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Digest_mediaType(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_mediaType(ctx, field) +func (ec *executionContext) _GithubInstallation_id(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubInstallation_id(ctx, field) if err != nil { return graphql.Null } @@ -8936,38 +8758,35 @@ func (ec *executionContext) _Digest_mediaType(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MediaType, nil + 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) + res := resTmp.(*int64) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_mediaType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubInstallation_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubInstallation", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Digest_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_recordVersion(ctx, field) +func (ec *executionContext) _GithubInstallation_nodeId(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubInstallation_nodeId(ctx, field) if err != nil { return graphql.Null } @@ -8980,38 +8799,35 @@ func (ec *executionContext) _Digest_recordVersion(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RecordVersion, nil + return obj.NodeID, 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubInstallation_nodeId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubInstallation", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Digest_repository(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_repository(ctx, field) +func (ec *executionContext) _GithubInstallation_repositoriesUrl(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubInstallation_repositoriesUrl(ctx, field) if err != nil { return graphql.Null } @@ -9024,26 +8840,23 @@ func (ec *executionContext) _Digest_repository(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Repository, nil + return obj.RepositoriesURL, 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_repository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubInstallation_repositoriesUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubInstallation", Field: field, IsMethod: false, IsResolver: false, @@ -9054,8 +8867,8 @@ func (ec *executionContext) fieldContext_Digest_repository(ctx context.Context, return fc, nil } -func (ec *executionContext) _Digest_size(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_size(ctx, field) +func (ec *executionContext) _GithubInstallation_targetId(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubInstallation_targetId(ctx, field) if err != nil { return graphql.Null } @@ -9068,26 +8881,23 @@ func (ec *executionContext) _Digest_size(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Size, nil + return obj.TargetID, 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) + res := resTmp.(*int64) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubInstallation_targetId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubInstallation", Field: field, IsMethod: false, IsResolver: false, @@ -9098,8 +8908,8 @@ func (ec *executionContext) fieldContext_Digest_size(ctx context.Context, field return fc, nil } -func (ec *executionContext) _Digest_tags(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_tags(ctx, field) +func (ec *executionContext) _GithubInstallation_targetType(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubInstallation_targetType(ctx, field) if err != nil { return graphql.Null } @@ -9112,26 +8922,23 @@ func (ec *executionContext) _Digest_tags(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.TargetType, 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubInstallation_targetType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubInstallation", Field: field, IsMethod: false, IsResolver: false, @@ -9142,8 +8949,8 @@ func (ec *executionContext) fieldContext_Digest_tags(ctx context.Context, field return fc, nil } -func (ec *executionContext) _Digest_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_updateTime(ctx, field) +func (ec *executionContext) _GithubListRepository_repositories(ctx context.Context, field graphql.CollectedField, obj *entities.GithubListRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubListRepository_repositories(ctx, field) if err != nil { return graphql.Null } @@ -9156,7 +8963,7 @@ func (ec *executionContext) _Digest_updateTime(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Digest().UpdateTime(rctx, obj) + return ec.resolvers.GithubListRepository().Repositories(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -9168,70 +8975,76 @@ func (ec *executionContext) _Digest_updateTime(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Digest_updateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubListRepository_repositories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Digest", + Object: "GithubListRepository", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Digest_url(ctx context.Context, field graphql.CollectedField, obj *entities.Digest) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Digest_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 { - 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_Digest_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Digest", - 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") + switch field.Name { + case "archived": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx, field) + case "cloneUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx, field) + case "createdAt": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx, field) + case "defaultBranch": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx, field) + case "description": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx, field) + case "disabled": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx, field) + case "fullName": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx, field) + case "gitignoreTemplate": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx, field) + case "gitUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx, field) + case "htmlUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx, field) + case "id": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx, field) + case "language": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx, field) + case "masterBranch": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx, field) + case "mirrorUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx, field) + case "name": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx, field) + case "node_id": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx, field) + case "permissions": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx, field) + case "private": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx, field) + case "pushedAt": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx, field) + case "size": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx, field) + case "team_id": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx, field) + case "updatedAt": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx, field) + case "url": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx, field) + case "visibility": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", field.Name) }, } return fc, nil } -func (ec *executionContext) _DigestEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.DigestEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DigestEdge_cursor(ctx, field) +func (ec *executionContext) _GithubListRepository_totalCount(ctx context.Context, field graphql.CollectedField, obj *entities.GithubListRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubListRepository_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -9244,38 +9057,35 @@ func (ec *executionContext) _DigestEdge_cursor(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + 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.(string) + res := resTmp.(*int) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DigestEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubListRepository_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DigestEdge", + Object: "GithubListRepository", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DigestEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.DigestEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DigestEdge_node(ctx, field) +func (ec *executionContext) _GithubSearchRepository_incompleteResults(ctx context.Context, field graphql.CollectedField, obj *entities.GithubSearchRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubSearchRepository_incompleteResults(ctx, field) if err != nil { return graphql.Null } @@ -9288,70 +9098,35 @@ func (ec *executionContext) _DigestEdge_node(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.IncompleteResults, 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.(*entities.Digest) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNDigest2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐDigest(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DigestEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubSearchRepository_incompleteResults(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DigestEdge", + Object: "GithubSearchRepository", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "accountName": - return ec.fieldContext_Digest_accountName(ctx, field) - case "actor": - return ec.fieldContext_Digest_actor(ctx, field) - case "creationTime": - return ec.fieldContext_Digest_creationTime(ctx, field) - case "deleting": - return ec.fieldContext_Digest_deleting(ctx, field) - case "digest": - return ec.fieldContext_Digest_digest(ctx, field) - case "id": - return ec.fieldContext_Digest_id(ctx, field) - case "length": - return ec.fieldContext_Digest_length(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Digest_markedForDeletion(ctx, field) - case "mediaType": - return ec.fieldContext_Digest_mediaType(ctx, field) - case "recordVersion": - return ec.fieldContext_Digest_recordVersion(ctx, field) - case "repository": - return ec.fieldContext_Digest_repository(ctx, field) - case "size": - return ec.fieldContext_Digest_size(ctx, field) - case "tags": - return ec.fieldContext_Digest_tags(ctx, field) - case "updateTime": - return ec.fieldContext_Digest_updateTime(ctx, field) - case "url": - return ec.fieldContext_Digest_url(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Digest", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DigestPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField, obj *model.DigestPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DigestPaginatedRecords_edges(ctx, field) +func (ec *executionContext) _GithubSearchRepository_repositories(ctx context.Context, field graphql.CollectedField, obj *entities.GithubSearchRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubSearchRepository_repositories(ctx, field) if err != nil { return graphql.Null } @@ -9364,7 +9139,7 @@ func (ec *executionContext) _DigestPaginatedRecords_edges(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.GithubSearchRepository().Repositories(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -9376,32 +9151,76 @@ func (ec *executionContext) _DigestPaginatedRecords_edges(ctx context.Context, f } return graphql.Null } - res := resTmp.([]*model.DigestEdge) + res := resTmp.([]*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) fc.Result = res - return ec.marshalNDigestEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐDigestEdgeᚄ(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DigestPaginatedRecords_edges(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubSearchRepository_repositories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DigestPaginatedRecords", + Object: "GithubSearchRepository", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "cursor": - return ec.fieldContext_DigestEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DigestEdge_node(ctx, field) + case "archived": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx, field) + case "cloneUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx, field) + case "createdAt": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx, field) + case "defaultBranch": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx, field) + case "description": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx, field) + case "disabled": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx, field) + case "fullName": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx, field) + case "gitignoreTemplate": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx, field) + case "gitUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx, field) + case "htmlUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx, field) + case "id": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx, field) + case "language": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx, field) + case "masterBranch": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx, field) + case "mirrorUrl": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx, field) + case "name": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx, field) + case "node_id": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx, field) + case "permissions": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx, field) + case "private": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx, field) + case "pushedAt": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx, field) + case "size": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx, field) + case "team_id": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx, field) + case "updatedAt": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx, field) + case "url": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx, field) + case "visibility": + return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DigestEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", field.Name) }, } return fc, nil } -func (ec *executionContext) _DigestPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.DigestPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DigestPaginatedRecords_pageInfo(ctx, field) +func (ec *executionContext) _GithubSearchRepository_total(ctx context.Context, field graphql.CollectedField, obj *entities.GithubSearchRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GithubSearchRepository_total(ctx, field) if err != nil { return graphql.Null } @@ -9414,48 +9233,35 @@ func (ec *executionContext) _DigestPaginatedRecords_pageInfo(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Total, 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.PageInfo) + res := resTmp.(*int) fc.Result = res - return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DigestPaginatedRecords_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GithubSearchRepository_total(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DigestPaginatedRecords", + Object: "GithubSearchRepository", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DigestPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.DigestPaginatedRecords) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DigestPaginatedRecords_totalCount(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_unit(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpiration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_unit(ctx, field) if err != nil { return graphql.Null } @@ -9468,7 +9274,7 @@ func (ec *executionContext) _DigestPaginatedRecords_totalCount(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Unit, nil }) if err != nil { ec.Error(ctx, err) @@ -9480,26 +9286,26 @@ func (ec *executionContext) _DigestPaginatedRecords_totalCount(ctx context.Conte } return graphql.Null } - res := resTmp.(int) + res := resTmp.(model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpirationUnit) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__ExpirationUnit2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpirationUnit(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DigestPaginatedRecords_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_unit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DigestPaginatedRecords", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration", 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 nil, errors.New("field of type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__ExpirationUnit does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_findBuildByID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_findBuildByID(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_value(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpiration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_value(ctx, field) if err != nil { return graphql.Null } @@ -9512,7 +9318,7 @@ func (ec *executionContext) _Entity_findBuildByID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Entity().FindBuildByID(rctx, fc.Args["id"].(repos.ID)) + return obj.Value, nil }) if err != nil { ec.Error(ctx, err) @@ -9524,69 +9330,26 @@ func (ec *executionContext) _Entity_findBuildByID(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(*entities.Build) + res := resTmp.(int) fc.Result = res - return ec.marshalNBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuild(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_findBuildByID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "buildClusterName": - return ec.fieldContext_Build_buildClusterName(ctx, field) - case "createdBy": - return ec.fieldContext_Build_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Build_creationTime(ctx, field) - case "credUser": - return ec.fieldContext_Build_credUser(ctx, field) - case "errorMessages": - return ec.fieldContext_Build_errorMessages(ctx, field) - case "id": - return ec.fieldContext_Build_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Build_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Build_markedForDeletion(ctx, field) - case "name": - return ec.fieldContext_Build_name(ctx, field) - case "recordVersion": - return ec.fieldContext_Build_recordVersion(ctx, field) - case "source": - return ec.fieldContext_Build_source(ctx, field) - case "spec": - return ec.fieldContext_Build_spec(ctx, field) - case "status": - return ec.fieldContext_Build_status(ctx, field) - case "updateTime": - return ec.fieldContext_Build_updateTime(ctx, field) - case "latestBuildRun": - return ec.fieldContext_Build_latestBuildRun(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Build", field.Name) + return nil, errors.New("field of type Int 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_Entity_findBuildByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _GitBranch_name(ctx context.Context, field graphql.CollectedField, obj *entities.GitBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitBranch_name(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_branch(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_branch(ctx, field) if err != nil { return graphql.Null } @@ -9599,23 +9362,26 @@ func (ec *executionContext) _GitBranch_name(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Branch, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitBranch_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_branch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitBranch", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource", Field: field, IsMethod: false, IsResolver: false, @@ -9626,8 +9392,8 @@ func (ec *executionContext) fieldContext_GitBranch_name(ctx context.Context, fie return fc, nil } -func (ec *executionContext) _GitBranch_protected(ctx context.Context, field graphql.CollectedField, obj *entities.GitBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitBranch_protected(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_provider(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_provider(ctx, field) if err != nil { return graphql.Null } @@ -9640,35 +9406,38 @@ func (ec *executionContext) _GitBranch_protected(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Protected, nil + return obj.Provider, 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) + res := resTmp.(model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitProvider) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitProvider2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitProvider(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitBranch_protected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_provider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitBranch", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource", 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 nil, errors.New("field of type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitProvider does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubBranch_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubBranch_name(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_repository(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_repository(ctx, field) if err != nil { return graphql.Null } @@ -9681,23 +9450,26 @@ func (ec *executionContext) _GithubBranch_name(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Repository, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubBranch_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_repository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubBranch", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource", Field: field, IsMethod: false, IsResolver: false, @@ -9708,8 +9480,8 @@ func (ec *executionContext) fieldContext_GithubBranch_name(ctx context.Context, return fc, nil } -func (ec *executionContext) _GithubBranch_protected(ctx context.Context, field graphql.CollectedField, obj *model.GithubBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubBranch_protected(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_webhookId(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_webhookId(ctx, field) if err != nil { return graphql.Null } @@ -9722,7 +9494,7 @@ func (ec *executionContext) _GithubBranch_protected(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Protected, nil + return obj.WebhookID, nil }) if err != nil { ec.Error(ctx, err) @@ -9731,26 +9503,26 @@ func (ec *executionContext) _GithubBranch_protected(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*int) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubBranch_protected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_webhookId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubBranch", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubInstallation_account(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubInstallation_account(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx, field) if err != nil { return graphql.Null } @@ -9763,7 +9535,7 @@ func (ec *executionContext) _GithubInstallation_account(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.GithubInstallation().Account(rctx, obj) + return obj.Archived, nil }) if err != nil { ec.Error(ctx, err) @@ -9772,38 +9544,26 @@ func (ec *executionContext) _GithubInstallation_account(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubInstallation_account(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubInstallation", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "avatarUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_avatarUrl(ctx, field) - case "id": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_id(ctx, field) - case "login": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_login(ctx, field) - case "nodeId": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_nodeId(ctx, field) - case "type": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_type(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubInstallation_appId(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubInstallation_appId(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx, field) if err != nil { return graphql.Null } @@ -9816,7 +9576,7 @@ func (ec *executionContext) _GithubInstallation_appId(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AppID, nil + return obj.CloneURL, nil }) if err != nil { ec.Error(ctx, err) @@ -9825,26 +9585,26 @@ func (ec *executionContext) _GithubInstallation_appId(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*int64) + res := resTmp.(*string) fc.Result = res - return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubInstallation_appId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubInstallation", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubInstallation_id(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubInstallation_id(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -9857,7 +9617,7 @@ func (ec *executionContext) _GithubInstallation_id(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -9866,26 +9626,26 @@ func (ec *executionContext) _GithubInstallation_id(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*int64) + res := resTmp.(*string) fc.Result = res - return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubInstallation_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubInstallation", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubInstallation_nodeId(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubInstallation_nodeId(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx, field) if err != nil { return graphql.Null } @@ -9898,7 +9658,7 @@ func (ec *executionContext) _GithubInstallation_nodeId(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodeID, nil + return obj.DefaultBranch, nil }) if err != nil { ec.Error(ctx, err) @@ -9912,9 +9672,9 @@ func (ec *executionContext) _GithubInstallation_nodeId(ctx context.Context, fiel return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubInstallation_nodeId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubInstallation", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, IsMethod: false, IsResolver: false, @@ -9925,8 +9685,8 @@ func (ec *executionContext) fieldContext_GithubInstallation_nodeId(ctx context.C return fc, nil } -func (ec *executionContext) _GithubInstallation_repositoriesUrl(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubInstallation_repositoriesUrl(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx, field) if err != nil { return graphql.Null } @@ -9939,7 +9699,7 @@ func (ec *executionContext) _GithubInstallation_repositoriesUrl(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RepositoriesURL, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -9953,9 +9713,9 @@ func (ec *executionContext) _GithubInstallation_repositoriesUrl(ctx context.Cont return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubInstallation_repositoriesUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubInstallation", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, IsMethod: false, IsResolver: false, @@ -9966,8 +9726,8 @@ func (ec *executionContext) fieldContext_GithubInstallation_repositoriesUrl(ctx return fc, nil } -func (ec *executionContext) _GithubInstallation_targetId(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubInstallation_targetId(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx, field) if err != nil { return graphql.Null } @@ -9980,7 +9740,7 @@ func (ec *executionContext) _GithubInstallation_targetId(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TargetID, nil + return obj.Disabled, nil }) if err != nil { ec.Error(ctx, err) @@ -9989,26 +9749,26 @@ func (ec *executionContext) _GithubInstallation_targetId(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*int64) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOInt2ᚖint64(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubInstallation_targetId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubInstallation", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubInstallation_targetType(ctx context.Context, field graphql.CollectedField, obj *entities.GithubInstallation) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubInstallation_targetType(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx, field) if err != nil { return graphql.Null } @@ -10021,7 +9781,7 @@ func (ec *executionContext) _GithubInstallation_targetType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TargetType, nil + return obj.FullName, nil }) if err != nil { ec.Error(ctx, err) @@ -10035,9 +9795,9 @@ func (ec *executionContext) _GithubInstallation_targetType(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubInstallation_targetType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubInstallation", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, IsMethod: false, IsResolver: false, @@ -10048,8 +9808,8 @@ func (ec *executionContext) fieldContext_GithubInstallation_targetType(ctx conte return fc, nil } -func (ec *executionContext) _GithubListRepository_repositories(ctx context.Context, field graphql.CollectedField, obj *entities.GithubListRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubListRepository_repositories(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx, field) if err != nil { return graphql.Null } @@ -10062,88 +9822,35 @@ func (ec *executionContext) _GithubListRepository_repositories(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.GithubListRepository().Repositories(rctx, obj) + return obj.GitignoreTemplate, 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.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) + res := resTmp.(*string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubListRepository_repositories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubListRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "archived": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx, field) - case "cloneUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx, field) - case "createdAt": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx, field) - case "defaultBranch": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx, field) - case "description": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx, field) - case "disabled": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx, field) - case "fullName": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx, field) - case "gitignoreTemplate": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx, field) - case "gitUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx, field) - case "htmlUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx, field) - case "id": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx, field) - case "language": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx, field) - case "masterBranch": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx, field) - case "mirrorUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx, field) - case "name": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx, field) - case "node_id": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx, field) - case "permissions": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx, field) - case "private": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx, field) - case "pushedAt": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx, field) - case "size": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx, field) - case "team_id": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx, field) - case "updatedAt": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx, field) - case "url": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx, field) - case "visibility": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubListRepository_totalCount(ctx context.Context, field graphql.CollectedField, obj *entities.GithubListRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubListRepository_totalCount(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx, field) if err != nil { return graphql.Null } @@ -10156,7 +9863,7 @@ func (ec *executionContext) _GithubListRepository_totalCount(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.GitURL, nil }) if err != nil { ec.Error(ctx, err) @@ -10165,26 +9872,26 @@ func (ec *executionContext) _GithubListRepository_totalCount(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(*string) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubListRepository_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubListRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubSearchRepository_incompleteResults(ctx context.Context, field graphql.CollectedField, obj *entities.GithubSearchRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubSearchRepository_incompleteResults(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx, field) if err != nil { return graphql.Null } @@ -10197,7 +9904,7 @@ func (ec *executionContext) _GithubSearchRepository_incompleteResults(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IncompleteResults, nil + return obj.HTMLURL, nil }) if err != nil { ec.Error(ctx, err) @@ -10206,26 +9913,26 @@ func (ec *executionContext) _GithubSearchRepository_incompleteResults(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubSearchRepository_incompleteResults(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubSearchRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubSearchRepository_repositories(ctx context.Context, field graphql.CollectedField, obj *entities.GithubSearchRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubSearchRepository_repositories(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx, field) if err != nil { return graphql.Null } @@ -10238,88 +9945,35 @@ func (ec *executionContext) _GithubSearchRepository_repositories(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.GithubSearchRepository().Repositories(rctx, obj) + 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.([]*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) + res := resTmp.(*int) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubSearchRepository_repositories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubSearchRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "archived": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx, field) - case "cloneUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx, field) - case "createdAt": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx, field) - case "defaultBranch": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx, field) - case "description": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx, field) - case "disabled": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx, field) - case "fullName": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx, field) - case "gitignoreTemplate": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx, field) - case "gitUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx, field) - case "htmlUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx, field) - case "id": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx, field) - case "language": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx, field) - case "masterBranch": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx, field) - case "mirrorUrl": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx, field) - case "name": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx, field) - case "node_id": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx, field) - case "permissions": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx, field) - case "private": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx, field) - case "pushedAt": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx, field) - case "size": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx, field) - case "team_id": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx, field) - case "updatedAt": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx, field) - case "url": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx, field) - case "visibility": - return ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GithubSearchRepository_total(ctx context.Context, field graphql.CollectedField, obj *entities.GithubSearchRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GithubSearchRepository_total(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx, field) if err != nil { return graphql.Null } @@ -10332,7 +9986,7 @@ func (ec *executionContext) _GithubSearchRepository_total(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Total, nil + return obj.Language, nil }) if err != nil { ec.Error(ctx, err) @@ -10341,26 +9995,26 @@ func (ec *executionContext) _GithubSearchRepository_total(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(*string) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GithubSearchRepository_total(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GithubSearchRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_unit(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpiration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_unit(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx, field) if err != nil { return graphql.Null } @@ -10373,38 +10027,35 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Unit, nil + return obj.MasterBranch, 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.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpirationUnit) + res := resTmp.(*string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__ExpirationUnit2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpirationUnit(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_unit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__ExpirationUnit does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_value(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpiration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_value(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx, field) if err != nil { return graphql.Null } @@ -10417,38 +10068,35 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Value, nil + return obj.MirrorURL, 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_branch(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_branch(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx, field) if err != nil { return graphql.Null } @@ -10461,26 +10109,23 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Branch, nil + 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_branch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, IsMethod: false, IsResolver: false, @@ -10491,8 +10136,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_provider(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_provider(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx, field) if err != nil { return graphql.Null } @@ -10505,38 +10150,35 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Provider, nil + return obj.NodeID, 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.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitProvider) + res := resTmp.(*string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitProvider2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitProvider(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_provider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitProvider does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_repository(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_repository(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx, field) if err != nil { return graphql.Null } @@ -10549,38 +10191,35 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Repository, nil + return obj.Permissions, 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) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_repository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_webhookId(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_webhookId(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx, field) if err != nil { return graphql.Null } @@ -10593,7 +10232,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.WebhookID, nil + return obj.Private, nil }) if err != nil { ec.Error(ctx, err) @@ -10602,26 +10241,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource_webhookId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx, field) if err != nil { return graphql.Null } @@ -10634,7 +10273,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Archived, nil + return obj.PushedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -10643,26 +10282,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_archived(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx, field) if err != nil { return graphql.Null } @@ -10675,7 +10314,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CloneURL, nil + return obj.Size, nil }) if err != nil { ec.Error(ctx, err) @@ -10684,26 +10323,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*int) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_cloneUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx, field) if err != nil { return graphql.Null } @@ -10716,7 +10355,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.TeamID, nil }) if err != nil { ec.Error(ctx, err) @@ -10725,26 +10364,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*int) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -10757,7 +10396,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DefaultBranch, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -10768,24 +10407,24 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ } res := resTmp.(*string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_defaultBranch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx, field) if err != nil { return graphql.Null } @@ -10798,7 +10437,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.URL, nil }) if err != nil { ec.Error(ctx, err) @@ -10812,7 +10451,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", Field: field, @@ -10825,8 +10464,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx, field) if err != nil { return graphql.Null } @@ -10839,7 +10478,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Disabled, nil + return obj.Visibility, nil }) if err != nil { ec.Error(ctx, err) @@ -10848,26 +10487,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_disabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_avatarUrl(ctx, field) if err != nil { return graphql.Null } @@ -10880,7 +10519,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FullName, nil + return obj.AvatarURL, nil }) if err != nil { ec.Error(ctx, err) @@ -10894,9 +10533,9 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_fullName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_avatarUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", Field: field, IsMethod: false, IsResolver: false, @@ -10907,8 +10546,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_id(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_id(ctx, field) if err != nil { return graphql.Null } @@ -10921,7 +10560,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GitignoreTemplate, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -10930,26 +10569,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*int) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitignoreTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_login(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_login(ctx, field) if err != nil { return graphql.Null } @@ -10962,7 +10601,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GitURL, nil + return obj.Login, nil }) if err != nil { ec.Error(ctx, err) @@ -10976,9 +10615,9 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_gitUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_login(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", Field: field, IsMethod: false, IsResolver: false, @@ -10989,8 +10628,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_nodeId(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_nodeId(ctx, field) if err != nil { return graphql.Null } @@ -11003,7 +10642,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HTMLURL, nil + return obj.NodeID, nil }) if err != nil { ec.Error(ctx, err) @@ -11017,9 +10656,9 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_htmlUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_nodeId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", Field: field, IsMethod: false, IsResolver: false, @@ -11030,8 +10669,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_type(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_type(ctx, field) if err != nil { return graphql.Null } @@ -11044,7 +10683,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -11053,26 +10692,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(*string) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx context.Context, field graphql.CollectedField, obj *common.CreatedOrUpdatedBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) if err != nil { return graphql.Null } @@ -11085,23 +10724,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Language, nil + return obj.UserEmail, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_language(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___common__CreatedOrUpdatedBy", Field: field, IsMethod: false, IsResolver: false, @@ -11112,8 +10754,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx context.Context, field graphql.CollectedField, obj *common.CreatedOrUpdatedBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) if err != nil { return graphql.Null } @@ -11126,26 +10768,29 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MasterBranch, nil + return ec.resolvers.Github__com___kloudlite___api___common__CreatedOrUpdatedBy().UserID(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.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_masterBranch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___common__CreatedOrUpdatedBy", Field: field, - IsMethod: false, - IsResolver: false, + 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") }, @@ -11153,8 +10798,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx context.Context, field graphql.CollectedField, obj *common.CreatedOrUpdatedBy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) if err != nil { return graphql.Null } @@ -11167,23 +10812,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MirrorURL, nil + return obj.UserName, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_mirrorUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___common__CreatedOrUpdatedBy", Field: field, IsMethod: false, IsResolver: false, @@ -11194,8 +10842,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_action(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_action(ctx, field) if err != nil { return graphql.Null } @@ -11208,35 +10856,38 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Action, 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) + res := resTmp.(model.GithubComKloudliteAPIPkgTypesSyncAction) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncAction2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIPkgTypesSyncAction(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_action(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", 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 nil, errors.New("field of type Github__com___kloudlite___api___pkg___types__SyncAction does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_error(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_error(ctx, field) if err != nil { return graphql.Null } @@ -11249,7 +10900,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodeID, nil + return obj.Error, nil }) if err != nil { ec.Error(ctx, err) @@ -11263,9 +10914,9 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_node_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_error(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", Field: field, IsMethod: false, IsResolver: false, @@ -11276,8 +10927,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_lastSyncedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_lastSyncedAt(ctx, field) if err != nil { return graphql.Null } @@ -11290,7 +10941,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Permissions, nil + return obj.LastSyncedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -11299,26 +10950,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_permissions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_lastSyncedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_recordVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_recordVersion(ctx, field) if err != nil { return graphql.Null } @@ -11331,35 +10982,38 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Private, nil + return obj.RecordVersion, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_private(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_state(ctx, field) if err != nil { return graphql.Null } @@ -11372,35 +11026,38 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PushedAt, nil + return obj.State, 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) + res := resTmp.(model.GithubComKloudliteAPIPkgTypesSyncState) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIPkgTypesSyncState(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_pushedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_state(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type Github__com___kloudlite___api___pkg___types__SyncState does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_syncScheduledAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_syncScheduledAt(ctx, field) if err != nil { return graphql.Null } @@ -11413,7 +11070,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Size, nil + return obj.SyncScheduledAt, nil }) if err != nil { ec.Error(ctx, err) @@ -11422,26 +11079,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(*string) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_size(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_syncScheduledAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildArgs(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildArgs(ctx, field) if err != nil { return graphql.Null } @@ -11454,7 +11111,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TeamID, nil + return obj.BuildArgs, nil }) if err != nil { ec.Error(ctx, err) @@ -11463,26 +11120,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_team_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildArgs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildContexts(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildContexts(ctx, field) if err != nil { return graphql.Null } @@ -11495,7 +11152,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.BuildContexts, nil }) if err != nil { ec.Error(ctx, err) @@ -11504,26 +11161,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildContexts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_contextDir(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_contextDir(ctx, field) if err != nil { return graphql.Null } @@ -11536,7 +11193,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.URL, nil + return obj.ContextDir, nil }) if err != nil { ec.Error(ctx, err) @@ -11550,9 +11207,9 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_url(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_contextDir(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", Field: field, IsMethod: false, IsResolver: false, @@ -11563,8 +11220,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfileContent(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfileContent(ctx, field) if err != nil { return graphql.Null } @@ -11577,7 +11234,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Visibility, nil + return obj.DockerfileContent, nil }) if err != nil { ec.Error(ctx, err) @@ -11591,9 +11248,9 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository_visibility(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfileContent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", Field: field, IsMethod: false, IsResolver: false, @@ -11604,8 +11261,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_avatarUrl(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfilePath(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfilePath(ctx, field) if err != nil { return graphql.Null } @@ -11618,7 +11275,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarURL, nil + return obj.DockerfilePath, nil }) if err != nil { ec.Error(ctx, err) @@ -11632,9 +11289,9 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_avatarUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfilePath(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", Field: field, IsMethod: false, IsResolver: false, @@ -11645,8 +11302,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_id(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_id(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_targetPlatforms(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_targetPlatforms(ctx, field) if err != nil { return graphql.Null } @@ -11659,7 +11316,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.TargetPlatforms, nil }) if err != nil { ec.Error(ctx, err) @@ -11668,26 +11325,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*int) + res := resTmp.([]string) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_targetPlatforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_login(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_login(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_accountName(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_accountName(ctx, field) if err != nil { return graphql.Null } @@ -11700,23 +11357,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Login, nil + return obj.AccountName, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_login(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", Field: field, IsMethod: false, IsResolver: false, @@ -11727,8 +11387,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_nodeId(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_nodeId(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx, field) if err != nil { return graphql.Null } @@ -11741,7 +11401,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NodeID, nil + return obj.BuildOptions, nil }) if err != nil { ec.Error(ctx, err) @@ -11750,26 +11410,40 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___distribution___v1__BuildOptions2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1BuildOptions(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_nodeId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", 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") + switch field.Name { + case "buildArgs": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildArgs(ctx, field) + case "buildContexts": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildContexts(ctx, field) + case "contextDir": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_contextDir(ctx, field) + case "dockerfileContent": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfileContent(ctx, field) + case "dockerfilePath": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfilePath(ctx, field) + case "targetPlatforms": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_targetPlatforms(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_type(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_type(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_caches(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_caches(ctx, field) if err != nil { return graphql.Null } @@ -11782,7 +11456,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Caches, nil }) if err != nil { ec.Error(ctx, err) @@ -11791,26 +11465,32 @@ func (ec *executionContext) _Github__com___kloudlite___api___apps___container___ if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.GithubComKloudliteOperatorApisDistributionV1Cache) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___apis___distribution___v1__Cache2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Cacheᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_caches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", 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") + switch field.Name { + case "name": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Cache_name(ctx, field) + case "path": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Cache_path(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__Cache", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx context.Context, field graphql.CollectedField, obj *common.CreatedOrUpdatedBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx, field) if err != nil { return graphql.Null } @@ -11823,7 +11503,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUp }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserEmail, nil + return obj.Registry, nil }) if err != nil { ec.Error(ctx, err) @@ -11835,26 +11515,30 @@ func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUp } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.GithubComKloudliteOperatorApisDistributionV1Registry) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___operator___apis___distribution___v1__Registry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Registry(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___common__CreatedOrUpdatedBy", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", 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") + switch field.Name { + case "repo": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Registry_repo(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__Registry", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx context.Context, field graphql.CollectedField, obj *common.CreatedOrUpdatedBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_resource(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_resource(ctx, field) if err != nil { return graphql.Null } @@ -11867,7 +11551,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUp }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Github__com___kloudlite___api___common__CreatedOrUpdatedBy().UserID(rctx, obj) + return obj.Resource, nil }) if err != nil { ec.Error(ctx, err) @@ -11879,26 +11563,32 @@ func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUp } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.GithubComKloudliteOperatorApisDistributionV1Resource) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___operator___apis___distribution___v1__Resource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Resource(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_resource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___common__CreatedOrUpdatedBy", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", Field: field, - IsMethod: true, - IsResolver: true, + 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") + switch field.Name { + case "cpu": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_cpu(ctx, field) + case "memoryInMb": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_memoryInMb(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__Resource", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx context.Context, field graphql.CollectedField, obj *common.CreatedOrUpdatedBy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Cache_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Cache) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Cache_name(ctx, field) if err != nil { return graphql.Null } @@ -11911,7 +11601,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUp }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserName, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -11928,9 +11618,9 @@ func (ec *executionContext) _Github__com___kloudlite___api___common__CreatedOrUp return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Cache_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___common__CreatedOrUpdatedBy", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__Cache", Field: field, IsMethod: false, IsResolver: false, @@ -11941,8 +11631,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___api___common_ return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_action(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_action(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Cache_path(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Cache) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Cache_path(ctx, field) if err != nil { return graphql.Null } @@ -11955,7 +11645,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncSt }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Action, nil + return obj.Path, nil }) if err != nil { ec.Error(ctx, err) @@ -11967,26 +11657,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncSt } return graphql.Null } - res := resTmp.(model.GithubComKloudliteAPIPkgTypesSyncAction) + res := resTmp.(string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncAction2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIPkgTypesSyncAction(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_action(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Cache_path(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__Cache", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Github__com___kloudlite___api___pkg___types__SyncAction does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_error(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_error(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Registry_repo(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Registry) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Registry_repo(ctx, field) if err != nil { return graphql.Null } @@ -11999,35 +11689,44 @@ func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncSt }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Error, nil + return obj.Repo, 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) + res := resTmp.(*model.GithubComKloudliteOperatorApisDistributionV1Repo) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNGithub__com___kloudlite___operator___apis___distribution___v1__Repo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Repo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_error(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Registry_repo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__Registry", 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") + switch field.Name { + case "name": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_name(ctx, field) + case "tags": + return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_tags(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__Repo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_lastSyncedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_lastSyncedAt(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Repo_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Repo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_name(ctx, field) if err != nil { return graphql.Null } @@ -12040,35 +11739,38 @@ func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncSt }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastSyncedAt, nil + 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) + res := resTmp.(string) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_lastSyncedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__Repo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_recordVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_recordVersion(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Repo_tags(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Repo) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_tags(ctx, field) if err != nil { return graphql.Null } @@ -12081,7 +11783,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncSt }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RecordVersion, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -12093,26 +11795,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncSt } return graphql.Null } - res := resTmp.(int) + res := resTmp.([]string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__Repo", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_state(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Resource_cpu(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Resource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_cpu(ctx, field) if err != nil { return graphql.Null } @@ -12125,7 +11827,7 @@ func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncSt }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.State, nil + return obj.CPU, nil }) if err != nil { ec.Error(ctx, err) @@ -12137,26 +11839,26 @@ func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncSt } return graphql.Null } - res := resTmp.(model.GithubComKloudliteAPIPkgTypesSyncState) + res := resTmp.(int) fc.Result = res - return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncState2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIPkgTypesSyncState(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_state(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_cpu(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__Resource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Github__com___kloudlite___api___pkg___types__SyncState does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncStatus_syncScheduledAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteAPIPkgTypesSyncStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_syncScheduledAt(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Resource_memoryInMb(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Resource) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_memoryInMb(ctx, field) if err != nil { return graphql.Null } @@ -12169,35 +11871,38 @@ func (ec *executionContext) _Github__com___kloudlite___api___pkg___types__SyncSt }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SyncScheduledAt, nil + return obj.MemoryInMb, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_syncScheduledAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_memoryInMb(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___api___pkg___types__SyncStatus", + Object: "Github__com___kloudlite___operator___apis___distribution___v1__Resource", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildArgs(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildArgs(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx, field) if err != nil { return graphql.Null } @@ -12210,7 +11915,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BuildArgs, nil + return obj.Debug, nil }) if err != nil { ec.Error(ctx, err) @@ -12219,26 +11924,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildArgs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildContexts(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildContexts(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_error(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(ctx, field) if err != nil { return graphql.Null } @@ -12251,7 +11956,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BuildContexts, nil + return obj.Error, nil }) if err != nil { ec.Error(ctx, err) @@ -12260,26 +11965,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*string) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildContexts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_contextDir(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_contextDir(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_generation(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(ctx, field) if err != nil { return graphql.Null } @@ -12292,7 +11997,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ContextDir, nil + return obj.Generation, nil }) if err != nil { ec.Error(ctx, err) @@ -12301,26 +12006,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*int) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_contextDir(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfileContent(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfileContent(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_info(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(ctx, field) if err != nil { return graphql.Null } @@ -12333,7 +12038,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DockerfileContent, nil + return obj.Info, nil }) if err != nil { ec.Error(ctx, err) @@ -12347,9 +12052,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfileContent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -12360,8 +12065,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfilePath(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfilePath(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_message(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_message(ctx, field) if err != nil { return graphql.Null } @@ -12374,7 +12079,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DockerfilePath, nil + return obj.Message, nil }) if err != nil { ec.Error(ctx, err) @@ -12388,9 +12093,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfilePath(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, @@ -12401,8 +12106,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_targetPlatforms(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildOptions) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_targetPlatforms(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx, field) if err != nil { return graphql.Null } @@ -12415,7 +12120,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TargetPlatforms, nil + return obj.StartedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -12424,26 +12129,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_targetPlatforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_accountName(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_accountName(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(ctx, field) if err != nil { return graphql.Null } @@ -12456,38 +12161,35 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccountName, nil + return obj.State, 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) + res := resTmp.(*model.GithubComKloudliteOperatorPkgOperatorState) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorState(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", 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 nil, errors.New("field of type Github__com___kloudlite___operator___pkg___operator__State does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_status(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_status(ctx, field) if err != nil { return graphql.Null } @@ -12500,49 +12202,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BuildOptions, nil + return obj.Status, 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.GithubComKloudliteOperatorApisDistributionV1BuildOptions) + res := resTmp.(bool) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___apis___distribution___v1__BuildOptions2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1BuildOptions(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", + Object: "Github__com___kloudlite___operator___pkg___operator__Check", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "buildArgs": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildArgs(ctx, field) - case "buildContexts": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_buildContexts(ctx, field) - case "contextDir": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_contextDir(ctx, field) - case "dockerfileContent": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfileContent(ctx, field) - case "dockerfilePath": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_dockerfilePath(ctx, field) - case "targetPlatforms": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions_targetPlatforms(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_cacheKeyName(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_cacheKeyName(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx, field) if err != nil { return graphql.Null } @@ -12555,7 +12246,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CacheKeyName, nil + return obj.Debug, nil }) if err != nil { ec.Error(ctx, err) @@ -12564,26 +12255,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_cacheKeyName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx, field) if err != nil { return graphql.Null } @@ -12596,42 +12287,35 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Registry, nil + return obj.Description, 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.GithubComKloudliteOperatorApisDistributionV1Registry) + res := resTmp.(*string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___operator___apis___distribution___v1__Registry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Registry(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "repo": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Registry_repo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__Registry", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_resource(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_resource(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx, field) if err != nil { return graphql.Null } @@ -12644,7 +12328,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Resource, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -12656,32 +12340,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib } return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisDistributionV1Resource) + res := resTmp.(string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___operator___apis___distribution___v1__Resource2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Resource(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_resource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cpu": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_cpu(ctx, field) - case "memoryInMb": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_memoryInMb(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__Resource", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Registry_repo(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Registry) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Registry_repo(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(ctx, field) if err != nil { return graphql.Null } @@ -12694,7 +12372,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Repo, nil + return obj.Title, nil }) if err != nil { ec.Error(ctx, err) @@ -12706,32 +12384,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib } return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorApisDistributionV1Repo) + res := resTmp.(string) fc.Result = res - return ec.marshalNGithub__com___kloudlite___operator___apis___distribution___v1__Repo2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Repo(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Registry_repo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__Registry", + Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", 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_Github__com___kloudlite___operator___apis___distribution___v1__Repo_name(ctx, field) - case "tags": - return ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_tags(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___distribution___v1__Repo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Repo_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Repo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_name(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx, field) if err != nil { return graphql.Null } @@ -12744,7 +12416,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.APIVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -12761,9 +12433,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__Repo", + Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -12774,8 +12446,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Repo_tags(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Repo) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_tags(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx, field) if err != nil { return graphql.Null } @@ -12788,7 +12460,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Kind, nil }) if err != nil { ec.Error(ctx, err) @@ -12800,14 +12472,14 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Repo_tags(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__Repo", + Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", Field: field, IsMethod: false, IsResolver: false, @@ -12818,8 +12490,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___ap return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Resource_cpu(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Resource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_cpu(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx, field) if err != nil { return graphql.Null } @@ -12832,7 +12504,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CPU, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -12844,26 +12516,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_cpu(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__Resource", + Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Resource_memoryInMb(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorApisDistributionV1Resource) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_memoryInMb(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorResourceRef) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx, field) if err != nil { return graphql.Null } @@ -12876,7 +12548,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MemoryInMb, nil + return obj.Namespace, nil }) if err != nil { ec.Error(ctx, err) @@ -12888,26 +12560,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___apis___distribution___v1__Resource_memoryInMb(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___apis___distribution___v1__Resource", + Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_checkList(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(ctx, field) if err != nil { return graphql.Null } @@ -12920,7 +12592,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Debug, nil + return obj.CheckList, nil }) if err != nil { ec.Error(ctx, err) @@ -12929,26 +12601,36 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.GithubComKloudliteOperatorPkgOperatorCheckMeta) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMetaᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_debug(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", 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") + switch field.Name { + case "debug": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx, field) + case "description": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx, field) + case "name": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx, field) + case "title": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___pkg___operator__CheckMeta", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_error(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_checks(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(ctx, field) if err != nil { return graphql.Null } @@ -12961,7 +12643,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Error, nil + return obj.Checks, nil }) if err != nil { ec.Error(ctx, err) @@ -12970,26 +12652,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_error(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_generation(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_isReady(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(ctx, field) if err != nil { return graphql.Null } @@ -13002,35 +12684,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Generation, nil + return obj.IsReady, 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) + res := resTmp.(bool) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_generation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_info(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(ctx, field) if err != nil { return graphql.Null } @@ -13043,7 +12728,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Info, nil + return obj.LastReadyGeneration, nil }) if err != nil { ec.Error(ctx, err) @@ -13052,26 +12737,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*int) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_info(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_message(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_message(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(ctx, field) if err != nil { return graphql.Null } @@ -13084,7 +12769,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Message, nil + return obj.LastReconcileTime, nil }) if err != nil { ec.Error(ctx, err) @@ -13095,24 +12780,24 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator } res := resTmp.(*string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_message(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(ctx, field) if err != nil { return graphql.Null } @@ -13125,7 +12810,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StartedAt, nil + return obj.Message, nil }) if err != nil { ec.Error(ctx, err) @@ -13134,26 +12819,30 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.GithubComKloudliteOperatorPkgRawJSONRawJSON) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___raw____json__RawJson2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgRawJSONRawJSON(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_startedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + switch field.Name { + case "RawMessage": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___pkg___raw____json__RawJson", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_state(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_resources(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(ctx, field) if err != nil { return graphql.Null } @@ -13166,7 +12855,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.State, nil + return obj.Resources, nil }) if err != nil { ec.Error(ctx, err) @@ -13175,26 +12864,36 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorPkgOperatorState) + res := resTmp.([]*model.GithubComKloudliteOperatorPkgOperatorResourceRef) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorState(ctx, field.Selections, res) + return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorResourceRefᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_state(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Check", + Object: "Github__com___kloudlite___operator___pkg___operator__Status", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Github__com___kloudlite___operator___pkg___operator__State does not have child fields") + switch field.Name { + case "apiVersion": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx, field) + case "kind": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx, field) + case "name": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx, field) + case "namespace": + return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___pkg___operator__ResourceRef", field.Name) }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Check_status(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_status(ctx, field) +func (ec *executionContext) _Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgRawJSONRawJSON) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(ctx, field) if err != nil { return graphql.Null } @@ -13207,38 +12906,35 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.RawMessage, 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) + res := resTmp.(interface{}) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOAny2interface(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Check_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Check", + Object: "Github__com___kloudlite___operator___pkg___raw____json__RawJson", 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 nil, errors.New("field of type Any does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx, field) +func (ec *executionContext) _GitlabBranch_canPush(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabBranch_canPush(ctx, field) if err != nil { return graphql.Null } @@ -13251,23 +12947,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Debug, nil + return obj.CanPush, 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) + res := resTmp.(bool) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabBranch_canPush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "GitlabBranch", Field: field, IsMethod: false, IsResolver: false, @@ -13278,8 +12977,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx, field) +func (ec *executionContext) _GitlabBranch_default(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabBranch_default(ctx, field) if err != nil { return graphql.Null } @@ -13292,35 +12991,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Default, 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) + res := resTmp.(bool) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabBranch_default(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "GitlabBranch", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx, field) +func (ec *executionContext) _GitlabBranch_developersCanMerge(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabBranch_developersCanMerge(ctx, field) if err != nil { return graphql.Null } @@ -13333,7 +13035,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.DevelopersCanMerge, nil }) if err != nil { ec.Error(ctx, err) @@ -13345,26 +13047,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabBranch_developersCanMerge(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "GitlabBranch", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorCheckMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(ctx, field) +func (ec *executionContext) _GitlabBranch_developersCanPush(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabBranch_developersCanPush(ctx, field) if err != nil { return graphql.Null } @@ -13377,7 +13079,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Title, nil + return obj.DevelopersCanPush, nil }) if err != nil { ec.Error(ctx, err) @@ -13389,26 +13091,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabBranch_developersCanPush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__CheckMeta", + Object: "GitlabBranch", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx, field) +func (ec *executionContext) _GitlabBranch_merged(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabBranch_merged(ctx, field) if err != nil { return graphql.Null } @@ -13421,7 +13123,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.APIVersion, nil + return obj.Merged, nil }) if err != nil { ec.Error(ctx, err) @@ -13433,26 +13135,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabBranch_merged(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "GitlabBranch", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx, field) +func (ec *executionContext) _GitlabBranch_name(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabBranch_name(ctx, field) if err != nil { return graphql.Null } @@ -13465,7 +13167,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -13482,9 +13184,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabBranch_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "GitlabBranch", Field: field, IsMethod: false, IsResolver: false, @@ -13495,8 +13197,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx, field) +func (ec *executionContext) _GitlabBranch_protected(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabBranch_protected(ctx, field) if err != nil { return graphql.Null } @@ -13509,7 +13211,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Protected, nil }) if err != nil { ec.Error(ctx, err) @@ -13521,26 +13223,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabBranch_protected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "GitlabBranch", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorResourceRef) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx, field) +func (ec *executionContext) _GitlabBranch_webUrl(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabBranch_webUrl(ctx, field) if err != nil { return graphql.Null } @@ -13553,7 +13255,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Namespace, nil + return obj.WebURL, nil }) if err != nil { ec.Error(ctx, err) @@ -13570,9 +13272,9 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabBranch_webUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__ResourceRef", + Object: "GitlabBranch", Field: field, IsMethod: false, IsResolver: false, @@ -13583,8 +13285,8 @@ func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pk return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_checkList(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(ctx, field) +func (ec *executionContext) _GitlabGroup_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabGroup_avatarUrl(ctx, field) if err != nil { return graphql.Null } @@ -13597,45 +13299,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CheckList, nil + return obj.AvatarUrl, 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.GithubComKloudliteOperatorPkgOperatorCheckMeta) + res := resTmp.(string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMetaᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checkList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabGroup_avatarUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "GitlabGroup", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "debug": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_debug(ctx, field) - case "description": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_description(ctx, field) - case "name": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_name(ctx, field) - case "title": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__CheckMeta_title(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___pkg___operator__CheckMeta", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_checks(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(ctx, field) +func (ec *executionContext) _GitlabGroup_fullName(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabGroup_fullName(ctx, field) if err != nil { return graphql.Null } @@ -13648,35 +13343,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Checks, nil + return obj.FullName, 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.(map[string]interface{}) + res := resTmp.(string) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_checks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabGroup_fullName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "GitlabGroup", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_isReady(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(ctx, field) +func (ec *executionContext) _GitlabGroup_id(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabGroup) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabGroup_id(ctx, field) if err != nil { return graphql.Null } @@ -13689,7 +13387,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsReady, nil + return obj.Id, nil }) if err != nil { ec.Error(ctx, err) @@ -13701,26 +13399,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_isReady(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabGroup_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "GitlabGroup", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(ctx, field) +func (ec *executionContext) _GitlabProject_archived(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_archived(ctx, field) if err != nil { return graphql.Null } @@ -13733,35 +13431,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastReadyGeneration, nil + return obj.Archived, 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) + res := resTmp.(bool) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReadyGeneration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_archived(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "GitlabProject", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(ctx, field) +func (ec *executionContext) _GitlabProject_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_avatarUrl(ctx, field) if err != nil { return graphql.Null } @@ -13774,35 +13475,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastReconcileTime, nil + return obj.AvatarURL, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_lastReconcileTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_avatarUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "GitlabProject", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_message(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(ctx, field) +func (ec *executionContext) _GitlabProject_createdAt(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -13815,7 +13519,7 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Message, nil + return ec.resolvers.GitlabProject().CreatedAt(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -13824,30 +13528,26 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator if resTmp == nil { return graphql.Null } - res := resTmp.(*model.GithubComKloudliteOperatorPkgRawJSONRawJSON) + res := resTmp.(*string) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___raw____json__RawJson2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgRawJSONRawJSON(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_message(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "GitlabProject", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "RawMessage": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___pkg___raw____json__RawJson", field.Name) + return nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator__Status_resources(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgOperatorStatus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(ctx, field) +func (ec *executionContext) _GitlabProject_creatorId(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_creatorId(ctx, field) if err != nil { return graphql.Null } @@ -13860,45 +13560,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___operator }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Resources, nil + return obj.CreatorID, 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.GithubComKloudliteOperatorPkgOperatorResourceRef) + res := resTmp.(int) fc.Result = res - return ec.marshalOGithub__com___kloudlite___operator___pkg___operator__ResourceRef2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorResourceRefᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___operator__Status_resources(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_creatorId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___operator__Status", + Object: "GitlabProject", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "apiVersion": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_apiVersion(ctx, field) - case "kind": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_kind(ctx, field) - case "name": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_name(ctx, field) - case "namespace": - return ec.fieldContext_Github__com___kloudlite___operator___pkg___operator__ResourceRef_namespace(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___pkg___operator__ResourceRef", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(ctx context.Context, field graphql.CollectedField, obj *model.GithubComKloudliteOperatorPkgRawJSONRawJSON) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(ctx, field) +func (ec *executionContext) _GitlabProject_defaultBranch(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_defaultBranch(ctx, field) if err != nil { return graphql.Null } @@ -13911,35 +13604,38 @@ func (ec *executionContext) _Github__com___kloudlite___operator___pkg___raw____j }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RawMessage, nil + return obj.DefaultBranch, 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.(interface{}) + res := resTmp.(string) fc.Result = res - return ec.marshalOAny2interface(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Github__com___kloudlite___operator___pkg___raw____json__RawJson_RawMessage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_defaultBranch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Github__com___kloudlite___operator___pkg___raw____json__RawJson", + Object: "GitlabProject", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Any does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabBranch_canPush(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabBranch_canPush(ctx, field) +func (ec *executionContext) _GitlabProject_description(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_description(ctx, field) if err != nil { return graphql.Null } @@ -13952,7 +13648,7 @@ func (ec *executionContext) _GitlabBranch_canPush(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CanPush, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -13964,26 +13660,26 @@ func (ec *executionContext) _GitlabBranch_canPush(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabBranch_canPush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabBranch", + Object: "GitlabProject", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabBranch_default(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabBranch_default(ctx, field) +func (ec *executionContext) _GitlabProject_emptyRepo(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_emptyRepo(ctx, field) if err != nil { return graphql.Null } @@ -13996,7 +13692,7 @@ func (ec *executionContext) _GitlabBranch_default(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Default, nil + return obj.EmptyRepo, nil }) if err != nil { ec.Error(ctx, err) @@ -14013,9 +13709,9 @@ func (ec *executionContext) _GitlabBranch_default(ctx context.Context, field gra return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabBranch_default(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_emptyRepo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabBranch", + Object: "GitlabProject", Field: field, IsMethod: false, IsResolver: false, @@ -14026,8 +13722,8 @@ func (ec *executionContext) fieldContext_GitlabBranch_default(ctx context.Contex return fc, nil } -func (ec *executionContext) _GitlabBranch_developersCanMerge(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabBranch_developersCanMerge(ctx, field) +func (ec *executionContext) _GitlabProject_httpUrlToRepo(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_httpUrlToRepo(ctx, field) if err != nil { return graphql.Null } @@ -14040,7 +13736,7 @@ func (ec *executionContext) _GitlabBranch_developersCanMerge(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DevelopersCanMerge, nil + return obj.HTTPURLToRepo, nil }) if err != nil { ec.Error(ctx, err) @@ -14052,26 +13748,26 @@ func (ec *executionContext) _GitlabBranch_developersCanMerge(ctx context.Context } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabBranch_developersCanMerge(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_httpUrlToRepo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabBranch", + Object: "GitlabProject", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabBranch_developersCanPush(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabBranch_developersCanPush(ctx, field) +func (ec *executionContext) _GitlabProject_id(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_id(ctx, field) if err != nil { return graphql.Null } @@ -14084,7 +13780,7 @@ func (ec *executionContext) _GitlabBranch_developersCanPush(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DevelopersCanPush, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -14096,26 +13792,26 @@ func (ec *executionContext) _GitlabBranch_developersCanPush(ctx context.Context, } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(int) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabBranch_developersCanPush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabBranch", + Object: "GitlabProject", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabBranch_merged(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabBranch_merged(ctx, field) +func (ec *executionContext) _GitlabProject_lastActivityAt(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_lastActivityAt(ctx, field) if err != nil { return graphql.Null } @@ -14128,38 +13824,35 @@ func (ec *executionContext) _GitlabBranch_merged(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Merged, nil + return ec.resolvers.GitlabProject().LastActivityAt(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.(bool) + res := resTmp.(*string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabBranch_merged(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_lastActivityAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabBranch", + Object: "GitlabProject", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabBranch_name(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabBranch_name(ctx, field) +func (ec *executionContext) _GitlabProject_name(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_name(ctx, field) if err != nil { return graphql.Null } @@ -14189,9 +13882,9 @@ func (ec *executionContext) _GitlabBranch_name(ctx context.Context, field graphq return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabBranch_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabBranch", + Object: "GitlabProject", Field: field, IsMethod: false, IsResolver: false, @@ -14202,8 +13895,8 @@ func (ec *executionContext) fieldContext_GitlabBranch_name(ctx context.Context, return fc, nil } -func (ec *executionContext) _GitlabBranch_protected(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabBranch_protected(ctx, field) +func (ec *executionContext) _GitlabProject_nameWithNamespace(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_nameWithNamespace(ctx, field) if err != nil { return graphql.Null } @@ -14216,7 +13909,7 @@ func (ec *executionContext) _GitlabBranch_protected(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Protected, nil + return obj.NameWithNamespace, nil }) if err != nil { ec.Error(ctx, err) @@ -14228,26 +13921,26 @@ func (ec *executionContext) _GitlabBranch_protected(ctx context.Context, field g } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabBranch_protected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_nameWithNamespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabBranch", + Object: "GitlabProject", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabBranch_webUrl(ctx context.Context, field graphql.CollectedField, obj *model.GitlabBranch) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabBranch_webUrl(ctx, field) +func (ec *executionContext) _GitlabProject_path(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_path(ctx, field) if err != nil { return graphql.Null } @@ -14260,7 +13953,7 @@ func (ec *executionContext) _GitlabBranch_webUrl(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.WebURL, nil + return obj.Path, nil }) if err != nil { ec.Error(ctx, err) @@ -14277,9 +13970,9 @@ func (ec *executionContext) _GitlabBranch_webUrl(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabBranch_webUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_path(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabBranch", + Object: "GitlabProject", Field: field, IsMethod: false, IsResolver: false, @@ -14290,8 +13983,8 @@ func (ec *executionContext) fieldContext_GitlabBranch_webUrl(ctx context.Context return fc, nil } -func (ec *executionContext) _GitlabGroup_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabGroup_avatarUrl(ctx, field) +func (ec *executionContext) _GitlabProject_pathWithNamespace(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_pathWithNamespace(ctx, field) if err != nil { return graphql.Null } @@ -14304,7 +13997,7 @@ func (ec *executionContext) _GitlabGroup_avatarUrl(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarUrl, nil + return obj.PathWithNamespace, nil }) if err != nil { ec.Error(ctx, err) @@ -14321,9 +14014,9 @@ func (ec *executionContext) _GitlabGroup_avatarUrl(ctx context.Context, field gr return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabGroup_avatarUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_pathWithNamespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabGroup", + Object: "GitlabProject", Field: field, IsMethod: false, IsResolver: false, @@ -14334,8 +14027,8 @@ func (ec *executionContext) fieldContext_GitlabGroup_avatarUrl(ctx context.Conte return fc, nil } -func (ec *executionContext) _GitlabGroup_fullName(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabGroup_fullName(ctx, field) +func (ec *executionContext) _GitlabProject_public(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_public(ctx, field) if err != nil { return graphql.Null } @@ -14348,7 +14041,7 @@ func (ec *executionContext) _GitlabGroup_fullName(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FullName, nil + return obj.Public, nil }) if err != nil { ec.Error(ctx, err) @@ -14360,26 +14053,26 @@ func (ec *executionContext) _GitlabGroup_fullName(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabGroup_fullName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_public(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabGroup", + Object: "GitlabProject", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabGroup_id(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabGroup) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabGroup_id(ctx, field) +func (ec *executionContext) _GitlabProject_sshUrlToRepo(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_sshUrlToRepo(ctx, field) if err != nil { return graphql.Null } @@ -14392,7 +14085,7 @@ func (ec *executionContext) _GitlabGroup_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Id, nil + return obj.SSHURLToRepo, nil }) if err != nil { ec.Error(ctx, err) @@ -14409,9 +14102,9 @@ func (ec *executionContext) _GitlabGroup_id(ctx context.Context, field graphql.C return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabGroup_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_sshUrlToRepo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabGroup", + Object: "GitlabProject", Field: field, IsMethod: false, IsResolver: false, @@ -14422,8 +14115,8 @@ func (ec *executionContext) fieldContext_GitlabGroup_id(ctx context.Context, fie return fc, nil } -func (ec *executionContext) _GitlabProject_archived(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_archived(ctx, field) +func (ec *executionContext) _GitlabProject_tagList(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_tagList(ctx, field) if err != nil { return graphql.Null } @@ -14436,7 +14129,7 @@ func (ec *executionContext) _GitlabProject_archived(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Archived, nil + return obj.TagList, nil }) if err != nil { ec.Error(ctx, err) @@ -14448,26 +14141,26 @@ func (ec *executionContext) _GitlabProject_archived(ctx context.Context, field g } return graphql.Null } - res := resTmp.(bool) + res := resTmp.([]string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_archived(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_tagList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GitlabProject", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_avatarUrl(ctx, field) +func (ec *executionContext) _GitlabProject_topics(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_topics(ctx, field) if err != nil { return graphql.Null } @@ -14480,7 +14173,7 @@ func (ec *executionContext) _GitlabProject_avatarUrl(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarURL, nil + return obj.Topics, nil }) if err != nil { ec.Error(ctx, err) @@ -14492,12 +14185,12 @@ func (ec *executionContext) _GitlabProject_avatarUrl(ctx context.Context, field } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_avatarUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_topics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GitlabProject", Field: field, @@ -14510,8 +14203,8 @@ func (ec *executionContext) fieldContext_GitlabProject_avatarUrl(ctx context.Con return fc, nil } -func (ec *executionContext) _GitlabProject_createdAt(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_createdAt(ctx, field) +func (ec *executionContext) _GitlabProject_webUrl(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GitlabProject_webUrl(ctx, field) if err != nil { return graphql.Null } @@ -14524,35 +14217,38 @@ func (ec *executionContext) _GitlabProject_createdAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.GitlabProject().CreatedAt(rctx, obj) + return obj.WebURL, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GitlabProject_webUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "GitlabProject", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_creatorId(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_creatorId(ctx, field) +func (ec *executionContext) _MatchFilter_array(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MatchFilter_array(ctx, field) if err != nil { return graphql.Null } @@ -14565,38 +14261,35 @@ func (ec *executionContext) _GitlabProject_creatorId(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatorID, nil + return obj.Array, 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) + res := resTmp.([]any) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_creatorId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MatchFilter_array(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabProject", + Object: "MatchFilter", 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 nil, errors.New("field of type Any does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_defaultBranch(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_defaultBranch(ctx, field) +func (ec *executionContext) _MatchFilter_exact(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MatchFilter_exact(ctx, field) if err != nil { return graphql.Null } @@ -14609,38 +14302,35 @@ func (ec *executionContext) _GitlabProject_defaultBranch(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DefaultBranch, nil + return obj.Exact, 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) + res := resTmp.(any) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOAny2interface(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_defaultBranch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MatchFilter_exact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabProject", + Object: "MatchFilter", 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 nil, errors.New("field of type Any does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_description(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_description(ctx, field) +func (ec *executionContext) _MatchFilter_matchType(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MatchFilter_matchType(ctx, field) if err != nil { return graphql.Null } @@ -14653,7 +14343,7 @@ func (ec *executionContext) _GitlabProject_description(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.MatchType, nil }) if err != nil { ec.Error(ctx, err) @@ -14665,26 +14355,26 @@ func (ec *executionContext) _GitlabProject_description(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(string) + res := resTmp.(repos.MatchType) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNMatchFilterMatchType2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MatchFilter_matchType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabProject", + Object: "MatchFilter", 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 nil, errors.New("field of type MatchFilterMatchType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_emptyRepo(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_emptyRepo(ctx, field) +func (ec *executionContext) _MatchFilter_regex(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_MatchFilter_regex(ctx, field) if err != nil { return graphql.Null } @@ -14697,38 +14387,35 @@ func (ec *executionContext) _GitlabProject_emptyRepo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EmptyRepo, nil + return obj.Regex, 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_emptyRepo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MatchFilter_regex(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabProject", + Object: "MatchFilter", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_httpUrlToRepo(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_httpUrlToRepo(ctx, field) +func (ec *executionContext) _Metadata_annotations(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_annotations(ctx, field) if err != nil { return graphql.Null } @@ -14741,38 +14428,35 @@ func (ec *executionContext) _GitlabProject_httpUrlToRepo(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HTTPURLToRepo, nil + return ec.resolvers.Metadata().Annotations(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.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_httpUrlToRepo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_annotations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabProject", + Object: "Metadata", Field: field, - IsMethod: false, - IsResolver: false, + 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") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_id(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_id(ctx, field) +func (ec *executionContext) _Metadata_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_creationTimestamp(ctx, field) if err != nil { return graphql.Null } @@ -14785,7 +14469,7 @@ func (ec *executionContext) _GitlabProject_id(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Metadata().CreationTimestamp(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -14797,26 +14481,26 @@ func (ec *executionContext) _GitlabProject_id(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNDate2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_creationTimestamp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabProject", + Object: "Metadata", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, 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 nil, errors.New("field of type Date does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_lastActivityAt(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_lastActivityAt(ctx, field) +func (ec *executionContext) _Metadata_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_deletionTimestamp(ctx, field) if err != nil { return graphql.Null } @@ -14829,7 +14513,7 @@ func (ec *executionContext) _GitlabProject_lastActivityAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.GitlabProject().LastActivityAt(rctx, obj) + return ec.resolvers.Metadata().DeletionTimestamp(rctx, obj) }) if err != nil { ec.Error(ctx, err) @@ -14843,9 +14527,9 @@ func (ec *executionContext) _GitlabProject_lastActivityAt(ctx context.Context, f return ec.marshalODate2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_lastActivityAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_deletionTimestamp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabProject", + Object: "Metadata", Field: field, IsMethod: true, IsResolver: true, @@ -14856,96 +14540,8 @@ func (ec *executionContext) fieldContext_GitlabProject_lastActivityAt(ctx contex return fc, nil } -func (ec *executionContext) _GitlabProject_name(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_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_GitlabProject_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GitlabProject", - 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) _GitlabProject_nameWithNamespace(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_nameWithNamespace(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.NameWithNamespace, 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_GitlabProject_nameWithNamespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GitlabProject", - 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) _GitlabProject_path(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_path(ctx, field) +func (ec *executionContext) _Metadata_generation(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_generation(ctx, field) if err != nil { return graphql.Null } @@ -14958,7 +14554,7 @@ func (ec *executionContext) _GitlabProject_path(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Path, nil + return obj.Generation, nil }) if err != nil { ec.Error(ctx, err) @@ -14970,26 +14566,26 @@ func (ec *executionContext) _GitlabProject_path(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int64) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNInt2int64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_path(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_generation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabProject", + Object: "Metadata", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_pathWithNamespace(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_pathWithNamespace(ctx, field) +func (ec *executionContext) _Metadata_labels(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_labels(ctx, field) if err != nil { return graphql.Null } @@ -15002,962 +14598,48 @@ func (ec *executionContext) _GitlabProject_pathWithNamespace(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PathWithNamespace, nil + return ec.resolvers.Metadata().Labels(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.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GitlabProject_pathWithNamespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_labels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GitlabProject", + Object: "Metadata", Field: field, - IsMethod: false, - IsResolver: false, + 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") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GitlabProject_public(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_public(ctx, field) +func (ec *executionContext) _Metadata_name(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_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.Public, 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_GitlabProject_public(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GitlabProject", - 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) _GitlabProject_sshUrlToRepo(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_sshUrlToRepo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.SSHURLToRepo, 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_GitlabProject_sshUrlToRepo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GitlabProject", - 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) _GitlabProject_tagList(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_tagList(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.TagList, 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.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GitlabProject_tagList(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GitlabProject", - 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) _GitlabProject_topics(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_topics(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Topics, 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.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GitlabProject_topics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GitlabProject", - 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) _GitlabProject_webUrl(ctx context.Context, field graphql.CollectedField, obj *entities.GitlabProject) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GitlabProject_webUrl(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.WebURL, 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_GitlabProject_webUrl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GitlabProject", - 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) _MatchFilter_array(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MatchFilter_array(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Array, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]any) - fc.Result = res - return ec.marshalOAny2ᚕinterfaceᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MatchFilter_array(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MatchFilter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Any does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MatchFilter_exact(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MatchFilter_exact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Exact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(any) - fc.Result = res - return ec.marshalOAny2interface(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MatchFilter_exact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MatchFilter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Any does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MatchFilter_matchType(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MatchFilter_matchType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.MatchType, 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.(repos.MatchType) - fc.Result = res - return ec.marshalNMatchFilterMatchType2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_MatchFilter_matchType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MatchFilter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MatchFilterMatchType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MatchFilter_regex(ctx context.Context, field graphql.CollectedField, obj *repos.MatchFilter) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_MatchFilter_regex(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Regex, 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_MatchFilter_regex(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MatchFilter", - 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) _Metadata_annotations(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_annotations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Metadata().Annotations(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Metadata_annotations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Metadata", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Metadata_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_creationTimestamp(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Metadata().CreationTimestamp(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.(string) - fc.Result = res - return ec.marshalNDate2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Metadata_creationTimestamp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Metadata", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Metadata_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_deletionTimestamp(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Metadata().DeletionTimestamp(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalODate2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Metadata_deletionTimestamp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Metadata", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Date does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Metadata_generation(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_generation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Generation, 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.(int64) - fc.Result = res - return ec.marshalNInt2int64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Metadata_generation(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Metadata", - 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) _Metadata_labels(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_labels(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Metadata().Labels(rctx, obj) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Metadata_labels(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Metadata", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Metadata_name(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_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_Metadata_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Metadata", - 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) _Metadata_namespace(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Metadata_namespace(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - 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.Namespace, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Metadata_namespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Metadata", - 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) _Mutation_cr_createRepo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_createRepo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrCreateRepo(rctx, fc.Args["repository"].(entities.Repository)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - return nil, errors.New("directive isLoggedInAndVerified is not implemented") - } - return ec.directives.IsLoggedInAndVerified(ctx, nil, directive0) - } - directive2 := func(ctx context.Context) (interface{}, error) { - if ec.directives.HasAccount == nil { - return nil, errors.New("directive hasAccount is not implemented") - } - return ec.directives.HasAccount(ctx, nil, directive1) - } - - tmp, err := directive2(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*entities.Repository); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Repository`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*entities.Repository) - fc.Result = res - return ec.marshalORepository2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐRepository(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_cr_createRepo(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 "accountName": - return ec.fieldContext_Repository_accountName(ctx, field) - case "createdBy": - return ec.fieldContext_Repository_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Repository_creationTime(ctx, field) - case "id": - return ec.fieldContext_Repository_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Repository_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Repository_markedForDeletion(ctx, field) - case "name": - return ec.fieldContext_Repository_name(ctx, field) - case "recordVersion": - return ec.fieldContext_Repository_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_Repository_updateTime(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Repository", 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_cr_createRepo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_cr_createCred(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_createCred(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrCreateCred(rctx, fc.Args["credential"].(entities.Credential)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - return nil, errors.New("directive isLoggedInAndVerified is not implemented") - } - return ec.directives.IsLoggedInAndVerified(ctx, nil, directive0) - } - directive2 := func(ctx context.Context) (interface{}, error) { - if ec.directives.HasAccount == nil { - return nil, errors.New("directive hasAccount is not implemented") - } - return ec.directives.HasAccount(ctx, nil, directive1) - } - - tmp, err := directive2(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(*entities.Credential); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Credential`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*entities.Credential) - fc.Result = res - return ec.marshalOCredential2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐCredential(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_cr_createCred(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 "access": - return ec.fieldContext_Credential_access(ctx, field) - case "accountName": - return ec.fieldContext_Credential_accountName(ctx, field) - case "createdBy": - return ec.fieldContext_Credential_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Credential_creationTime(ctx, field) - case "expiration": - return ec.fieldContext_Credential_expiration(ctx, field) - case "id": - return ec.fieldContext_Credential_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Credential_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Credential_markedForDeletion(ctx, field) - case "name": - return ec.fieldContext_Credential_name(ctx, field) - case "recordVersion": - return ec.fieldContext_Credential_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_Credential_updateTime(ctx, field) - case "username": - return ec.fieldContext_Credential_username(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Credential", 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_cr_createCred_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_cr_deleteRepo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_deleteRepo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrDeleteRepo(rctx, fc.Args["name"].(string)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - return nil, errors.New("directive isLoggedInAndVerified is not implemented") - } - return ec.directives.IsLoggedInAndVerified(ctx, nil, directive0) - } - directive2 := func(ctx context.Context) (interface{}, error) { - if ec.directives.HasAccount == nil { - return nil, errors.New("directive hasAccount is not implemented") - } - return ec.directives.HasAccount(ctx, nil, directive1) - } - - tmp, err := directive2(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(bool); ok { - return data, nil + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + }() + 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) @@ -15969,37 +14651,26 @@ func (ec *executionContext) _Mutation_cr_deleteRepo(ctx context.Context, field g } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_deleteRepo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Metadata", Field: field, - IsMethod: true, - IsResolver: true, + 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 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_cr_deleteRepo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_cr_deleteCred(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_deleteCred(ctx, field) +func (ec *executionContext) _Metadata_namespace(ctx context.Context, field graphql.CollectedField, obj *v1.ObjectMeta) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Metadata_namespace(ctx, field) if err != nil { return graphql.Null } @@ -16011,76 +14682,36 @@ func (ec *executionContext) _Mutation_cr_deleteCred(ctx context.Context, field g } }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrDeleteCred(rctx, fc.Args["username"].(string)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - return nil, errors.New("directive isLoggedInAndVerified is not implemented") - } - return ec.directives.IsLoggedInAndVerified(ctx, nil, directive0) - } - directive2 := func(ctx context.Context) (interface{}, error) { - if ec.directives.HasAccount == nil { - return nil, errors.New("directive hasAccount is not implemented") - } - return ec.directives.HasAccount(ctx, nil, directive1) - } - - tmp, err := directive2(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.(bool); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + ctx = rctx // use context from middleware stack in children + return obj.Namespace, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_deleteCred(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Metadata_namespace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Metadata", Field: field, - IsMethod: true, - IsResolver: true, + 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 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_cr_deleteCred_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_cr_deleteDigest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_deleteDigest(ctx, field) +func (ec *executionContext) _Mutation_cr_createRepo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_cr_createRepo(ctx, field) if err != nil { return graphql.Null } @@ -16094,7 +14725,7 @@ func (ec *executionContext) _Mutation_cr_deleteDigest(ctx context.Context, field resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrDeleteDigest(rctx, fc.Args["repoName"].(string), fc.Args["digest"].(string)) + return ec.resolvers.Mutation().CrCreateRepo(rctx, fc.Args["repository"].(entities.Repository)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -16116,34 +14747,51 @@ func (ec *executionContext) _Mutation_cr_deleteDigest(ctx context.Context, field if tmp == nil { return nil, nil } - if data, ok := tmp.(bool); ok { + if data, ok := tmp.(*entities.Repository); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Repository`, tmp) }) 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) + res := resTmp.(*entities.Repository) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalORepository2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐRepository(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_deleteDigest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_cr_createRepo(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 Boolean does not have child fields") + switch field.Name { + case "accountName": + return ec.fieldContext_Repository_accountName(ctx, field) + case "createdBy": + return ec.fieldContext_Repository_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Repository_creationTime(ctx, field) + case "id": + return ec.fieldContext_Repository_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Repository_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Repository_markedForDeletion(ctx, field) + case "name": + return ec.fieldContext_Repository_name(ctx, field) + case "recordVersion": + return ec.fieldContext_Repository_recordVersion(ctx, field) + case "updateTime": + return ec.fieldContext_Repository_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Repository", field.Name) }, } defer func() { @@ -16153,15 +14801,15 @@ func (ec *executionContext) fieldContext_Mutation_cr_deleteDigest(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_cr_deleteDigest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_cr_createRepo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_cr_addBuild(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_addBuild(ctx, field) +func (ec *executionContext) _Mutation_cr_createCred(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_cr_createCred(ctx, field) if err != nil { return graphql.Null } @@ -16175,7 +14823,7 @@ func (ec *executionContext) _Mutation_cr_addBuild(ctx context.Context, field gra resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrAddBuild(rctx, fc.Args["build"].(entities.Build)) + return ec.resolvers.Mutation().CrCreateCred(rctx, fc.Args["credential"].(entities.Credential)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -16197,10 +14845,10 @@ func (ec *executionContext) _Mutation_cr_addBuild(ctx context.Context, field gra if tmp == nil { return nil, nil } - if data, ok := tmp.(*entities.Build); ok { + if data, ok := tmp.(*entities.Credential); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Build`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Credential`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -16209,12 +14857,12 @@ func (ec *executionContext) _Mutation_cr_addBuild(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.Build) + res := resTmp.(*entities.Credential) fc.Result = res - return ec.marshalOBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuild(ctx, field.Selections, res) + return ec.marshalOCredential2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐCredential(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_addBuild(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_cr_createCred(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Mutation", Field: field, @@ -16222,38 +14870,32 @@ func (ec *executionContext) fieldContext_Mutation_cr_addBuild(ctx context.Contex IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "buildClusterName": - return ec.fieldContext_Build_buildClusterName(ctx, field) + case "access": + return ec.fieldContext_Credential_access(ctx, field) + case "accountName": + return ec.fieldContext_Credential_accountName(ctx, field) case "createdBy": - return ec.fieldContext_Build_createdBy(ctx, field) + return ec.fieldContext_Credential_createdBy(ctx, field) case "creationTime": - return ec.fieldContext_Build_creationTime(ctx, field) - case "credUser": - return ec.fieldContext_Build_credUser(ctx, field) - case "errorMessages": - return ec.fieldContext_Build_errorMessages(ctx, field) + return ec.fieldContext_Credential_creationTime(ctx, field) + case "expiration": + return ec.fieldContext_Credential_expiration(ctx, field) case "id": - return ec.fieldContext_Build_id(ctx, field) + return ec.fieldContext_Credential_id(ctx, field) case "lastUpdatedBy": - return ec.fieldContext_Build_lastUpdatedBy(ctx, field) + return ec.fieldContext_Credential_lastUpdatedBy(ctx, field) case "markedForDeletion": - return ec.fieldContext_Build_markedForDeletion(ctx, field) + return ec.fieldContext_Credential_markedForDeletion(ctx, field) case "name": - return ec.fieldContext_Build_name(ctx, field) + return ec.fieldContext_Credential_name(ctx, field) case "recordVersion": - return ec.fieldContext_Build_recordVersion(ctx, field) - case "source": - return ec.fieldContext_Build_source(ctx, field) - case "spec": - return ec.fieldContext_Build_spec(ctx, field) - case "status": - return ec.fieldContext_Build_status(ctx, field) + return ec.fieldContext_Credential_recordVersion(ctx, field) case "updateTime": - return ec.fieldContext_Build_updateTime(ctx, field) - case "latestBuildRun": - return ec.fieldContext_Build_latestBuildRun(ctx, field) + return ec.fieldContext_Credential_updateTime(ctx, field) + case "username": + return ec.fieldContext_Credential_username(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Build", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Credential", field.Name) }, } defer func() { @@ -16263,15 +14905,15 @@ func (ec *executionContext) fieldContext_Mutation_cr_addBuild(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_cr_addBuild_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_cr_createCred_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_cr_updateBuild(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_updateBuild(ctx, field) +func (ec *executionContext) _Mutation_cr_deleteRepo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_cr_deleteRepo(ctx, field) if err != nil { return graphql.Null } @@ -16285,7 +14927,7 @@ func (ec *executionContext) _Mutation_cr_updateBuild(ctx context.Context, field resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrUpdateBuild(rctx, fc.Args["id"].(repos.ID), fc.Args["build"].(entities.Build)) + return ec.resolvers.Mutation().CrDeleteRepo(rctx, fc.Args["name"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -16307,63 +14949,34 @@ func (ec *executionContext) _Mutation_cr_updateBuild(ctx context.Context, field if tmp == nil { return nil, nil } - if data, ok := tmp.(*entities.Build); ok { + if data, ok := tmp.(bool); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Build`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) }) 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.(*entities.Build) - fc.Result = res - return ec.marshalOBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuild(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Mutation_cr_updateBuild(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 "buildClusterName": - return ec.fieldContext_Build_buildClusterName(ctx, field) - case "createdBy": - return ec.fieldContext_Build_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_Build_creationTime(ctx, field) - case "credUser": - return ec.fieldContext_Build_credUser(ctx, field) - case "errorMessages": - return ec.fieldContext_Build_errorMessages(ctx, field) - case "id": - return ec.fieldContext_Build_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_Build_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_Build_markedForDeletion(ctx, field) - case "name": - return ec.fieldContext_Build_name(ctx, field) - case "recordVersion": - return ec.fieldContext_Build_recordVersion(ctx, field) - case "source": - return ec.fieldContext_Build_source(ctx, field) - case "spec": - return ec.fieldContext_Build_spec(ctx, field) - case "status": - return ec.fieldContext_Build_status(ctx, field) - case "updateTime": - return ec.fieldContext_Build_updateTime(ctx, field) - case "latestBuildRun": - return ec.fieldContext_Build_latestBuildRun(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Build", field.Name) + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_cr_deleteRepo(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 Boolean does not have child fields") }, } defer func() { @@ -16373,15 +14986,15 @@ func (ec *executionContext) fieldContext_Mutation_cr_updateBuild(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_cr_updateBuild_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_cr_deleteRepo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_cr_deleteBuild(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_deleteBuild(ctx, field) +func (ec *executionContext) _Mutation_cr_deleteCred(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_cr_deleteCred(ctx, field) if err != nil { return graphql.Null } @@ -16395,7 +15008,7 @@ func (ec *executionContext) _Mutation_cr_deleteBuild(ctx context.Context, field resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrDeleteBuild(rctx, fc.Args["id"].(repos.ID)) + return ec.resolvers.Mutation().CrDeleteCred(rctx, fc.Args["username"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -16437,7 +15050,7 @@ func (ec *executionContext) _Mutation_cr_deleteBuild(ctx context.Context, field return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_deleteBuild(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_cr_deleteCred(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Mutation", Field: field, @@ -16454,15 +15067,15 @@ func (ec *executionContext) fieldContext_Mutation_cr_deleteBuild(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_cr_deleteBuild_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_cr_deleteCred_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_cr_triggerBuild(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_triggerBuild(ctx, field) +func (ec *executionContext) _Mutation_cr_deleteDigest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_cr_deleteDigest(ctx, field) if err != nil { return graphql.Null } @@ -16476,7 +15089,7 @@ func (ec *executionContext) _Mutation_cr_triggerBuild(ctx context.Context, field resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrTriggerBuild(rctx, fc.Args["id"].(repos.ID)) + return ec.resolvers.Mutation().CrDeleteDigest(rctx, fc.Args["repoName"].(string), fc.Args["digest"].(string)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -16518,7 +15131,7 @@ func (ec *executionContext) _Mutation_cr_triggerBuild(ctx context.Context, field return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_triggerBuild(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_cr_deleteDigest(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Mutation", Field: field, @@ -16535,15 +15148,15 @@ func (ec *executionContext) fieldContext_Mutation_cr_triggerBuild(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_cr_triggerBuild_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_cr_deleteDigest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_cr_addBuildCacheKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_addBuildCacheKey(ctx, field) +func (ec *executionContext) _Mutation_cr_addBuild(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_cr_addBuild(ctx, field) if err != nil { return graphql.Null } @@ -16557,7 +15170,7 @@ func (ec *executionContext) _Mutation_cr_addBuildCacheKey(ctx context.Context, f resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrAddBuildCacheKey(rctx, fc.Args["buildCacheKey"].(entities.BuildCacheKey)) + return ec.resolvers.Mutation().CrAddBuild(rctx, fc.Args["build"].(entities.Build)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -16579,10 +15192,10 @@ func (ec *executionContext) _Mutation_cr_addBuildCacheKey(ctx context.Context, f if tmp == nil { return nil, nil } - if data, ok := tmp.(*entities.BuildCacheKey); ok { + if data, ok := tmp.(*entities.Build); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.BuildCacheKey`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Build`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -16591,12 +15204,12 @@ func (ec *executionContext) _Mutation_cr_addBuildCacheKey(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*entities.BuildCacheKey) + res := resTmp.(*entities.Build) fc.Result = res - return ec.marshalOBuildCacheKey2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildCacheKey(ctx, field.Selections, res) + return ec.marshalOBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuild(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_addBuildCacheKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_cr_addBuild(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Mutation", Field: field, @@ -16604,30 +15217,38 @@ func (ec *executionContext) fieldContext_Mutation_cr_addBuildCacheKey(ctx contex IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "accountName": - return ec.fieldContext_BuildCacheKey_accountName(ctx, field) + case "buildClusterName": + return ec.fieldContext_Build_buildClusterName(ctx, field) case "createdBy": - return ec.fieldContext_BuildCacheKey_createdBy(ctx, field) + return ec.fieldContext_Build_createdBy(ctx, field) case "creationTime": - return ec.fieldContext_BuildCacheKey_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_BuildCacheKey_displayName(ctx, field) + return ec.fieldContext_Build_creationTime(ctx, field) + case "credUser": + return ec.fieldContext_Build_credUser(ctx, field) + case "errorMessages": + return ec.fieldContext_Build_errorMessages(ctx, field) case "id": - return ec.fieldContext_BuildCacheKey_id(ctx, field) + return ec.fieldContext_Build_id(ctx, field) case "lastUpdatedBy": - return ec.fieldContext_BuildCacheKey_lastUpdatedBy(ctx, field) + return ec.fieldContext_Build_lastUpdatedBy(ctx, field) case "markedForDeletion": - return ec.fieldContext_BuildCacheKey_markedForDeletion(ctx, field) + return ec.fieldContext_Build_markedForDeletion(ctx, field) case "name": - return ec.fieldContext_BuildCacheKey_name(ctx, field) + return ec.fieldContext_Build_name(ctx, field) case "recordVersion": - return ec.fieldContext_BuildCacheKey_recordVersion(ctx, field) + return ec.fieldContext_Build_recordVersion(ctx, field) + case "source": + return ec.fieldContext_Build_source(ctx, field) + case "spec": + return ec.fieldContext_Build_spec(ctx, field) + case "status": + return ec.fieldContext_Build_status(ctx, field) case "updateTime": - return ec.fieldContext_BuildCacheKey_updateTime(ctx, field) - case "volumeSizeInGB": - return ec.fieldContext_BuildCacheKey_volumeSizeInGB(ctx, field) + return ec.fieldContext_Build_updateTime(ctx, field) + case "latestBuildRun": + return ec.fieldContext_Build_latestBuildRun(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type BuildCacheKey", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Build", field.Name) }, } defer func() { @@ -16637,15 +15258,15 @@ func (ec *executionContext) fieldContext_Mutation_cr_addBuildCacheKey(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_cr_addBuildCacheKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_cr_addBuild_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_cr_deleteBuildCacheKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_deleteBuildCacheKey(ctx, field) +func (ec *executionContext) _Mutation_cr_updateBuild(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_cr_updateBuild(ctx, field) if err != nil { return graphql.Null } @@ -16659,7 +15280,7 @@ func (ec *executionContext) _Mutation_cr_deleteBuildCacheKey(ctx context.Context resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrDeleteBuildCacheKey(rctx, fc.Args["id"].(repos.ID)) + return ec.resolvers.Mutation().CrUpdateBuild(rctx, fc.Args["id"].(repos.ID), fc.Args["build"].(entities.Build)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -16681,34 +15302,63 @@ func (ec *executionContext) _Mutation_cr_deleteBuildCacheKey(ctx context.Context if tmp == nil { return nil, nil } - if data, ok := tmp.(bool); ok { + if data, ok := tmp.(*entities.Build); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.Build`, tmp) }) 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) + res := resTmp.(*entities.Build) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuild(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_deleteBuildCacheKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_cr_updateBuild(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 Boolean does not have child fields") + switch field.Name { + case "buildClusterName": + return ec.fieldContext_Build_buildClusterName(ctx, field) + case "createdBy": + return ec.fieldContext_Build_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_Build_creationTime(ctx, field) + case "credUser": + return ec.fieldContext_Build_credUser(ctx, field) + case "errorMessages": + return ec.fieldContext_Build_errorMessages(ctx, field) + case "id": + return ec.fieldContext_Build_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_Build_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_Build_markedForDeletion(ctx, field) + case "name": + return ec.fieldContext_Build_name(ctx, field) + case "recordVersion": + return ec.fieldContext_Build_recordVersion(ctx, field) + case "source": + return ec.fieldContext_Build_source(ctx, field) + case "spec": + return ec.fieldContext_Build_spec(ctx, field) + case "status": + return ec.fieldContext_Build_status(ctx, field) + case "updateTime": + return ec.fieldContext_Build_updateTime(ctx, field) + case "latestBuildRun": + return ec.fieldContext_Build_latestBuildRun(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Build", field.Name) }, } defer func() { @@ -16718,15 +15368,15 @@ func (ec *executionContext) fieldContext_Mutation_cr_deleteBuildCacheKey(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_cr_deleteBuildCacheKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_cr_updateBuild_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_cr_updateBuildCacheKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_updateBuildCacheKey(ctx, field) +func (ec *executionContext) _Mutation_cr_deleteBuild(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_cr_deleteBuild(ctx, field) if err != nil { return graphql.Null } @@ -16740,7 +15390,7 @@ func (ec *executionContext) _Mutation_cr_updateBuildCacheKey(ctx context.Context resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrUpdateBuildCacheKey(rctx, fc.Args["id"].(repos.ID), fc.Args["buildCacheKey"].(entities.BuildCacheKey)) + return ec.resolvers.Mutation().CrDeleteBuild(rctx, fc.Args["id"].(repos.ID)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -16762,55 +15412,34 @@ func (ec *executionContext) _Mutation_cr_updateBuildCacheKey(ctx context.Context if tmp == nil { return nil, nil } - if data, ok := tmp.(*entities.BuildCacheKey); ok { + if data, ok := tmp.(bool); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/domain/entities.BuildCacheKey`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) }) 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.(*entities.BuildCacheKey) + res := resTmp.(bool) fc.Result = res - return ec.marshalOBuildCacheKey2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildCacheKey(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_updateBuildCacheKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_cr_deleteBuild(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 "accountName": - return ec.fieldContext_BuildCacheKey_accountName(ctx, field) - case "createdBy": - return ec.fieldContext_BuildCacheKey_createdBy(ctx, field) - case "creationTime": - return ec.fieldContext_BuildCacheKey_creationTime(ctx, field) - case "displayName": - return ec.fieldContext_BuildCacheKey_displayName(ctx, field) - case "id": - return ec.fieldContext_BuildCacheKey_id(ctx, field) - case "lastUpdatedBy": - return ec.fieldContext_BuildCacheKey_lastUpdatedBy(ctx, field) - case "markedForDeletion": - return ec.fieldContext_BuildCacheKey_markedForDeletion(ctx, field) - case "name": - return ec.fieldContext_BuildCacheKey_name(ctx, field) - case "recordVersion": - return ec.fieldContext_BuildCacheKey_recordVersion(ctx, field) - case "updateTime": - return ec.fieldContext_BuildCacheKey_updateTime(ctx, field) - case "volumeSizeInGB": - return ec.fieldContext_BuildCacheKey_volumeSizeInGB(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type BuildCacheKey", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } defer func() { @@ -16820,15 +15449,15 @@ func (ec *executionContext) fieldContext_Mutation_cr_updateBuildCacheKey(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_cr_updateBuildCacheKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_cr_deleteBuild_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Mutation_cr_listBuildsByBuildCacheId(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_cr_listBuildsByBuildCacheId(ctx, field) +func (ec *executionContext) _Mutation_cr_triggerBuild(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_cr_triggerBuild(ctx, field) if err != nil { return graphql.Null } @@ -16842,7 +15471,7 @@ func (ec *executionContext) _Mutation_cr_listBuildsByBuildCacheId(ctx context.Co resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CrListBuildsByBuildCacheID(rctx, fc.Args["buildCacheKeyId"].(repos.ID), fc.Args["pagination"].(*repos.CursorPagination)) + return ec.resolvers.Mutation().CrTriggerBuild(rctx, fc.Args["id"].(repos.ID)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -16864,39 +15493,34 @@ func (ec *executionContext) _Mutation_cr_listBuildsByBuildCacheId(ctx context.Co if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.BuildPaginatedRecords); ok { + if data, ok := tmp.(bool); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/app/graph/model.BuildPaginatedRecords`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) }) 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.BuildPaginatedRecords) + res := resTmp.(bool) fc.Result = res - return ec.marshalOBuildPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildPaginatedRecords(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_cr_listBuildsByBuildCacheId(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_cr_triggerBuild(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 "edges": - return ec.fieldContext_BuildPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_BuildPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_BuildPaginatedRecords_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type BuildPaginatedRecords", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } defer func() { @@ -16906,7 +15530,7 @@ func (ec *executionContext) fieldContext_Mutation_cr_listBuildsByBuildCacheId(ct } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_cr_listBuildsByBuildCacheId_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_cr_triggerBuild_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } @@ -18270,95 +16894,17 @@ func (ec *executionContext) fieldContext_Query_cr_listGitlabRepositories(ctx con case "pathWithNamespace": return ec.fieldContext_GitlabProject_pathWithNamespace(ctx, field) case "public": - return ec.fieldContext_GitlabProject_public(ctx, field) - case "sshUrlToRepo": - return ec.fieldContext_GitlabProject_sshUrlToRepo(ctx, field) - case "tagList": - return ec.fieldContext_GitlabProject_tagList(ctx, field) - case "topics": - return ec.fieldContext_GitlabProject_topics(ctx, field) - case "webUrl": - return ec.fieldContext_GitlabProject_webUrl(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GitlabProject", 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_cr_listGitlabRepositories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_cr_listGitlabBranches(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_cr_listGitlabBranches(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - directive0 := func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().CrListGitlabBranches(rctx, fc.Args["repoId"].(string), fc.Args["query"].(*string), fc.Args["pagination"].(*types.Pagination)) - } - directive1 := func(ctx context.Context) (interface{}, error) { - if ec.directives.IsLoggedInAndVerified == nil { - return nil, errors.New("directive isLoggedInAndVerified is not implemented") - } - return ec.directives.IsLoggedInAndVerified(ctx, nil, directive0) - } - - tmp, err := directive1(rctx) - if err != nil { - return nil, graphql.ErrorOnPath(ctx, err) - } - if tmp == nil { - return nil, nil - } - if data, ok := tmp.([]*entities.GitBranch); ok { - return data, nil - } - return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kloudlite/api/apps/container-registry/internal/domain/entities.GitBranch`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*entities.GitBranch) - fc.Result = res - return ec.marshalOGitBranch2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐGitBranchᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_cr_listGitlabBranches(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 "name": - return ec.fieldContext_GitBranch_name(ctx, field) - case "protected": - return ec.fieldContext_GitBranch_protected(ctx, field) + return ec.fieldContext_GitlabProject_public(ctx, field) + case "sshUrlToRepo": + return ec.fieldContext_GitlabProject_sshUrlToRepo(ctx, field) + case "tagList": + return ec.fieldContext_GitlabProject_tagList(ctx, field) + case "topics": + return ec.fieldContext_GitlabProject_topics(ctx, field) + case "webUrl": + return ec.fieldContext_GitlabProject_webUrl(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GitBranch", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GitlabProject", field.Name) }, } defer func() { @@ -18368,15 +16914,15 @@ func (ec *executionContext) fieldContext_Query_cr_listGitlabBranches(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_cr_listGitlabBranches_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_cr_listGitlabRepositories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_cr_listBuildCacheKeys(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_cr_listBuildCacheKeys(ctx, field) +func (ec *executionContext) _Query_cr_listGitlabBranches(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_cr_listGitlabBranches(ctx, field) if err != nil { return graphql.Null } @@ -18390,7 +16936,7 @@ func (ec *executionContext) _Query_cr_listBuildCacheKeys(ctx context.Context, fi resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().CrListBuildCacheKeys(rctx, fc.Args["pq"].(*repos.CursorPagination), fc.Args["search"].(*model.SearchBuildCacheKeys)) + return ec.resolvers.Query().CrListGitlabBranches(rctx, fc.Args["repoId"].(string), fc.Args["query"].(*string), fc.Args["pagination"].(*types.Pagination)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -18398,24 +16944,18 @@ func (ec *executionContext) _Query_cr_listBuildCacheKeys(ctx context.Context, fi } return ec.directives.IsLoggedInAndVerified(ctx, nil, directive0) } - directive2 := func(ctx context.Context) (interface{}, error) { - if ec.directives.HasAccount == nil { - return nil, errors.New("directive hasAccount is not implemented") - } - return ec.directives.HasAccount(ctx, nil, directive1) - } - tmp, err := directive2(rctx) + tmp, err := directive1(rctx) if err != nil { return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.BuildCacheKeyPaginatedRecords); ok { + if data, ok := tmp.([]*entities.GitBranch); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/container-registry/internal/app/graph/model.BuildCacheKeyPaginatedRecords`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kloudlite/api/apps/container-registry/internal/domain/entities.GitBranch`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -18424,12 +16964,12 @@ func (ec *executionContext) _Query_cr_listBuildCacheKeys(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.BuildCacheKeyPaginatedRecords) + res := resTmp.([]*entities.GitBranch) fc.Result = res - return ec.marshalOBuildCacheKeyPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildCacheKeyPaginatedRecords(ctx, field.Selections, res) + return ec.marshalOGitBranch2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐGitBranchᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_cr_listBuildCacheKeys(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_cr_listGitlabBranches(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -18437,14 +16977,12 @@ func (ec *executionContext) fieldContext_Query_cr_listBuildCacheKeys(ctx context IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_BuildCacheKeyPaginatedRecords_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_BuildCacheKeyPaginatedRecords_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_BuildCacheKeyPaginatedRecords_totalCount(ctx, field) + case "name": + return ec.fieldContext_GitBranch_name(ctx, field) + case "protected": + return ec.fieldContext_GitBranch_protected(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type BuildCacheKeyPaginatedRecords", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GitBranch", field.Name) }, } defer func() { @@ -18454,7 +16992,7 @@ func (ec *executionContext) fieldContext_Query_cr_listBuildCacheKeys(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_cr_listBuildCacheKeys_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_cr_listGitlabBranches_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } @@ -18476,7 +17014,7 @@ func (ec *executionContext) _Query_cr_listBuildRuns(ctx context.Context, field g resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().CrListBuildRuns(rctx, fc.Args["buildID"].(repos.ID), fc.Args["search"].(*model.SearchBuildRuns), fc.Args["pq"].(*repos.CursorPagination)) + return ec.resolvers.Query().CrListBuildRuns(rctx, fc.Args["search"].(*model.SearchBuildRuns), fc.Args["pq"].(*repos.CursorPagination)) } directive1 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsLoggedInAndVerified == nil { @@ -21372,55 +19910,6 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Conte // region **************************** input.gotpl ***************************** -func (ec *executionContext) unmarshalInputBuildCacheKeyIn(ctx context.Context, obj interface{}) (entities.BuildCacheKey, error) { - var it entities.BuildCacheKey - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"displayName", "name", "volumeSizeInGB"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "displayName": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.DisplayName = data - case "name": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "volumeSizeInGB": - var err error - - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("volumeSizeInGB")) - data, err := ec.unmarshalNFloat2float64(ctx, v) - if err != nil { - return it, err - } - if err = ec.resolvers.BuildCacheKeyIn().VolumeSizeInGb(ctx, &it, data); err != nil { - return it, err - } - } - } - - return it, nil -} - func (ec *executionContext) unmarshalInputBuildIn(ctx context.Context, obj interface{}) (entities.Build, error) { var it entities.Build asMap := map[string]interface{}{} @@ -21882,7 +20371,7 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a asMap[k] = v } - fieldsInOrder := [...]string{"buildOptions", "cacheKeyName", "registry", "resource"} + fieldsInOrder := [...]string{"buildOptions", "caches", "registry", "resource"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -21898,15 +20387,15 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a return it, err } it.BuildOptions = data - case "cacheKeyName": + case "caches": var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cacheKeyName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("caches")) + data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___distribution___v1__CacheIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1CacheInᚄ(ctx, v) if err != nil { return it, err } - it.CacheKeyName = data + it.Caches = data case "registry": var err error @@ -21931,6 +20420,44 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a return it, nil } +func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___distribution___v1__CacheIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisDistributionV1CacheIn, error) { + var it model.GithubComKloudliteOperatorApisDistributionV1CacheIn + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"name", "path"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "name": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "path": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("path")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Path = data + } + } + + return it, nil +} + func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___apis___distribution___v1__RegistryIn(ctx context.Context, obj interface{}) (model.GithubComKloudliteOperatorApisDistributionV1RegistryIn, error) { var it model.GithubComKloudliteOperatorApisDistributionV1RegistryIn asMap := map[string]interface{}{} @@ -22535,58 +21062,38 @@ func (ec *executionContext) unmarshalInputRepositoryIn(ctx context.Context, obj return it, nil } -func (ec *executionContext) unmarshalInputSearchBuildCacheKeys(ctx context.Context, obj interface{}) (model.SearchBuildCacheKeys, error) { - var it model.SearchBuildCacheKeys +func (ec *executionContext) unmarshalInputSearchBuildRuns(ctx context.Context, obj interface{}) (model.SearchBuildRuns, error) { + var it model.SearchBuildRuns asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"text"} + fieldsInOrder := [...]string{"buildId", "repoName"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "text": + case "buildId": var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("buildId")) + data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, v) if err != nil { return it, err } - it.Text = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSearchBuildRuns(ctx context.Context, obj interface{}) (model.SearchBuildRuns, error) { - var it model.SearchBuildRuns - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"text"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "text": + it.BuildID = data + case "repoName": var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("repoName")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { return it, err } - it.Text = data + it.RepoName = data } } @@ -22703,126 +21210,27 @@ func (ec *executionContext) __Entity(ctx context.Context, sel ast.SelectionSet, // region **************************** object.gotpl **************************** var buildImplementors = []string{"Build", "_Entity"} - -func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, obj *entities.Build) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, buildImplementors) - - 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("Build") - case "buildClusterName": - out.Values[i] = ec._Build_buildClusterName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._Build_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "creationTime": - 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._Build_creationTime(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 "credUser": - out.Values[i] = ec._Build_credUser(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "errorMessages": - 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._Build_errorMessages(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 "id": - out.Values[i] = ec._Build_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "lastUpdatedBy": - out.Values[i] = ec._Build_lastUpdatedBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "markedForDeletion": - out.Values[i] = ec._Build_markedForDeletion(ctx, field, obj) - case "name": - out.Values[i] = ec._Build_name(ctx, field, obj) + +func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, obj *entities.Build) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, buildImplementors) + + 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("Build") + case "buildClusterName": + out.Values[i] = ec._Build_buildClusterName(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "recordVersion": - out.Values[i] = ec._Build_recordVersion(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Build_createdBy(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "source": + case "creationTime": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -22831,7 +21239,7 @@ func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Build_source(ctx, field, obj) + res = ec._Build_creationTime(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -22858,7 +21266,12 @@ func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "spec": + case "credUser": + out.Values[i] = ec._Build_credUser(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "errorMessages": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -22867,7 +21280,7 @@ func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Build_spec(ctx, field, obj) + res = ec._Build_errorMessages(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -22894,7 +21307,29 @@ func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "status": + case "id": + out.Values[i] = ec._Build_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "lastUpdatedBy": + out.Values[i] = ec._Build_lastUpdatedBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "markedForDeletion": + out.Values[i] = ec._Build_markedForDeletion(ctx, field, obj) + case "name": + out.Values[i] = ec._Build_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "recordVersion": + out.Values[i] = ec._Build_recordVersion(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "source": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -22903,7 +21338,7 @@ func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Build_status(ctx, field, obj) + res = ec._Build_source(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -22930,7 +21365,7 @@ func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "updateTime": + case "spec": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -22939,7 +21374,7 @@ func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Build_updateTime(ctx, field, obj) + res = ec._Build_spec(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -22966,84 +21401,7 @@ func (ec *executionContext) _Build(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "latestBuildRun": - 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._Build_latestBuildRun(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 buildCacheKeyImplementors = []string{"BuildCacheKey"} - -func (ec *executionContext) _BuildCacheKey(ctx context.Context, sel ast.SelectionSet, obj *entities.BuildCacheKey) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, buildCacheKeyImplementors) - - 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("BuildCacheKey") - case "accountName": - out.Values[i] = ec._BuildCacheKey_accountName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdBy": - out.Values[i] = ec._BuildCacheKey_createdBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "creationTime": + case "status": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -23052,7 +21410,7 @@ func (ec *executionContext) _BuildCacheKey(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._BuildCacheKey_creationTime(ctx, field, obj) + res = ec._Build_status(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -23079,33 +21437,6 @@ func (ec *executionContext) _BuildCacheKey(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "displayName": - out.Values[i] = ec._BuildCacheKey_displayName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "id": - out.Values[i] = ec._BuildCacheKey_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "lastUpdatedBy": - out.Values[i] = ec._BuildCacheKey_lastUpdatedBy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "markedForDeletion": - out.Values[i] = ec._BuildCacheKey_markedForDeletion(ctx, field, obj) - case "name": - out.Values[i] = ec._BuildCacheKey_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "recordVersion": - out.Values[i] = ec._BuildCacheKey_recordVersion(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } case "updateTime": field := field @@ -23115,7 +21446,7 @@ func (ec *executionContext) _BuildCacheKey(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._BuildCacheKey_updateTime(ctx, field, obj) + res = ec._Build_updateTime(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -23142,7 +21473,7 @@ func (ec *executionContext) _BuildCacheKey(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "volumeSizeInGB": + case "latestBuildRun": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -23151,126 +21482,30 @@ func (ec *executionContext) _BuildCacheKey(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._BuildCacheKey_volumeSizeInGB(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Build_latestBuildRun(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 buildCacheKeyEdgeImplementors = []string{"BuildCacheKeyEdge"} - -func (ec *executionContext) _BuildCacheKeyEdge(ctx context.Context, sel ast.SelectionSet, obj *model.BuildCacheKeyEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, buildCacheKeyEdgeImplementors) - - 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("BuildCacheKeyEdge") - case "cursor": - out.Values[i] = ec._BuildCacheKeyEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._BuildCacheKeyEdge_node(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 buildCacheKeyPaginatedRecordsImplementors = []string{"BuildCacheKeyPaginatedRecords"} - -func (ec *executionContext) _BuildCacheKeyPaginatedRecords(ctx context.Context, sel ast.SelectionSet, obj *model.BuildCacheKeyPaginatedRecords) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, buildCacheKeyPaginatedRecordsImplementors) - - 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("BuildCacheKeyPaginatedRecords") - case "edges": - out.Values[i] = ec._BuildCacheKeyPaginatedRecords_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._BuildCacheKeyPaginatedRecords_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._BuildCacheKeyPaginatedRecords_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + 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)) } @@ -25177,8 +23412,8 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib } case "buildOptions": out.Values[i] = ec._Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_buildOptions(ctx, field, obj) - case "cacheKeyName": - out.Values[i] = ec._Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_cacheKeyName(ctx, field, obj) + case "caches": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_caches(ctx, field, obj) case "registry": out.Values[i] = ec._Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec_registry(ctx, field, obj) if out.Values[i] == graphql.Null { @@ -25212,6 +23447,50 @@ func (ec *executionContext) _Github__com___kloudlite___operator___apis___distrib return out } +var github__com___kloudlite___operator___apis___distribution___v1__CacheImplementors = []string{"Github__com___kloudlite___operator___apis___distribution___v1__Cache"} + +func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Cache(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisDistributionV1Cache) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, github__com___kloudlite___operator___apis___distribution___v1__CacheImplementors) + + 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("Github__com___kloudlite___operator___apis___distribution___v1__Cache") + case "name": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___distribution___v1__Cache_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "path": + out.Values[i] = ec._Github__com___kloudlite___operator___apis___distribution___v1__Cache_path(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 github__com___kloudlite___operator___apis___distribution___v1__RegistryImplementors = []string{"Github__com___kloudlite___operator___apis___distribution___v1__Registry"} func (ec *executionContext) _Github__com___kloudlite___operator___apis___distribution___v1__Registry(ctx context.Context, sel ast.SelectionSet, obj *model.GithubComKloudliteOperatorApisDistributionV1Registry) graphql.Marshaler { @@ -26185,25 +24464,6 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) if out.Values[i] == graphql.Null { out.Invalids++ } - case "cr_addBuildCacheKey": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_cr_addBuildCacheKey(ctx, field) - }) - case "cr_deleteBuildCacheKey": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_cr_deleteBuildCacheKey(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cr_updateBuildCacheKey": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_cr_updateBuildCacheKey(ctx, field) - }) - case "cr_listBuildsByBuildCacheId": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_cr_listBuildsByBuildCacheId(ctx, field) - }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -26597,25 +24857,6 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "cr_listBuildCacheKeys": - 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._Query_cr_listBuildCacheKeys(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 "cr_listBuildRuns": field := field @@ -27373,75 +25614,6 @@ func (ec *executionContext) marshalNBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋap return ec._Build(ctx, sel, v) } -func (ec *executionContext) marshalNBuildCacheKey2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildCacheKey(ctx context.Context, sel ast.SelectionSet, v *entities.BuildCacheKey) 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._BuildCacheKey(ctx, sel, v) -} - -func (ec *executionContext) marshalNBuildCacheKeyEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildCacheKeyEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.BuildCacheKeyEdge) 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.marshalNBuildCacheKeyEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildCacheKeyEdge(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) marshalNBuildCacheKeyEdge2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildCacheKeyEdge(ctx context.Context, sel ast.SelectionSet, v *model.BuildCacheKeyEdge) 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._BuildCacheKeyEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNBuildCacheKeyIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildCacheKey(ctx context.Context, v interface{}) (entities.BuildCacheKey, error) { - res, err := ec.unmarshalInputBuildCacheKeyIn(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - func (ec *executionContext) marshalNBuildEdge2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.BuildEdge) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup @@ -27742,21 +25914,6 @@ func (ec *executionContext) marshalNFieldSet2string(ctx context.Context, sel ast return res } -func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) { - res, err := graphql.UnmarshalFloatContext(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { - res := graphql.MarshalFloatContext(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 graphql.WrapContextMarshaler(ctx, res) -} - func (ec *executionContext) marshalNGitBranch2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐGitBranch(ctx context.Context, sel ast.SelectionSet, v *entities.GitBranch) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { @@ -27965,6 +26122,21 @@ func (ec *executionContext) unmarshalNGithub__com___kloudlite___operator___apis_ return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalNGithub__com___kloudlite___operator___apis___distribution___v1__Cache2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Cache(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisDistributionV1Cache) 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._Github__com___kloudlite___operator___apis___distribution___v1__Cache(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNGithub__com___kloudlite___operator___apis___distribution___v1__CacheIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1CacheIn(ctx context.Context, v interface{}) (*model.GithubComKloudliteOperatorApisDistributionV1CacheIn, error) { + res, err := ec.unmarshalInputGithub__com___kloudlite___operator___apis___distribution___v1__CacheIn(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalNGithub__com___kloudlite___operator___apis___distribution___v1__Registry2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Registry(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisDistributionV1Registry) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { @@ -28696,7 +26868,7 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕᚕstringᚄ(ctx contex return ret } -func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (any, error) { +func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (interface{}, error) { if v == nil { return nil, nil } @@ -28704,7 +26876,7 @@ func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v inter return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.SelectionSet, v any) graphql.Marshaler { +func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.SelectionSet, v interface{}) graphql.Marshaler { if v == nil { return graphql.Null } @@ -28783,20 +26955,6 @@ func (ec *executionContext) marshalOBuild2ᚖgithubᚗcomᚋkloudliteᚋapiᚋap return ec._Build(ctx, sel, v) } -func (ec *executionContext) marshalOBuildCacheKey2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋdomainᚋentitiesᚐBuildCacheKey(ctx context.Context, sel ast.SelectionSet, v *entities.BuildCacheKey) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._BuildCacheKey(ctx, sel, v) -} - -func (ec *executionContext) marshalOBuildCacheKeyPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildCacheKeyPaginatedRecords(ctx context.Context, sel ast.SelectionSet, v *model.BuildCacheKeyPaginatedRecords) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._BuildCacheKeyPaginatedRecords(ctx, sel, v) -} - func (ec *executionContext) marshalOBuildPaginatedRecords2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐBuildPaginatedRecords(ctx context.Context, sel ast.SelectionSet, v *model.BuildPaginatedRecords) graphql.Marshaler { if v == nil { return graphql.Null @@ -29018,6 +27176,73 @@ func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___ return ec._Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec(ctx, sel, v) } +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___distribution___v1__Cache2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Cacheᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.GithubComKloudliteOperatorApisDistributionV1Cache) 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.marshalNGithub__com___kloudlite___operator___apis___distribution___v1__Cache2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1Cache(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) unmarshalOGithub__com___kloudlite___operator___apis___distribution___v1__CacheIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1CacheInᚄ(ctx context.Context, v interface{}) ([]*model.GithubComKloudliteOperatorApisDistributionV1CacheIn, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.GithubComKloudliteOperatorApisDistributionV1CacheIn, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGithub__com___kloudlite___operator___apis___distribution___v1__CacheIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisDistributionV1CacheIn(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + func (ec *executionContext) marshalOGithub__com___kloudlite___operator___pkg___operator__CheckMeta2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMetaᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.GithubComKloudliteOperatorPkgOperatorCheckMeta) graphql.Marshaler { if v == nil { return graphql.Null @@ -29284,6 +27509,23 @@ func (ec *executionContext) marshalOGitlabProject2ᚕᚖgithubᚗcomᚋkloudlite return ret } +func (ec *executionContext) unmarshalOID2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx context.Context, v interface{}) (*repos.ID, error) { + if v == nil { + return nil, nil + } + tmp, err := graphql.UnmarshalString(v) + res := repos.ID(tmp) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOID2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx context.Context, sel ast.SelectionSet, v *repos.ID) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(string(*v)) + return res +} + func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { res, err := graphql.UnmarshalInt(v) return res, graphql.ErrorOnPath(ctx, err) @@ -29376,14 +27618,6 @@ func (ec *executionContext) marshalORepositoryPaginatedRecords2ᚖgithubᚗcom return ec._RepositoryPaginatedRecords(ctx, sel, v) } -func (ec *executionContext) unmarshalOSearchBuildCacheKeys2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐSearchBuildCacheKeys(ctx context.Context, v interface{}) (*model.SearchBuildCacheKeys, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputSearchBuildCacheKeys(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - func (ec *executionContext) unmarshalOSearchBuildRuns2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋcontainerᚑregistryᚋinternalᚋappᚋgraphᚋmodelᚐSearchBuildRuns(ctx context.Context, v interface{}) (*model.SearchBuildRuns, error) { if v == nil { return nil, nil diff --git a/apps/container-registry/internal/app/graph/model/models_gen.go b/apps/container-registry/internal/app/graph/model/models_gen.go index e4e6e4561..f9e7d3010 100644 --- a/apps/container-registry/internal/app/graph/model/models_gen.go +++ b/apps/container-registry/internal/app/graph/model/models_gen.go @@ -11,17 +11,6 @@ import ( "github.com/kloudlite/api/pkg/repos" ) -type BuildCacheKeyEdge struct { - Cursor string `json:"cursor"` - Node *entities.BuildCacheKey `json:"node"` -} - -type BuildCacheKeyPaginatedRecords struct { - Edges []*BuildCacheKeyEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` -} - type BuildEdge struct { Cursor string `json:"cursor"` Node *entities.Build `json:"node"` @@ -167,18 +156,28 @@ type GithubComKloudliteOperatorApisDistributionV1BuildOptionsIn struct { type GithubComKloudliteOperatorApisDistributionV1BuildRunSpec struct { AccountName string `json:"accountName"` BuildOptions *GithubComKloudliteOperatorApisDistributionV1BuildOptions `json:"buildOptions,omitempty"` - CacheKeyName *string `json:"cacheKeyName,omitempty"` + Caches []*GithubComKloudliteOperatorApisDistributionV1Cache `json:"caches,omitempty"` Registry *GithubComKloudliteOperatorApisDistributionV1Registry `json:"registry"` Resource *GithubComKloudliteOperatorApisDistributionV1Resource `json:"resource"` } type GithubComKloudliteOperatorApisDistributionV1BuildRunSpecIn struct { BuildOptions *GithubComKloudliteOperatorApisDistributionV1BuildOptionsIn `json:"buildOptions,omitempty"` - CacheKeyName *string `json:"cacheKeyName,omitempty"` + Caches []*GithubComKloudliteOperatorApisDistributionV1CacheIn `json:"caches,omitempty"` Registry *GithubComKloudliteOperatorApisDistributionV1RegistryIn `json:"registry"` Resource *GithubComKloudliteOperatorApisDistributionV1ResourceIn `json:"resource"` } +type GithubComKloudliteOperatorApisDistributionV1Cache struct { + Name string `json:"name"` + Path string `json:"path"` +} + +type GithubComKloudliteOperatorApisDistributionV1CacheIn struct { + Name string `json:"name"` + Path string `json:"path"` +} + type GithubComKloudliteOperatorApisDistributionV1Registry struct { Repo *GithubComKloudliteOperatorApisDistributionV1Repo `json:"repo"` } @@ -314,12 +313,9 @@ type RepositoryPaginatedRecords struct { TotalCount int `json:"totalCount"` } -type SearchBuildCacheKeys struct { - Text *repos.MatchFilter `json:"text,omitempty"` -} - type SearchBuildRuns struct { - Text *repos.MatchFilter `json:"text,omitempty"` + BuildID *repos.ID `json:"buildId,omitempty"` + RepoName *repos.MatchFilter `json:"repoName,omitempty"` } type SearchBuilds struct { diff --git a/apps/container-registry/internal/app/graph/schema.graphqls b/apps/container-registry/internal/app/graph/schema.graphqls index 2f8da709e..ce064efa8 100644 --- a/apps/container-registry/internal/app/graph/schema.graphqls +++ b/apps/container-registry/internal/app/graph/schema.graphqls @@ -14,11 +14,8 @@ input SearchBuilds { } input SearchBuildRuns { - text: MatchFilterIn -} - -input SearchBuildCacheKeys { - text: MatchFilterIn + buildId: ID + repoName: MatchFilterIn } type CRCheckNameAvailabilityOutput @shareable { @@ -28,48 +25,42 @@ type CRCheckNameAvailabilityOutput @shareable { type Query { cr_listRepos(search: SearchRepos, pagination: CursorPaginationIn): RepositoryPaginatedRecords @isLoggedInAndVerified @hasAccount - cr_listCreds(search:SearchCreds, pagination:CursorPaginationIn) : CredentialPaginatedRecords @isLoggedInAndVerified @hasAccount - cr_listDigests(repoName:String!, search: SearchRepos, pagination:CursorPaginationIn) : DigestPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_listCreds(search: SearchCreds, pagination: CursorPaginationIn): CredentialPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_listDigests(repoName: String!, search: SearchRepos, pagination: CursorPaginationIn): DigestPaginatedRecords @isLoggedInAndVerified @hasAccount - cr_getCredToken(username:String!) : String! @isLoggedInAndVerified @hasAccount + cr_getCredToken(username: String!): String! @isLoggedInAndVerified @hasAccount - cr_checkUserNameAvailability(name:String!) :CRCheckNameAvailabilityOutput! @isLoggedInAndVerified @hasAccount + cr_checkUserNameAvailability(name: String!): CRCheckNameAvailabilityOutput! @isLoggedInAndVerified @hasAccount - cr_getBuild(id:ID!) : Build @isLoggedInAndVerified @hasAccount - cr_listBuilds(repoName:String!, search:SearchBuilds, pagination:CursorPaginationIn) : BuildPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_getBuild(id: ID!): Build @isLoggedInAndVerified @hasAccount + cr_listBuilds(repoName: String!, search: SearchBuilds, pagination: CursorPaginationIn): BuildPaginatedRecords @isLoggedInAndVerified @hasAccount - cr_listGithubInstallations(pagination:PaginationIn) : [GithubInstallation!] @isLoggedInAndVerified - cr_listGithubRepos(installationId:Int!, pagination:PaginationIn): GithubListRepository @isLoggedInAndVerified - cr_searchGithubRepos(organization:String!, search:String!, pagination:PaginationIn): GithubSearchRepository @isLoggedInAndVerified - cr_listGithubBranches(repoUrl:String!, pagination:PaginationIn) : [GitBranch!] @isLoggedInAndVerified + cr_listGithubInstallations(pagination: PaginationIn): [GithubInstallation!] @isLoggedInAndVerified + cr_listGithubRepos(installationId: Int!, pagination: PaginationIn): GithubListRepository @isLoggedInAndVerified + cr_searchGithubRepos(organization: String!, search: String!, pagination: PaginationIn): GithubSearchRepository @isLoggedInAndVerified + cr_listGithubBranches(repoUrl: String!, pagination: PaginationIn): [GitBranch!] @isLoggedInAndVerified - cr_listGitlabGroups(query:String, pagination:PaginationIn) : [GitlabGroup!] @isLoggedInAndVerified - cr_listGitlabRepositories(groupId:String!, query:String, pagination:PaginationIn) : [GitlabProject!] @isLoggedInAndVerified - cr_listGitlabBranches(repoId: String!, query:String, pagination:PaginationIn) : [GitBranch!] @isLoggedInAndVerified - cr_listBuildCacheKeys(pq: CursorPaginationIn, search: SearchBuildCacheKeys) : BuildCacheKeyPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_listGitlabGroups(query: String, pagination: PaginationIn): [GitlabGroup!] @isLoggedInAndVerified + cr_listGitlabRepositories(groupId: String!, query: String, pagination: PaginationIn): [GitlabProject!] @isLoggedInAndVerified + cr_listGitlabBranches(repoId: String!, query: String, pagination: PaginationIn): [GitBranch!] @isLoggedInAndVerified - cr_listBuildRuns(buildID: ID!, search: SearchBuildRuns, pq: CursorPaginationIn): BuildRunPaginatedRecords @isLoggedInAndVerified @hasAccount + # cr_listBuildRuns(buildID: ID!, search: SearchBuildRuns, pq: CursorPaginationIn): BuildRunPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_listBuildRuns(search: SearchBuildRuns, pq: CursorPaginationIn): BuildRunPaginatedRecords @isLoggedInAndVerified @hasAccount cr_getBuildRun(buildID: ID!, buildRunName: String!): BuildRun @isLoggedInAndVerified @hasAccount } type Mutation { - cr_createRepo(repository:RepositoryIn!) : Repository @isLoggedInAndVerified @hasAccount - cr_createCred(credential: CredentialIn!) : Credential @isLoggedInAndVerified @hasAccount - - cr_deleteRepo(name:String!) :Boolean! @isLoggedInAndVerified @hasAccount - cr_deleteCred(username:String!) :Boolean! @isLoggedInAndVerified @hasAccount - cr_deleteDigest(repoName:String!, digest:String!) :Boolean! @isLoggedInAndVerified @hasAccount - - cr_addBuild(build:BuildIn!) : Build @isLoggedInAndVerified @hasAccount - cr_updateBuild(id:ID!, build:BuildIn!) : Build @isLoggedInAndVerified @hasAccount - cr_deleteBuild(id:ID!) : Boolean! @isLoggedInAndVerified @hasAccount - cr_triggerBuild(id:ID!) : Boolean! @isLoggedInAndVerified @hasAccount + cr_createRepo(repository: RepositoryIn!): Repository @isLoggedInAndVerified @hasAccount + cr_createCred(credential: CredentialIn!): Credential @isLoggedInAndVerified @hasAccount - cr_addBuildCacheKey(buildCacheKey:BuildCacheKeyIn!) : BuildCacheKey @isLoggedInAndVerified @hasAccount - cr_deleteBuildCacheKey(id:ID!) : Boolean! @isLoggedInAndVerified @hasAccount - cr_updateBuildCacheKey(id:ID!, buildCacheKey:BuildCacheKeyIn!) : BuildCacheKey @isLoggedInAndVerified @hasAccount + cr_deleteRepo(name: String!): Boolean! @isLoggedInAndVerified @hasAccount + cr_deleteCred(username: String!): Boolean! @isLoggedInAndVerified @hasAccount + cr_deleteDigest(repoName: String!, digest: String!): Boolean! @isLoggedInAndVerified @hasAccount - cr_listBuildsByBuildCacheId(buildCacheKeyId:ID!, pagination:CursorPaginationIn) : BuildPaginatedRecords @isLoggedInAndVerified @hasAccount + cr_addBuild(build: BuildIn!): Build @isLoggedInAndVerified @hasAccount + cr_updateBuild(id: ID!, build: BuildIn!): Build @isLoggedInAndVerified @hasAccount + cr_deleteBuild(id: ID!): Boolean! @isLoggedInAndVerified @hasAccount + cr_triggerBuild(id: ID!): Boolean! @isLoggedInAndVerified @hasAccount } extend type Build @key(fields: "id") { diff --git a/apps/container-registry/internal/app/graph/schema.resolvers.go b/apps/container-registry/internal/app/graph/schema.resolvers.go index 2667a0871..3b8cb4b85 100644 --- a/apps/container-registry/internal/app/graph/schema.resolvers.go +++ b/apps/container-registry/internal/app/graph/schema.resolvers.go @@ -129,73 +129,6 @@ func (r *mutationResolver) CrTriggerBuild(ctx context.Context, id repos.ID) (boo return true, nil } -// CrAddBuildCacheKey is the resolver for the cr_addBuildCacheKey field. -func (r *mutationResolver) CrAddBuildCacheKey(ctx context.Context, buildCacheKey entities.BuildCacheKey) (*entities.BuildCacheKey, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return nil, errors.NewE(err) - } - - return r.Domain.AddBuildCache(cc, buildCacheKey) -} - -// CrDeleteBuildCacheKey is the resolver for the cr_deleteBuildCacheKey field. -func (r *mutationResolver) CrDeleteBuildCacheKey(ctx context.Context, id repos.ID) (bool, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return false, errors.NewE(err) - } - - if err := r.Domain.DeleteBuildCache(cc, id); err != nil { - return false, errors.NewE(err) - } - return true, nil -} - -// CrUpdateBuildCacheKey is the resolver for the cr_updateBuildCacheKey field. -func (r *mutationResolver) CrUpdateBuildCacheKey(ctx context.Context, id repos.ID, buildCacheKey entities.BuildCacheKey) (*entities.BuildCacheKey, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return nil, errors.NewE(err) - } - - return r.Domain.UpdateBuildCache(cc, id, buildCacheKey) -} - -// CrListBuildsByBuildCacheID is the resolver for the cr_listBuildsByBuildCacheId field. -func (r *mutationResolver) CrListBuildsByBuildCacheID(ctx context.Context, buildCacheKeyID repos.ID, pagination *repos.CursorPagination) (*model.BuildPaginatedRecords, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return nil, errors.NewE(err) - } - - rr, err := r.Domain.ListBuildsByCache(cc, buildCacheKeyID, fn.DefaultIfNil(pagination, repos.DefaultCursorPagination)) - if err != nil { - return nil, errors.NewE(err) - } - - records := make([]*model.BuildEdge, len(rr.Edges)) - - for i := range rr.Edges { - records[i] = &model.BuildEdge{ - Node: rr.Edges[i].Node, - Cursor: rr.Edges[i].Cursor, - } - } - - m := &model.BuildPaginatedRecords{ - Edges: records, - PageInfo: &model.PageInfo{ - HasNextPage: rr.PageInfo.HasNextPage, - HasPreviousPage: rr.PageInfo.HasPrevPage, - StartCursor: &rr.PageInfo.StartCursor, - EndCursor: &rr.PageInfo.EndCursor, - }, - } - - return m, nil -} - // CrListRepos is the resolver for the cr_listRepos field. func (r *queryResolver) CrListRepos(ctx context.Context, search *model.SearchRepos, pagination *repos.CursorPagination) (*model.RepositoryPaginatedRecords, error) { cc, err := toRegistryContext(ctx) @@ -467,35 +400,108 @@ func (r *queryResolver) CrListGitlabBranches(ctx context.Context, repoID string, return r.Domain.GitlabListBranches(ctx, userId, repoID, query, pagination) } -// CrListBuildCacheKeys is the resolver for the cr_listBuildCacheKeys field. -func (r *queryResolver) CrListBuildCacheKeys(ctx context.Context, pq *repos.CursorPagination, search *model.SearchBuildCacheKeys) (*model.BuildCacheKeyPaginatedRecords, error) { +// CrListBuildRuns is the resolver for the cr_listBuildRuns field. +func (r *queryResolver) CrListBuildRuns(ctx context.Context, search *model.SearchBuildRuns, pq *repos.CursorPagination) (*model.BuildRunPaginatedRecords, error) { + filter := map[string]repos.MatchFilter{} + if search != nil { + if search.BuildID != nil { + filter["buildId"] = repos.MatchFilter{ + MatchType: repos.MatchTypeExact, + Exact: *search.BuildID, + } + } + + if search.RepoName != nil { + filter["spec.registry.repo"] = *search.RepoName + } + } + cc, err := toRegistryContext(ctx) if err != nil { return nil, errors.NewE(err) } - filter := map[string]repos.MatchFilter{} - if search != nil { - if search.Text != nil { - filter["name"] = *search.Text - } + buildRuns, err := r.Domain.ListBuildRuns(cc, filter, fn.DefaultIfNil(pq, repos.DefaultCursorPagination)) + if err != nil { + return nil, errors.NewE(err) } - rr, err := r.Domain.ListBuildCaches(cc, filter, fn.DefaultIfNil(pq, repos.DefaultCursorPagination)) + return fn.JsonConvertP[model.BuildRunPaginatedRecords](buildRuns) +} + +// CrGetBuildRun is the resolver for the cr_getBuildRun field. +func (r *queryResolver) CrGetBuildRun(ctx context.Context, buildID repos.ID, buildRunName string) (*entities.BuildRun, error) { + cc, err := toRegistryContext(ctx) if err != nil { return nil, errors.NewE(err) } - records := make([]*model.BuildCacheKeyEdge, len(rr.Edges)) + return r.Domain.GetBuildRun(cc, buildID, buildRunName) +} + +// Mutation returns generated1.MutationResolver implementation. +func (r *Resolver) Mutation() generated1.MutationResolver { return &mutationResolver{r} } + +// Query returns generated1.QueryResolver implementation. +func (r *Resolver) Query() generated1.QueryResolver { return &queryResolver{r} } + +type mutationResolver struct{ *Resolver } +type queryResolver struct{ *Resolver } + +// !!! 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. +func (r *mutationResolver) CrAddBuildCacheKey(ctx context.Context, buildCacheKey entities.BuildCacheKey) (*entities.BuildCacheKey, error) { + cc, err := toRegistryContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + + return r.Domain.AddBuildCache(cc, buildCacheKey) +} +func (r *mutationResolver) CrDeleteBuildCacheKey(ctx context.Context, id repos.ID) (bool, error) { + cc, err := toRegistryContext(ctx) + if err != nil { + return false, errors.NewE(err) + } + + if err := r.Domain.DeleteBuildCache(cc, id); err != nil { + return false, errors.NewE(err) + } + return true, nil +} +func (r *mutationResolver) CrUpdateBuildCacheKey(ctx context.Context, id repos.ID, buildCacheKey entities.BuildCacheKey) (*entities.BuildCacheKey, error) { + cc, err := toRegistryContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + + return r.Domain.UpdateBuildCache(cc, id, buildCacheKey) +} +func (r *mutationResolver) CrListBuildsByBuildCacheID(ctx context.Context, buildCacheKeyID repos.ID, pagination *repos.CursorPagination) (*model.BuildPaginatedRecords, error) { + cc, err := toRegistryContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + + rr, err := r.Domain.ListBuildsByCache(cc, buildCacheKeyID, fn.DefaultIfNil(pagination, repos.DefaultCursorPagination)) + if err != nil { + return nil, errors.NewE(err) + } + + records := make([]*model.BuildEdge, len(rr.Edges)) for i := range rr.Edges { - records[i] = &model.BuildCacheKeyEdge{ + records[i] = &model.BuildEdge{ Node: rr.Edges[i].Node, Cursor: rr.Edges[i].Cursor, } } - m := &model.BuildCacheKeyPaginatedRecords{ + m := &model.BuildPaginatedRecords{ Edges: records, PageInfo: &model.PageInfo{ HasNextPage: rr.PageInfo.HasNextPage, @@ -507,44 +513,42 @@ func (r *queryResolver) CrListBuildCacheKeys(ctx context.Context, pq *repos.Curs return m, nil } +func (r *queryResolver) CrListBuildCacheKeys(ctx context.Context, pq *repos.CursorPagination, search *model.SearchBuildCacheKeys) (*model.BuildCacheKeyPaginatedRecords, error) { + cc, err := toRegistryContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } -// CrListBuildRuns is the resolver for the cr_listBuildRuns field. -func (r *queryResolver) CrListBuildRuns(ctx context.Context, buildID repos.ID, search *model.SearchBuildRuns, pq *repos.CursorPagination) (*model.BuildRunPaginatedRecords, error) { filter := map[string]repos.MatchFilter{} if search != nil { if search.Text != nil { - filter["metadata.name"] = *search.Text + filter["name"] = *search.Text } } - cc, err := toRegistryContext(ctx) + rr, err := r.Domain.ListBuildCaches(cc, filter, fn.DefaultIfNil(pq, repos.DefaultCursorPagination)) if err != nil { return nil, errors.NewE(err) } - buildRuns, err := r.Domain.ListBuildRuns(cc, buildID, filter, fn.DefaultIfNil(pq, repos.DefaultCursorPagination)) - if err != nil { - return nil, errors.NewE(err) - } + records := make([]*model.BuildCacheKeyEdge, len(rr.Edges)) - return fn.JsonConvertP[model.BuildRunPaginatedRecords](buildRuns) -} + for i := range rr.Edges { + records[i] = &model.BuildCacheKeyEdge{ + Node: rr.Edges[i].Node, + Cursor: rr.Edges[i].Cursor, + } + } -// CrGetBuildRun is the resolver for the cr_getBuildRun field. -func (r *queryResolver) CrGetBuildRun(ctx context.Context, buildID repos.ID, buildRunName string) (*entities.BuildRun, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return nil, errors.NewE(err) + m := &model.BuildCacheKeyPaginatedRecords{ + Edges: records, + PageInfo: &model.PageInfo{ + HasNextPage: rr.PageInfo.HasNextPage, + HasPreviousPage: rr.PageInfo.HasPrevPage, + StartCursor: &rr.PageInfo.StartCursor, + EndCursor: &rr.PageInfo.EndCursor, + }, } - return r.Domain.GetBuildRun(cc, buildID, buildRunName) + return m, nil } - -// Mutation returns generated1.MutationResolver implementation. -func (r *Resolver) Mutation() generated1.MutationResolver { return &mutationResolver{r} } - -// Query returns generated1.QueryResolver implementation. -func (r *Resolver) Query() generated1.QueryResolver { return &queryResolver{r} } - -type mutationResolver struct{ *Resolver } -type queryResolver struct{ *Resolver } diff --git a/apps/container-registry/internal/app/graph/struct-to-graphql/buildcachekey.graphqls b/apps/container-registry/internal/app/graph/struct-to-graphql/buildcachekey.graphqls deleted file mode 100644 index 60c1a0451..000000000 --- a/apps/container-registry/internal/app/graph/struct-to-graphql/buildcachekey.graphqls +++ /dev/null @@ -1,31 +0,0 @@ -type BuildCacheKey @shareable { - accountName: String! - createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - creationTime: Date! - displayName: String! - id: ID! - lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - markedForDeletion: Boolean - name: String! - recordVersion: Int! - updateTime: Date! - volumeSizeInGB: Float! -} - -type BuildCacheKeyEdge @shareable { - cursor: String! - node: BuildCacheKey! -} - -type BuildCacheKeyPaginatedRecords @shareable { - edges: [BuildCacheKeyEdge!]! - pageInfo: PageInfo! - totalCount: Int! -} - -input BuildCacheKeyIn { - displayName: String! - name: String! - volumeSizeInGB: Float! -} - diff --git a/apps/container-registry/internal/app/graph/struct-to-graphql/common-types.graphqls b/apps/container-registry/internal/app/graph/struct-to-graphql/common-types.graphqls index 58f3806a1..6f40b0b9b 100644 --- a/apps/container-registry/internal/app/graph/struct-to-graphql/common-types.graphqls +++ b/apps/container-registry/internal/app/graph/struct-to-graphql/common-types.graphqls @@ -72,11 +72,16 @@ type Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions type Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec @shareable { accountName: String! buildOptions: Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions - cacheKeyName: String + caches: [Github__com___kloudlite___operator___apis___distribution___v1__Cache!] registry: Github__com___kloudlite___operator___apis___distribution___v1__Registry! resource: Github__com___kloudlite___operator___apis___distribution___v1__Resource! } +type Github__com___kloudlite___operator___apis___distribution___v1__Cache @shareable { + name: String! + path: String! +} + type Github__com___kloudlite___operator___apis___distribution___v1__Registry @shareable { repo: Github__com___kloudlite___operator___apis___distribution___v1__Repo! } @@ -177,11 +182,16 @@ input Github__com___kloudlite___operator___apis___distribution___v1__BuildOption input Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpecIn { buildOptions: Github__com___kloudlite___operator___apis___distribution___v1__BuildOptionsIn - cacheKeyName: String + caches: [Github__com___kloudlite___operator___apis___distribution___v1__CacheIn!] registry: Github__com___kloudlite___operator___apis___distribution___v1__RegistryIn! resource: Github__com___kloudlite___operator___apis___distribution___v1__ResourceIn! } +input Github__com___kloudlite___operator___apis___distribution___v1__CacheIn { + name: String! + path: String! +} + input Github__com___kloudlite___operator___apis___distribution___v1__RegistryIn { repo: Github__com___kloudlite___operator___apis___distribution___v1__RepoIn! } diff --git a/apps/container-registry/internal/domain/api.go b/apps/container-registry/internal/domain/api.go index 0eab0349d..ba32a2191 100644 --- a/apps/container-registry/internal/domain/api.go +++ b/apps/container-registry/internal/domain/api.go @@ -80,17 +80,17 @@ type Domain interface { ListBuildsByGit(ctx context.Context, repoUrl, branch, provider string) ([]*entities.Build, error) - AddBuildCache(ctx RegistryContext, buildCache entities.BuildCacheKey) (*entities.BuildCacheKey, error) - UpdateBuildCache(ctx RegistryContext, id repos.ID, buildCache entities.BuildCacheKey) (*entities.BuildCacheKey, error) - DeleteBuildCache(ctx RegistryContext, id repos.ID) error - ListBuildCaches(ctx RegistryContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.BuildCacheKey], error) - ListBuildRuns(ctx RegistryContext, buildId repos.ID, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.BuildRun], error) + // AddBuildCache(ctx RegistryContext, buildCache entities.BuildCacheKey) (*entities.BuildCacheKey, error) + // UpdateBuildCache(ctx RegistryContext, id repos.ID, buildCache entities.BuildCacheKey) (*entities.BuildCacheKey, error) + // DeleteBuildCache(ctx RegistryContext, id repos.ID) error + // ListBuildCaches(ctx RegistryContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.BuildCacheKey], error) + ListBuildRuns(ctx RegistryContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.BuildRun], error) GetLatestBuildRun(ctx RegistryContext, buildId repos.ID) (*entities.BuildRun, error) GetBuildRun(ctx RegistryContext, buildId repos.ID, runName string) (*entities.BuildRun, error) OnBuildRunUpdateMessage(ctx RegistryContext, buildRun entities.BuildRun, status t.ResourceStatus, opts UpdateAndDeleteOpts) error OnBuildRunDeleteMessage(ctx RegistryContext, buildRun entities.BuildRun) error OnBuildRunApplyErrorMessage(ctx RegistryContext, clusterName string, name string, errorMsg string) error - ListBuildsByCache(ctx RegistryContext, cacheId repos.ID, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.Build], error) + // ListBuildsByCache(ctx RegistryContext, cacheId repos.ID, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.Build], error) CreateBuildRun(ctx RegistryContext, build *entities.Build, hook *GitWebhookPayload, pullToken string, seed string) error } diff --git a/apps/container-registry/internal/domain/build-cache.go b/apps/container-registry/internal/domain/build-cache.go index 5d91eb0ff..fb3dc3734 100644 --- a/apps/container-registry/internal/domain/build-cache.go +++ b/apps/container-registry/internal/domain/build-cache.go @@ -1,130 +1,130 @@ package domain -import ( - "github.com/kloudlite/api/apps/container-registry/internal/domain/entities" - fc "github.com/kloudlite/api/apps/container-registry/internal/domain/entities/field-constants" - iamT "github.com/kloudlite/api/apps/iam/types" - "github.com/kloudlite/api/common/fields" - "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/iam" - "github.com/kloudlite/api/pkg/errors" - "github.com/kloudlite/api/pkg/repos" -) - -func (d *Impl) AddBuildCache(ctx RegistryContext, buildCache entities.BuildCacheKey) (*entities.BuildCacheKey, error) { - co, err := d.iamClient.Can(ctx, &iam.CanIn{ - UserId: string(ctx.UserId), - ResourceRefs: []string{ - iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), - }, - Action: string(iamT.UpdateAccount), - }) - if err != nil { - return nil, errors.NewE(err) - } - - if !co.Status { - return nil, errors.Newf("unauthorized to add build cache") - } - - buildCache.AccountName = ctx.AccountName - buildCacheRepoCreated, err := d.buildCacheRepo.Create(ctx, &buildCache) - if err != nil { - return nil, errors.NewE(err) - } - d.resourceEventPublisher.PublishBuildCacheEvent(buildCacheRepoCreated, PublishAdd) - return buildCacheRepoCreated, nil -} - -func (d *Impl) UpdateBuildCache(ctx RegistryContext, id repos.ID, buildCache entities.BuildCacheKey) (*entities.BuildCacheKey, error) { - co, err := d.iamClient.Can(ctx, &iam.CanIn{ - UserId: string(ctx.UserId), - ResourceRefs: []string{ - iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), - }, - Action: string(iamT.UpdateAccount), - }) - if err != nil { - return nil, errors.NewE(err) - } - - if !co.Status { - return nil, errors.Newf("unauthorized to update build cache") - } - - buildCacheRepoUpdated, err := d.buildCacheRepo.PatchById( - ctx, - id, - repos.Document{ - fc.BuildCacheKeyVolumeSizeInGB: buildCache.VolumeSize, - fields.DisplayName: buildCache.DisplayName, - fields.AccountName: ctx.AccountName, - }, - ) - - d.resourceEventPublisher.PublishBuildCacheEvent(buildCacheRepoUpdated, PublishUpdate) - return buildCacheRepoUpdated, nil -} - -func (d *Impl) DeleteBuildCache(ctx RegistryContext, id repos.ID) error { - co, err := d.iamClient.Can(ctx, &iam.CanIn{ - UserId: string(ctx.UserId), - ResourceRefs: []string{ - iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), - }, - Action: string(iamT.UpdateAccount), - }) - if err != nil { - return errors.NewE(err) - } - - if !co.Status { - return errors.Newf("unauthorized to delete build cache") - } - - back, err := d.buildCacheRepo.FindOne(ctx, repos.Filter{ - fields.AccountName: ctx.AccountName, - fields.Id: id, - }) - - if err != nil { - return errors.NewE(err) - } - - i, err := d.buildRepo.Count(ctx, repos.Filter{ - fc.BuildSpecAccountName: ctx.AccountName, - fc.BuildSpecCacheKeyName: back.Name, - }) - if err != nil { - return errors.NewE(err) - } - - if i > 0 { - return errors.Newf("build cache is in use, please delete all builds that use this cache first") - } - - err = d.buildCacheRepo.DeleteOne(ctx, repos.Filter{"accountName": ctx.AccountName, "id": id}) - if err != nil { - return errors.NewE(err) - } - d.resourceEventPublisher.PublishBuildCacheEvent(back, PublishDelete) - return nil -} - -func (d *Impl) ListBuildCaches(ctx RegistryContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.BuildCacheKey], error) { - co, err := d.iamClient.Can(ctx, &iam.CanIn{ - UserId: string(ctx.UserId), - ResourceRefs: []string{ - iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), - }, - Action: string(iamT.GetAccount), - }) - if err != nil { - return nil, errors.NewE(err) - } - - if !co.Status { - return nil, errors.Newf("unauthorized to list build caches") - } - - return d.buildCacheRepo.FindPaginated(ctx, d.buildCacheRepo.MergeMatchFilters(repos.Filter{"accountName": ctx.AccountName}, search), pagination) -} +// import ( +// "github.com/kloudlite/api/apps/container-registry/internal/domain/entities" +// fc "github.com/kloudlite/api/apps/container-registry/internal/domain/entities/field-constants" +// iamT "github.com/kloudlite/api/apps/iam/types" +// "github.com/kloudlite/api/common/fields" +// "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/iam" +// "github.com/kloudlite/api/pkg/errors" +// "github.com/kloudlite/api/pkg/repos" +// ) +// +// func (d *Impl) AddBuildCache(ctx RegistryContext, buildCache entities.BuildCacheKey) (*entities.BuildCacheKey, error) { +// co, err := d.iamClient.Can(ctx, &iam.CanIn{ +// UserId: string(ctx.UserId), +// ResourceRefs: []string{ +// iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), +// }, +// Action: string(iamT.UpdateAccount), +// }) +// if err != nil { +// return nil, errors.NewE(err) +// } +// +// if !co.Status { +// return nil, errors.Newf("unauthorized to add build cache") +// } +// +// buildCache.AccountName = ctx.AccountName +// buildCacheRepoCreated, err := d.buildCacheRepo.Create(ctx, &buildCache) +// if err != nil { +// return nil, errors.NewE(err) +// } +// d.resourceEventPublisher.PublishBuildCacheEvent(buildCacheRepoCreated, PublishAdd) +// return buildCacheRepoCreated, nil +// } +// +// func (d *Impl) UpdateBuildCache(ctx RegistryContext, id repos.ID, buildCache entities.BuildCacheKey) (*entities.BuildCacheKey, error) { +// co, err := d.iamClient.Can(ctx, &iam.CanIn{ +// UserId: string(ctx.UserId), +// ResourceRefs: []string{ +// iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), +// }, +// Action: string(iamT.UpdateAccount), +// }) +// if err != nil { +// return nil, errors.NewE(err) +// } +// +// if !co.Status { +// return nil, errors.Newf("unauthorized to update build cache") +// } +// +// buildCacheRepoUpdated, err := d.buildCacheRepo.PatchById( +// ctx, +// id, +// repos.Document{ +// fc.BuildCacheKeyVolumeSizeInGB: buildCache.VolumeSize, +// fields.DisplayName: buildCache.DisplayName, +// fields.AccountName: ctx.AccountName, +// }, +// ) +// +// d.resourceEventPublisher.PublishBuildCacheEvent(buildCacheRepoUpdated, PublishUpdate) +// return buildCacheRepoUpdated, nil +// } +// +// func (d *Impl) DeleteBuildCache(ctx RegistryContext, id repos.ID) error { +// co, err := d.iamClient.Can(ctx, &iam.CanIn{ +// UserId: string(ctx.UserId), +// ResourceRefs: []string{ +// iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), +// }, +// Action: string(iamT.UpdateAccount), +// }) +// if err != nil { +// return errors.NewE(err) +// } +// +// if !co.Status { +// return errors.Newf("unauthorized to delete build cache") +// } +// +// back, err := d.buildCacheRepo.FindOne(ctx, repos.Filter{ +// fields.AccountName: ctx.AccountName, +// fields.Id: id, +// }) +// +// if err != nil { +// return errors.NewE(err) +// } +// +// i, err := d.buildRepo.Count(ctx, repos.Filter{ +// fc.BuildSpecAccountName: ctx.AccountName, +// fc.BuildSpecCacheKeyName: back.Name, +// }) +// if err != nil { +// return errors.NewE(err) +// } +// +// if i > 0 { +// return errors.Newf("build cache is in use, please delete all builds that use this cache first") +// } +// +// err = d.buildCacheRepo.DeleteOne(ctx, repos.Filter{"accountName": ctx.AccountName, "id": id}) +// if err != nil { +// return errors.NewE(err) +// } +// d.resourceEventPublisher.PublishBuildCacheEvent(back, PublishDelete) +// return nil +// } +// +// func (d *Impl) ListBuildCaches(ctx RegistryContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.BuildCacheKey], error) { +// co, err := d.iamClient.Can(ctx, &iam.CanIn{ +// UserId: string(ctx.UserId), +// ResourceRefs: []string{ +// iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), +// }, +// Action: string(iamT.GetAccount), +// }) +// if err != nil { +// return nil, errors.NewE(err) +// } +// +// if !co.Status { +// return nil, errors.Newf("unauthorized to list build caches") +// } +// +// return d.buildCacheRepo.FindPaginated(ctx, d.buildCacheRepo.MergeMatchFilters(repos.Filter{"accountName": ctx.AccountName}, search), pagination) +// } diff --git a/apps/container-registry/internal/domain/build-run.go b/apps/container-registry/internal/domain/build-run.go index 1a9d481fe..722c315bd 100644 --- a/apps/container-registry/internal/domain/build-run.go +++ b/apps/container-registry/internal/domain/build-run.go @@ -27,10 +27,9 @@ import ( fn "github.com/kloudlite/operator/pkg/functions" ) -func (d *Impl) ListBuildRuns(ctx RegistryContext, buildId repos.ID, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.BuildRun], error) { +func (d *Impl) ListBuildRuns(ctx RegistryContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.BuildRun], error) { filter := repos.Filter{ fields.AccountName: ctx.AccountName, - fc.BuildRunBuildId: buildId, } paginated, err := d.buildRunRepo.FindPaginated(ctx, d.buildRunRepo.MergeMatchFilters(filter, search), pagination) return paginated, err diff --git a/apps/container-registry/internal/domain/build.go b/apps/container-registry/internal/domain/build.go index 9fc3abc8f..143f43511 100644 --- a/apps/container-registry/internal/domain/build.go +++ b/apps/container-registry/internal/domain/build.go @@ -16,40 +16,14 @@ import ( dbv1 "github.com/kloudlite/operator/apis/distribution/v1" ) -func (d *Impl) ListBuildsByCache(ctx RegistryContext, cacheId repos.ID, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.Build], error) { - co, err := d.iamClient.Can(ctx, &iam.CanIn{ - UserId: string(ctx.UserId), - ResourceRefs: []string{ - iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), - }, - Action: string(iamT.GetAccount), - }) - - if err != nil { - return nil, errors.NewE(err) - } - - if !co.Status { - return nil, errors.Newf("unauthorized to list builds") - } - - filter := repos.Filter{ - fc.BuildSpecAccountName: ctx.AccountName, - fc.BuildSpecCacheKeyName: cacheId, - } - - return d.buildRepo.FindPaginated(ctx, filter, pagination) -} - func (d *Impl) AddBuild(ctx RegistryContext, build entities.Build) (*entities.Build, error) { co, err := d.iamClient.Can(ctx, &iam.CanIn{ UserId: string(ctx.UserId), ResourceRefs: []string{ iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), }, - Action: string(iamT.UpdateAccount), + Action: string(iamT.CreateBuildIntegration), }) - if err != nil { return nil, errors.NewE(err) } @@ -93,9 +67,8 @@ func (d *Impl) UpdateBuild(ctx RegistryContext, id repos.ID, build entities.Buil ResourceRefs: []string{ iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), }, - Action: string(iamT.UpdateAccount), + Action: string(iamT.UpdateBuildIntegration), }) - if err != nil { return nil, errors.NewE(err) } @@ -113,6 +86,7 @@ func (d *Impl) UpdateBuild(ctx RegistryContext, id repos.ID, build entities.Buil fc.BuildBuildClusterName: build.BuildClusterName, fields.LastUpdatedBy: common.CreatedOrUpdatedBy{UserId: ctx.UserId, UserName: ctx.UserName, UserEmail: ctx.UserEmail}, fc.BuildSource: build.Source, + fc.BuildSpec: build.Spec, } return d.buildRepo.Patch(ctx, repos.Filter{fields.Id: id}, patchDoc) @@ -145,9 +119,8 @@ func (d *Impl) ListBuilds(ctx RegistryContext, repoName string, search map[strin ResourceRefs: []string{ iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), }, - Action: string(iamT.GetAccount), + Action: string(iamT.ListBuildIntegrations), }) - if err != nil { return nil, errors.NewE(err) } @@ -170,9 +143,8 @@ func (d *Impl) GetBuild(ctx RegistryContext, buildId repos.ID) (*entities.Build, ResourceRefs: []string{ iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), }, - Action: string(iamT.GetAccount), + Action: string(iamT.GetBuildIntegration), }) - if err != nil { return nil, errors.NewE(err) } @@ -199,9 +171,8 @@ func (d *Impl) DeleteBuild(ctx RegistryContext, buildId repos.ID) error { ResourceRefs: []string{ iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), }, - Action: string(iamT.GetAccount), + Action: string(iamT.DeleteBuildIntegration), }) - if err != nil { return errors.NewE(err) } @@ -242,9 +213,8 @@ func (d *Impl) TriggerBuild(ctx RegistryContext, buildId repos.ID) error { ResourceRefs: []string{ iamT.NewResourceRef(ctx.AccountName, iamT.ResourceAccount, ctx.AccountName), }, - Action: string(iamT.GetAccount), + Action: string(iamT.CreateBuildRun), }) - if err != nil { return errors.NewE(err) } diff --git a/apps/container-registry/internal/domain/entities/field-constants/generated_constants.go b/apps/container-registry/internal/domain/entities/field-constants/generated_constants.go index f8720b28b..6b463ffb2 100644 --- a/apps/container-registry/internal/domain/entities/field-constants/generated_constants.go +++ b/apps/container-registry/internal/domain/entities/field-constants/generated_constants.go @@ -41,7 +41,7 @@ const ( BuildSpecBuildOptionsDockerfileContent = "spec.buildOptions.dockerfileContent" BuildSpecBuildOptionsDockerfilePath = "spec.buildOptions.dockerfilePath" BuildSpecBuildOptionsTargetPlatforms = "spec.buildOptions.targetPlatforms" - BuildSpecCacheKeyName = "spec.cacheKeyName" + BuildSpecCaches = "spec.caches" BuildSpecCredentialsRef = "spec.credentialsRef" BuildSpecCredentialsRefName = "spec.credentialsRef.name" BuildSpecCredentialsRefNamespace = "spec.credentialsRef.namespace" @@ -75,7 +75,7 @@ const ( BuildRunSpecBuildOptionsDockerfileContent = "spec.buildOptions.dockerfileContent" BuildRunSpecBuildOptionsDockerfilePath = "spec.buildOptions.dockerfilePath" BuildRunSpecBuildOptionsTargetPlatforms = "spec.buildOptions.targetPlatforms" - BuildRunSpecCacheKeyName = "spec.cacheKeyName" + BuildRunSpecCaches = "spec.caches" BuildRunSpecCredentialsRef = "spec.credentialsRef" BuildRunSpecCredentialsRefName = "spec.credentialsRef.name" BuildRunSpecCredentialsRefNamespace = "spec.credentialsRef.namespace" diff --git a/apps/container-registry/internal/domain/github.go b/apps/container-registry/internal/domain/github.go index fa97adca2..cad75616c 100644 --- a/apps/container-registry/internal/domain/github.go +++ b/apps/container-registry/internal/domain/github.go @@ -60,7 +60,6 @@ func (d *Impl) ParseGithubHook(eventType string, hookBody []byte) (*GitWebhookPa default: return nil, &ErrEventNotSupported{err: errors.Newf("event type (%s), currently not supported", eventType)} } - } func (d *Impl) getAccessTokenByUserId(ctx context.Context, provider string, userId repos.ID) (*entities.AccessToken, error) { @@ -128,11 +127,13 @@ func (d *Impl) GithubListRepos(ctx context.Context, userId repos.ID, installatio } i, err := d.github.ListRepos(ctx, token, installationId, pagination) + if err != nil { + return nil, errors.NewE(err) + } repositories := make([]*entities.GithubRepository, len(i.Repositories)) for i2, r := range i.Repositories { - repositories[i2] = &entities.GithubRepository{ ID: r.ID, NodeID: r.NodeID, @@ -159,7 +160,6 @@ func (d *Impl) GithubListRepos(ctx context.Context, userId repos.ID, installatio Visibility: r.Visibility, URL: r.URL, } - } return &entities.GithubListRepository{ @@ -169,18 +169,19 @@ func (d *Impl) GithubListRepos(ctx context.Context, userId repos.ID, installatio } func (d *Impl) GithubSearchRepos(ctx context.Context, userId repos.ID, q, org string, pagination *types.Pagination) (*entities.GithubSearchRepository, error) { - token, err := d.getAccessTokenByUserId(ctx, "github", userId) if err != nil { return nil, errors.NewE(err) } i, err := d.github.SearchRepos(ctx, token, q, org, pagination) + if err != nil { + return nil, errors.NewE(err) + } repositories := make([]*entities.GithubRepository, len(i.Repositories)) for i2, r := range i.Repositories { - repositories[i2] = &entities.GithubRepository{ ID: r.ID, NodeID: r.NodeID, diff --git a/go.mod b/go.mod index fd3f3edd3..781ac363d 100644 --- a/go.mod +++ b/go.mod @@ -42,10 +42,11 @@ require ( require ( github.com/kloudlite/container-registry-authorizer v0.0.0-20231021122509-161dc30fde55 - github.com/kloudlite/operator v1.0.4-0.20240320190031-57397d040302 + github.com/kloudlite/operator v1.0.4-0.20240326121100-7a59627e6d54 github.com/nats-io/nats.go v1.31.0 github.com/onsi/ginkgo/v2 v2.12.0 github.com/onsi/gomega v1.27.10 + github.com/shamaton/msgpack/v2 v2.2.0 github.com/stretchr/testify v1.9.0 github.com/ztrue/tracerr v0.4.0 golang.org/x/exp v0.0.0-20230905200255-921286631fa9 diff --git a/go.sum b/go.sum index 06b6e0b21..1aec17ebb 100644 --- a/go.sum +++ b/go.sum @@ -163,6 +163,8 @@ github.com/kloudlite/container-registry-authorizer v0.0.0-20231021122509-161dc30 github.com/kloudlite/container-registry-authorizer v0.0.0-20231021122509-161dc30fde55/go.mod h1:GZj3wZmIw/qCciclRhgQTgmGiqe8wxoVzMXQjbOfnbc= github.com/kloudlite/operator v1.0.4-0.20240320190031-57397d040302 h1:5oHaEVzE7gTnrVjbmpIWq9fIail31FRzqsPR4aqBtv0= github.com/kloudlite/operator v1.0.4-0.20240320190031-57397d040302/go.mod h1:CnMPlG0NFL1KyhoKJj2ABdNeFF+yR3R+dzPFk3S9E3A= +github.com/kloudlite/operator v1.0.4-0.20240326121100-7a59627e6d54 h1:nsyBYLUAOQC3KETaDlGF7faAbudfDtMvVUmV21XCrGc= +github.com/kloudlite/operator v1.0.4-0.20240326121100-7a59627e6d54/go.mod h1:CnMPlG0NFL1KyhoKJj2ABdNeFF+yR3R+dzPFk3S9E3A= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -252,6 +254,8 @@ github.com/sendgrid/sendgrid-go v3.11.1+incompatible h1:ai0+woZ3r/+tKLQExznak5Xe github.com/sendgrid/sendgrid-go v3.11.1+incompatible/go.mod h1:QRQt+LX/NmgVEvmdRw0VT/QgUn499+iza2FnDca9fg8= github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= +github.com/shamaton/msgpack/v2 v2.2.0 h1:IP1m01pHwCrMa6ZccP9B3bqxEMKMSmMVAVKk54g3L/Y= +github.com/shamaton/msgpack/v2 v2.2.0/go.mod h1:6khjYnkx73f7VQU7wjcFS9DFjs+59naVWJv1TB7qdOI= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= From 5279ada8c099aebae1889db1a5083c6e0c96124e Mon Sep 17 00:00:00 2001 From: Abdhesh Nayak Date: Tue, 26 Mar 2024 17:56:23 +0530 Subject: [PATCH 02/11] :zap: Updated template for build-run caches --- apps/container-registry/internal/domain/build-run.go | 2 +- apps/container-registry/internal/domain/build-template.go | 2 +- apps/container-registry/templates/build-job.yml.tpl | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/container-registry/internal/domain/build-run.go b/apps/container-registry/internal/domain/build-run.go index 722c315bd..b4324aae2 100644 --- a/apps/container-registry/internal/domain/build-run.go +++ b/apps/container-registry/internal/domain/build-run.go @@ -236,7 +236,7 @@ func (d *Impl) CreateBuildRun(ctx RegistryContext, build *entities.Build, hook * Tags: build.Spec.Registry.Repo.Tags, }, }, - CacheKeyName: build.Spec.CacheKeyName, + Caches: build.Spec.Caches, GitRepo: distributionv1.GitRepo{ Url: hook.RepoUrl, Branch: hook.CommitHash, diff --git a/apps/container-registry/internal/domain/build-template.go b/apps/container-registry/internal/domain/build-template.go index 4769ef9cd..5805a0135 100644 --- a/apps/container-registry/internal/domain/build-template.go +++ b/apps/container-registry/internal/domain/build-template.go @@ -34,7 +34,7 @@ type BuildJobTemplateData struct { Annotations map[string]string Registry dbv1.Registry - CacheKeyName *string + Caches []dbv1.Cache Resource dbv1.Resource GitRepo dbv1.GitRepo BuildOptions *dbv1.BuildOptions diff --git a/apps/container-registry/templates/build-job.yml.tpl b/apps/container-registry/templates/build-job.yml.tpl index c942ede74..c883a11a2 100644 --- a/apps/container-registry/templates/build-job.yml.tpl +++ b/apps/container-registry/templates/build-job.yml.tpl @@ -9,6 +9,7 @@ {{- $gitRepo := .GitRepo -}} {{- $registry := .Registry -}} {{- $credentialsRef := .CredentialsRef -}} +{{- $caches := .Caches -}} apiVersion: distribution.kloudlite.io/v1 kind: BuildRun @@ -25,9 +26,7 @@ spec: buildOptions: {{ $buildOptions | toJson }} {{- end }} - {{- if $cacheKeyName }} - cacheKeyName: {{ $cacheKeyName }} - {{- end }} + caches: {{ $caches | toJson }} resource: {{ $resource | toJson }} gitRepo: {{ $gitRepo | toJson }} From a91c23e678e2c78070706a9e2ee957e505b44a83 Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Wed, 27 Mar 2024 01:28:01 +0530 Subject: [PATCH 03/11] feat(IAM): updates permissions for buildintegrations and buildruns --- apps/iam/internal/app/action-role-binding.go | 12 ++++++++++++ apps/iam/types/types.go | 14 ++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/apps/iam/internal/app/action-role-binding.go b/apps/iam/internal/app/action-role-binding.go index c4064f03a..a848df4cd 100644 --- a/apps/iam/internal/app/action-role-binding.go +++ b/apps/iam/internal/app/action-role-binding.go @@ -111,4 +111,16 @@ var roleBindings RoleBindingMap = RoleBindingMap{ t.UpdateVPNDevice: []t.Role{t.RoleResourceOwner}, t.DeleteVPNDevice: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleProjectAdmin, t.RoleResourceOwner}, t.GetVPNDeviceConnectConfig: []t.Role{t.RoleResourceOwner}, + + t.ListBuildIntegrations: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, + t.GetBuildIntegration: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, + t.CreateBuildIntegration: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, + t.UpdateBuildIntegration: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, + t.DeleteBuildIntegration: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, + + t.ListBuildRuns: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, + t.GetBuildRun: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, + t.CreateBuildRun: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, + t.UpdateBuildRun: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, + t.DeleteBuildRun: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember, t.RoleProjectAdmin, t.RoleProjectMember}, } diff --git a/apps/iam/types/types.go b/apps/iam/types/types.go index 7bde03e4f..244ed37cb 100644 --- a/apps/iam/types/types.go +++ b/apps/iam/types/types.go @@ -146,6 +146,20 @@ const ( ReadLogs Action = "read-logs" ReadMetrics Action = "read-metrics" + + // build runs + ListBuildRuns Action = "list-build-runs" + GetBuildRun Action = "get-build-run" + CreateBuildRun Action = "create-build-run" + UpdateBuildRun Action = "update-build-run" + DeleteBuildRun Action = "delete-build-run" + + // build integrations + ListBuildIntegrations Action = "list-build-integrations" + GetBuildIntegration Action = "get-build-integration" + UpdateBuildIntegration Action = "update-build-integration" + CreateBuildIntegration Action = "create-build-integration" + DeleteBuildIntegration Action = "delete-build-integration" ) func NewResourceRef(accountName string, resourceType ResourceType, resourceName string) string { From a85430a7e3e186e968109d5b20fcca72c704036d Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Wed, 27 Mar 2024 01:29:41 +0530 Subject: [PATCH 04/11] feat(infra): BYOK cluster support --- apps/infra/Taskfile.yml | 1 + apps/infra/internal/app/app.go | 9 +- apps/infra/internal/app/gqlgen.yml | 4 + .../app/graph/byokcluster.resolvers.go | 67 + .../internal/app/graph/cluster.resolvers.go | 19 +- .../internal/app/graph/generated/generated.go | 1663 ++++++++++++++--- apps/infra/internal/app/graph/schema.graphqls | 2 + .../internal/app/graph/schema.resolvers.go | 9 + .../struct-to-graphql/byokcluster.graphqls | 20 + apps/infra/internal/domain/api.go | 2 + apps/infra/internal/domain/byoc-clusters.go | 61 + apps/infra/internal/domain/clusters.go | 13 +- apps/infra/internal/domain/domain.go | 3 + .../helm-charts-kloudlite-agent.yml.tpl | 7 + apps/infra/internal/entities/byoc_cluster.go | 60 + .../field-constants/generated_constants.go | 46 + 16 files changed, 1714 insertions(+), 272 deletions(-) create mode 100644 apps/infra/internal/app/graph/byokcluster.resolvers.go create mode 100644 apps/infra/internal/app/graph/struct-to-graphql/byokcluster.graphqls create mode 100644 apps/infra/internal/domain/byoc-clusters.go create mode 100644 apps/infra/internal/entities/byoc_cluster.go diff --git a/apps/infra/Taskfile.yml b/apps/infra/Taskfile.yml index 1bc7e7adc..9331d3c96 100644 --- a/apps/infra/Taskfile.yml +++ b/apps/infra/Taskfile.yml @@ -18,6 +18,7 @@ tasks: - mkdir -p "./internal/app/_struct-to-graphql" - go run ../../cmd/struct-to-graphql --struct github.com/kloudlite/api/apps/infra/internal/entities.Cluster + --struct github.com/kloudlite/api/apps/infra/internal/entities.BYOKCluster --struct github.com/kloudlite/api/apps/infra/internal/entities.MsvcTemplate --struct github.com/kloudlite/api/apps/infra/internal/entities.Node --struct github.com/kloudlite/api/apps/infra/internal/entities.NodePool diff --git a/apps/infra/internal/app/app.go b/apps/infra/internal/app/app.go index 1a2cd00e9..595eb2662 100644 --- a/apps/infra/internal/app/app.go +++ b/apps/infra/internal/app/app.go @@ -43,6 +43,8 @@ type ( var Module = fx.Module( "app", repos.NewFxMongoRepo[*entities.Cluster]("clusters", "clus", entities.ClusterIndices), + // repos.NewFxMongoRepo[*entities.BYOKCluster]("byok_clusters", "byok", entities.BYOKClusterIndices), + repos.NewFxMongoRepo[*entities.BYOKCluster]("clusters", "byok", entities.BYOKClusterIndices), repos.NewFxMongoRepo[*entities.ClusterManagedService]("cmsvcs", "cmsvcs", entities.ClusterManagedServiceIndices), repos.NewFxMongoRepo[*entities.DomainEntry]("domain_entries", "de", entities.DomainEntryIndices), repos.NewFxMongoRepo[*entities.NodePool]("node_pools", "npool", entities.NodePoolIndices), @@ -207,12 +209,7 @@ var Module = fx.Module( schema := generated.NewExecutableSchema(config) server.SetupGraphqlServer(schema, - httpServer.NewSessionMiddleware( - sessionRepo, - "hotspot-session", - env.CookieDomain, - constants.CacheSessionPrefix, - ), + httpServer.NewReadSessionMiddleware(sessionRepo, constants.CookieName, constants.CacheSessionPrefix), ) }, ), diff --git a/apps/infra/internal/app/gqlgen.yml b/apps/infra/internal/app/gqlgen.yml index 298306242..92337554e 100644 --- a/apps/infra/internal/app/gqlgen.yml +++ b/apps/infra/internal/app/gqlgen.yml @@ -74,6 +74,10 @@ models: resolver: true ClusterIn: *cluster-model + BYOKCluster: &byok-cluster-model + model: github.com/kloudlite/api/apps/infra/internal/entities.BYOKCluster + BYOKClusterIn: *byok-cluster-model + HelmRelease: &helmrelease-model model: github.com/kloudlite/api/apps/infra/internal/entities.HelmRelease HelmReleaseIn: *helmrelease-model diff --git a/apps/infra/internal/app/graph/byokcluster.resolvers.go b/apps/infra/internal/app/graph/byokcluster.resolvers.go new file mode 100644 index 000000000..271a96389 --- /dev/null +++ b/apps/infra/internal/app/graph/byokcluster.resolvers.go @@ -0,0 +1,67 @@ +package graph + +// 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.39 + +import ( + "context" + "github.com/kloudlite/api/pkg/errors" + "time" + + "github.com/kloudlite/api/apps/infra/internal/app/graph/generated" + "github.com/kloudlite/api/apps/infra/internal/app/graph/model" + "github.com/kloudlite/api/apps/infra/internal/entities" + fn "github.com/kloudlite/api/pkg/functions" + "github.com/kloudlite/api/pkg/repos" + "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// ClusterSpec is the resolver for the ClusterSpec field. +func (r *bYOKClusterResolver) ClusterSpec(ctx context.Context, obj *entities.BYOKCluster) (*model.GithubComKloudliteOperatorApisClustersV1ClusterSpec, error) { + return &model.GithubComKloudliteOperatorApisClustersV1ClusterSpec{ + AvailabilityMode: "dev", + CloudProvider: "aws", + }, nil +} + +// CreationTime is the resolver for the creationTime field. +func (r *bYOKClusterResolver) CreationTime(ctx context.Context, obj *entities.BYOKCluster) (string, error) { + if obj == nil { + return "", errors.Newf("cluster obj is nil") + } + return obj.CreationTime.Format(time.RFC3339), nil +} + +// ID is the resolver for the id field. +func (r *bYOKClusterResolver) ID(ctx context.Context, obj *entities.BYOKCluster) (repos.ID, error) { + if obj == nil { + return "", errors.Newf("cluster obj is nil") + } + return obj.Id, nil +} + +// UpdateTime is the resolver for the updateTime field. +func (r *bYOKClusterResolver) UpdateTime(ctx context.Context, obj *entities.BYOKCluster) (string, error) { + if obj == nil { + return "", errors.Newf("cluster is nil") + } + return obj.UpdateTime.Format(time.RFC3339), nil +} + +// Metadata is the resolver for the metadata field. +func (r *bYOKClusterInResolver) Metadata(ctx context.Context, obj *entities.BYOKCluster, data *v1.ObjectMeta) error { + if obj == nil { + return errors.Newf("cluster is nil") + } + return fn.JsonConversion(data, &obj.ObjectMeta) +} + +// BYOKCluster returns generated.BYOKClusterResolver implementation. +func (r *Resolver) BYOKCluster() generated.BYOKClusterResolver { return &bYOKClusterResolver{r} } + +// BYOKClusterIn returns generated.BYOKClusterInResolver implementation. +func (r *Resolver) BYOKClusterIn() generated.BYOKClusterInResolver { return &bYOKClusterInResolver{r} } + +type bYOKClusterResolver struct{ *Resolver } +type bYOKClusterInResolver struct{ *Resolver } diff --git a/apps/infra/internal/app/graph/cluster.resolvers.go b/apps/infra/internal/app/graph/cluster.resolvers.go index 41ba75da4..d3dda9637 100644 --- a/apps/infra/internal/app/graph/cluster.resolvers.go +++ b/apps/infra/internal/app/graph/cluster.resolvers.go @@ -6,9 +6,10 @@ package graph import ( "context" - "github.com/kloudlite/api/pkg/errors" "time" + "github.com/kloudlite/api/pkg/errors" + "github.com/kloudlite/api/apps/infra/internal/app/graph/generated" "github.com/kloudlite/api/apps/infra/internal/app/graph/model" "github.com/kloudlite/api/apps/infra/internal/entities" @@ -43,6 +44,16 @@ func (r *clusterResolver) Spec(ctx context.Context, obj *entities.Cluster) (*mod if err := fn.JsonConversion(&obj.Spec, &spec); err != nil { return nil, errors.NewE(err) } + + // FIXME: remove after implementing BYOK on UI + if spec.AvailabilityMode == "" { + spec.AvailabilityMode = "dev" + } + + if spec.CloudProvider == "" { + spec.CloudProvider = "aws" + } + return &spec, nil } @@ -76,5 +87,7 @@ func (r *Resolver) Cluster() generated.ClusterResolver { return &clusterResolver // ClusterIn returns generated.ClusterInResolver implementation. func (r *Resolver) ClusterIn() generated.ClusterInResolver { return &clusterInResolver{r} } -type clusterResolver struct{ *Resolver } -type clusterInResolver struct{ *Resolver } +type ( + clusterResolver struct{ *Resolver } + clusterInResolver struct{ *Resolver } +) diff --git a/apps/infra/internal/app/graph/generated/generated.go b/apps/infra/internal/app/graph/generated/generated.go index 7b931a510..c783087a8 100644 --- a/apps/infra/internal/app/graph/generated/generated.go +++ b/apps/infra/internal/app/graph/generated/generated.go @@ -46,6 +46,7 @@ type Config struct { } type ResolverRoot interface { + BYOKCluster() BYOKClusterResolver CloudProviderSecret() CloudProviderSecretResolver Cluster() ClusterResolver ClusterManagedService() ClusterManagedServiceResolver @@ -65,6 +66,7 @@ type ResolverRoot interface { PersistentVolumeClaim() PersistentVolumeClaimResolver Query() QueryResolver VolumeAttachment() VolumeAttachmentResolver + BYOKClusterIn() BYOKClusterInResolver CloudProviderSecretIn() CloudProviderSecretInResolver ClusterIn() ClusterInResolver ClusterManagedServiceIn() ClusterManagedServiceInResolver @@ -83,6 +85,21 @@ type DirectiveRoot struct { } type ComplexityRoot struct { + BYOKCluster struct { + AccountName func(childComplexity int) int + ClusterSpec func(childComplexity int) int + CreatedBy func(childComplexity int) int + CreationTime func(childComplexity int) int + DisplayName func(childComplexity int) int + ID func(childComplexity int) int + LastUpdatedBy func(childComplexity int) int + MarkedForDeletion func(childComplexity int) int + ObjectMeta func(childComplexity int) int + RecordVersion func(childComplexity int) int + SyncStatus func(childComplexity int) int + UpdateTime func(childComplexity int) int + } + CheckAwsAccessOutput struct { InstallationURL func(childComplexity int) int Result func(childComplexity int) int @@ -996,6 +1013,7 @@ type ComplexityRoot struct { } Mutation struct { + InfraCreateBYOKCluster func(childComplexity int, cluster entities.BYOKCluster) int InfraCreateCluster func(childComplexity int, cluster entities.Cluster) int InfraCreateClusterManagedService func(childComplexity int, clusterName string, service entities.ClusterManagedService) int InfraCreateDomainEntry func(childComplexity int, domainEntry entities.DomainEntry) int @@ -1235,6 +1253,15 @@ type ComplexityRoot struct { } } +type BYOKClusterResolver interface { + ClusterSpec(ctx context.Context, obj *entities.BYOKCluster) (*model.GithubComKloudliteOperatorApisClustersV1ClusterSpec, error) + + CreationTime(ctx context.Context, obj *entities.BYOKCluster) (string, error) + + ID(ctx context.Context, obj *entities.BYOKCluster) (repos.ID, error) + + UpdateTime(ctx context.Context, obj *entities.BYOKCluster) (string, error) +} type CloudProviderSecretResolver interface { Aws(ctx context.Context, obj *entities.CloudProviderSecret) (*model.GithubComKloudliteAPIAppsInfraInternalEntitiesAWSSecretCredentials, error) CloudProviderName(ctx context.Context, obj *entities.CloudProviderSecret) (model.GithubComKloudliteOperatorApisCommonTypesCloudProvider, error) @@ -1317,6 +1344,7 @@ type MutationResolver interface { InfraCreateCluster(ctx context.Context, cluster entities.Cluster) (*entities.Cluster, error) InfraUpdateCluster(ctx context.Context, cluster entities.Cluster) (*entities.Cluster, error) InfraDeleteCluster(ctx context.Context, name string) (bool, error) + InfraCreateBYOKCluster(ctx context.Context, cluster entities.BYOKCluster) (*entities.BYOKCluster, error) InfraUpgradeHelmKloudliteAgent(ctx context.Context, clusterName string) (bool, error) InfraCreateProviderSecret(ctx context.Context, secret entities.CloudProviderSecret) (*entities.CloudProviderSecret, error) InfraUpdateProviderSecret(ctx context.Context, secret entities.CloudProviderSecret) (*entities.CloudProviderSecret, error) @@ -1419,6 +1447,9 @@ type VolumeAttachmentResolver interface { UpdateTime(ctx context.Context, obj *entities.VolumeAttachment) (string, error) } +type BYOKClusterInResolver interface { + Metadata(ctx context.Context, obj *entities.BYOKCluster, data *v1.ObjectMeta) error +} type CloudProviderSecretInResolver interface { Aws(ctx context.Context, obj *entities.CloudProviderSecret, data *model.GithubComKloudliteAPIAppsInfraInternalEntitiesAWSSecretCredentialsIn) error CloudProviderName(ctx context.Context, obj *entities.CloudProviderSecret, data model.GithubComKloudliteOperatorApisCommonTypesCloudProvider) error @@ -1480,6 +1511,90 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in _ = ec switch typeName + "." + field { + case "BYOKCluster.accountName": + if e.complexity.BYOKCluster.AccountName == nil { + break + } + + return e.complexity.BYOKCluster.AccountName(childComplexity), true + + case "BYOKCluster.ClusterSpec": + if e.complexity.BYOKCluster.ClusterSpec == nil { + break + } + + return e.complexity.BYOKCluster.ClusterSpec(childComplexity), true + + case "BYOKCluster.createdBy": + if e.complexity.BYOKCluster.CreatedBy == nil { + break + } + + return e.complexity.BYOKCluster.CreatedBy(childComplexity), true + + case "BYOKCluster.creationTime": + if e.complexity.BYOKCluster.CreationTime == nil { + break + } + + return e.complexity.BYOKCluster.CreationTime(childComplexity), true + + case "BYOKCluster.displayName": + if e.complexity.BYOKCluster.DisplayName == nil { + break + } + + return e.complexity.BYOKCluster.DisplayName(childComplexity), true + + case "BYOKCluster.id": + if e.complexity.BYOKCluster.ID == nil { + break + } + + return e.complexity.BYOKCluster.ID(childComplexity), true + + case "BYOKCluster.lastUpdatedBy": + if e.complexity.BYOKCluster.LastUpdatedBy == nil { + break + } + + return e.complexity.BYOKCluster.LastUpdatedBy(childComplexity), true + + case "BYOKCluster.markedForDeletion": + if e.complexity.BYOKCluster.MarkedForDeletion == nil { + break + } + + return e.complexity.BYOKCluster.MarkedForDeletion(childComplexity), true + + case "BYOKCluster.metadata": + if e.complexity.BYOKCluster.ObjectMeta == nil { + break + } + + return e.complexity.BYOKCluster.ObjectMeta(childComplexity), true + + case "BYOKCluster.recordVersion": + if e.complexity.BYOKCluster.RecordVersion == nil { + break + } + + return e.complexity.BYOKCluster.RecordVersion(childComplexity), true + + case "BYOKCluster.syncStatus": + if e.complexity.BYOKCluster.SyncStatus == nil { + break + } + + return e.complexity.BYOKCluster.SyncStatus(childComplexity), true + + case "BYOKCluster.updateTime": + if e.complexity.BYOKCluster.UpdateTime == nil { + break + } + + return e.complexity.BYOKCluster.UpdateTime(childComplexity), true + case "CheckAwsAccessOutput.installationUrl": if e.complexity.CheckAwsAccessOutput.InstallationURL == nil { break @@ -5386,6 +5501,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.MsvcTemplate.Items(childComplexity), true + case "Mutation.infra_createBYOKCluster": + if e.complexity.Mutation.InfraCreateBYOKCluster == nil { + break + } + + args, err := ec.field_Mutation_infra_createBYOKCluster_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.InfraCreateBYOKCluster(childComplexity, args["cluster"].(entities.BYOKCluster)), true + case "Mutation.infra_createCluster": if e.complexity.Mutation.InfraCreateCluster == nil { break @@ -6820,6 +6947,7 @@ 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.unmarshalInputBYOKClusterIn, ec.unmarshalInputCloudProviderSecretIn, ec.unmarshalInputClusterIn, ec.unmarshalInputClusterManagedServiceIn, @@ -7140,6 +7268,8 @@ type Mutation { infra_updateCluster(cluster: ClusterIn!): Cluster @isLoggedInAndVerified @hasAccount infra_deleteCluster(name: String!): Boolean! @isLoggedInAndVerified @hasAccount # infra_resyncCluster(name: String!): Boolean! @isLoggedInAndVerified @hasAccount + + infra_createBYOKCluster(cluster: BYOKClusterIn!): BYOKCluster @isLoggedInAndVerified @hasAccount infra_upgradeHelmKloudliteAgent(clusterName: String!): Boolean! @isLoggedInAndVerified @hasAccount @@ -7174,6 +7304,27 @@ type EncodedValue { extend type Cluster { adminKubeconfig: EncodedValue } +`, BuiltIn: false}, + {Name: "../struct-to-graphql/byokcluster.graphqls", Input: `type BYOKCluster @shareable { + accountName: String! + ClusterSpec: Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata! @goField(name: "objectMeta") + recordVersion: Int! + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +input BYOKClusterIn { + displayName: String! + metadata: MetadataIn! +} + `, BuiltIn: false}, {Name: "../struct-to-graphql/cloudprovidersecret.graphqls", Input: `type CloudProviderSecret @shareable { accountName: String! @@ -9129,37 +9280,13 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) // region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Mutation_infra_createClusterManagedService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_infra_createBYOKCluster_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["clusterName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["clusterName"] = arg0 - var arg1 entities.ClusterManagedService - if tmp, ok := rawArgs["service"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("service")) - arg1, err = ec.unmarshalNClusterManagedServiceIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐClusterManagedService(ctx, tmp) - if err != nil { - return nil, err - } - } - args["service"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_createCluster_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 entities.Cluster + var arg0 entities.BYOKCluster if tmp, ok := rawArgs["cluster"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cluster")) - arg0, err = ec.unmarshalNClusterIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCluster(ctx, tmp) + arg0, err = ec.unmarshalNBYOKClusterIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx, tmp) if err != nil { return nil, err } @@ -9168,226 +9295,7 @@ func (ec *executionContext) field_Mutation_infra_createCluster_args(ctx context. return args, nil } -func (ec *executionContext) field_Mutation_infra_createDomainEntry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 entities.DomainEntry - if tmp, ok := rawArgs["domainEntry"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domainEntry")) - arg0, err = ec.unmarshalNDomainEntryIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐDomainEntry(ctx, tmp) - if err != nil { - return nil, err - } - } - args["domainEntry"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_createHelmRelease_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["clusterName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["clusterName"] = arg0 - var arg1 entities.HelmRelease - if tmp, ok := rawArgs["release"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("release")) - arg1, err = ec.unmarshalNHelmReleaseIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐHelmRelease(ctx, tmp) - if err != nil { - return nil, err - } - } - args["release"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_createNodePool_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["clusterName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["clusterName"] = arg0 - var arg1 entities.NodePool - if tmp, ok := rawArgs["pool"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pool")) - arg1, err = ec.unmarshalNNodePoolIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(ctx, tmp) - if err != nil { - return nil, err - } - } - args["pool"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_createProviderSecret_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 entities.CloudProviderSecret - if tmp, ok := rawArgs["secret"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secret")) - arg0, err = ec.unmarshalNCloudProviderSecretIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCloudProviderSecret(ctx, tmp) - if err != nil { - return nil, err - } - } - args["secret"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_deleteClusterManagedService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["clusterName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["clusterName"] = arg0 - var arg1 string - if tmp, ok := rawArgs["serviceName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceName")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["serviceName"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_deleteCluster_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["name"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["name"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_deleteDomainEntry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["domainName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domainName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["domainName"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_deleteHelmRelease_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["clusterName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["clusterName"] = arg0 - var arg1 string - if tmp, ok := rawArgs["releaseName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("releaseName")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["releaseName"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_deleteNodePool_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["clusterName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["clusterName"] = arg0 - var arg1 string - if tmp, ok := rawArgs["poolName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("poolName")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["poolName"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_deletePV_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["clusterName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["clusterName"] = arg0 - var arg1 string - if tmp, ok := rawArgs["pvName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pvName")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["pvName"] = arg1 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_deleteProviderSecret_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["secretName"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } - } - args["secretName"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_infra_updateClusterManagedService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_infra_createClusterManagedService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} var arg0 string @@ -9411,7 +9319,7 @@ func (ec *executionContext) field_Mutation_infra_updateClusterManagedService_arg return args, nil } -func (ec *executionContext) field_Mutation_infra_updateCluster_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_infra_createCluster_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} var arg0 entities.Cluster @@ -9426,7 +9334,7 @@ func (ec *executionContext) field_Mutation_infra_updateCluster_args(ctx context. return args, nil } -func (ec *executionContext) field_Mutation_infra_updateDomainEntry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_infra_createDomainEntry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} var arg0 entities.DomainEntry @@ -9441,7 +9349,265 @@ func (ec *executionContext) field_Mutation_infra_updateDomainEntry_args(ctx cont return args, nil } -func (ec *executionContext) field_Mutation_infra_updateHelmRelease_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Mutation_infra_createHelmRelease_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["clusterName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["clusterName"] = arg0 + var arg1 entities.HelmRelease + if tmp, ok := rawArgs["release"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("release")) + arg1, err = ec.unmarshalNHelmReleaseIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐHelmRelease(ctx, tmp) + if err != nil { + return nil, err + } + } + args["release"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_createNodePool_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["clusterName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["clusterName"] = arg0 + var arg1 entities.NodePool + if tmp, ok := rawArgs["pool"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pool")) + arg1, err = ec.unmarshalNNodePoolIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐNodePool(ctx, tmp) + if err != nil { + return nil, err + } + } + args["pool"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_createProviderSecret_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 entities.CloudProviderSecret + if tmp, ok := rawArgs["secret"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secret")) + arg0, err = ec.unmarshalNCloudProviderSecretIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCloudProviderSecret(ctx, tmp) + if err != nil { + return nil, err + } + } + args["secret"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_deleteClusterManagedService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["clusterName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["clusterName"] = arg0 + var arg1 string + if tmp, ok := rawArgs["serviceName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceName")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["serviceName"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_deleteCluster_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["name"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["name"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_deleteDomainEntry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["domainName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domainName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["domainName"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_deleteHelmRelease_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["clusterName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["clusterName"] = arg0 + var arg1 string + if tmp, ok := rawArgs["releaseName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("releaseName")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["releaseName"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_deleteNodePool_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["clusterName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["clusterName"] = arg0 + var arg1 string + if tmp, ok := rawArgs["poolName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("poolName")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["poolName"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_deletePV_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["clusterName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["clusterName"] = arg0 + var arg1 string + if tmp, ok := rawArgs["pvName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pvName")) + arg1, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["pvName"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_deleteProviderSecret_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["secretName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["secretName"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_updateClusterManagedService_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 string + if tmp, ok := rawArgs["clusterName"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) + arg0, err = ec.unmarshalNString2string(ctx, tmp) + if err != nil { + return nil, err + } + } + args["clusterName"] = arg0 + var arg1 entities.ClusterManagedService + if tmp, ok := rawArgs["service"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("service")) + arg1, err = ec.unmarshalNClusterManagedServiceIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐClusterManagedService(ctx, tmp) + if err != nil { + return nil, err + } + } + args["service"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_updateCluster_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 entities.Cluster + if tmp, ok := rawArgs["cluster"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cluster")) + arg0, err = ec.unmarshalNClusterIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐCluster(ctx, tmp) + if err != nil { + return nil, err + } + } + args["cluster"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_updateDomainEntry_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + var arg0 entities.DomainEntry + if tmp, ok := rawArgs["domainEntry"]; ok { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domainEntry")) + arg0, err = ec.unmarshalNDomainEntryIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐDomainEntry(ctx, tmp) + if err != nil { + return nil, err + } + } + args["domainEntry"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_infra_updateHelmRelease_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} var arg0 string @@ -10160,6 +10326,604 @@ func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArg // region **************************** field.gotpl ***************************** +func (ec *executionContext) _BYOKCluster_accountName(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_accountName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.AccountName, 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_BYOKCluster_accountName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + 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) _BYOKCluster_ClusterSpec(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_ClusterSpec(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.BYOKCluster().ClusterSpec(rctx, obj) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.GithubComKloudliteOperatorApisClustersV1ClusterSpec) + fc.Result = res + return ec.marshalOGithub__com___kloudlite___operator___apis___clusters___v1__ClusterSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisClustersV1ClusterSpec(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BYOKCluster_ClusterSpec(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "accountId": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_accountId(ctx, field) + case "accountName": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_accountName(ctx, field) + case "availabilityMode": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_availabilityMode(ctx, field) + case "aws": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_aws(ctx, field) + case "backupToS3Enabled": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_backupToS3Enabled(ctx, field) + case "cloudflareEnabled": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_cloudflareEnabled(ctx, field) + case "cloudProvider": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_cloudProvider(ctx, field) + case "clusterInternalDnsHost": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_clusterInternalDnsHost(ctx, field) + case "clusterTokenRef": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_clusterTokenRef(ctx, field) + case "kloudliteRelease": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_kloudliteRelease(ctx, field) + case "messageQueueTopicName": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_messageQueueTopicName(ctx, field) + case "output": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_output(ctx, field) + case "publicDNSHost": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_publicDNSHost(ctx, field) + case "taintMasterNodes": + return ec.fieldContext_Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec_taintMasterNodes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _BYOKCluster_createdBy(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.CreatedBy, 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.(common.CreatedOrUpdatedBy) + fc.Result = res + return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BYOKCluster_createdBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "userEmail": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) + case "userId": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) + case "userName": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _BYOKCluster_creationTime(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_creationTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.BYOKCluster().CreationTime(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.(string) + fc.Result = res + return ec.marshalNDate2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BYOKCluster_creationTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Date does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _BYOKCluster_displayName(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_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 { + 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_BYOKCluster_displayName(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + 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) _BYOKCluster_id(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_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 ec.resolvers.BYOKCluster().ID(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.(repos.ID) + fc.Result = res + return ec.marshalNID2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BYOKCluster_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + Field: field, + IsMethod: true, + IsResolver: true, + 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) _BYOKCluster_lastUpdatedBy(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_lastUpdatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.LastUpdatedBy, 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.(common.CreatedOrUpdatedBy) + fc.Result = res + return ec.marshalNGithub__com___kloudlite___api___common__CreatedOrUpdatedBy2githubᚗcomᚋkloudliteᚋapiᚋcommonᚐCreatedOrUpdatedBy(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BYOKCluster_lastUpdatedBy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "userEmail": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userEmail(ctx, field) + case "userId": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userId(ctx, field) + case "userName": + return ec.fieldContext_Github__com___kloudlite___api___common__CreatedOrUpdatedBy_userName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___common__CreatedOrUpdatedBy", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _BYOKCluster_markedForDeletion(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_markedForDeletion(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.MarkedForDeletion, 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_BYOKCluster_markedForDeletion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + 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) _BYOKCluster_metadata(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_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.ObjectMeta, 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.(v1.ObjectMeta) + fc.Result = res + return ec.marshalNMetadata2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BYOKCluster_metadata(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "annotations": + return ec.fieldContext_Metadata_annotations(ctx, field) + case "creationTimestamp": + return ec.fieldContext_Metadata_creationTimestamp(ctx, field) + case "deletionTimestamp": + return ec.fieldContext_Metadata_deletionTimestamp(ctx, field) + case "generation": + return ec.fieldContext_Metadata_generation(ctx, field) + case "labels": + return ec.fieldContext_Metadata_labels(ctx, field) + case "name": + return ec.fieldContext_Metadata_name(ctx, field) + case "namespace": + return ec.fieldContext_Metadata_namespace(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Metadata", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _BYOKCluster_recordVersion(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_recordVersion(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.RecordVersion, 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_BYOKCluster_recordVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + 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) _BYOKCluster_syncStatus(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_syncStatus(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.SyncStatus, 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.(types.SyncStatus) + fc.Result = res + return ec.marshalNGithub__com___kloudlite___api___pkg___types__SyncStatus2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋtypesᚐSyncStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BYOKCluster_syncStatus(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "action": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_action(ctx, field) + case "error": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_error(ctx, field) + case "lastSyncedAt": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_lastSyncedAt(ctx, field) + case "recordVersion": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_recordVersion(ctx, field) + case "state": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_state(ctx, field) + case "syncScheduledAt": + return ec.fieldContext_Github__com___kloudlite___api___pkg___types__SyncStatus_syncScheduledAt(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Github__com___kloudlite___api___pkg___types__SyncStatus", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _BYOKCluster_updateTime(ctx context.Context, field graphql.CollectedField, obj *entities.BYOKCluster) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_BYOKCluster_updateTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + 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.BYOKCluster().UpdateTime(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.(string) + fc.Result = res + return ec.marshalNDate2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_BYOKCluster_updateTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "BYOKCluster", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Date does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _CheckAwsAccessOutput_result(ctx context.Context, field graphql.CollectedField, obj *model.CheckAwsAccessOutput) (ret graphql.Marshaler) { fc, err := ec.fieldContext_CheckAwsAccessOutput_result(ctx, field) if err != nil { @@ -35633,34 +36397,138 @@ func (ec *executionContext) _Mutation_infra_deleteCluster(ctx context.Context, f if tmp == nil { return nil, nil } - if data, ok := tmp.(bool); ok { + if data, ok := tmp.(bool); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + }) + 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_Mutation_infra_deleteCluster(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 Boolean 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_infra_deleteCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_infra_createBYOKCluster(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_infra_createBYOKCluster(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().InfraCreateBYOKCluster(rctx, fc.Args["cluster"].(entities.BYOKCluster)) + } + directive1 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsLoggedInAndVerified == nil { + return nil, errors.New("directive isLoggedInAndVerified is not implemented") + } + return ec.directives.IsLoggedInAndVerified(ctx, nil, directive0) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.HasAccount == nil { + return nil, errors.New("directive hasAccount is not implemented") + } + return ec.directives.HasAccount(ctx, nil, directive1) + } + + tmp, err := directive2(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*entities.BYOKCluster); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kloudlite/api/apps/infra/internal/entities.BYOKCluster`, tmp) }) 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) + res := resTmp.(*entities.BYOKCluster) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOBYOKCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_infra_deleteCluster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_infra_createBYOKCluster(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 Boolean does not have child fields") + switch field.Name { + case "accountName": + return ec.fieldContext_BYOKCluster_accountName(ctx, field) + case "ClusterSpec": + return ec.fieldContext_BYOKCluster_ClusterSpec(ctx, field) + case "createdBy": + return ec.fieldContext_BYOKCluster_createdBy(ctx, field) + case "creationTime": + return ec.fieldContext_BYOKCluster_creationTime(ctx, field) + case "displayName": + return ec.fieldContext_BYOKCluster_displayName(ctx, field) + case "id": + return ec.fieldContext_BYOKCluster_id(ctx, field) + case "lastUpdatedBy": + return ec.fieldContext_BYOKCluster_lastUpdatedBy(ctx, field) + case "markedForDeletion": + return ec.fieldContext_BYOKCluster_markedForDeletion(ctx, field) + case "metadata": + return ec.fieldContext_BYOKCluster_metadata(ctx, field) + case "recordVersion": + return ec.fieldContext_BYOKCluster_recordVersion(ctx, field) + case "syncStatus": + return ec.fieldContext_BYOKCluster_syncStatus(ctx, field) + case "updateTime": + return ec.fieldContext_BYOKCluster_updateTime(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type BYOKCluster", field.Name) }, } defer func() { @@ -35670,7 +36538,7 @@ func (ec *executionContext) fieldContext_Mutation_infra_deleteCluster(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_infra_deleteCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Mutation_infra_createBYOKCluster_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } @@ -47793,6 +48661,46 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Conte // region **************************** input.gotpl ***************************** +func (ec *executionContext) unmarshalInputBYOKClusterIn(ctx context.Context, obj interface{}) (entities.BYOKCluster, error) { + var it entities.BYOKCluster + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"displayName", "metadata"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "displayName": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data + case "metadata": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalNMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) + if err != nil { + return it, err + } + if err = ec.resolvers.BYOKClusterIn().Metadata(ctx, &it, data); err != nil { + return it, err + } + } + } + + return it, nil +} + func (ec *executionContext) unmarshalInputCloudProviderSecretIn(ctx context.Context, obj interface{}) (entities.CloudProviderSecret, error) { var it entities.CloudProviderSecret asMap := map[string]interface{}{} @@ -53411,6 +54319,218 @@ func (ec *executionContext) unmarshalInputVolumeAttachmentIn(ctx context.Context // region **************************** object.gotpl **************************** +var bYOKClusterImplementors = []string{"BYOKCluster"} + +func (ec *executionContext) _BYOKCluster(ctx context.Context, sel ast.SelectionSet, obj *entities.BYOKCluster) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, bYOKClusterImplementors) + + 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("BYOKCluster") + case "accountName": + out.Values[i] = ec._BYOKCluster_accountName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "ClusterSpec": + 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._BYOKCluster_ClusterSpec(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 "createdBy": + out.Values[i] = ec._BYOKCluster_createdBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "creationTime": + 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._BYOKCluster_creationTime(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 "displayName": + out.Values[i] = ec._BYOKCluster_displayName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "id": + 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._BYOKCluster_id(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 "lastUpdatedBy": + out.Values[i] = ec._BYOKCluster_lastUpdatedBy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "markedForDeletion": + out.Values[i] = ec._BYOKCluster_markedForDeletion(ctx, field, obj) + case "metadata": + out.Values[i] = ec._BYOKCluster_metadata(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "recordVersion": + out.Values[i] = ec._BYOKCluster_recordVersion(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "syncStatus": + out.Values[i] = ec._BYOKCluster_syncStatus(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "updateTime": + 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._BYOKCluster_updateTime(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 checkAwsAccessOutputImplementors = []string{"CheckAwsAccessOutput"} func (ec *executionContext) _CheckAwsAccessOutput(ctx context.Context, sel ast.SelectionSet, obj *model.CheckAwsAccessOutput) graphql.Marshaler { @@ -60513,6 +61633,10 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) if out.Values[i] == graphql.Null { out.Invalids++ } + case "infra_createBYOKCluster": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_infra_createBYOKCluster(ctx, field) + }) case "infra_upgradeHelmKloudliteAgent": out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_infra_upgradeHelmKloudliteAgent(ctx, field) @@ -63580,6 +64704,11 @@ func (ec *executionContext) marshalNAny2interface(ctx context.Context, sel ast.S return res } +func (ec *executionContext) unmarshalNBYOKClusterIn2githubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx context.Context, v interface{}) (entities.BYOKCluster, error) { + res, err := ec.unmarshalInputBYOKClusterIn(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) @@ -65812,6 +66941,13 @@ func (ec *executionContext) marshalOAny2ᚕinterfaceᚄ(ctx context.Context, sel return ret } +func (ec *executionContext) marshalOBYOKCluster2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋentitiesᚐBYOKCluster(ctx context.Context, sel ast.SelectionSet, v *entities.BYOKCluster) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._BYOKCluster(ctx, sel, v) +} + func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) @@ -66123,6 +67259,13 @@ func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___ return ec._Github__com___kloudlite___operator___apis___clusters___v1__ClusterOutput(ctx, sel, v) } +func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___clusters___v1__ClusterSpec2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisClustersV1ClusterSpec(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisClustersV1ClusterSpec) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec(ctx, sel, v) +} + func (ec *executionContext) marshalOGithub__com___kloudlite___operator___apis___clusters___v1__GCPNodePoolConfig2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋinfraᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisClustersV1GCPNodePoolConfig(ctx context.Context, sel ast.SelectionSet, v *model.GithubComKloudliteOperatorApisClustersV1GCPNodePoolConfig) graphql.Marshaler { if v == nil { return graphql.Null diff --git a/apps/infra/internal/app/graph/schema.graphqls b/apps/infra/internal/app/graph/schema.graphqls index 00a0f6dac..a769046c0 100644 --- a/apps/infra/internal/app/graph/schema.graphqls +++ b/apps/infra/internal/app/graph/schema.graphqls @@ -119,6 +119,8 @@ type Mutation { infra_updateCluster(cluster: ClusterIn!): Cluster @isLoggedInAndVerified @hasAccount infra_deleteCluster(name: String!): Boolean! @isLoggedInAndVerified @hasAccount # infra_resyncCluster(name: String!): Boolean! @isLoggedInAndVerified @hasAccount + + infra_createBYOKCluster(cluster: BYOKClusterIn!): BYOKCluster @isLoggedInAndVerified @hasAccount infra_upgradeHelmKloudliteAgent(clusterName: String!): Boolean! @isLoggedInAndVerified @hasAccount diff --git a/apps/infra/internal/app/graph/schema.resolvers.go b/apps/infra/internal/app/graph/schema.resolvers.go index 9e4db07ed..c735a5572 100644 --- a/apps/infra/internal/app/graph/schema.resolvers.go +++ b/apps/infra/internal/app/graph/schema.resolvers.go @@ -68,6 +68,15 @@ func (r *mutationResolver) InfraDeleteCluster(ctx context.Context, name string) return true, nil } +// InfraCreateBYOKCluster is the resolver for the infra_createBYOKCluster field. +func (r *mutationResolver) InfraCreateBYOKCluster(ctx context.Context, cluster entities.BYOKCluster) (*entities.BYOKCluster, error) { + ictx, err := toInfraContext(ctx) + if err != nil { + return nil, errors.NewE(err) + } + return r.Domain.CreateBYOKCluster(ictx, cluster) +} + // InfraUpgradeHelmKloudliteAgent is the resolver for the infra_upgradeHelmKloudliteAgent field. func (r *mutationResolver) InfraUpgradeHelmKloudliteAgent(ctx context.Context, clusterName string) (bool, error) { ictx, err := toInfraContext(ctx) diff --git a/apps/infra/internal/app/graph/struct-to-graphql/byokcluster.graphqls b/apps/infra/internal/app/graph/struct-to-graphql/byokcluster.graphqls new file mode 100644 index 000000000..60ec3511d --- /dev/null +++ b/apps/infra/internal/app/graph/struct-to-graphql/byokcluster.graphqls @@ -0,0 +1,20 @@ +type BYOKCluster @shareable { + accountName: String! + ClusterSpec: Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata! @goField(name: "objectMeta") + recordVersion: Int! + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +input BYOKClusterIn { + displayName: String! + metadata: MetadataIn! +} + diff --git a/apps/infra/internal/domain/api.go b/apps/infra/internal/domain/api.go index 193d6d5fc..88072f83b 100644 --- a/apps/infra/internal/domain/api.go +++ b/apps/infra/internal/domain/api.go @@ -55,6 +55,8 @@ type Domain interface { UpdateCluster(ctx InfraContext, cluster entities.Cluster) (*entities.Cluster, error) DeleteCluster(ctx InfraContext, name string) error + CreateBYOKCluster(ctx InfraContext, cluster entities.BYOKCluster) (*entities.BYOKCluster, error) + UpgradeHelmKloudliteAgent(ctx InfraContext, clusterName string) error ListClusters(ctx InfraContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.Cluster], error) diff --git a/apps/infra/internal/domain/byoc-clusters.go b/apps/infra/internal/domain/byoc-clusters.go new file mode 100644 index 000000000..a9a4433f6 --- /dev/null +++ b/apps/infra/internal/domain/byoc-clusters.go @@ -0,0 +1,61 @@ +package domain + +import ( + iamT "github.com/kloudlite/api/apps/iam/types" + "github.com/kloudlite/api/apps/infra/internal/entities" + "github.com/kloudlite/api/common" + "github.com/kloudlite/api/common/fields" + "github.com/kloudlite/api/pkg/errors" + "github.com/kloudlite/api/pkg/repos" + t "github.com/kloudlite/api/pkg/types" +) + +func (d *domain) CreateBYOKCluster(ctx InfraContext, cluster entities.BYOKCluster) (*entities.BYOKCluster, error) { + if err := d.canPerformActionInAccount(ctx, iamT.CreateCluster); err != nil { + return nil, errors.NewE(err) + } + + accNs, err := d.getAccNamespace(ctx) + if err != nil { + return nil, errors.NewE(err) + } + + cluster.Namespace = accNs + + existing, err := d.clusterRepo.FindOne(ctx, repos.Filter{ + fields.MetadataName: cluster.Name, + fields.MetadataNamespace: cluster.Namespace, + fields.AccountName: ctx.AccountName, + }) + if err != nil { + return nil, errors.NewE(err) + } + + if existing != nil { + return nil, ErrClusterAlreadyExists{ClusterName: cluster.Name, AccountName: ctx.AccountName} + } + + cluster.AccountName = ctx.AccountName + + cluster.IncrementRecordVersion() + cluster.CreatedBy = common.CreatedOrUpdatedBy{ + UserId: ctx.UserId, + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + } + cluster.LastUpdatedBy = cluster.CreatedBy + + cluster.SyncStatus = t.GenSyncStatus(t.SyncActionApply, 0) + + nCluster, err := d.byokClusterRepo.Create(ctx, &cluster) + if err != nil { + if d.clusterRepo.ErrAlreadyExists(err) { + return nil, errors.Newf("cluster with name %q already exists in namespace %q", cluster.Name, cluster.Namespace) + } + return nil, errors.NewE(err) + } + + d.resourceEventPublisher.PublishInfraEvent(ctx, ResourceTypeCluster, nCluster.Name, PublishAdd) + + return nCluster, nil +} diff --git a/apps/infra/internal/domain/clusters.go b/apps/infra/internal/domain/clusters.go index a34993156..2328f87af 100644 --- a/apps/infra/internal/domain/clusters.go +++ b/apps/infra/internal/domain/clusters.go @@ -255,14 +255,14 @@ func (d *domain) CreateCluster(ctx InfraContext, cluster entities.Cluster) (*ent d.resourceEventPublisher.PublishInfraEvent(ctx, ResourceTypeCluster, nCluster.Name, PublishAdd) - if err := d.applyHelmKloudliteAgent(ctx, nCluster.Name, string(tokenScrt.Data[keyClusterToken])); err != nil { + if err := d.applyHelmKloudliteAgent(ctx, nCluster.Name, string(tokenScrt.Data[keyClusterToken]), nCluster.Spec.PublicDNSHost); err != nil { return nil, errors.NewE(err) } return nCluster, nil } -func (d *domain) applyHelmKloudliteAgent(ctx InfraContext, clusterName string, clusterToken string) error { +func (d *domain) applyHelmKloudliteAgent(ctx InfraContext, clusterName string, clusterToken string, clusterPublicHost string) error { b, err := templates.Read(templates.HelmKloudliteAgent) if err != nil { return errors.NewE(err) @@ -276,6 +276,8 @@ func (d *domain) applyHelmKloudliteAgent(ctx InfraContext, clusterName string, c "kloudlite-release": d.env.KloudliteRelease, "message-office-grpc-addr": d.env.MessageOfficeExternalGrpcAddr, + + "public-dns-host": clusterPublicHost, }) if err != nil { return errors.NewE(err) @@ -334,7 +336,12 @@ func (d *domain) UpgradeHelmKloudliteAgent(ctx InfraContext, clusterName string) return errors.NewE(err) } - if err := d.applyHelmKloudliteAgent(ctx, clusterName, out.ClusterToken); err != nil { + cluster, err := d.findCluster(ctx, clusterName) + if err != nil { + return errors.NewE(err) + } + + if err := d.applyHelmKloudliteAgent(ctx, clusterName, out.ClusterToken, cluster.Spec.PublicDNSHost); err != nil { return errors.NewE(err) } diff --git a/apps/infra/internal/domain/domain.go b/apps/infra/internal/domain/domain.go index 3542cbf4f..72216ffc0 100644 --- a/apps/infra/internal/domain/domain.go +++ b/apps/infra/internal/domain/domain.go @@ -32,6 +32,7 @@ type domain struct { env *env.Env clusterRepo repos.DbRepo[*entities.Cluster] + byokClusterRepo repos.DbRepo[*entities.BYOKCluster] clusterManagedServiceRepo repos.DbRepo[*entities.ClusterManagedService] helmReleaseRepo repos.DbRepo[*entities.HelmRelease] nodeRepo repos.DbRepo[*entities.Node] @@ -150,6 +151,7 @@ var Module = fx.Module("domain", func( env *env.Env, clusterRepo repos.DbRepo[*entities.Cluster], + byokClusterRepo repos.DbRepo[*entities.BYOKCluster], clustermanagedserviceRepo repos.DbRepo[*entities.ClusterManagedService], nodeRepo repos.DbRepo[*entities.Node], nodePoolRepo repos.DbRepo[*entities.NodePool], @@ -204,6 +206,7 @@ var Module = fx.Module("domain", logger: logger, env: env, clusterRepo: clusterRepo, + byokClusterRepo: byokClusterRepo, clusterManagedServiceRepo: clustermanagedserviceRepo, nodeRepo: nodeRepo, nodePoolRepo: nodePoolRepo, diff --git a/apps/infra/internal/domain/templates/helm-charts-kloudlite-agent.yml.tpl b/apps/infra/internal/domain/templates/helm-charts-kloudlite-agent.yml.tpl index 481cbd7a8..b1b861999 100644 --- a/apps/infra/internal/domain/templates/helm-charts-kloudlite-agent.yml.tpl +++ b/apps/infra/internal/domain/templates/helm-charts-kloudlite-agent.yml.tpl @@ -5,6 +5,7 @@ {{- $messageOfficeGrpcAddr := get . "message-office-grpc-addr" }} {{- $clusterToken := get . "cluster-token" }} +{{- $publicDnsHost := get . "public-dns-host" }} --- apiVersion: crds.kloudlite.io/v1 @@ -21,6 +22,9 @@ spec: tolerations: - operator: Exists + preInstall: |+ + kubectl apply -f https://github.com/kloudlite/helm-charts/releases/download/{{$kloudliteRelease}}/crds-kloudlite.yml + postInstall: |+ if kubectl get ns kloudlite-tmp; then @@ -76,6 +80,9 @@ spec: # must be one of aws,azure,gcp cloudprovider: "aws" + wireguard: + publicDNSHost: {{$publicDNSHost}} + {{- /* wireguard: */}} {{- /* podCIDR: 10.42.0.0/16 */}} {{- /* svcCIDR: 10.43.0.0/16 */}} diff --git a/apps/infra/internal/entities/byoc_cluster.go b/apps/infra/internal/entities/byoc_cluster.go new file mode 100644 index 000000000..578055a18 --- /dev/null +++ b/apps/infra/internal/entities/byoc_cluster.go @@ -0,0 +1,60 @@ +package entities + +import ( + "github.com/kloudlite/api/common" + "github.com/kloudlite/api/pkg/repos" + t "github.com/kloudlite/api/pkg/types" + clustersv1 "github.com/kloudlite/operator/apis/clusters/v1" + "github.com/kloudlite/operator/pkg/operator" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +type BYOKCluster struct { + repos.BaseEntity `json:",inline" graphql:"noinput"` + + *clustersv1.ClusterSpec `json:",inline" graphql:"noinput"` + + metav1.ObjectMeta `json:"metadata"` + + common.ResourceMetadata `json:",inline"` + + SyncStatus t.SyncStatus `json:"syncStatus" graphql:"noinput"` + AccountName string `json:"accountName" graphql:"noinput"` +} + +func (c *BYOKCluster) GetDisplayName() string { + return c.ResourceMetadata.DisplayName +} + +func (c *BYOKCluster) GetStatus() operator.Status { + return operator.Status{ + IsReady: true, + // Resources: []operator.ResourceRef{}, + // Message: &raw_json.RawJson{}, + // CheckList: []operator.CheckMeta{}, + Checks: map[string]operator.Check{}, + // LastReadyGeneration: 0, + // LastReconcileTime: &metav1.Time{}, + } +} + +var BYOKClusterIndices = []repos.IndexField{ + { + Field: []repos.IndexKey{ + {Key: "id", Value: repos.IndexAsc}, + }, + Unique: true, + }, + { + Field: []repos.IndexKey{ + {Key: "metadata.name", Value: repos.IndexAsc}, + {Key: "metadata.namespace", Value: repos.IndexAsc}, + }, + Unique: true, + }, + { + Field: []repos.IndexKey{ + {Key: "accountName", Value: repos.IndexAsc}, + }, + }, +} diff --git a/apps/infra/internal/entities/field-constants/generated_constants.go b/apps/infra/internal/entities/field-constants/generated_constants.go index 9e6a48516..3e498024d 100644 --- a/apps/infra/internal/entities/field-constants/generated_constants.go +++ b/apps/infra/internal/entities/field-constants/generated_constants.go @@ -34,6 +34,52 @@ const ( AWSSecretCredentialsCfParamStackName = "cfParamStackName" ) +// constant vars generated for struct BYOKCluster +const ( + BYOKClusterAccountId = "accountId" + BYOKClusterAvailabilityMode = "availabilityMode" + BYOKClusterAws = "aws" + BYOKClusterAwsCredentials = "aws.credentials" + BYOKClusterAwsCredentialsAuthMechanism = "aws.credentials.authMechanism" + BYOKClusterAwsCredentialsSecretRef = "aws.credentials.secretRef" + BYOKClusterAwsCredentialsSecretRefName = "aws.credentials.secretRef.name" + BYOKClusterAwsCredentialsSecretRefNamespace = "aws.credentials.secretRef.namespace" + BYOKClusterAwsK3sMasters = "aws.k3sMasters" + BYOKClusterAwsK3sMastersIamInstanceProfileRole = "aws.k3sMasters.iamInstanceProfileRole" + BYOKClusterAwsK3sMastersInstanceType = "aws.k3sMasters.instanceType" + BYOKClusterAwsK3sMastersNodes = "aws.k3sMasters.nodes" + BYOKClusterAwsK3sMastersNvidiaGpuEnabled = "aws.k3sMasters.nvidiaGpuEnabled" + BYOKClusterAwsK3sMastersRootVolumeSize = "aws.k3sMasters.rootVolumeSize" + BYOKClusterAwsK3sMastersRootVolumeType = "aws.k3sMasters.rootVolumeType" + BYOKClusterAwsNodePools = "aws.nodePools" + BYOKClusterAwsRegion = "aws.region" + BYOKClusterAwsSpotNodePools = "aws.spotNodePools" + BYOKClusterAwsVpc = "aws.vpc" + BYOKClusterAwsVpcId = "aws.vpc.id" + BYOKClusterAwsVpcPublicSubnets = "aws.vpc.publicSubnets" + BYOKClusterBackupToS3Enabled = "backupToS3Enabled" + BYOKClusterCloudProvider = "cloudProvider" + BYOKClusterCloudflareEnabled = "cloudflareEnabled" + BYOKClusterClusterInternalDnsHost = "clusterInternalDnsHost" + BYOKClusterClusterTokenRef = "clusterTokenRef" + BYOKClusterClusterTokenRefKey = "clusterTokenRef.key" + BYOKClusterClusterTokenRefName = "clusterTokenRef.name" + BYOKClusterClusterTokenRefNamespace = "clusterTokenRef.namespace" + BYOKClusterKloudliteRelease = "kloudliteRelease" + BYOKClusterMessageQueueTopicName = "messageQueueTopicName" + BYOKClusterOutput = "output" + BYOKClusterOutputJobName = "output.jobName" + BYOKClusterOutputJobNamespace = "output.jobNamespace" + BYOKClusterOutputKeyAWSVPCId = "output.keyAWSVPCId" + BYOKClusterOutputKeyAWSVPCPublicSubnets = "output.keyAWSVPCPublicSubnets" + BYOKClusterOutputKeyK3sAgentJoinToken = "output.keyK3sAgentJoinToken" + BYOKClusterOutputKeyK3sServerJoinToken = "output.keyK3sServerJoinToken" + BYOKClusterOutputKeyKubeconfig = "output.keyKubeconfig" + BYOKClusterOutputSecretName = "output.secretName" + BYOKClusterPublicDNSHost = "publicDNSHost" + BYOKClusterTaintMasterNodes = "taintMasterNodes" +) + // constant vars generated for struct CloudProviderSecret const ( CloudProviderSecretAws = "aws" From 89e8308af8be833da02522fbf7cce7eb1285cd2d Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Wed, 27 Mar 2024 01:31:12 +0530 Subject: [PATCH 05/11] feat: adds Builds with App, and improves app update --- apps/console/Taskfile.yml | 18 +++ apps/console/internal/domain/app.go | 32 ++++-- .../domain/project-managed-service.go | 2 +- .../field-constants/generated_constants.go | 108 ++++++++++++------ 4 files changed, 114 insertions(+), 46 deletions(-) diff --git a/apps/console/Taskfile.yml b/apps/console/Taskfile.yml index 81ce07b47..147acc082 100644 --- a/apps/console/Taskfile.yml +++ b/apps/console/Taskfile.yml @@ -51,12 +51,30 @@ tasks: cmds: - go run ./main.go --dev + gen:constants: + cmds: + - go generate ./internal/entities/field-constants/gen.go + build: cmds: + - task: gen:constants - task: go:build vars: Out: ./bin/{{.app}} + local:build-and-push: + preconditions: + - sh: '[[ -n "{{.Image}}" ]]' + msg: "var Image must have a value, of format 'image_repository:image_tag'" + vars: + push: "{{.push | default false}}" + cmds: + - task: build + - nerdctl build -f ./Containerfile -t {{.Image}} . --build-arg BINARY={{.app}} + - |+ + [ {{.push}} = "true" ] && nerdctl push {{.Image}} + + container:build-and-push: preconditions: - sh: '[[ -n "{{.Image}}" ]]' diff --git a/apps/console/internal/domain/app.go b/apps/console/internal/domain/app.go index 4b8ea6f7a..592c6b313 100644 --- a/apps/console/internal/domain/app.go +++ b/apps/console/internal/domain/app.go @@ -136,20 +136,36 @@ func (d *domain) UpdateApp(ctx ResourceContext, appIn entities.App) (*entities.A return nil, errors.NewE(err) } + xapp, err := d.appRepo.FindOne(ctx, ctx.DBFilters().Add(fields.MetadataName, appIn.Name)) + if err != nil { + return nil, errors.NewE(err) + } + + if xapp == nil { + return nil, errors.Newf("app does not exist") + } + + for i := range xapp.Spec.Containers { + for _, volume := range xapp.Spec.Containers[i].Volumes { + if volume.Type == crdsv1.PVCType { + appIn.Spec.Containers[i].Volumes = append(appIn.Spec.Containers[i].Volumes, volume) + } + } + } + + patchDoc := repos.Document{ + fc.AppCiBuildId: appIn.CIBuildId, + fc.AppSpec: appIn.Spec, + } + patchForUpdate := common.PatchForUpdate( ctx, &appIn, common.PatchOpts{ - XPatch: repos.Document{ - fc.AppSpec: appIn.Spec, - }, + XPatch: patchDoc, }) - upApp, err := d.appRepo.Patch( - ctx, - ctx.DBFilters().Add(fields.MetadataName, appIn.Name), - patchForUpdate, - ) + upApp, err := d.appRepo.Patch(ctx, ctx.DBFilters().Add(fields.MetadataName, appIn.Name), patchForUpdate) if err != nil { return nil, errors.NewE(err) } diff --git a/apps/console/internal/domain/project-managed-service.go b/apps/console/internal/domain/project-managed-service.go index 07d10f5a6..d6f29cd97 100644 --- a/apps/console/internal/domain/project-managed-service.go +++ b/apps/console/internal/domain/project-managed-service.go @@ -45,7 +45,7 @@ func (d *domain) findProjectManagedService(ctx ConsoleContext, projectName strin } if pmsvc == nil { - return nil, errors.Newf("cmsvc with name %q not found", projectName) + return nil, errors.Newf("pmsvc with name %q not found", projectName) } return pmsvc, nil } diff --git a/apps/console/internal/entities/field-constants/generated_constants.go b/apps/console/internal/entities/field-constants/generated_constants.go index a8737832b..5bc0ddb79 100644 --- a/apps/console/internal/entities/field-constants/generated_constants.go +++ b/apps/console/internal/entities/field-constants/generated_constants.go @@ -4,26 +4,28 @@ package field_constants // constant vars generated for struct App const ( - AppEnabled = "enabled" - AppSpec = "spec" - AppSpecContainers = "spec.containers" - AppSpecDisplayName = "spec.displayName" - AppSpecFreeze = "spec.freeze" - AppSpecHpa = "spec.hpa" - AppSpecHpaEnabled = "spec.hpa.enabled" - AppSpecHpaMaxReplicas = "spec.hpa.maxReplicas" - AppSpecHpaMinReplicas = "spec.hpa.minReplicas" - AppSpecHpaThresholdCpu = "spec.hpa.thresholdCpu" - AppSpecHpaThresholdMemory = "spec.hpa.thresholdMemory" - AppSpecIntercept = "spec.intercept" - AppSpecInterceptEnabled = "spec.intercept.enabled" - AppSpecInterceptToDevice = "spec.intercept.toDevice" - AppSpecNodeSelector = "spec.nodeSelector" - AppSpecRegion = "spec.region" - AppSpecReplicas = "spec.replicas" - AppSpecServiceAccount = "spec.serviceAccount" - AppSpecServices = "spec.services" - AppSpecTolerations = "spec.tolerations" + AppCiBuildId = "ciBuildId" + AppEnabled = "enabled" + AppSpec = "spec" + AppSpecContainers = "spec.containers" + AppSpecDisplayName = "spec.displayName" + AppSpecFreeze = "spec.freeze" + AppSpecHpa = "spec.hpa" + AppSpecHpaEnabled = "spec.hpa.enabled" + AppSpecHpaMaxReplicas = "spec.hpa.maxReplicas" + AppSpecHpaMinReplicas = "spec.hpa.minReplicas" + AppSpecHpaThresholdCpu = "spec.hpa.thresholdCpu" + AppSpecHpaThresholdMemory = "spec.hpa.thresholdMemory" + AppSpecIntercept = "spec.intercept" + AppSpecInterceptEnabled = "spec.intercept.enabled" + AppSpecInterceptToDevice = "spec.intercept.toDevice" + AppSpecNodeSelector = "spec.nodeSelector" + AppSpecRegion = "spec.region" + AppSpecReplicas = "spec.replicas" + AppSpecServiceAccount = "spec.serviceAccount" + AppSpecServices = "spec.services" + AppSpecTolerations = "spec.tolerations" + AppSpecTopologySpreadConstraints = "spec.topologySpreadConstraints" ) // constant vars generated for struct Config @@ -70,19 +72,44 @@ const ( // constant vars generated for struct ManagedResource const ( - ManagedResourceEnabled = "enabled" - ManagedResourceSpec = "spec" - ManagedResourceSpecResourceName = "spec.resourceName" - ManagedResourceSpecResourceTemplate = "spec.resourceTemplate" - ManagedResourceSpecResourceTemplateApiVersion = "spec.resourceTemplate.apiVersion" - ManagedResourceSpecResourceTemplateKind = "spec.resourceTemplate.kind" - ManagedResourceSpecResourceTemplateMsvcRef = "spec.resourceTemplate.msvcRef" - ManagedResourceSpecResourceTemplateMsvcRefApiVersion = "spec.resourceTemplate.msvcRef.apiVersion" - ManagedResourceSpecResourceTemplateMsvcRefKind = "spec.resourceTemplate.msvcRef.kind" - ManagedResourceSpecResourceTemplateMsvcRefName = "spec.resourceTemplate.msvcRef.name" - ManagedResourceSpecResourceTemplateMsvcRefNamespace = "spec.resourceTemplate.msvcRef.namespace" - ManagedResourceSpecResourceTemplateSpec = "spec.resourceTemplate.spec" - ManagedResourceSyncedOutputSecretRef = "syncedOutputSecretRef" + ManagedResourceEnabled = "enabled" + ManagedResourceOutput = "output" + ManagedResourceOutputCredentialsRef = "output.credentialsRef" + ManagedResourceOutputCredentialsRefName = "output.credentialsRef.name" + ManagedResourceSpec = "spec" + ManagedResourceSpecResourceNamePrefix = "spec.resourceNamePrefix" + ManagedResourceSpecResourceTemplate = "spec.resourceTemplate" + ManagedResourceSpecResourceTemplateApiVersion = "spec.resourceTemplate.apiVersion" + ManagedResourceSpecResourceTemplateKind = "spec.resourceTemplate.kind" + ManagedResourceSpecResourceTemplateMsvcRef = "spec.resourceTemplate.msvcRef" + ManagedResourceSpecResourceTemplateMsvcRefApiVersion = "spec.resourceTemplate.msvcRef.apiVersion" + ManagedResourceSpecResourceTemplateMsvcRefKind = "spec.resourceTemplate.msvcRef.kind" + ManagedResourceSpecResourceTemplateMsvcRefName = "spec.resourceTemplate.msvcRef.name" + ManagedResourceSpecResourceTemplateMsvcRefNamespace = "spec.resourceTemplate.msvcRef.namespace" + ManagedResourceSpecResourceTemplateSpec = "spec.resourceTemplate.spec" + ManagedResourceSyncedOutputSecretRef = "syncedOutputSecretRef" + ManagedResourceSyncedOutputSecretRefApiVersion = "syncedOutputSecretRef.apiVersion" + ManagedResourceSyncedOutputSecretRefData = "syncedOutputSecretRef.data" + ManagedResourceSyncedOutputSecretRefImmutable = "syncedOutputSecretRef.immutable" + ManagedResourceSyncedOutputSecretRefKind = "syncedOutputSecretRef.kind" + ManagedResourceSyncedOutputSecretRefMetadata = "syncedOutputSecretRef.metadata" + ManagedResourceSyncedOutputSecretRefMetadataAnnotations = "syncedOutputSecretRef.metadata.annotations" + ManagedResourceSyncedOutputSecretRefMetadataCreationTimestamp = "syncedOutputSecretRef.metadata.creationTimestamp" + ManagedResourceSyncedOutputSecretRefMetadataDeletionGracePeriodSeconds = "syncedOutputSecretRef.metadata.deletionGracePeriodSeconds" + ManagedResourceSyncedOutputSecretRefMetadataDeletionTimestamp = "syncedOutputSecretRef.metadata.deletionTimestamp" + ManagedResourceSyncedOutputSecretRefMetadataFinalizers = "syncedOutputSecretRef.metadata.finalizers" + ManagedResourceSyncedOutputSecretRefMetadataGenerateName = "syncedOutputSecretRef.metadata.generateName" + ManagedResourceSyncedOutputSecretRefMetadataGeneration = "syncedOutputSecretRef.metadata.generation" + ManagedResourceSyncedOutputSecretRefMetadataLabels = "syncedOutputSecretRef.metadata.labels" + ManagedResourceSyncedOutputSecretRefMetadataManagedFields = "syncedOutputSecretRef.metadata.managedFields" + ManagedResourceSyncedOutputSecretRefMetadataName = "syncedOutputSecretRef.metadata.name" + ManagedResourceSyncedOutputSecretRefMetadataNamespace = "syncedOutputSecretRef.metadata.namespace" + ManagedResourceSyncedOutputSecretRefMetadataOwnerReferences = "syncedOutputSecretRef.metadata.ownerReferences" + ManagedResourceSyncedOutputSecretRefMetadataResourceVersion = "syncedOutputSecretRef.metadata.resourceVersion" + ManagedResourceSyncedOutputSecretRefMetadataSelfLink = "syncedOutputSecretRef.metadata.selfLink" + ManagedResourceSyncedOutputSecretRefMetadataUid = "syncedOutputSecretRef.metadata.uid" + ManagedResourceSyncedOutputSecretRefStringData = "syncedOutputSecretRef.stringData" + ManagedResourceSyncedOutputSecretRefType = "syncedOutputSecretRef.type" ) // constant vars generated for struct Project @@ -93,12 +120,17 @@ const ( // constant vars generated for struct ProjectManagedService const ( + ProjectManagedServiceOutput = "output" + ProjectManagedServiceOutputCredentialsRef = "output.credentialsRef" + ProjectManagedServiceOutputCredentialsRefName = "output.credentialsRef.name" ProjectManagedServiceSpec = "spec" ProjectManagedServiceSpecMsvcSpec = "spec.msvcSpec" + ProjectManagedServiceSpecMsvcSpecNodeSelector = "spec.msvcSpec.nodeSelector" ProjectManagedServiceSpecMsvcSpecServiceTemplate = "spec.msvcSpec.serviceTemplate" ProjectManagedServiceSpecMsvcSpecServiceTemplateApiVersion = "spec.msvcSpec.serviceTemplate.apiVersion" ProjectManagedServiceSpecMsvcSpecServiceTemplateKind = "spec.msvcSpec.serviceTemplate.kind" ProjectManagedServiceSpecMsvcSpecServiceTemplateSpec = "spec.msvcSpec.serviceTemplate.spec" + ProjectManagedServiceSpecMsvcSpecTolerations = "spec.msvcSpec.tolerations" ProjectManagedServiceSpecTargetNamespace = "spec.targetNamespace" ProjectManagedServiceSyncedOutputSecretRef = "syncedOutputSecretRef" ) @@ -147,10 +179,11 @@ const ( // constant vars generated for struct Secret const ( - SecretData = "data" - SecretImmutable = "immutable" - SecretStringData = "stringData" - SecretType = "type" + SecretData = "data" + SecretImmutable = "immutable" + SecretIsReadyOnly = "isReadyOnly" + SecretStringData = "stringData" + SecretType = "type" ) // constant vars generated for struct @@ -191,6 +224,7 @@ const ( ProjectName = "projectName" RecordVersion = "recordVersion" Status = "status" + StatusCheckList = "status.checkList" StatusChecks = "status.checks" StatusIsReady = "status.isReady" StatusLastReadyGeneration = "status.lastReadyGeneration" From eda1bbd38ef2cc6b0b34e439455a8d1cff0c7914 Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Mon, 1 Apr 2024 09:54:29 +0530 Subject: [PATCH 06/11] feat(observability): migrating from go-fiber to `net/http` - go fiber has bugs when doing streaming response, it never cancells that streaming response - net/http does the job --- apps/observability/Taskfile.yml | 2 +- apps/observability/internal/app/app.go | 222 +++++++++++++----- apps/observability/internal/app/logs.go | 57 +++++ apps/observability/internal/app/metrics.go | 7 +- apps/observability/internal/env/env.go | 5 +- .../internal/framework/framework.go | 45 ++-- apps/observability/main.go | 12 + 7 files changed, 277 insertions(+), 73 deletions(-) create mode 100644 apps/observability/internal/app/logs.go diff --git a/apps/observability/Taskfile.yml b/apps/observability/Taskfile.yml index ff850cde0..6462d4186 100644 --- a/apps/observability/Taskfile.yml +++ b/apps/observability/Taskfile.yml @@ -19,7 +19,7 @@ tasks: env: CGO_ENABLED: 0 cmds: - - go run ./main.go --dev + - fwatcher --exec 'go run ./main.go --dev' --ext '.go' build: cmds: diff --git a/apps/observability/internal/app/app.go b/apps/observability/internal/app/app.go index e5ff1c16a..85fe2e72c 100644 --- a/apps/observability/internal/app/app.go +++ b/apps/observability/internal/app/app.go @@ -1,19 +1,25 @@ package app import ( + "bufio" "fmt" + "io" "net/http" + "strings" "time" "github.com/kloudlite/api/apps/observability/internal/env" "github.com/kloudlite/api/common" + "github.com/kloudlite/api/grpc-interfaces/infra" "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/iam" "github.com/kloudlite/api/pkg/grpc" httpServer "github.com/kloudlite/api/pkg/http-server" + "github.com/kloudlite/api/pkg/k8s" "github.com/kloudlite/api/pkg/kv" + "github.com/kloudlite/api/pkg/logging" "go.uber.org/fx" + "k8s.io/client-go/rest" - "github.com/gofiber/fiber/v2" iamT "github.com/kloudlite/api/apps/iam/types" "github.com/kloudlite/api/constants" "github.com/kloudlite/api/pkg/errors" @@ -21,6 +27,7 @@ import ( type ( IAMGrpcClient grpc.Client + InfraClient grpc.Client SessionStore kv.Repo[*common.AuthSession] ) @@ -33,65 +40,172 @@ var Module = fx.Module( }, ), - fx.Invoke(func(server httpServer.Server, sessStore SessionStore, ev *env.Env) { - a := server.Raw() - a.Use(httpServer.NewReadSessionMiddleware(sessStore, constants.CookieName, constants.CacheSessionPrefix)) + fx.Provide(func(conn InfraClient) infra.InfraClient { + return infra.NewInfraClient(conn) }), - fx.Invoke( - func(server httpServer.Server, ev *env.Env, sessionRepo kv.Repo[*common.AuthSession], iamCli iam.IAMClient, - ) { - a := server.Raw() - - a.Get("/observability/metrics/:metric_type", func(c *fiber.Ctx) error { - sess := httpServer.GetSession[*common.AuthSession](c.Context()) - if sess == nil { - return fiber.ErrUnauthorized - } - - m := httpServer.GetHttpCookies(c.Context()) - accountName := m[ev.AccountCookieName] - if accountName == "" { - return errors.Newf("no cookie named '%s' present in request", ev.AccountCookieName) - } + fx.Provide(func(cfg *rest.Config) (k8s.Client, error) { + return k8s.NewClient(cfg, nil) + }), - clusterName := c.Query("cluster_name") - if clusterName == "" { - return c.Status(http.StatusBadRequest).JSON(map[string]any{"error": "query param (cluster_name) must be provided"}) + fx.Invoke(func(infraCli infra.InfraClient, iamCli iam.IAMClient, mux *http.ServeMux, sessStore SessionStore, ev *env.Env, logger logging.Logger) { + sessionMiddleware := httpServer.NewReadSessionMiddlewareHandler(sessStore, constants.CookieName, constants.CacheSessionPrefix) + + mux.HandleFunc("/observability/metrics/", sessionMiddleware(func(w http.ResponseWriter, r *http.Request) { + timestart := time.Now() + defer func() { + logger.Infof("%s %s took %.2fs", r.Method, r.URL.Path, time.Since(timestart).Seconds()) + }() + metricsType := strings.TrimPrefix(r.URL.Path, "/observability/metrics/") + + sess := httpServer.GetHttpSession[*common.AuthSession](r.Context()) + if sess == nil { + http.Error(w, "not logged in", http.StatusUnauthorized) + return + } + + m, ok := r.Context().Value("http-cookies").(map[string]string) + if !ok { + m = map[string]string{} + } + + accountName := m[ev.AccountCookieName] + if accountName == "" { + http.Error(w, fmt.Sprintf("no cookie named '%s' present in request", ev.AccountCookieName), http.StatusBadRequest) + return + } + + clusterName := r.URL.Query().Get("cluster_name") + if clusterName == "" { + http.Error(w, "query param (cluster_name) must be provided", http.StatusBadRequest) + return + } + + trackingId := r.URL.Query().Get("tracking_id") + if trackingId == "" { + http.Error(w, "query param (tracking_id) must be provided", http.StatusBadRequest) + } + + can, err := iamCli.Can(r.Context(), &iam.CanIn{ + UserId: string(sess.UserId), + ResourceRefs: []string{ + iamT.NewResourceRef(accountName, iamT.ResourceAccount, accountName), + }, + Action: string(iamT.ReadMetrics), + }) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + + if !can.Status { + http.Error(w, errors.NewEf(err, "unauthorized to view metrics for resources belonging to account (%s)", accountName).Error(), http.StatusUnauthorized) + return + } + + st := r.URL.Query().Get("start_time") + if st == "" { + st = fmt.Sprintf("%d", time.Now().Add(-3*time.Hour).Unix()) + } + + et := r.URL.Query().Get("end_time") + if et == "" { + et = fmt.Sprintf("%d", time.Now().Unix()) + } + + step := r.URL.Query().Get("step") + if step == "" { + step = "15s" + } + + if err := queryProm(ev.PromHttpAddr, PromMetricsType(metricsType), map[string]string{ + "kl_account_name": accountName, + "kl_cluster_name": clusterName, + "kl_tracking_id": trackingId, + }, st, et, step, w); err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + })) + + mux.HandleFunc("/observability/logs", sessionMiddleware(func(w http.ResponseWriter, r *http.Request) { + timestart := time.Now() + defer func() { + logger.Infof("%s %s took %.2fs", r.Method, r.URL.Path, time.Since(timestart).Seconds()) + }() + + sess := httpServer.GetHttpSession[*common.AuthSession](r.Context()) + if sess == nil { + http.Error(w, "not logged in", http.StatusUnauthorized) + return + } + + m, ok := r.Context().Value("http-cookies").(map[string]string) + if !ok { + m = map[string]string{} + } + + accountName := m[ev.AccountCookieName] + if accountName == "" { + http.Error(w, fmt.Sprintf("no cookie named '%s' present in request", ev.AccountCookieName), http.StatusBadRequest) + return + } + + clusterName := r.URL.Query().Get("cluster_name") + trackingId := r.URL.Query().Get("tracking_id") + + out, err := infraCli.GetClusterKubeconfig(r.Context(), &infra.GetClusterIn{ + UserId: string(sess.UserId), + UserName: sess.UserName, + UserEmail: sess.UserEmail, + AccountName: accountName, + ClusterName: clusterName, + }) + if err != nil { + http.Error(w, err.Error(), 500) + return + } + + cfg, err := k8s.RestConfigFromKubeConfig(out.Kubeconfig) + if err != nil { + http.Error(w, err.Error(), 500) + return + } + + kcli, err := k8s.NewClient(cfg, nil) + if err != nil { + http.Error(w, err.Error(), 500) + return + } + + closed := false + go func() { + for { + if err := r.Context().Err(); err != nil { + closed = true + return + } + <-time.After(100 * time.Millisecond) } + }() - trackingId := c.Query("tracking_id") - if trackingId == "" { - return c.Status(http.StatusBadRequest).JSON(map[string]any{"error": "query param (tracking_id) must be provided"}) - } + pr, pw := io.Pipe() + go StreamLogs(r.Context(), kcli, pw, LogParams{ + TrackingId: trackingId, + }) - can, err := iamCli.Can(c.Context(), &iam.CanIn{ - UserId: string(sess.UserId), - ResourceRefs: []string{ - iamT.NewResourceRef(accountName, iamT.ResourceAccount, accountName), - }, - Action: string(iamT.ReadMetrics), - }) + b := bufio.NewReader(pr) + for !closed { + msg, err := b.ReadBytes('\n') if err != nil { - return &fiber.Error{Code: http.StatusUnauthorized, Message: errors.NewEf(err, "unauthorized to view metrics for resources belonging to account (%s)", accountName).Error()} + if !errors.Is(err, io.EOF) { + http.Error(w, err.Error(), 500) + } + return } - - if !can.Status { - return &fiber.Error{Code: http.StatusUnauthorized, Message: fmt.Sprintf("unauthorized to view metrics for resources belonging to account (%s)", accountName)} - } - - metricType := c.Params("metric_type") - - st := c.Query("start_time", fmt.Sprintf("%d", time.Now().Add(-3*time.Hour).Unix())) - et := c.Query("end_time", fmt.Sprintf("%d", time.Now().Unix())) - step := c.Query("step", "5m") - - return queryProm(ev.PromHttpAddr, PromMetricsType(metricType), map[string]string{ - "kl_account_name": accountName, - "kl_cluster_name": clusterName, - "kl_tracking_id": trackingId, - }, st, et, step, c.Response().BodyWriter()) - }) - }, - ), + fmt.Fprintf(w, "%s", msg) + w.(http.Flusher).Flush() + } + })) + }), ) diff --git a/apps/observability/internal/app/logs.go b/apps/observability/internal/app/logs.go new file mode 100644 index 000000000..0203aa3ed --- /dev/null +++ b/apps/observability/internal/app/logs.go @@ -0,0 +1,57 @@ +package app + +import ( + "context" + "fmt" + "io" + + "github.com/kloudlite/api/constants" + fn "github.com/kloudlite/api/pkg/functions" + "github.com/kloudlite/api/pkg/k8s" + "golang.org/x/sync/errgroup" + corev1 "k8s.io/api/core/v1" + apiLabels "k8s.io/apimachinery/pkg/labels" + client "sigs.k8s.io/controller-runtime/pkg/client" +) + +type LogParams struct { + TrackingId string +} + +func StreamLogs(ctx context.Context, kcli k8s.Client, writer io.WriteCloser, params LogParams) error { + var pods corev1.PodList + + if err := kcli.List(ctx, &pods, &client.ListOptions{ + LabelSelector: apiLabels.SelectorFromValidatedSet(map[string]string{ + constants.ObservabilityTrackingKey: params.TrackingId, + }), + }); err != nil { + return err + } + + g, ctx := errgroup.WithContext(ctx) + + for i := range pods.Items { + pod := pods.Items[i] + for j := range pod.Spec.Containers { + container := pod.Spec.Containers[j] + g.Go(func() error { + defer func() { + fmt.Printf("\n-------disconnected for (%s/%s)---------\n", pod.Namespace, pod.Name) + }() + if err := kcli.ReadLogs(ctx, pod.Namespace, pod.Name, writer, &k8s.ReadLogsOptions{ + ContainerName: container.Name, + SinceSeconds: nil, + TailLines: fn.New(int64(300)), + }); err != nil { + fmt.Printf("ERR: %v", err) + return err + // return err + } + return nil + }) + } + } + + return g.Wait() +} diff --git a/apps/observability/internal/app/metrics.go b/apps/observability/internal/app/metrics.go index bd7c98078..d75a48b0e 100644 --- a/apps/observability/internal/app/metrics.go +++ b/apps/observability/internal/app/metrics.go @@ -99,11 +99,12 @@ func buildPromQuery(resType PromMetricsType, filters map[string]string) (string, switch resType { case Memory: // return fmt.Sprintf(`sum(avg_over_time(container_memory_working_set_bytes{namespace="%s",pod=~"%s.*",container!="POD",image!=""}[30s]))/1024/1024`, namespace, name), nil - return fmt.Sprintf(`sum by(exported_pod) (avg_over_time(pod_memory_working_set_bytes{%s}[1m]))/1024/1024`, strings.Join(tags, ",")), nil - // return fmt.Sprintf(`sum by(pod_name) (kl_pod_mem_used{%s}/1000)`, strings.Join(tags, ",")), nil + // return fmt.Sprintf(`sum by(exported_pod) (avg_over_time(pod_memory_working_set_bytes{%s}[1m]))/1024/1024`, strings.Join(tags, ",")), nil + return fmt.Sprintf(`sum by(pod_name) (kl_pod_mem_used{%s}/1024/1024)`, strings.Join(tags, ",")), nil case Cpu: // return fmt.Sprintf(`sum(rate(container_cpu_usage_seconds_total{namespace="%s", pod=~"%s.*", image!="", container!="POD"}[1m])) * 1000`, namespace, name), nil - return fmt.Sprintf(`sum by(exported_pod) (rate(pod_cpu_usage_seconds_total{%s}[2m])) * 1000`, strings.Join(tags, ",")), nil + // return fmt.Sprintf(`sum by(exported_pod) (rate(pod_cpu_usage_seconds_total{%s}[10s])) * 1000`, strings.Join(tags, ",")), nil + return fmt.Sprintf(`sum by(pod_name) (avg_over_time(kl_pod_cpu_usage{%s}[10s]))`, strings.Join(tags, ",")), nil // return fmt.Sprintf(`sum by(pod_name) (kl_pod_cpu_usage{%s})`, strings.Join(tags, ",")), nil case NetworkRead: return fmt.Sprintf(`sum by(pod_name) (rate(kl_pod_network_read{%s}[30s]))`, strings.Join(tags, ",")), nil diff --git a/apps/observability/internal/env/env.go b/apps/observability/internal/env/env.go index ce5d86490..092c1442e 100644 --- a/apps/observability/internal/env/env.go +++ b/apps/observability/internal/env/env.go @@ -11,11 +11,14 @@ type Env struct { NatsURL string `env:"NATS_URL" required:"true"` SessionKVBucket string `env:"SESSION_KV_BUCKET" required:"true"` - IAMGrpcAddr string `env:"IAM_GRPC_ADDR" required:"true"` + IAMGrpcAddr string `env:"IAM_GRPC_ADDR" required:"true"` + InfraGrpcAddr string `env:"INFRA_GRPC_ADDR" required:"true"` PromHttpAddr string `env:"PROM_HTTP_ADDR" required:"true"` IsDev bool + + KubernetesApiProxy string `env:"KUBERNETES_API_PROXY" default:"localhost:8080"` } func LoadEnv() (*Env, error) { diff --git a/apps/observability/internal/framework/framework.go b/apps/observability/internal/framework/framework.go index ac8b8aa88..6d39ccfca 100644 --- a/apps/observability/internal/framework/framework.go +++ b/apps/observability/internal/framework/framework.go @@ -3,12 +3,12 @@ package framework import ( "context" "fmt" + "net/http" "github.com/kloudlite/api/apps/observability/internal/app" "github.com/kloudlite/api/apps/observability/internal/env" "github.com/kloudlite/api/common" "github.com/kloudlite/api/pkg/grpc" - httpServer "github.com/kloudlite/api/pkg/http-server" "github.com/kloudlite/api/pkg/kv" "github.com/kloudlite/api/pkg/logging" "github.com/kloudlite/api/pkg/nats" @@ -20,6 +20,10 @@ var Module = fx.Module("framework", return grpc.NewGrpcClient(ev.IAMGrpcAddr) }), + fx.Provide(func(ev *env.Env) (app.InfraClient, error) { + return grpc.NewGrpcClient(ev.InfraGrpcAddr) + }), + fx.Provide(func(ev *env.Env, logger logging.Logger) (*nats.Client, error) { return nats.NewClient(ev.NatsURL, nats.ClientOpts{ Name: "console", @@ -38,14 +42,6 @@ var Module = fx.Module("framework", }, ), - fx.Provide(func(logger logging.Logger, ev *env.Env) httpServer.Server { - return httpServer.NewServer(httpServer.ServerArgs{ - Logger: logger, - CorsAllowOrigins: &ev.HttpCorsOrigins, - IsDev: ev.IsDev, - }) - }), - fx.Provide( func(ev *env.Env, jc *nats.JetstreamClient) (kv.Repo[*common.AuthSession], error) { cxt := context.TODO() @@ -55,13 +51,34 @@ var Module = fx.Module("framework", app.Module, - fx.Invoke(func(lf fx.Lifecycle, server httpServer.Server, ev *env.Env) { + // fx.Provide(func(logger logging.Logger, ev *env.Env) httpServer.Server { + // return httpServer.NewServer(httpServer.ServerArgs{ + // Logger: logger, + // CorsAllowOrigins: &ev.HttpCorsOrigins, + // IsDev: ev.IsDev, + // }) + // }), + // + // fx.Invoke(func(lf fx.Lifecycle, server httpServer.Server, ev *env.Env) { + // lf.Append(fx.Hook{ + // OnStart: func(context.Context) error { + // return server.Listen(fmt.Sprintf(":%d", ev.HttpPort)) + // }, + // OnStop: func(context.Context) error { + // return server.Close() + // }, + // }) + // }), + + fx.Provide(func() *http.ServeMux { + return http.NewServeMux() + }), + + fx.Invoke(func(lf fx.Lifecycle, ev *env.Env, mux *http.ServeMux) { lf.Append(fx.Hook{ OnStart: func(context.Context) error { - return server.Listen(fmt.Sprintf(":%d", ev.HttpPort)) - }, - OnStop: func(context.Context) error { - return server.Close() + go http.ListenAndServe(fmt.Sprintf(":%d", ev.HttpPort), mux) + return nil }, }) }), diff --git a/apps/observability/main.go b/apps/observability/main.go index 67533e4b1..3140cd0f5 100644 --- a/apps/observability/main.go +++ b/apps/observability/main.go @@ -12,6 +12,9 @@ import ( "github.com/kloudlite/api/pkg/errors" "github.com/kloudlite/api/pkg/logging" "go.uber.org/fx" + + "github.com/kloudlite/api/pkg/k8s" + "k8s.io/client-go/rest" ) func main() { @@ -47,6 +50,15 @@ func main() { } }), + fx.Provide(func(e *env.Env) (*rest.Config, error) { + if e.KubernetesApiProxy != "" { + return &rest.Config{ + Host: e.KubernetesApiProxy, + }, nil + } + return k8s.RestInclusterConfig() + }), + framework.Module, ) From 624ae701c879e5a9894993656dfed4912a2b6f5c Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Mon, 1 Apr 2024 10:04:23 +0530 Subject: [PATCH 07/11] feat: websocket-server now stream logs from observability-api --- apps/websocket-server/internal/app/app.go | 21 ++- apps/websocket-server/internal/domain/logs.go | 23 ++- apps/websocket-server/internal/domain/main.go | 93 +++++++++---- .../internal/domain/observability-logs.go | 131 ++++++++++++++++++ .../internal/domain/types/main.go | 27 +++- apps/websocket-server/internal/env/env.go | 13 +- apps/websocket-server/main.go | 3 +- 7 files changed, 242 insertions(+), 69 deletions(-) create mode 100644 apps/websocket-server/internal/domain/observability-logs.go diff --git a/apps/websocket-server/internal/app/app.go b/apps/websocket-server/internal/app/app.go index ddbb06212..7509fe818 100644 --- a/apps/websocket-server/internal/app/app.go +++ b/apps/websocket-server/internal/app/app.go @@ -40,24 +40,21 @@ var Module = fx.Module("app", ) { a := server.Raw() - a.Use( - httpServer.NewSessionMiddleware( - sessionRepo, - constants.CookieName, - env.CookieDomain, - constants.CacheSessionPrefix, - ), - ) + a.Use(httpServer.NewReadSessionMiddleware(sessionRepo, constants.CookieName, constants.CacheSessionPrefix)) - setUpgradable := func(c *fiber.Ctx) error { + // Web socket route + a.Use("/ws", func(c *fiber.Ctx) error { if websocket.IsWebSocketUpgrade(c) { return c.Next() } return fiber.ErrUpgradeRequired - } + }) - // Web socket route - a.Use("/ws", setUpgradable) + // a.Use("/ws", websocket.New(func(c *websocket.Conn) { + // if err := d.HandleWebSocket(context.TODO(), c); err != nil { + // logr.Errorf(err, "while handling websocket for resource update") + // } + // })) a.Use("/ws", func(c *fiber.Ctx) error { ctx := c.Context() diff --git a/apps/websocket-server/internal/domain/logs.go b/apps/websocket-server/internal/domain/logs.go index 3092ca4be..d74d653cc 100644 --- a/apps/websocket-server/internal/domain/logs.go +++ b/apps/websocket-server/internal/domain/logs.go @@ -13,7 +13,6 @@ import ( "github.com/kloudlite/api/apps/websocket-server/internal/domain/types" "github.com/kloudlite/api/apps/websocket-server/internal/domain/utils" "github.com/kloudlite/api/pkg/errors" - "github.com/kloudlite/api/pkg/messaging/nats" msg_nats "github.com/kloudlite/api/pkg/messaging/nats" msg_types "github.com/kloudlite/api/pkg/messaging/types" @@ -56,7 +55,7 @@ func (d *domain) newJetstreamConsumerForLog(ctx context.Context, subject string, }) } -func (d *domain) handleLogsMsg(ctx types.Context, logsSubs *logs.LogsSubsMap, msgAny map[string]any) error { +func (d *domain) handleLogsMsg(ctx types.Context, logsSubs logs.LogsSubsMap, msgAny map[string]any) error { log := d.logger var msg logs.Message @@ -83,9 +82,9 @@ func (d *domain) handleLogsMsg(ctx types.Context, logsSubs *logs.LogsSubsMap, ms return err } - if _, ok := (*logsSubs)[hash]; ok { - if (*logsSubs)[hash].Jc != nil { - if err := (*logsSubs)[hash].Jc.Stop(ctx.Context); err != nil { + if _, ok := logsSubs[hash]; ok { + if logsSubs[hash].Jc != nil { + if err := logsSubs[hash].Jc.Stop(ctx.Context); err != nil { return err } } @@ -99,11 +98,11 @@ func (d *domain) handleLogsMsg(ctx types.Context, logsSubs *logs.LogsSubsMap, ms return err } - if (*logsSubs) == nil { - *logsSubs = make(logs.LogsSubsMap) + if logsSubs == nil { + logsSubs = make(logs.LogsSubsMap) } - (*logsSubs)[hash] = logs.LogsSubs{ + logsSubs[hash] = logs.LogsSubs{ Jc: jc, Id: msg.Id, Resource: msg.Spec, @@ -114,7 +113,6 @@ func (d *domain) handleLogsMsg(ctx types.Context, logsSubs *logs.LogsSubsMap, ms if err := jc.Consume( func(m *msg_types.ConsumeMsg) error { - var data logs.Response var resp types.Response[logs.Response] if err := json.Unmarshal(m.Payload, &data); err != nil { @@ -152,19 +150,18 @@ func (d *domain) handleLogsMsg(ctx types.Context, logsSubs *logs.LogsSubsMap, ms case logs.EventUnsubscribe: { - ctx.Mutex.Lock() - if res, ok := (*logsSubs)[hash]; ok { + if res, ok := logsSubs[hash]; ok { if res.Jc != nil { if err := res.Jc.Stop(ctx.Context); err != nil { return err } - if err := nats.DeleteConsumer(ctx.Context, d.jetStreamClient, res.Jc); err != nil { + if err := msg_nats.DeleteConsumer(ctx.Context, d.jetStreamClient, res.Jc); err != nil { return err } - delete(*logsSubs, hash) + delete(logsSubs, hash) } ctx.Mutex.Unlock() utils.WriteInfo(ctx, "[logs] subscription cancelled for ", msg.Id, types.ForLogs) diff --git a/apps/websocket-server/internal/domain/main.go b/apps/websocket-server/internal/domain/main.go index 594e51b1c..65270eac8 100644 --- a/apps/websocket-server/internal/domain/main.go +++ b/apps/websocket-server/internal/domain/main.go @@ -11,6 +11,8 @@ import ( "github.com/kloudlite/api/apps/websocket-server/internal/domain/types" "github.com/kloudlite/api/apps/websocket-server/internal/domain/utils" "github.com/kloudlite/api/common" + + // "github.com/kloudlite/api/pkg/errors" "github.com/kloudlite/api/pkg/errors" httpServer "github.com/kloudlite/api/pkg/http-server" "github.com/kloudlite/api/pkg/messaging/nats" @@ -24,7 +26,7 @@ func (d *domain) HandleWebSocket(ctx context.Context, c *websocket.Conn) error { mu := sync.Mutex{} - logsSubs := &logs.LogsSubsMap{} + logsSubs := logs.LogsSubsMap{} rWatchSubs := &res_watch.ResWatchSubsMap{} write := func(msg interface{}) error { @@ -40,20 +42,57 @@ func (d *domain) HandleWebSocket(ctx context.Context, c *websocket.Conn) error { return fmt.Errorf("connection is closed") } + writeBytes := func(b []byte) error { + if c != nil { + mu.Lock() + if err := c.WriteMessage(websocket.TextMessage, b); err != nil { + d.logger.Warnf("websocket write: %w", err) + } + mu.Unlock() + return nil + } + + return fmt.Errorf("connection is closed") + } + + sc := types.Context{ + Context: ctx, + Session: sess, + // Connection: c, + Mutex: &mu, + WriteJSON: write, + } + + logsSubscriptions := make(map[string]LogSubscriptionCtx) + + // disconnect := func() error { + // fmt.Println("-----DISCONNECTED-----") + // // write(`{"message": "CLOSING"}`) + // return c.Close() + // } + + closed := false + c.SetCloseHandler(func(_ int, _ string) error { + closed = true + return nil + }) + defer func() { if err := c.Close(); err != nil { d.logger.Warnf("websocket close: %w", err) } - if logsSubs != nil { - for _, v := range *logsSubs { - if v.Jc != nil { - if err := v.Jc.Stop(ctx); err != nil { - d.logger.Warnf("stop jetstream consumer failed with err: %w", err) - } - if err := nats.DeleteConsumer(ctx, d.jetStreamClient, v.Jc); err != nil { - d.logger.Warnf("deleting jetstream consumer failed with err: %w", err) - } + for _, v := range logsSubscriptions { + v.CancelFunc() + } + + for _, v := range logsSubs { + if v.Jc != nil { + if err := v.Jc.Stop(ctx); err != nil { + d.logger.Warnf("stop jetstream consumer failed with err: %w", err) + } + if err := nats.DeleteConsumer(ctx, d.jetStreamClient, v.Jc); err != nil { + d.logger.Warnf("deleting jetstream consumer failed with err: %w", err) } } } @@ -69,25 +108,7 @@ func (d *domain) HandleWebSocket(ctx context.Context, c *websocket.Conn) error { } }() - closed := false - c.SetCloseHandler(func(_ int, _ string) error { - closed = true - return nil - }) - - sc := types.Context{ - Context: ctx, - Session: sess, - // Connection: c, - Mutex: &mu, - WriteJSON: write, - } - - for { - if closed { - break - } - + for !closed { var msg types.Message if err := c.ReadJSON(&msg); err != nil { if websocket.IsCloseError(err, websocket.CloseGoingAway) { @@ -103,6 +124,20 @@ func (d *domain) HandleWebSocket(ctx context.Context, c *websocket.Conn) error { switch msg.For { case types.ForLogs: + { + if err := d.handleObservabilityLogsMsg(types.Context{ + Context: ctx, + Session: sess, + // Connection: c, + Mutex: &mu, + Logger: d.logger, + Write: writeBytes, + WriteJSON: write, + }, logsSubscriptions, msg.Data); err != nil { + utils.WriteError(sc, err, "", types.ForLogs) + } + } + case types.ForJetstreamLogs: if err := d.handleLogsMsg(types.Context{ Context: ctx, Session: sess, diff --git a/apps/websocket-server/internal/domain/observability-logs.go b/apps/websocket-server/internal/domain/observability-logs.go new file mode 100644 index 000000000..5faaa5f7a --- /dev/null +++ b/apps/websocket-server/internal/domain/observability-logs.go @@ -0,0 +1,131 @@ +package domain + +import ( + "bufio" + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "time" + + // iamT "github.com/kloudlite/api/apps/iam/types" + "github.com/kloudlite/api/apps/websocket-server/internal/domain/logs" + "github.com/kloudlite/api/apps/websocket-server/internal/domain/types" + "github.com/kloudlite/api/apps/websocket-server/internal/domain/utils" + "github.com/kloudlite/api/constants" +) + +// {"type":"response","for":"logs","data":{"message":"2024/03/26 10:17:01 [notice] 30#30: exit","timestamp":"2024-03-26T10:17:01.019879803Z","podName":"test-app-85c4759979-q2g8b","containerName":"container-0"},"message":"","id":"world.dev-team-cluster.app-fkimv6rui7osxtwenjfo8vf4ruumz"} + +type LogSubscriptionCtx struct { + Context context.Context + CancelFunc context.CancelFunc + Reader io.Reader +} + +func (d *domain) handleObservabilityLogsMsg(ctx types.Context, subscriptions map[string]LogSubscriptionCtx, msgAny map[string]any) error { + // log := d.logger + + var msg logs.Message + b, err := json.Marshal(msgAny) + if err != nil { + return err + } + + if err := json.Unmarshal(b, &msg); err != nil { + return err + } + + if msg.Id == "" { + msg.Id = "default" + } + + // hash := logs.LogHash(msg.Spec, ctx.Session.UserId, msg.Id) + hash := "tmp" + + switch msg.Event { + case logs.EventSubscribe: + { + // if err := d.checkAccountAccess(ctx.Context, msg.Spec.Account, ctx.Session.UserId, iamT.ReadLogs); err != nil { + // return err + // } + + tpk := logs.LogSubsId(msg.Spec, d.env.LogsStreamName) + d.logger.Debugf("tpk: %s", tpk) + + utils.WriteInfo(ctx, "subscribed to logs", msg.Id, types.ForLogs) + + nctx, cf := context.WithCancel(context.TODO()) + + req, err := http.NewRequestWithContext(nctx, http.MethodGet, fmt.Sprintf("http://%s/observability/logs", d.env.ObservabilityApiAddr), nil) + if err != nil { + utils.WriteError(ctx, err, msg.Id, types.ForLogs) + } + + req.AddCookie(&http.Cookie{ + Name: constants.CookieName, + Value: string(ctx.Session.Id), + }) + + req.AddCookie(&http.Cookie{Name: "kloudlite-account", Value: msg.Spec.Account}) + + qp := req.URL.Query() + qp.Add("tracking_id", msg.Spec.TrackingId) + qp.Add("cluster_name", msg.Spec.Cluster) + req.URL.RawQuery = qp.Encode() + + resp, err := http.DefaultClient.Do(req) + if err != nil { + utils.WriteError(ctx, err, msg.Id, types.ForLogs) + defer cf() + return err + } + + resp.Close = true + + subscriptions[hash] = LogSubscriptionCtx{ + Context: nctx, + CancelFunc: cf, + Reader: resp.Body, + } + + go func() { + defer resp.Body.Close() + for { + if err := nctx.Err(); err != nil { + fmt.Println("subscription cancelled") + return + } + <-time.After(1 * time.Second) + } + }() + + go func() { + defer resp.Body.Close() + // defer subscriptions[hash].Close() + reader := bufio.NewReader(resp.Body) + for { + b2, err := reader.ReadBytes('\n') + if err != nil { + return + // return err + } + ctx.Write([]byte(types.CreateResponseJson(b2, msg.Id))) + } + }() + } + + case logs.EventUnsubscribe: + { + utils.WriteInfo(ctx, "[logs] subscription cancelled for ", msg.Id, types.ForLogs) + if v, ok := subscriptions[hash]; ok { + v.CancelFunc() + } + } + default: + return fmt.Errorf("invalid event: %s", msg.Event) + } + + return nil +} diff --git a/apps/websocket-server/internal/domain/types/main.go b/apps/websocket-server/internal/domain/types/main.go index c267bff3e..360e0828c 100644 --- a/apps/websocket-server/internal/domain/types/main.go +++ b/apps/websocket-server/internal/domain/types/main.go @@ -2,6 +2,7 @@ package types import ( "context" + "fmt" "sync" "github.com/kloudlite/api/common" @@ -12,6 +13,7 @@ type For string const ( ForLogs For = "logs" + ForJetstreamLogs For = "jetstram-logs" ForResourceUpdate For = "resource-update" ) @@ -33,6 +35,17 @@ type Response[T any] struct { Id string `json:"id"` } +func CreateResponseJson(data []byte, id string) string { + // return map[string]any{ + // "type": "response", + // "for": "logs", + // "data": string(data), + // "message": "", + // "id": id, + // } + return fmt.Sprintf(`{"type":"response","for":"logs","data":%s, "id":%q}`, data, id) +} + type Message struct { For For `json:"for"` Data map[string]any `json:"data"` @@ -43,6 +56,16 @@ type Context struct { Context context.Context Session *common.AuthSession // Connection *websocket.Conn - Mutex *sync.Mutex - WriteJSON func(interface{}) error + Mutex *sync.Mutex + + Write func([]byte) error + WriteJSON func(interface{}) error + OnDisconnectFn func() error +} + +func (c Context) OnDisconnect() error { + if c.OnDisconnectFn != nil { + return c.OnDisconnectFn() + } + return nil } diff --git a/apps/websocket-server/internal/env/env.go b/apps/websocket-server/internal/env/env.go index 9dd54f3f1..8345a3df3 100644 --- a/apps/websocket-server/internal/env/env.go +++ b/apps/websocket-server/internal/env/env.go @@ -17,18 +17,7 @@ type Env struct { LogsStreamName string `env:"LOGS_STREAM_NAME" default:"logs"` - // HttpPort uint16 `env:"HTTP_PORT" required:"true"` - // HttpCors string `env:"CORS_ORIGINS" required:"false"` - // GrpcPort uint16 `env:"GRPC_PORT" required:"true"` - // - // DBName string `env:"MONGO_DB_NAME" required:"true"` - // DBUrl string `env:"MONGO_URI" required:"true"` - // - // - // CommsGrpcAddr string `env:"COMMS_GRPC_ADDR" required:"true"` - // ContainerRegistryGrpcAddr string `env:"CONTAINER_REGISTRY_GRPC_ADDR" required:"true"` - // ConsoleGrpcAddr string `env:"CONSOLE_GRPC_ADDR" required:"true"` - // KubernetesApiProxy string `env:"KUBERNETES_API_PROXY"` + ObservabilityApiAddr string `env:"OBSERVABILITY_API_ADDR" required:"true"` } func LoadEnv() (*Env, error) { diff --git a/apps/websocket-server/main.go b/apps/websocket-server/main.go index b8deadd7f..8b8dfae0f 100644 --- a/apps/websocket-server/main.go +++ b/apps/websocket-server/main.go @@ -3,10 +3,11 @@ package main import ( "context" "flag" - "github.com/kloudlite/api/pkg/errors" "os" "time" + "github.com/kloudlite/api/pkg/errors" + "github.com/kloudlite/api/common" "github.com/kloudlite/api/pkg/logging" "go.uber.org/fx" From 418e68d0a2c127237840497125cce71004b4e02b Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Mon, 1 Apr 2024 10:08:38 +0530 Subject: [PATCH 08/11] feat(container-registry): fixes cache key, get build, and build job templates --- .../internal/app/graph/entity.resolvers.go | 1 + .../internal/app/graph/schema.resolvers.go | 114 +----------------- .../internal/domain/build.go | 11 +- .../templates/build-job.yml.tpl | 6 +- 4 files changed, 20 insertions(+), 112 deletions(-) diff --git a/apps/container-registry/internal/app/graph/entity.resolvers.go b/apps/container-registry/internal/app/graph/entity.resolvers.go index 8b34d3882..48d272c63 100644 --- a/apps/container-registry/internal/app/graph/entity.resolvers.go +++ b/apps/container-registry/internal/app/graph/entity.resolvers.go @@ -6,6 +6,7 @@ package graph import ( "context" + fiber "github.com/gofiber/fiber/v2" "github.com/kloudlite/api/apps/container-registry/internal/app/graph/generated" "github.com/kloudlite/api/apps/container-registry/internal/domain/entities" diff --git a/apps/container-registry/internal/app/graph/schema.resolvers.go b/apps/container-registry/internal/app/graph/schema.resolvers.go index 3b8cb4b85..c3f13655b 100644 --- a/apps/container-registry/internal/app/graph/schema.resolvers.go +++ b/apps/container-registry/internal/app/graph/schema.resolvers.go @@ -6,6 +6,7 @@ package graph import ( "context" + generated1 "github.com/kloudlite/api/apps/container-registry/internal/app/graph/generated" "github.com/kloudlite/api/apps/container-registry/internal/app/graph/model" "github.com/kloudlite/api/apps/container-registry/internal/domain" @@ -412,7 +413,7 @@ func (r *queryResolver) CrListBuildRuns(ctx context.Context, search *model.Searc } if search.RepoName != nil { - filter["spec.registry.repo"] = *search.RepoName + filter["spec.registry.repo.name"] = *search.RepoName } } @@ -445,110 +446,7 @@ func (r *Resolver) Mutation() generated1.MutationResolver { return &mutationReso // Query returns generated1.QueryResolver implementation. func (r *Resolver) Query() generated1.QueryResolver { return &queryResolver{r} } -type mutationResolver struct{ *Resolver } -type queryResolver struct{ *Resolver } - -// !!! 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. -func (r *mutationResolver) CrAddBuildCacheKey(ctx context.Context, buildCacheKey entities.BuildCacheKey) (*entities.BuildCacheKey, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return nil, errors.NewE(err) - } - - return r.Domain.AddBuildCache(cc, buildCacheKey) -} -func (r *mutationResolver) CrDeleteBuildCacheKey(ctx context.Context, id repos.ID) (bool, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return false, errors.NewE(err) - } - - if err := r.Domain.DeleteBuildCache(cc, id); err != nil { - return false, errors.NewE(err) - } - return true, nil -} -func (r *mutationResolver) CrUpdateBuildCacheKey(ctx context.Context, id repos.ID, buildCacheKey entities.BuildCacheKey) (*entities.BuildCacheKey, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return nil, errors.NewE(err) - } - - return r.Domain.UpdateBuildCache(cc, id, buildCacheKey) -} -func (r *mutationResolver) CrListBuildsByBuildCacheID(ctx context.Context, buildCacheKeyID repos.ID, pagination *repos.CursorPagination) (*model.BuildPaginatedRecords, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return nil, errors.NewE(err) - } - - rr, err := r.Domain.ListBuildsByCache(cc, buildCacheKeyID, fn.DefaultIfNil(pagination, repos.DefaultCursorPagination)) - if err != nil { - return nil, errors.NewE(err) - } - - records := make([]*model.BuildEdge, len(rr.Edges)) - - for i := range rr.Edges { - records[i] = &model.BuildEdge{ - Node: rr.Edges[i].Node, - Cursor: rr.Edges[i].Cursor, - } - } - - m := &model.BuildPaginatedRecords{ - Edges: records, - PageInfo: &model.PageInfo{ - HasNextPage: rr.PageInfo.HasNextPage, - HasPreviousPage: rr.PageInfo.HasPrevPage, - StartCursor: &rr.PageInfo.StartCursor, - EndCursor: &rr.PageInfo.EndCursor, - }, - } - - return m, nil -} -func (r *queryResolver) CrListBuildCacheKeys(ctx context.Context, pq *repos.CursorPagination, search *model.SearchBuildCacheKeys) (*model.BuildCacheKeyPaginatedRecords, error) { - cc, err := toRegistryContext(ctx) - if err != nil { - return nil, errors.NewE(err) - } - - filter := map[string]repos.MatchFilter{} - if search != nil { - if search.Text != nil { - filter["name"] = *search.Text - } - } - - rr, err := r.Domain.ListBuildCaches(cc, filter, fn.DefaultIfNil(pq, repos.DefaultCursorPagination)) - if err != nil { - return nil, errors.NewE(err) - } - - records := make([]*model.BuildCacheKeyEdge, len(rr.Edges)) - - for i := range rr.Edges { - records[i] = &model.BuildCacheKeyEdge{ - Node: rr.Edges[i].Node, - Cursor: rr.Edges[i].Cursor, - } - } - - m := &model.BuildCacheKeyPaginatedRecords{ - Edges: records, - PageInfo: &model.PageInfo{ - HasNextPage: rr.PageInfo.HasNextPage, - HasPreviousPage: rr.PageInfo.HasPrevPage, - StartCursor: &rr.PageInfo.StartCursor, - EndCursor: &rr.PageInfo.EndCursor, - }, - } - - return m, nil -} +type ( + mutationResolver struct{ *Resolver } + queryResolver struct{ *Resolver } +) diff --git a/apps/container-registry/internal/domain/build.go b/apps/container-registry/internal/domain/build.go index 143f43511..c5f315a84 100644 --- a/apps/container-registry/internal/domain/build.go +++ b/apps/container-registry/internal/domain/build.go @@ -81,6 +81,10 @@ func (d *Impl) UpdateBuild(ctx RegistryContext, id repos.ID, build entities.Buil return nil, errors.NewE(err) } + if build.Spec.AccountName == "" { + build.Spec.AccountName = ctx.AccountName + } + patchDoc := repos.Document{ fc.BuildName: build.Name, fc.BuildBuildClusterName: build.BuildClusterName, @@ -153,13 +157,16 @@ func (d *Impl) GetBuild(ctx RegistryContext, buildId repos.ID) (*entities.Build, return nil, errors.Newf("unauthorized to get build") } - b, err := d.buildRepo.FindOne(ctx, repos.Filter{"spec.accountName": ctx.AccountName, "id": buildId}) + b, err := d.buildRepo.FindOne(ctx, repos.Filter{ + "spec.accountName": ctx.AccountName, + "id": buildId, + }) if err != nil { return nil, errors.NewE(err) } if b == nil { - return nil, errors.Newf("build not found") + return nil, errors.Newf("build (id=%s) not found", buildId) } return b, nil diff --git a/apps/container-registry/templates/build-job.yml.tpl b/apps/container-registry/templates/build-job.yml.tpl index c883a11a2..60c14f52a 100644 --- a/apps/container-registry/templates/build-job.yml.tpl +++ b/apps/container-registry/templates/build-job.yml.tpl @@ -4,12 +4,11 @@ {{- $labels := .Labels -}} {{- $annotations := .Annotations -}} {{- $buildOptions := .BuildOptions -}} -{{- $cacheKeyName := .CacheKeyName -}} {{- $resource := .Resource -}} {{- $gitRepo := .GitRepo -}} {{- $registry := .Registry -}} {{- $credentialsRef := .CredentialsRef -}} -{{- $caches := .Caches -}} +{{- $caches := .Caches | default list -}} apiVersion: distribution.kloudlite.io/v1 kind: BuildRun @@ -26,7 +25,10 @@ spec: buildOptions: {{ $buildOptions | toJson }} {{- end }} + + {{- if $caches }} caches: {{ $caches | toJson }} + {{- end }} resource: {{ $resource | toJson }} gitRepo: {{ $gitRepo | toJson }} From ce1eee73a9c4f45509d35929c703ab76bd4f4701 Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Mon, 1 Apr 2024 10:11:55 +0530 Subject: [PATCH 09/11] feat(infra): updates and implements grpc services - updates pkg name for grpc generated go files --- apps/console/internal/app/app.go | 2 +- apps/console/internal/domain/domain.go | 10 +- apps/console/internal/domain/project.go | 3 +- apps/infra/internal/app/app.go | 7 +- apps/infra/internal/app/grpc-server.go | 40 ++++-- .../helm-charts-kloudlite-agent.yml.tpl | 2 - grpc-interfaces/infra.proto | 7 +- .../{kloudlite.io/rpc => }/infra/infra.pb.go | 121 ++++++++++++++---- .../rpc => }/infra/infra_grpc.pb.go | 43 ++++++- .../rpc/infra/mocks/infra-client.go | 35 ----- .../rpc/infra/mocks/infra-server.go | 34 ----- 11 files changed, 186 insertions(+), 118 deletions(-) rename grpc-interfaces/{kloudlite.io/rpc => }/infra/infra.pb.go (81%) rename grpc-interfaces/{kloudlite.io/rpc => }/infra/infra_grpc.pb.go (77%) delete mode 100644 grpc-interfaces/kloudlite.io/rpc/infra/mocks/infra-client.go delete mode 100644 grpc-interfaces/kloudlite.io/rpc/infra/mocks/infra-server.go diff --git a/apps/console/internal/app/app.go b/apps/console/internal/app/app.go index 6a701c5cd..a2cb85b9e 100644 --- a/apps/console/internal/app/app.go +++ b/apps/console/internal/app/app.go @@ -16,8 +16,8 @@ import ( "github.com/kloudlite/api/apps/console/internal/env" "github.com/kloudlite/api/common" "github.com/kloudlite/api/constants" + "github.com/kloudlite/api/grpc-interfaces/infra" "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/iam" - "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/infra" "github.com/kloudlite/api/pkg/grpc" httpServer "github.com/kloudlite/api/pkg/http-server" "github.com/kloudlite/api/pkg/kv" diff --git a/apps/console/internal/domain/domain.go b/apps/console/internal/domain/domain.go index 70c6b5845..6f9ff7cab 100644 --- a/apps/console/internal/domain/domain.go +++ b/apps/console/internal/domain/domain.go @@ -27,8 +27,8 @@ import ( "github.com/kloudlite/api/apps/console/internal/entities" "github.com/kloudlite/api/apps/console/internal/env" iamT "github.com/kloudlite/api/apps/iam/types" + "github.com/kloudlite/api/grpc-interfaces/infra" "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/iam" - "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/infra" fn "github.com/kloudlite/api/pkg/functions" "github.com/kloudlite/api/pkg/k8s" "github.com/kloudlite/api/pkg/repos" @@ -83,6 +83,14 @@ func addTrackingId(obj client.Object, id repos.ID) { } ann[constants.ObservabilityTrackingKey] = string(id) obj.SetAnnotations(ann) + + labels := obj.GetLabels() + if labels == nil { + labels = make(map[string]string, 1) + } + + labels[constants.ObservabilityTrackingKey] = string(id) + obj.SetLabels(labels) } type K8sContext interface { diff --git a/apps/console/internal/domain/project.go b/apps/console/internal/domain/project.go index 5f91bcd7a..0ab042930 100644 --- a/apps/console/internal/domain/project.go +++ b/apps/console/internal/domain/project.go @@ -5,7 +5,8 @@ import ( "crypto/md5" "encoding/hex" "fmt" - "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/infra" + + "github.com/kloudlite/api/grpc-interfaces/infra" "github.com/kloudlite/api/common/fields" "github.com/kloudlite/api/pkg/errors" diff --git a/apps/infra/internal/app/app.go b/apps/infra/internal/app/app.go index 595eb2662..7504e5142 100644 --- a/apps/infra/internal/app/app.go +++ b/apps/infra/internal/app/app.go @@ -14,12 +14,13 @@ import ( "github.com/kloudlite/api/apps/infra/internal/env" "github.com/kloudlite/api/common" "github.com/kloudlite/api/constants" + "github.com/kloudlite/api/grpc-interfaces/infra" "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/accounts" "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/iam" - "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/infra" message_office_internal "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/message-office-internal" "github.com/kloudlite/api/pkg/grpc" httpServer "github.com/kloudlite/api/pkg/http-server" + "github.com/kloudlite/api/pkg/k8s" "github.com/kloudlite/api/pkg/kv" "github.com/kloudlite/api/pkg/logging" msg_nats "github.com/kloudlite/api/pkg/messaging/nats" @@ -95,8 +96,8 @@ var Module = fx.Module( domain.Module, - fx.Provide(func(d domain.Domain) infra.InfraServer { - return newGrpcServer(d) + fx.Provide(func(d domain.Domain, kcli k8s.Client) infra.InfraServer { + return newGrpcServer(d, kcli) }), fx.Invoke(func(gserver InfraGrpcServer, srv infra.InfraServer) { diff --git a/apps/infra/internal/app/grpc-server.go b/apps/infra/internal/app/grpc-server.go index 7a4b9a3da..b98491cc0 100644 --- a/apps/infra/internal/app/grpc-server.go +++ b/apps/infra/internal/app/grpc-server.go @@ -4,25 +4,44 @@ import ( "context" "github.com/kloudlite/api/apps/infra/internal/domain" - "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/infra" + "github.com/kloudlite/api/grpc-interfaces/infra" "github.com/kloudlite/api/pkg/errors" + fn "github.com/kloudlite/api/pkg/functions" + "github.com/kloudlite/api/pkg/k8s" "github.com/kloudlite/api/pkg/repos" + corev1 "k8s.io/api/core/v1" ) type grpcServer struct { d domain.Domain infra.UnimplementedInfraServer + kcli k8s.Client } -func (g *grpcServer) contextFromAccount(ctx context.Context, accountName string) domain.InfraContext { - dctx := domain.InfraContext{ +// GetClusterKubeconfig implements infra.InfraServer. +func (g *grpcServer) GetClusterKubeconfig(ctx context.Context, in *infra.GetClusterIn) (*infra.GetClusterKubeconfigOut, error) { + infraCtx := domain.InfraContext{ Context: ctx, - UserId: "sys-user:error-on-apply-worker", - UserEmail: "", - UserName: "", - AccountName: accountName, + UserId: repos.ID(in.UserId), + UserEmail: in.UserEmail, + UserName: in.UserName, + AccountName: in.AccountName, + } + c, err := g.d.GetCluster(infraCtx, in.ClusterName) + if err != nil { + return nil, errors.NewE(err) + } + + if c == nil { + return nil, errors.Newf("cluster %s not found", in.ClusterName) + } + + creds := &corev1.Secret{} + if err := g.kcli.Get(ctx, fn.NN(c.Namespace, c.Spec.Output.SecretName), creds); err != nil { + return nil, err } - return dctx + + return &infra.GetClusterKubeconfigOut{Kubeconfig: creds.Data[c.Spec.Output.KeyKubeconfig]}, nil } // GetCluster implements infra.InfraServer. @@ -109,8 +128,9 @@ func (g *grpcServer) ClusterExists(ctx context.Context, in *infra.ClusterExistsI return &infra.ClusterExistsOut{Exists: true}, nil } -func newGrpcServer(d domain.Domain) infra.InfraServer { +func newGrpcServer(d domain.Domain, kcli k8s.Client) infra.InfraServer { return &grpcServer{ - d: d, + d: d, + kcli: kcli, } } diff --git a/apps/infra/internal/domain/templates/helm-charts-kloudlite-agent.yml.tpl b/apps/infra/internal/domain/templates/helm-charts-kloudlite-agent.yml.tpl index b1b861999..a9654eb0e 100644 --- a/apps/infra/internal/domain/templates/helm-charts-kloudlite-agent.yml.tpl +++ b/apps/infra/internal/domain/templates/helm-charts-kloudlite-agent.yml.tpl @@ -123,5 +123,3 @@ spec: clusterAutoscaler: enabled: true - {{- /* configuration: */}} - {{- /* chartVersion: "v1.0.3" */}} diff --git a/grpc-interfaces/infra.proto b/grpc-interfaces/infra.proto index ec3e46e1a..7a7d00b2a 100644 --- a/grpc-interfaces/infra.proto +++ b/grpc-interfaces/infra.proto @@ -1,11 +1,12 @@ syntax = "proto3"; -option go_package = "kloudlite.io/rpc/infra"; +option go_package = "./infra"; service Infra { rpc GetCluster(GetClusterIn) returns (GetClusterOut); rpc GetNodepool(GetNodepoolIn) returns (GetNodepoolOut); rpc ClusterExists(ClusterExistsIn) returns (ClusterExistsOut); + rpc GetClusterKubeconfig(GetClusterIn) returns (GetClusterKubeconfigOut); } message GetClusterIn { @@ -53,4 +54,6 @@ message ClusterExistsOut { bool exists = 1; } - +message GetClusterKubeconfigOut { + bytes kubeconfig = 1; +} diff --git a/grpc-interfaces/kloudlite.io/rpc/infra/infra.pb.go b/grpc-interfaces/infra/infra.pb.go similarity index 81% rename from grpc-interfaces/kloudlite.io/rpc/infra/infra.pb.go rename to grpc-interfaces/infra/infra.pb.go index dfcf371a2..6df04b4d7 100644 --- a/grpc-interfaces/kloudlite.io/rpc/infra/infra.pb.go +++ b/grpc-interfaces/infra/infra.pb.go @@ -438,6 +438,53 @@ func (x *ClusterExistsOut) GetExists() bool { return false } +type GetClusterKubeconfigOut struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Kubeconfig []byte `protobuf:"bytes,1,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"` +} + +func (x *GetClusterKubeconfigOut) Reset() { + *x = GetClusterKubeconfigOut{} + if protoimpl.UnsafeEnabled { + mi := &file_infra_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetClusterKubeconfigOut) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClusterKubeconfigOut) ProtoMessage() {} + +func (x *GetClusterKubeconfigOut) ProtoReflect() protoreflect.Message { + mi := &file_infra_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetClusterKubeconfigOut.ProtoReflect.Descriptor instead. +func (*GetClusterKubeconfigOut) Descriptor() ([]byte, []int) { + return file_infra_proto_rawDescGZIP(), []int{6} +} + +func (x *GetClusterKubeconfigOut) GetKubeconfig() []byte { + if x != nil { + return x.Kubeconfig + } + return nil +} + var File_infra_proto protoreflect.FileDescriptor var file_infra_proto_rawDesc = []byte{ @@ -494,19 +541,26 @@ var file_infra_proto_rawDesc = []byte{ 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2a, 0x0a, 0x10, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x4f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, - 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x32, 0x9a, 0x01, 0x0a, 0x05, 0x49, 0x6e, 0x66, 0x72, 0x61, - 0x12, 0x2b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x0d, - 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x1a, 0x0e, 0x2e, - 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x12, 0x2e, 0x0a, - 0x0b, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x0e, 0x2e, 0x47, - 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x1a, 0x0f, 0x2e, 0x47, - 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x4f, 0x75, 0x74, 0x12, 0x34, 0x0a, - 0x0d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x10, - 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x49, 0x6e, - 0x1a, 0x11, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, - 0x4f, 0x75, 0x74, 0x42, 0x18, 0x5a, 0x16, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, - 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x39, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x75, + 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x32, 0xdb, 0x01, 0x0a, 0x05, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x12, 0x2b, 0x0a, 0x0a, 0x47, + 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x0d, 0x2e, 0x47, 0x65, 0x74, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x1a, 0x0e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x12, 0x2e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4e, + 0x6f, 0x64, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x0e, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, + 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x1a, 0x0f, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, + 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x4f, 0x75, 0x74, 0x12, 0x34, 0x0a, 0x0d, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x10, 0x2e, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x4f, 0x75, 0x74, 0x12, 0x3f, + 0x0a, 0x14, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4b, 0x75, 0x62, 0x65, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0d, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x6e, 0x1a, 0x18, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x4b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x75, 0x74, 0x42, + 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -521,24 +575,27 @@ func file_infra_proto_rawDescGZIP() []byte { return file_infra_proto_rawDescData } -var file_infra_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_infra_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_infra_proto_goTypes = []interface{}{ - (*GetClusterIn)(nil), // 0: GetClusterIn - (*GetClusterOut)(nil), // 1: GetClusterOut - (*GetNodepoolIn)(nil), // 2: GetNodepoolIn - (*GetNodepoolOut)(nil), // 3: GetNodepoolOut - (*ClusterExistsIn)(nil), // 4: ClusterExistsIn - (*ClusterExistsOut)(nil), // 5: ClusterExistsOut + (*GetClusterIn)(nil), // 0: GetClusterIn + (*GetClusterOut)(nil), // 1: GetClusterOut + (*GetNodepoolIn)(nil), // 2: GetNodepoolIn + (*GetNodepoolOut)(nil), // 3: GetNodepoolOut + (*ClusterExistsIn)(nil), // 4: ClusterExistsIn + (*ClusterExistsOut)(nil), // 5: ClusterExistsOut + (*GetClusterKubeconfigOut)(nil), // 6: GetClusterKubeconfigOut } var file_infra_proto_depIdxs = []int32{ 0, // 0: Infra.GetCluster:input_type -> GetClusterIn 2, // 1: Infra.GetNodepool:input_type -> GetNodepoolIn 4, // 2: Infra.ClusterExists:input_type -> ClusterExistsIn - 1, // 3: Infra.GetCluster:output_type -> GetClusterOut - 3, // 4: Infra.GetNodepool:output_type -> GetNodepoolOut - 5, // 5: Infra.ClusterExists:output_type -> ClusterExistsOut - 3, // [3:6] is the sub-list for method output_type - 0, // [0:3] is the sub-list for method input_type + 0, // 3: Infra.GetClusterKubeconfig:input_type -> GetClusterIn + 1, // 4: Infra.GetCluster:output_type -> GetClusterOut + 3, // 5: Infra.GetNodepool:output_type -> GetNodepoolOut + 5, // 6: Infra.ClusterExists:output_type -> ClusterExistsOut + 6, // 7: Infra.GetClusterKubeconfig:output_type -> GetClusterKubeconfigOut + 4, // [4:8] is the sub-list for method output_type + 0, // [0:4] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name @@ -622,6 +679,18 @@ func file_infra_proto_init() { return nil } } + file_infra_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterKubeconfigOut); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -629,7 +698,7 @@ func file_infra_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_infra_proto_rawDesc, NumEnums: 0, - NumMessages: 6, + NumMessages: 7, NumExtensions: 0, NumServices: 1, }, diff --git a/grpc-interfaces/kloudlite.io/rpc/infra/infra_grpc.pb.go b/grpc-interfaces/infra/infra_grpc.pb.go similarity index 77% rename from grpc-interfaces/kloudlite.io/rpc/infra/infra_grpc.pb.go rename to grpc-interfaces/infra/infra_grpc.pb.go index db8dcaf50..14d7614d2 100644 --- a/grpc-interfaces/kloudlite.io/rpc/infra/infra_grpc.pb.go +++ b/grpc-interfaces/infra/infra_grpc.pb.go @@ -19,9 +19,10 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Infra_GetCluster_FullMethodName = "/Infra/GetCluster" - Infra_GetNodepool_FullMethodName = "/Infra/GetNodepool" - Infra_ClusterExists_FullMethodName = "/Infra/ClusterExists" + Infra_GetCluster_FullMethodName = "/Infra/GetCluster" + Infra_GetNodepool_FullMethodName = "/Infra/GetNodepool" + Infra_ClusterExists_FullMethodName = "/Infra/ClusterExists" + Infra_GetClusterKubeconfig_FullMethodName = "/Infra/GetClusterKubeconfig" ) // InfraClient is the client API for Infra service. @@ -31,6 +32,7 @@ type InfraClient interface { GetCluster(ctx context.Context, in *GetClusterIn, opts ...grpc.CallOption) (*GetClusterOut, error) GetNodepool(ctx context.Context, in *GetNodepoolIn, opts ...grpc.CallOption) (*GetNodepoolOut, error) ClusterExists(ctx context.Context, in *ClusterExistsIn, opts ...grpc.CallOption) (*ClusterExistsOut, error) + GetClusterKubeconfig(ctx context.Context, in *GetClusterIn, opts ...grpc.CallOption) (*GetClusterKubeconfigOut, error) } type infraClient struct { @@ -68,6 +70,15 @@ func (c *infraClient) ClusterExists(ctx context.Context, in *ClusterExistsIn, op return out, nil } +func (c *infraClient) GetClusterKubeconfig(ctx context.Context, in *GetClusterIn, opts ...grpc.CallOption) (*GetClusterKubeconfigOut, error) { + out := new(GetClusterKubeconfigOut) + err := c.cc.Invoke(ctx, Infra_GetClusterKubeconfig_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // InfraServer is the server API for Infra service. // All implementations must embed UnimplementedInfraServer // for forward compatibility @@ -75,6 +86,7 @@ type InfraServer interface { GetCluster(context.Context, *GetClusterIn) (*GetClusterOut, error) GetNodepool(context.Context, *GetNodepoolIn) (*GetNodepoolOut, error) ClusterExists(context.Context, *ClusterExistsIn) (*ClusterExistsOut, error) + GetClusterKubeconfig(context.Context, *GetClusterIn) (*GetClusterKubeconfigOut, error) mustEmbedUnimplementedInfraServer() } @@ -91,6 +103,9 @@ func (UnimplementedInfraServer) GetNodepool(context.Context, *GetNodepoolIn) (*G func (UnimplementedInfraServer) ClusterExists(context.Context, *ClusterExistsIn) (*ClusterExistsOut, error) { return nil, status.Errorf(codes.Unimplemented, "method ClusterExists not implemented") } +func (UnimplementedInfraServer) GetClusterKubeconfig(context.Context, *GetClusterIn) (*GetClusterKubeconfigOut, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClusterKubeconfig not implemented") +} func (UnimplementedInfraServer) mustEmbedUnimplementedInfraServer() {} // UnsafeInfraServer may be embedded to opt out of forward compatibility for this service. @@ -158,6 +173,24 @@ func _Infra_ClusterExists_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } +func _Infra_GetClusterKubeconfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClusterIn) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InfraServer).GetClusterKubeconfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Infra_GetClusterKubeconfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InfraServer).GetClusterKubeconfig(ctx, req.(*GetClusterIn)) + } + return interceptor(ctx, in, info, handler) +} + // Infra_ServiceDesc is the grpc.ServiceDesc for Infra service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -177,6 +210,10 @@ var Infra_ServiceDesc = grpc.ServiceDesc{ MethodName: "ClusterExists", Handler: _Infra_ClusterExists_Handler, }, + { + MethodName: "GetClusterKubeconfig", + Handler: _Infra_GetClusterKubeconfig_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "infra.proto", diff --git a/grpc-interfaces/kloudlite.io/rpc/infra/mocks/infra-client.go b/grpc-interfaces/kloudlite.io/rpc/infra/mocks/infra-client.go deleted file mode 100644 index 2aab4bdc5..000000000 --- a/grpc-interfaces/kloudlite.io/rpc/infra/mocks/infra-client.go +++ /dev/null @@ -1,35 +0,0 @@ -package mocks - -import ( - context "context" - infra "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/infra" - grpc "google.golang.org/grpc" -) - -type InfraClientCallerInfo struct { - Args []any -} - -type InfraClient struct { - Calls map[string][]InfraClientCallerInfo - MockGetResourceOutput func(ctx context.Context, in *infra.GetInput, opts ...grpc.CallOption) (*infra.Output, error) -} - -func (m *InfraClient) registerCall(funcName string, args ...any) { - if m.Calls == nil { - m.Calls = map[string][]InfraClientCallerInfo{} - } - m.Calls[funcName] = append(m.Calls[funcName], InfraClientCallerInfo{Args: args}) -} - -func (iMock *InfraClient) GetResourceOutput(ctx context.Context, in *infra.GetInput, opts ...grpc.CallOption) (*infra.Output, error) { - if iMock.MockGetResourceOutput != nil { - iMock.registerCall("GetResourceOutput", ctx, in, opts) - return iMock.MockGetResourceOutput(ctx, in, opts...) - } - panic("method 'GetResourceOutput' not implemented, yet") -} - -func NewInfraClient() *InfraClient { - return &InfraClient{} -} diff --git a/grpc-interfaces/kloudlite.io/rpc/infra/mocks/infra-server.go b/grpc-interfaces/kloudlite.io/rpc/infra/mocks/infra-server.go deleted file mode 100644 index c7449f91c..000000000 --- a/grpc-interfaces/kloudlite.io/rpc/infra/mocks/infra-server.go +++ /dev/null @@ -1,34 +0,0 @@ -package mocks - -import ( - context "context" - infra "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/infra" -) - -type InfraServerCallerInfo struct { - Args []any -} - -type InfraServer struct { - Calls map[string][]InfraServerCallerInfo - MockGetResourceOutput func(ka context.Context, kb *infra.GetInput) (*infra.Output, error) -} - -func (m *InfraServer) registerCall(funcName string, args ...any) { - if m.Calls == nil { - m.Calls = map[string][]InfraServerCallerInfo{} - } - m.Calls[funcName] = append(m.Calls[funcName], InfraServerCallerInfo{Args: args}) -} - -func (iMock *InfraServer) GetResourceOutput(ka context.Context, kb *infra.GetInput) (*infra.Output, error) { - if iMock.MockGetResourceOutput != nil { - iMock.registerCall("GetResourceOutput", ka, kb) - return iMock.MockGetResourceOutput(ka, kb) - } - panic("method 'GetResourceOutput' not implemented, yet") -} - -func NewInfraServer() *InfraServer { - return &InfraServer{} -} From b63c491faac1103dc3c6a62a0d91798bcdc33ec3 Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Mon, 1 Apr 2024 10:28:26 +0530 Subject: [PATCH 10/11] feat: adds net/http auth middlewares, and `ReadLogs` method for k8s api --- pkg/http-server/http-session.go | 20 ++++---- pkg/http-server/net-http-session.go | 58 ++++++++++++++++++++++ pkg/k8s/client.go | 75 +++++++++++++++++++++++++++++ pkg/k8s/helper-functions.go | 20 ++++---- 4 files changed, 153 insertions(+), 20 deletions(-) create mode 100644 pkg/http-server/net-http-session.go diff --git a/pkg/http-server/http-session.go b/pkg/http-server/http-session.go index fc9645779..8e97e7100 100644 --- a/pkg/http-server/http-session.go +++ b/pkg/http-server/http-session.go @@ -82,16 +82,16 @@ func NewSessionMiddleware( fmt.Println("[ERROR]", err) } ck := &fiber.Cookie{ - Name: cookieName, - Value: string(session.GetId()), - Path: "/", - Domain: fmt.Sprintf("%v", cookieDomain), - Expires: time.Time{}, - MaxAge: 0, - Secure: true, - HTTPOnly: true, - // SameSite: http.SameSiteStrictMode, - SameSite: fiber.CookieSameSiteNoneMode, + Name: cookieName, + Value: string(session.GetId()), + Path: "/", + Domain: fmt.Sprintf("%v", cookieDomain), + MaxAge: 0, + Expires: time.Time{}, + Secure: true, + HTTPOnly: true, + SameSite: fiber.CookieSameSiteNoneMode, + SessionOnly: false, } // fmt.Println("ck: ", ck) ctx.Cookie(ck) diff --git a/pkg/http-server/net-http-session.go b/pkg/http-server/net-http-session.go new file mode 100644 index 000000000..b1722ffc5 --- /dev/null +++ b/pkg/http-server/net-http-session.go @@ -0,0 +1,58 @@ +package httpServer + +import ( + "context" + "fmt" + "net/http" + + "github.com/kloudlite/api/common" + "github.com/kloudlite/api/pkg/kv" + "github.com/kloudlite/api/pkg/repos" +) + +type HttpMiddleware func(handle http.HandlerFunc) http.HandlerFunc + +func NewReadSessionMiddlewareHandler(repo kv.Repo[*common.AuthSession], cookieName string, sessionKeyPrefix string) HttpMiddleware { + return func(handle http.HandlerFunc) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + cookies := map[string]string{} + + for _, c := range r.Cookies() { + cookies[c.Name] = c.Value + } + + nctx := context.WithValue(r.Context(), "http-cookies", cookies) + + req := r.WithContext(nctx) + + cookieValue := cookies[cookieName] + + if cookieValue != "" { + key := fmt.Sprintf("%s:%s", sessionKeyPrefix, cookieValue) + sess, err := repo.Get(r.Context(), key) + if err != nil { + if !repo.ErrKeyNotFound(err) { + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + } + + if sess != nil { + nctx = context.WithValue(nctx, "session", sess) + req = req.WithContext(nctx) + } + } + + handle(w, req) + } + } +} + +func GetHttpSession[T repos.Entity](ctx context.Context) T { + value := ctx.Value("session") + if value != nil { + return value.(T) + } + var x T + return x +} diff --git a/pkg/k8s/client.go b/pkg/k8s/client.go index 440be9a83..ef7276633 100644 --- a/pkg/k8s/client.go +++ b/pkg/k8s/client.go @@ -1,9 +1,12 @@ package k8s import ( + "bufio" + "bytes" "context" "encoding/json" "fmt" + "io" "github.com/kloudlite/api/pkg/errors" fn "github.com/kloudlite/api/pkg/functions" @@ -23,6 +26,7 @@ import ( type Client interface { // client go like Get(ctx context.Context, nn types.NamespacedName, obj client.Object) error + List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error Create(ctx context.Context, obj client.Object) error Update(ctx context.Context, obj client.Object) error Delete(ctx context.Context, obj client.Object) error @@ -34,6 +38,14 @@ type Client interface { ApplyYAML(ctx context.Context, yamls ...[]byte) error DeleteYAML(ctx context.Context, yamls ...[]byte) error + + ReadLogs(ctx context.Context, namespace, name string, writer io.WriteCloser, opts *ReadLogsOptions) error +} + +type ReadLogsOptions struct { + ContainerName string + SinceSeconds *int64 + TailLines *int64 } type clientHandler struct { @@ -42,6 +54,66 @@ type clientHandler struct { yamlclient kubectl.YAMLClient } +// List implements Client. +func (ch *clientHandler) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error { + return ch.kclient.List(ctx, list, opts...) +} + +type LogLine struct { + Message string `json:"message"` + Timestamp string `json:"timestamp"` + PodName string `json:"podName"` + ContainerName string `json:"containerName"` +} + +// ReadLogs implements Client. +func (ch *clientHandler) ReadLogs(ctx context.Context, namespace, name string, writer io.WriteCloser, opts *ReadLogsOptions) error { + defer writer.Close() + if err := ctx.Err(); err != nil { + return err + } + + req := ch.yamlclient.Client().CoreV1().Pods(namespace).GetLogs(name, &corev1.PodLogOptions{ + Container: opts.ContainerName, + Follow: true, + Previous: false, + SinceSeconds: opts.SinceSeconds, + // SinceTime: nil, + Timestamps: true, + TailLines: opts.TailLines, + }) + + rc, err := req.Stream(ctx) + if err != nil { + fmt.Println("err:", err) + return err + } + defer rc.Close() + + r := bufio.NewReader(rc) + + for { + b, err := r.ReadBytes('\n') + if err != nil { + return errors.NewE(err) + } + + s := bytes.SplitN(b[:len(b)-1], []byte(" "), 2) + if len(s) != 2 { + return fmt.Errorf("invalid log line") + } + + line := fmt.Sprintf(`{"timestamp": %q, "podName": %q, "containerName": %q, "message": %q}`, s[0], name, opts.ContainerName, s[1]) + // fmt.Printf("[DEBUG] line: %s\n", line) + if _, err := writer.Write([]byte(line)); err != nil { + return err + } + if _, err := writer.Write([]byte("\n")); err != nil { + return err + } + } +} + // ListSecrets implements Client. func (ch *clientHandler) ListSecrets(ctx context.Context, namespace string, secretType corev1.SecretType) ([]corev1.Secret, error) { out, err := ch.yamlclient.Client().CoreV1().Secrets(namespace).List(ctx, metav1.ListOptions{ @@ -158,6 +230,9 @@ func NewClient(cfg *rest.Config, scheme *runtime.Scheme) (Client, error) { c, err := client.New(cfg, client.Options{ Scheme: scheme, Mapper: nil, + WarningHandler: client.WarningHandlerOptions{ + SuppressWarnings: true, + }, }) if err != nil { return nil, errors.NewE(err) diff --git a/pkg/k8s/helper-functions.go b/pkg/k8s/helper-functions.go index 7acf1298a..936bbb7fc 100644 --- a/pkg/k8s/helper-functions.go +++ b/pkg/k8s/helper-functions.go @@ -1,10 +1,12 @@ package k8s import ( - "encoding/json" - "github.com/kloudlite/api/pkg/errors" "os" + "sigs.k8s.io/yaml" + + "github.com/kloudlite/api/pkg/errors" + "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd/api" @@ -27,7 +29,7 @@ func RestConfigFromEnv(envVar string) (*rest.Config, error) { } var kubeconfig api.Config - if err := json.Unmarshal(b, &kubeconfig); err != nil { + if err := yaml.Unmarshal(b, &kubeconfig); err != nil { return nil, errors.NewE(err) } @@ -36,12 +38,10 @@ func RestConfigFromEnv(envVar string) (*rest.Config, error) { } func RestConfigFromKubeConfig(b []byte) (*rest.Config, error) { - return clientcmd.BuildConfigFromKubeconfigGetter("", func() (*api.Config, error) { - var kubeconfig api.Config - if err := json.Unmarshal(b, &kubeconfig); err != nil { - return nil, errors.NewE(err) - } + cc, err := clientcmd.NewClientConfigFromBytes(b) + if err != nil { + return nil, err + } - return &kubeconfig, nil - }) + return cc.ClientConfig() } From 78536a17360881ca6b4d1a05f0e86220ab05fde2 Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Mon, 1 Apr 2024 10:32:49 +0530 Subject: [PATCH 11/11] feat(gateway): Dockerfile updates, and deps updates - adds updated http-cli files --- .../__http__/accounts/accounts.graphql.yml | 2 +- .tools/nvim/__http__/auth/auth.graphql.yml | 2 +- .../console/logs-and-metrics.rest.yml | 6 + .../container-registry/build-runs.graphql.yml | 41 + .../github-repos.graphql.yml | 46 + .../__http__/infra/byok-clusters.graphql.yml | 16 + .../infra/cloud-provider-secrets.graphql.yml | 21 +- .../nvim/__http__/infra/clusters.graphql.yml | 169 +- .../message_office/clustertoken.graphql.yml | 12 + apps/gateway/{Containerfile => Dockerfile} | 7 +- apps/gateway/Taskfile.yml | 4 +- apps/gateway/package.json | 10 +- apps/gateway/pnpm-lock.yaml | 956 ++-- apps/gateway/supergraph.graphqls | 4866 +++++++++++++++++ go.mod | 10 +- go.sum | 10 + 16 files changed, 5751 insertions(+), 427 deletions(-) create mode 100644 .tools/nvim/__http__/container-registry/build-runs.graphql.yml create mode 100644 .tools/nvim/__http__/container-registry/github-repos.graphql.yml create mode 100644 .tools/nvim/__http__/infra/byok-clusters.graphql.yml create mode 100644 .tools/nvim/__http__/message_office/clustertoken.graphql.yml rename apps/gateway/{Containerfile => Dockerfile} (50%) create mode 100644 apps/gateway/supergraph.graphqls diff --git a/.tools/nvim/__http__/accounts/accounts.graphql.yml b/.tools/nvim/__http__/accounts/accounts.graphql.yml index 731425bb0..72f09b06a 100644 --- a/.tools/nvim/__http__/accounts/accounts.graphql.yml +++ b/.tools/nvim/__http__/accounts/accounts.graphql.yml @@ -4,7 +4,7 @@ --- label: List Accounts -query: |+ +query: |+ #graphql query Accounts_listAccounts { accounts_listAccounts { isActive diff --git a/.tools/nvim/__http__/auth/auth.graphql.yml b/.tools/nvim/__http__/auth/auth.graphql.yml index 9eeca4f49..759d8b8d3 100644 --- a/.tools/nvim/__http__/auth/auth.graphql.yml +++ b/.tools/nvim/__http__/auth/auth.graphql.yml @@ -68,7 +68,7 @@ query: | } } variables: - code: "************" + code: "***************" provider: github state: "************" --- diff --git a/.tools/nvim/__http__/console/logs-and-metrics.rest.yml b/.tools/nvim/__http__/console/logs-and-metrics.rest.yml index adc005314..8053ddc9f 100644 --- a/.tools/nvim/__http__/console/logs-and-metrics.rest.yml +++ b/.tools/nvim/__http__/console/logs-and-metrics.rest.yml @@ -37,3 +37,9 @@ query: method: GET url: 'http://console-api.kl-core.svc.cluster.local:9100/observability/logs/cluster-job?start_time={{.startTime}}&end_time={{.endTime}}' --- + +label: Get Logs for pod with a tracking id +query: + method: GET + url: 'http://localhost:12121/observability/logs?tracking_id={{.trackingId}}&cluster_name={{.clusterName}}' +--- diff --git a/.tools/nvim/__http__/container-registry/build-runs.graphql.yml b/.tools/nvim/__http__/container-registry/build-runs.graphql.yml new file mode 100644 index 000000000..8c8765c5f --- /dev/null +++ b/.tools/nvim/__http__/container-registry/build-runs.graphql.yml @@ -0,0 +1,41 @@ +--- +global: + repoName: "" + crTriggerBuildId: "" +--- +label: "list repos" +query: |+ + query Cr_listRepos { + cr_listRepos { + edges { + node { + id + name + } + } + } + } +variables: {} +--- +query: |+ + query Cr_listBuilds($repoName: String!) { + cr_listBuilds(repoName: $repoName) { + edges { + node { + id + name + } + } + } + } +variables: + repoName: "{{.repoName}}" +--- + +query: |+ + mutation Cr_triggerBuild($crTriggerBuildId: ID!) { + cr_triggerBuild(id: $crTriggerBuildId) + } +variables: + crTriggerBuildId: "{{.crTriggerBuildId}}" +--- diff --git a/.tools/nvim/__http__/container-registry/github-repos.graphql.yml b/.tools/nvim/__http__/container-registry/github-repos.graphql.yml new file mode 100644 index 000000000..491b6acea --- /dev/null +++ b/.tools/nvim/__http__/container-registry/github-repos.graphql.yml @@ -0,0 +1,46 @@ +--- +global: + organization: "" + installationId: "" +--- +query: |+ + query Cr_listGithubInstallations { + cr_listGithubInstallations { + id + # appId + # targetId + account { + id + login + } + } + } +--- +label: Search Github Repositories +query: |+ + query Cr_searchGithubRepos($organization: String!, $search: String!) { + cr_searchGithubRepos(organization: $organization, search: $search) { + repositories { + fullName + name + masterBranch + permissions + } + } + } +variables: + organization: '{{.organization}}' + search: '' +--- +label: List Github Repositories by Installation +query: |+ + query Cr_listGithubRepos($installationId: Int!) { + cr_listGithubRepos(installationId: $installationId) { + repositories { + name + } + } + } +variables: + installationId: '{{.installationId}}' +--- diff --git a/.tools/nvim/__http__/infra/byok-clusters.graphql.yml b/.tools/nvim/__http__/infra/byok-clusters.graphql.yml new file mode 100644 index 000000000..7bbc1cce4 --- /dev/null +++ b/.tools/nvim/__http__/infra/byok-clusters.graphql.yml @@ -0,0 +1,16 @@ +--- +label: Create BYOK Cluster +query: |+ #graphql + mutation Infra_createBYOKCluster($cluster: BYOKClusterIn!) { + infra_createBYOKCluster(cluster: $cluster) { + metadata { + name + } + } + } +variables: + cluster: + displayName: "{{.clusterName}}" + metadata: + name: "{{.clusterName}}" +--- diff --git a/.tools/nvim/__http__/infra/cloud-provider-secrets.graphql.yml b/.tools/nvim/__http__/infra/cloud-provider-secrets.graphql.yml index 6432e3b21..0b8b00793 100644 --- a/.tools/nvim/__http__/infra/cloud-provider-secrets.graphql.yml +++ b/.tools/nvim/__http__/infra/cloud-provider-secrets.graphql.yml @@ -54,17 +54,18 @@ query: |+ name namespace } - aws { - awsAccountId - cfParamTrustedARN - cfParamStackName - cfParamRoleName - cfParamInstanceProfileName - cfParamExternalID + # aws { + # awsAccountId - secretKey - accessKey - } + # cfParamTrustedARN + # cfParamStackName + # cfParamRoleName + # cfParamInstanceProfileName + # cfParamExternalID + + # secretKey + # accessKey + # } } } } diff --git a/.tools/nvim/__http__/infra/clusters.graphql.yml b/.tools/nvim/__http__/infra/clusters.graphql.yml index e28ca66d2..f60c801ed 100644 --- a/.tools/nvim/__http__/infra/clusters.graphql.yml +++ b/.tools/nvim/__http__/infra/clusters.graphql.yml @@ -36,41 +36,148 @@ variables: label: List Clusters query: |+ #graphql - query Infra_listClusters($search: SearchCluster, $pagination: CursorPaginationIn) { - infra_listClusters(search: $search, pagination: $pagination) { - edges { - cursor - node { - id - kind - metadata { - name - namespace + # query Infra_listClusters($search: SearchCluster, $pagination: CursorPaginationIn) { + # infra_listClusters(search: $search, pagination: $pagination) { + # edges { + # cursor + # node { + # id + # kind + # metadata { + # name + # namespace + # } + # status { + # checks + # } + # spec { + # messageQueueTopicName + # } + # # clusterToken + # markedForDeletion + # syncStatus { + # action + # error + # lastSyncedAt + # state + # syncScheduledAt + # recordVersion + # } + # # adminKubeconfig { + # # value + # # encoding + # # } + # } + # } + # } + # } + query Infra_listClusterss( + $search: SearchCluster + $pagination: CursorPaginationIn + ) { + infra_listClusters(search: $search, pagination: $pagination) { + totalCount + pageInfo { + startCursor + hasPreviousPage + hasNextPage + endCursor } - status { - checks - } - spec { - messageQueueTopicName - } - # clusterToken - markedForDeletion - syncStatus { - action - error - lastSyncedAt - state - syncScheduledAt - recordVersion + edges { + cursor + node { + id + displayName + markedForDeletion + metadata { + name + annotations + generation + } + creationTime + lastUpdatedBy { + userId + userName + userEmail + } + createdBy { + userEmail + userId + userName + } + updateTime + status { + checks + checkList { + description + debug + name + title + } + isReady + lastReadyGeneration + lastReconcileTime + message { + RawMessage + } + resources { + apiVersion + kind + name + namespace + } + } + syncStatus { + action + error + lastSyncedAt + recordVersion + state + syncScheduledAt + } + recordVersion + spec { + messageQueueTopicName + kloudliteRelease + + clusterTokenRef { + key + name + namespace + } + accountId + accountName + availabilityMode + aws { + k3sMasters { + iamInstanceProfileRole + instanceType + nodes + nvidiaGpuEnabled + rootVolumeSize + rootVolumeType + } + nodePools + region + spotNodePools + } + cloudProvider + backupToS3Enabled + cloudflareEnabled + clusterInternalDnsHost + output { + keyK3sAgentJoinToken + keyK3sServerJoinToken + keyKubeconfig + secretName + } + publicDNSHost + taintMasterNodes + } + } } - # adminKubeconfig { - # value - # encoding - # } } } - } - } variables: search: text: diff --git a/.tools/nvim/__http__/message_office/clustertoken.graphql.yml b/.tools/nvim/__http__/message_office/clustertoken.graphql.yml new file mode 100644 index 000000000..4cdc310a3 --- /dev/null +++ b/.tools/nvim/__http__/message_office/clustertoken.graphql.yml @@ -0,0 +1,12 @@ +--- +label: Generate Cluster Token +query: |+ #graphql + mutation GenerateClusterToken($accountName: String!, $clusterName: String!) { + generateClusterToken(accountName: $accountName, clusterName: $clusterName) + } +variables: + accountName: "{{.accountName}}" + clusterName: "{{.clusterName}}" + +--- + diff --git a/apps/gateway/Containerfile b/apps/gateway/Dockerfile similarity index 50% rename from apps/gateway/Containerfile rename to apps/gateway/Dockerfile index 78c957bd2..9827f933b 100644 --- a/apps/gateway/Containerfile +++ b/apps/gateway/Dockerfile @@ -1,10 +1,13 @@ FROM node:current-alpine RUN npm i -g pnpm WORKDIR /home/node +RUN --mount=type=bind,source=package.json,target=package.json \ + --mount=type=bind,source=pnpm-lock.yaml,target=pnpm-lock.yaml \ + --mount=type=cache,target=/root/.local/share/pnpm/store \ + pnpm i USER node -COPY --chown=node package.json pnpm-lock.yaml ./ -RUN pnpm i COPY --chown=node . ./ +COPY . ./ ARG SUPERGRAPH_FILE COPY ${SUPERGRAPH_FILE} ./ ENV SUPERGRAPH_SCHEMA_FILE=${SUPERGRAPH_FILE} diff --git a/apps/gateway/Taskfile.yml b/apps/gateway/Taskfile.yml index 3755da0aa..d96b133a5 100644 --- a/apps/gateway/Taskfile.yml +++ b/apps/gateway/Taskfile.yml @@ -22,7 +22,7 @@ tasks: push: "{{.push | default false}}" cmds: - task generate-schema - - docker buildx build -f ./Containerfile -t {{.Image}} . --push={{.push}} + - nerdctl build -t {{.Image}} . --cache-from=type=local,src=/tmp/buildx-cache --cache-to=type=local,dest=/tmp/buildx-cache container:build-and-push: preconditions: @@ -34,5 +34,5 @@ tasks: - task: generate-schema vars: Output: "{{.SupergraphSchemaFile}}" - - docker buildx build -f ./Containerfile --build-arg SUPERGRAPH_FILE="{{.SupergraphSchemaFile}}" -t {{.Image}} . --push + - docker buildx build --build-arg SUPERGRAPH_FILE="{{.SupergraphSchemaFile}}" -t {{.Image}} . --push diff --git a/apps/gateway/package.json b/apps/gateway/package.json index ce7fec7ee..a63daff4d 100644 --- a/apps/gateway/package.json +++ b/apps/gateway/package.json @@ -12,11 +12,11 @@ "author": "", "license": "ISC", "dependencies": { - "@apollo/gateway": "^2.4.1", - "@apollo/server": "^4.6.0", - "cookie": "^0.5.0", - "express": "^4.18.2", - "graphql": "^16.6.0", + "@apollo/gateway": "^2.7.2", + "@apollo/server": "^4.10.2", + "cookie": "^0.6.0", + "express": "^4.19.2", + "graphql": "^16.8.1", "js-yaml": "^4.1.0" } } diff --git a/apps/gateway/pnpm-lock.yaml b/apps/gateway/pnpm-lock.yaml index a1d890163..337deee71 100644 --- a/apps/gateway/pnpm-lock.yaml +++ b/apps/gateway/pnpm-lock.yaml @@ -6,19 +6,19 @@ settings: dependencies: '@apollo/gateway': - specifier: ^2.4.1 - version: 2.4.1(graphql@16.8.1) + specifier: ^2.7.2 + version: 2.7.2(graphql@16.8.1) '@apollo/server': - specifier: ^4.6.0 - version: 4.9.3(graphql@16.8.1) + specifier: ^4.10.2 + version: 4.10.2(graphql@16.8.1) cookie: - specifier: ^0.5.0 - version: 0.5.0 + specifier: ^0.6.0 + version: 0.6.0 express: - specifier: ^4.18.2 - version: 4.18.2 + specifier: ^4.19.2 + version: 4.19.2 graphql: - specifier: ^16.6.0 + specifier: ^16.8.1 version: 16.8.1 js-yaml: specifier: ^4.1.0 @@ -34,57 +34,56 @@ packages: graphql: 16.8.1 dev: false - /@apollo/composition@2.4.1(graphql@16.8.1): - resolution: {integrity: sha512-3da3gNMYw1OwsPJjH9jGkhDJffK3Wn4pu2m5CeJixpv8g5vBCFxlXOZ1ItsN+oNPkwmUplPUuTAWKAvwGfoYOA==} + /@apollo/composition@2.7.2(graphql@16.8.1): + resolution: {integrity: sha512-Qd7mj2pOBm/q3axb2P7NnkJTgiA7x3bTiYYFD+XqhfMI/NB2EdxPeUyc4OzGg5sLrzV3ySd6fuZRzQYK/5FiPg==} engines: {node: '>=14.15.0'} peerDependencies: graphql: ^16.5.0 dependencies: - '@apollo/federation-internals': 2.4.1(graphql@16.8.1) - '@apollo/query-graphs': 2.4.1(graphql@16.8.1) + '@apollo/federation-internals': 2.7.2(graphql@16.8.1) + '@apollo/query-graphs': 2.7.2(graphql@16.8.1) graphql: 16.8.1 dev: false - /@apollo/federation-internals@2.4.1(graphql@16.8.1): - resolution: {integrity: sha512-C0jI/jApL0DIY2a6ig/RDRDpWinUpc3hSARhyBVNFQX0xtnuW+AjB+lpRZoEoWOZzGjfbaN+zmbUUqkxqjlc9Q==} + /@apollo/federation-internals@2.7.2(graphql@16.8.1): + resolution: {integrity: sha512-i+9mbw8UN6P+i5xpLxH3m8n3zqEBzoN8a1cct4yrab9loiZeIlxW8cLXzqglEMic++Sz9tai4L21ZY0GlW8ebg==} engines: {node: '>=14.15.0'} peerDependencies: graphql: ^16.5.0 dependencies: - '@types/uuid': 9.0.1 + '@types/uuid': 9.0.8 chalk: 4.1.2 graphql: 16.8.1 js-levenshtein: 1.1.6 - uuid: 9.0.0 + uuid: 9.0.1 dev: false - /@apollo/gateway@2.4.1(graphql@16.8.1): - resolution: {integrity: sha512-rNdaxpStWP+2yG2sQZPXIuHyl9RB3K1AuM4LVH4z207HWdOLYubqmfCJF7aQrhEXuHcOsU675D5BFQ6xcNhv1Q==} + /@apollo/gateway@2.7.2(graphql@16.8.1): + resolution: {integrity: sha512-LUAFkta9U/jy3a1Vk7inrzlESi/nAXZuZEsjo+nvbzr14YFFp5YdMq6AbuurcvnmDv533L4x1lAKgSGgI251Bw==} engines: {node: '>=14.15.0'} peerDependencies: graphql: ^16.5.0 dependencies: - '@apollo/composition': 2.4.1(graphql@16.8.1) - '@apollo/federation-internals': 2.4.1(graphql@16.8.1) - '@apollo/query-planner': 2.4.1(graphql@16.8.1) - '@apollo/server-gateway-interface': 1.1.0(graphql@16.8.1) - '@apollo/usage-reporting-protobuf': 4.1.0 + '@apollo/composition': 2.7.2(graphql@16.8.1) + '@apollo/federation-internals': 2.7.2(graphql@16.8.1) + '@apollo/query-planner': 2.7.2(graphql@16.8.1) + '@apollo/server-gateway-interface': 1.1.1(graphql@16.8.1) + '@apollo/usage-reporting-protobuf': 4.1.1 '@apollo/utils.createhash': 2.0.1 '@apollo/utils.fetcher': 2.0.1 '@apollo/utils.isnodelike': 2.0.1 '@apollo/utils.keyvaluecache': 2.1.1 '@apollo/utils.logger': 2.0.1 '@josephg/resolvable': 1.0.1 - '@opentelemetry/api': 1.4.1 - '@types/node-fetch': 2.6.3 + '@opentelemetry/api': 1.8.0 + '@types/node-fetch': 2.6.11 async-retry: 1.3.3 graphql: 16.8.1 - loglevel: 1.8.1 - make-fetch-happen: 11.0.3 + loglevel: 1.9.1 + make-fetch-happen: 11.1.1 node-abort-controller: 3.1.1 - node-fetch: 2.6.9 + node-fetch: 2.7.0 transitivePeerDependencies: - - bluebird - encoding - supports-color dev: false @@ -108,44 +107,32 @@ packages: long: 4.0.0 dev: false - /@apollo/query-graphs@2.4.1(graphql@16.8.1): - resolution: {integrity: sha512-14dnaZ3DnY/dLOsOI19BQkfkda3cxPmen+t8S/LqAOHMDky/vrgccoDIb3hc7TSlM08EJgRQiVytRjdhQzS3yQ==} + /@apollo/query-graphs@2.7.2(graphql@16.8.1): + resolution: {integrity: sha512-tVoKqStxXk3Wq7j8U7W6U9Z51rFn0V5mZW6mnIrSOPRyMq9nuv56xbopPxeFbhPEIE2xgJfzYKukjJS9wJW25A==} engines: {node: '>=14.15.0'} peerDependencies: graphql: ^16.5.0 dependencies: - '@apollo/federation-internals': 2.4.1(graphql@16.8.1) - deep-equal: 2.2.0 + '@apollo/federation-internals': 2.7.2(graphql@16.8.1) + deep-equal: 2.2.3 graphql: 16.8.1 - ts-graphviz: 1.5.5 - uuid: 9.0.0 + ts-graphviz: 1.8.2 + uuid: 9.0.1 dev: false - /@apollo/query-planner@2.4.1(graphql@16.8.1): - resolution: {integrity: sha512-s16fb5/AZMhxdjuNI/Jm1YDRWFZSeSOuNn72YOdnZzkdC1OUNsuc3y8BDn9QY6PK9UK4c6gK4seWOb3HYkxDfQ==} + /@apollo/query-planner@2.7.2(graphql@16.8.1): + resolution: {integrity: sha512-1tK8joK1F5Vz99P5YrB2ltJjfz6TeuEP37gyJwzZzYJelGQlcNn6/Jakz0c3Vp4ksl467RsnLyGsz0Zqy+UiMQ==} engines: {node: '>=14.15.0'} peerDependencies: graphql: ^16.5.0 dependencies: - '@apollo/federation-internals': 2.4.1(graphql@16.8.1) - '@apollo/query-graphs': 2.4.1(graphql@16.8.1) + '@apollo/federation-internals': 2.7.2(graphql@16.8.1) + '@apollo/query-graphs': 2.7.2(graphql@16.8.1) '@apollo/utils.keyvaluecache': 2.1.1 chalk: 4.1.2 - deep-equal: 2.2.0 - graphql: 16.8.1 - pretty-format: 29.5.0 - dev: false - - /@apollo/server-gateway-interface@1.1.0(graphql@16.8.1): - resolution: {integrity: sha512-0rhG++QtGfr4YhhIHgxZ9BdMFthaPY6LbhI9Au90osbfLMiZ7f8dmZsEX1mp7O1h8MJwCu6Dp0I/KcGbSvfUGA==} - peerDependencies: - graphql: 14.x || 15.x || 16.x - dependencies: - '@apollo/usage-reporting-protobuf': 4.1.0 - '@apollo/utils.fetcher': 2.0.1 - '@apollo/utils.keyvaluecache': 2.1.1 - '@apollo/utils.logger': 2.0.1 + deep-equal: 2.2.3 graphql: 16.8.1 + pretty-format: 29.7.0 dev: false /@apollo/server-gateway-interface@1.1.1(graphql@16.8.1): @@ -160,8 +147,8 @@ packages: graphql: 16.8.1 dev: false - /@apollo/server@4.9.3(graphql@16.8.1): - resolution: {integrity: sha512-U56Sx/UmzR3Es344hQ/Ptf2EJrH+kV4ZPoLmgGjWoiwf2wYQ/pRSvkSXgjOvoyE34wSa8Gh7f92ljfLfY+6q1w==} + /@apollo/server@4.10.2(graphql@16.8.1): + resolution: {integrity: sha512-qlTZE4XyzMPprtkxFjmPxMwc2KC4nvNQrKXk2PMotEACKcaLXVZFIgstxbSqBCNl2KgzbsgU1g6vvbV6Xcfikw==} engines: {node: '>=14.16.0'} peerDependencies: graphql: ^16.6.0 @@ -176,34 +163,27 @@ packages: '@apollo/utils.logger': 2.0.1 '@apollo/utils.usagereporting': 2.1.0(graphql@16.8.1) '@apollo/utils.withrequired': 2.0.1 - '@graphql-tools/schema': 9.0.17(graphql@16.8.1) + '@graphql-tools/schema': 9.0.19(graphql@16.8.1) '@josephg/resolvable': 1.0.1 - '@types/express': 4.17.17 - '@types/express-serve-static-core': 4.17.33 - '@types/node-fetch': 2.6.3 + '@types/express': 4.17.21 + '@types/express-serve-static-core': 4.17.43 + '@types/node-fetch': 2.6.11 async-retry: 1.3.3 - body-parser: 1.20.2 cors: 2.8.5 - express: 4.18.2 + express: 4.19.2 graphql: 16.8.1 - loglevel: 1.8.1 + loglevel: 1.9.1 lru-cache: 7.18.3 negotiator: 0.6.3 node-abort-controller: 3.1.1 - node-fetch: 2.6.9 - uuid: 9.0.0 + node-fetch: 2.7.0 + uuid: 9.0.1 whatwg-mimetype: 3.0.0 transitivePeerDependencies: - encoding - supports-color dev: false - /@apollo/usage-reporting-protobuf@4.1.0: - resolution: {integrity: sha512-hXouMuw5pQVkzi8dgMybmr6Y11+eRmMQVoB5TF0HyTwAg9SOq/v3OCuiYqcVUKdBcskU9Msp+XvjAk0GKpWCwQ==} - dependencies: - '@apollo/protobufjs': 1.2.7 - dev: false - /@apollo/usage-reporting-protobuf@4.1.1: resolution: {integrity: sha512-u40dIUePHaSKVshcedO7Wp+mPiZsaU6xjv9J+VyxpoU/zL6Jle+9zWeG98tr/+SZ0nZ4OXhrbb8SNr0rAPpIDA==} dependencies: @@ -307,25 +287,25 @@ packages: engines: {node: '>=14'} dev: false - /@graphql-tools/merge@8.4.0(graphql@16.8.1): - resolution: {integrity: sha512-3XYCWe0d3I4F1azNj1CdShlbHfTIfiDgj00R9uvFH8tHKh7i1IWN3F7QQYovcHKhayaR6zPok3YYMESYQcBoaA==} + /@graphql-tools/merge@8.4.2(graphql@16.8.1): + resolution: {integrity: sha512-XbrHAaj8yDuINph+sAfuq3QCZ/tKblrTLOpirK0+CAgNlZUCHs0Fa+xtMUURgwCVThLle1AF7svJCxFizygLsw==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: false - /@graphql-tools/schema@9.0.17(graphql@16.8.1): - resolution: {integrity: sha512-HVLq0ecbkuXhJlpZ50IHP5nlISqH2GbNgjBJhhRzHeXhfwlUOT4ISXGquWTmuq61K0xSaO0aCjMpxe4QYbKTng==} + /@graphql-tools/schema@9.0.19(graphql@16.8.1): + resolution: {integrity: sha512-oBRPoNBtCkk0zbUsyP4GaIzCt8C0aCI4ycIRUL67KK5pOHljKLBBtGT+Jr6hkzA74C8Gco8bpZPe7aWFjiaK2w==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/merge': 8.4.0(graphql@16.8.1) + '@graphql-tools/merge': 8.4.2(graphql@16.8.1) '@graphql-tools/utils': 9.2.1(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 value-or-promise: 1.0.12 dev: false @@ -336,7 +316,7 @@ packages: dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) graphql: 16.8.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@graphql-typed-document-node/core@3.2.0(graphql@16.8.1): @@ -347,11 +327,23 @@ packages: graphql: 16.8.1 dev: false - /@jest/schemas@29.4.3: - resolution: {integrity: sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==} + /@isaacs/cliui@8.0.2: + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + dependencies: + string-width: 5.1.2 + string-width-cjs: /string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: /strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: /wrap-ansi@7.0.0 + dev: false + + /@jest/schemas@29.6.3: + resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@sinclair/typebox': 0.25.24 + '@sinclair/typebox': 0.27.8 dev: false /@josephg/resolvable@1.0.1: @@ -362,14 +354,21 @@ packages: resolution: {integrity: sha512-7kZUAaLscfgbwBQRbvdMYaZOWyMEcPTH/tJjnyAWJ/dvvs9Ef+CERx/qJb9GExJpl1qipaDGn7KqHnFGGixd0w==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - semver: 7.5.4 + semver: 7.6.0 dev: false - /@opentelemetry/api@1.4.1: - resolution: {integrity: sha512-O2yRJce1GOc6PAy3QxFM4NzFiWzvScDC1/5ihYBL6BUEVdq0XMWN01sppE+H6bBXbaFYipjwFLEWLg5PaSOThA==} + /@opentelemetry/api@1.8.0: + resolution: {integrity: sha512-I/s6F7yKUDdtMsoBWXJe8Qz40Tui5vsuKCWJEWVL+5q9sSWRzzx6v2KeNsOBEwd94j0eWkpWCH4yB6rZg9Mf0w==} engines: {node: '>=8.0.0'} dev: false + /@pkgjs/parseargs@0.11.0: + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + requiresBuild: true + dev: false + optional: true + /@protobufjs/aspromise@1.1.2: resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} dev: false @@ -413,8 +412,8 @@ packages: resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} dev: false - /@sinclair/typebox@0.25.24: - resolution: {integrity: sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==} + /@sinclair/typebox@0.27.8: + resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: false /@tootallnate/once@2.0.0: @@ -422,72 +421,94 @@ packages: engines: {node: '>= 10'} dev: false - /@types/body-parser@1.19.2: - resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} + /@types/body-parser@1.19.5: + resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} dependencies: - '@types/connect': 3.4.35 - '@types/node': 18.15.11 + '@types/connect': 3.4.38 + '@types/node': 20.12.2 dev: false - /@types/connect@3.4.35: - resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} + /@types/connect@3.4.38: + resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.12.2 dev: false - /@types/express-serve-static-core@4.17.33: - resolution: {integrity: sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==} + /@types/express-serve-static-core@4.17.43: + resolution: {integrity: sha512-oaYtiBirUOPQGSWNGPWnzyAFJ0BP3cwvN4oWZQY+zUBwpVIGsKUkpBpSztp74drYcjavs7SKFZ4DX1V2QeN8rg==} dependencies: - '@types/node': 18.15.11 - '@types/qs': 6.9.7 - '@types/range-parser': 1.2.4 + '@types/node': 20.12.2 + '@types/qs': 6.9.14 + '@types/range-parser': 1.2.7 + '@types/send': 0.17.4 dev: false - /@types/express@4.17.17: - resolution: {integrity: sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==} + /@types/express@4.17.21: + resolution: {integrity: sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==} dependencies: - '@types/body-parser': 1.19.2 - '@types/express-serve-static-core': 4.17.33 - '@types/qs': 6.9.7 - '@types/serve-static': 1.15.1 + '@types/body-parser': 1.19.5 + '@types/express-serve-static-core': 4.17.43 + '@types/qs': 6.9.14 + '@types/serve-static': 1.15.5 + dev: false + + /@types/http-errors@2.0.4: + resolution: {integrity: sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==} dev: false /@types/long@4.0.2: resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==} dev: false - /@types/mime@3.0.1: - resolution: {integrity: sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==} + /@types/mime@1.3.5: + resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} dev: false - /@types/node-fetch@2.6.3: - resolution: {integrity: sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==} + /@types/mime@4.0.0: + resolution: {integrity: sha512-5eEkJZ/BLvTE3vXGKkWlyTSUVZuzj23Wj8PoyOq2lt5I3CYbiLBOPb3XmCW6QcuOibIUE6emHXHt9E/F/rCa6w==} + deprecated: This is a stub types definition. mime provides its own type definitions, so you do not need this installed. dependencies: - '@types/node': 18.15.11 - form-data: 3.0.1 + mime: 4.0.1 dev: false - /@types/node@18.15.11: - resolution: {integrity: sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==} + /@types/node-fetch@2.6.11: + resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} + dependencies: + '@types/node': 20.12.2 + form-data: 4.0.0 + dev: false + + /@types/node@20.12.2: + resolution: {integrity: sha512-zQ0NYO87hyN6Xrclcqp7f8ZbXNbRfoGWNcMvHTPQp9UUrwI0mI7XBz+cu7/W6/VClYo2g63B0cjull/srU7LgQ==} + dependencies: + undici-types: 5.26.5 dev: false - /@types/qs@6.9.7: - resolution: {integrity: sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==} + /@types/qs@6.9.14: + resolution: {integrity: sha512-5khscbd3SwWMhFqylJBLQ0zIu7c1K6Vz0uBIt915BI3zV0q1nfjRQD3RqSBcPaO6PHEF4ov/t9y89fSiyThlPA==} dev: false - /@types/range-parser@1.2.4: - resolution: {integrity: sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==} + /@types/range-parser@1.2.7: + resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==} + dev: false + + /@types/send@0.17.4: + resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} + dependencies: + '@types/mime': 1.3.5 + '@types/node': 20.12.2 dev: false - /@types/serve-static@1.15.1: - resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} + /@types/serve-static@1.15.5: + resolution: {integrity: sha512-PDRk21MnK70hja/YF8AHfC7yIsiQHn1rcXx7ijCFBX/k+XQJhQT/gw3xekXKJvx+5SXaMMS8oqQy09Mzvz2TuQ==} dependencies: - '@types/mime': 3.0.1 - '@types/node': 18.15.11 + '@types/http-errors': 2.0.4 + '@types/mime': 4.0.0 + '@types/node': 20.12.2 dev: false - /@types/uuid@9.0.1: - resolution: {integrity: sha512-rFT3ak0/2trgvp4yYZo5iKFEPsET7vKydKF+VRCxlQ9bpheehyAJH89dAkaLEq/j/RZXJIqcgsmPJKUP1Z28HA==} + /@types/uuid@9.0.8: + resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==} dev: false /accepts@1.3.8: @@ -507,15 +528,11 @@ packages: - supports-color dev: false - /agentkeepalive@4.3.0: - resolution: {integrity: sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==} + /agentkeepalive@4.5.0: + resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==} engines: {node: '>= 8.0.0'} dependencies: - debug: 4.3.4 - depd: 2.0.0 humanize-ms: 1.2.1 - transitivePeerDependencies: - - supports-color dev: false /aggregate-error@3.1.0: @@ -526,6 +543,16 @@ packages: indent-string: 4.0.0 dev: false + /ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + dev: false + + /ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + dev: false + /ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} @@ -538,10 +565,23 @@ packages: engines: {node: '>=10'} dev: false + /ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + dev: false + /argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} dev: false + /array-buffer-byte-length@1.0.1: + resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + is-array-buffer: 3.0.4 + dev: false + /array-flatten@1.1.1: resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} dev: false @@ -556,35 +596,17 @@ packages: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} dev: false - /available-typed-arrays@1.0.5: - resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==} + /available-typed-arrays@1.0.7: + resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} + dependencies: + possible-typed-array-names: 1.0.0 dev: false /balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} dev: false - /body-parser@1.20.1: - resolution: {integrity: sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==} - engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} - dependencies: - bytes: 3.1.2 - content-type: 1.0.5 - debug: 2.6.9 - depd: 2.0.0 - destroy: 1.2.0 - http-errors: 2.0.0 - iconv-lite: 0.4.24 - on-finished: 2.4.1 - qs: 6.11.0 - raw-body: 2.5.1 - type-is: 1.6.18 - unpipe: 1.0.0 - transitivePeerDependencies: - - supports-color - dev: false - /body-parser@1.20.2: resolution: {integrity: sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -616,32 +638,33 @@ packages: engines: {node: '>= 0.8'} dev: false - /cacache@17.0.5: - resolution: {integrity: sha512-Y/PRQevNSsjAPWykl9aeGz8Pr+OI6BYM9fYDNMvOkuUiG9IhG4LEmaYrZZZvioMUEQ+cBCxT0v8wrnCURccyKA==} + /cacache@17.1.4: + resolution: {integrity: sha512-/aJwG2l3ZMJ1xNAnqbMpA40of9dj/pIH3QfiuQSqjfPJF747VR0J/bHn+/KdNnHKc6XQcWt/AfRSBft82W1d2A==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: '@npmcli/fs': 3.1.0 - fs-minipass: 3.0.1 - glob: 9.3.4 + fs-minipass: 3.0.3 + glob: 10.3.12 lru-cache: 7.18.3 - minipass: 4.2.5 + minipass: 7.0.4 minipass-collect: 1.0.2 minipass-flush: 1.0.5 minipass-pipeline: 1.2.4 p-map: 4.0.0 - promise-inflight: 1.0.1 - ssri: 10.0.2 - tar: 6.1.13 + ssri: 10.0.5 + tar: 6.2.1 unique-filename: 3.0.0 - transitivePeerDependencies: - - bluebird dev: false - /call-bind@1.0.2: - resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} + /call-bind@1.0.7: + resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} + engines: {node: '>= 0.4'} dependencies: - function-bind: 1.1.1 - get-intrinsic: 1.2.0 + es-define-property: 1.0.0 + es-errors: 1.3.0 + function-bind: 1.1.2 + get-intrinsic: 1.2.4 + set-function-length: 1.2.2 dev: false /chalk@4.1.2: @@ -693,11 +716,11 @@ packages: dev: false /cookie-signature@1.0.6: - resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} + resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} dev: false - /cookie@0.5.0: - resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==} + /cookie@0.6.0: + resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==} engines: {node: '>= 0.6'} dev: false @@ -709,6 +732,15 @@ packages: vary: 1.1.2 dev: false + /cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: false + /debug@2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} peerDependencies: @@ -732,33 +764,45 @@ packages: ms: 2.1.2 dev: false - /deep-equal@2.2.0: - resolution: {integrity: sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==} + /deep-equal@2.2.3: + resolution: {integrity: sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==} + engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + array-buffer-byte-length: 1.0.1 + call-bind: 1.0.7 es-get-iterator: 1.1.3 - get-intrinsic: 1.2.0 + get-intrinsic: 1.2.4 is-arguments: 1.1.1 - is-array-buffer: 3.0.2 + is-array-buffer: 3.0.4 is-date-object: 1.0.5 is-regex: 1.1.4 - is-shared-array-buffer: 1.0.2 + is-shared-array-buffer: 1.0.3 isarray: 2.0.5 - object-is: 1.1.5 + object-is: 1.1.6 object-keys: 1.1.1 - object.assign: 4.1.4 - regexp.prototype.flags: 1.4.3 - side-channel: 1.0.4 + object.assign: 4.1.5 + regexp.prototype.flags: 1.5.2 + side-channel: 1.0.6 which-boxed-primitive: 1.0.2 - which-collection: 1.0.1 - which-typed-array: 1.1.9 + which-collection: 1.0.2 + which-typed-array: 1.1.15 + dev: false + + /define-data-property@1.1.4: + resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} + engines: {node: '>= 0.4'} + dependencies: + es-define-property: 1.0.0 + es-errors: 1.3.0 + gopd: 1.0.1 dev: false - /define-properties@1.2.0: - resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==} + /define-properties@1.2.1: + resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} dependencies: - has-property-descriptors: 1.0.0 + define-data-property: 1.1.4 + has-property-descriptors: 1.0.2 object-keys: 1.1.1 dev: false @@ -777,8 +821,20 @@ packages: engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} dev: false + /eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + dev: false + /ee-first@1.1.1: - resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + dev: false + + /emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + dev: false + + /emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} dev: false /encodeurl@1.0.2: @@ -798,15 +854,27 @@ packages: resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==} dev: false + /es-define-property@1.0.0: + resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.4 + dev: false + + /es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + dev: false + /es-get-iterator@1.1.3: resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.0 + call-bind: 1.0.7 + get-intrinsic: 1.2.4 has-symbols: 1.0.3 is-arguments: 1.1.1 - is-map: 2.0.2 - is-set: 2.0.2 + is-map: 2.0.3 + is-set: 2.0.3 is-string: 1.0.7 isarray: 2.0.5 stop-iteration-iterator: 1.0.0 @@ -821,16 +889,16 @@ packages: engines: {node: '>= 0.6'} dev: false - /express@4.18.2: - resolution: {integrity: sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==} + /express@4.19.2: + resolution: {integrity: sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==} engines: {node: '>= 0.10.0'} dependencies: accepts: 1.3.8 array-flatten: 1.1.1 - body-parser: 1.20.1 + body-parser: 1.20.2 content-disposition: 0.5.4 content-type: 1.0.5 - cookie: 0.5.0 + cookie: 0.6.0 cookie-signature: 1.0.6 debug: 2.6.9 depd: 2.0.0 @@ -881,8 +949,16 @@ packages: is-callable: 1.2.7 dev: false - /form-data@3.0.1: - resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} + /foreground-child@3.1.1: + resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} + engines: {node: '>=14'} + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + dev: false + + /form-data@4.0.0: + resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} engines: {node: '>= 6'} dependencies: asynckit: 0.4.0 @@ -896,7 +972,7 @@ packages: dev: false /fresh@0.5.2: - resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=} + resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} dev: false @@ -907,47 +983,48 @@ packages: minipass: 3.3.6 dev: false - /fs-minipass@3.0.1: - resolution: {integrity: sha512-MhaJDcFRTuLidHrIttu0RDGyyXs/IYHVmlcxfLAEFIWjc1vdLAkdwT7Ace2u7DbitWC0toKMl5eJZRYNVreIMw==} + /fs-minipass@3.0.3: + resolution: {integrity: sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - minipass: 4.2.5 + minipass: 7.0.4 dev: false - /fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - dev: false - - /function-bind@1.1.1: - resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + /function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} dev: false /functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} dev: false - /get-intrinsic@1.2.0: - resolution: {integrity: sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==} + /get-intrinsic@1.2.4: + resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} + engines: {node: '>= 0.4'} dependencies: - function-bind: 1.1.1 - has: 1.0.3 + es-errors: 1.3.0 + function-bind: 1.1.2 + has-proto: 1.0.3 has-symbols: 1.0.3 + hasown: 2.0.2 dev: false - /glob@9.3.4: - resolution: {integrity: sha512-qaSc49hojMOv1EPM4EuyITjDSgSKI0rthoHnvE81tcOi1SCVndHko7auqxdQ14eiQG2NDBJBE86+2xIrbIvrbA==} + /glob@10.3.12: + resolution: {integrity: sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==} engines: {node: '>=16 || 14 >=14.17'} + hasBin: true dependencies: - fs.realpath: 1.0.0 - minimatch: 8.0.3 - minipass: 4.2.5 - path-scurry: 1.6.3 + foreground-child: 3.1.1 + jackspeak: 2.3.6 + minimatch: 9.0.4 + minipass: 7.0.4 + path-scurry: 1.10.2 dev: false /gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} dependencies: - get-intrinsic: 1.2.0 + get-intrinsic: 1.2.4 dev: false /graphql@16.8.1: @@ -964,10 +1041,15 @@ packages: engines: {node: '>=8'} dev: false - /has-property-descriptors@1.0.0: - resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} + /has-property-descriptors@1.0.2: + resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} dependencies: - get-intrinsic: 1.2.0 + es-define-property: 1.0.0 + dev: false + + /has-proto@1.0.3: + resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==} + engines: {node: '>= 0.4'} dev: false /has-symbols@1.0.3: @@ -975,18 +1057,18 @@ packages: engines: {node: '>= 0.4'} dev: false - /has-tostringtag@1.0.0: - resolution: {integrity: sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==} + /has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} engines: {node: '>= 0.4'} dependencies: has-symbols: 1.0.3 dev: false - /has@1.0.3: - resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} - engines: {node: '>= 0.4.0'} + /hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} dependencies: - function-bind: 1.1.1 + function-bind: 1.1.2 dev: false /http-cache-semantics@4.1.1: @@ -1061,17 +1143,21 @@ packages: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} dev: false - /internal-slot@1.0.5: - resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==} + /internal-slot@1.0.7: + resolution: {integrity: sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.0 - has: 1.0.3 - side-channel: 1.0.4 + es-errors: 1.3.0 + hasown: 2.0.2 + side-channel: 1.0.6 dev: false - /ip@2.0.0: - resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==} + /ip-address@9.0.5: + resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==} + engines: {node: '>= 12'} + dependencies: + jsbn: 1.1.0 + sprintf-js: 1.1.3 dev: false /ipaddr.js@1.9.1: @@ -1083,16 +1169,16 @@ packages: resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - has-tostringtag: 1.0.0 + call-bind: 1.0.7 + has-tostringtag: 1.0.2 dev: false - /is-array-buffer@3.0.2: - resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} + /is-array-buffer@3.0.4: + resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==} + engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.0 - is-typed-array: 1.1.10 + call-bind: 1.0.7 + get-intrinsic: 1.2.4 dev: false /is-bigint@1.0.4: @@ -1105,8 +1191,8 @@ packages: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - has-tostringtag: 1.0.0 + call-bind: 1.0.7 + has-tostringtag: 1.0.2 dev: false /is-callable@1.2.7: @@ -1118,47 +1204,55 @@ packages: resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} engines: {node: '>= 0.4'} dependencies: - has-tostringtag: 1.0.0 + has-tostringtag: 1.0.2 + dev: false + + /is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} dev: false /is-lambda@1.0.1: resolution: {integrity: sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==} dev: false - /is-map@2.0.2: - resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==} + /is-map@2.0.3: + resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==} + engines: {node: '>= 0.4'} dev: false /is-number-object@1.0.7: resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} engines: {node: '>= 0.4'} dependencies: - has-tostringtag: 1.0.0 + has-tostringtag: 1.0.2 dev: false /is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - has-tostringtag: 1.0.0 + call-bind: 1.0.7 + has-tostringtag: 1.0.2 dev: false - /is-set@2.0.2: - resolution: {integrity: sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==} + /is-set@2.0.3: + resolution: {integrity: sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==} + engines: {node: '>= 0.4'} dev: false - /is-shared-array-buffer@1.0.2: - resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} + /is-shared-array-buffer@1.0.3: + resolution: {integrity: sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==} + engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.7 dev: false /is-string@1.0.7: resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} engines: {node: '>= 0.4'} dependencies: - has-tostringtag: 1.0.0 + has-tostringtag: 1.0.2 dev: false /is-symbol@1.0.4: @@ -1168,32 +1262,36 @@ packages: has-symbols: 1.0.3 dev: false - /is-typed-array@1.1.10: - resolution: {integrity: sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==} + /is-weakmap@2.0.2: + resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==} engines: {node: '>= 0.4'} - dependencies: - available-typed-arrays: 1.0.5 - call-bind: 1.0.2 - for-each: 0.3.3 - gopd: 1.0.1 - has-tostringtag: 1.0.0 dev: false - /is-weakmap@2.0.1: - resolution: {integrity: sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==} - dev: false - - /is-weakset@2.0.2: - resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==} + /is-weakset@2.0.3: + resolution: {integrity: sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==} + engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.0 + call-bind: 1.0.7 + get-intrinsic: 1.2.4 dev: false /isarray@2.0.5: resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} dev: false + /isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + dev: false + + /jackspeak@2.3.6: + resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} + engines: {node: '>=14'} + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + dev: false + /js-levenshtein@1.1.6: resolution: {integrity: sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==} engines: {node: '>=0.10.0'} @@ -1206,12 +1304,16 @@ packages: argparse: 2.0.1 dev: false + /jsbn@1.1.0: + resolution: {integrity: sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==} + dev: false + /lodash.sortby@4.7.0: resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==} dev: false - /loglevel@1.8.1: - resolution: {integrity: sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==} + /loglevel@1.9.1: + resolution: {integrity: sha512-hP3I3kCrDIMuRwAwHltphhDM1r8i55H33GgqjXbrisuJhF4kRhW1dNuxsRklp4bXl8DSdLaNLuiL4A/LWRfxvg==} engines: {node: '>= 0.6.0'} dev: false @@ -1219,6 +1321,11 @@ packages: resolution: {integrity: sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==} dev: false + /lru-cache@10.2.0: + resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} + engines: {node: 14 || >=16.14} + dev: false + /lru-cache@6.0.0: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} engines: {node: '>=10'} @@ -1231,37 +1338,36 @@ packages: engines: {node: '>=12'} dev: false - /make-fetch-happen@11.0.3: - resolution: {integrity: sha512-oPLh5m10lRNNZDjJ2kP8UpboUx2uFXVaVweVe/lWut4iHWcQEmfqSVJt2ihZsFI8HbpwyyocaXbCAWf0g1ukIA==} + /make-fetch-happen@11.1.1: + resolution: {integrity: sha512-rLWS7GCSTcEujjVBs2YqG7Y4643u8ucvCJeSRqiLYhesrDuzeuFIk37xREzAsfQaqzl8b9rNCE4m6J8tvX4Q8w==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - agentkeepalive: 4.3.0 - cacache: 17.0.5 + agentkeepalive: 4.5.0 + cacache: 17.1.4 http-cache-semantics: 4.1.1 http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 is-lambda: 1.0.1 lru-cache: 7.18.3 - minipass: 4.2.5 - minipass-fetch: 3.0.1 + minipass: 5.0.0 + minipass-fetch: 3.0.4 minipass-flush: 1.0.5 minipass-pipeline: 1.2.4 negotiator: 0.6.3 promise-retry: 2.0.1 socks-proxy-agent: 7.0.0 - ssri: 10.0.2 + ssri: 10.0.5 transitivePeerDependencies: - - bluebird - supports-color dev: false /media-typer@0.3.0: - resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=} + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} dev: false /merge-descriptors@1.0.1: - resolution: {integrity: sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=} + resolution: {integrity: sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==} dev: false /methods@1.1.2: @@ -1287,8 +1393,14 @@ packages: hasBin: true dev: false - /minimatch@8.0.3: - resolution: {integrity: sha512-tEEvU9TkZgnFDCtpnrEYnPsjT7iUx42aXfs4bzmQ5sMA09/6hZY0jeZcGkXyDagiBOvkUjNo8Viom+Me6+2x7g==} + /mime@4.0.1: + resolution: {integrity: sha512-5lZ5tyrIfliMXzFtkYyekWbtRXObT9OWa8IwQ5uxTBDHucNNwniRqo0yInflj+iYi5CBa6qxadGzGarDfuEOxA==} + engines: {node: '>=16'} + hasBin: true + dev: false + + /minimatch@9.0.4: + resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==} engines: {node: '>=16 || 14 >=14.17'} dependencies: brace-expansion: 2.0.1 @@ -1301,11 +1413,11 @@ packages: minipass: 3.3.6 dev: false - /minipass-fetch@3.0.1: - resolution: {integrity: sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==} + /minipass-fetch@3.0.4: + resolution: {integrity: sha512-jHAqnA728uUpIaFm7NWsCnqKT6UqZz7GcI/bDpPATuwYyKwJwW0remxSCxUlKiEty+eopHGa3oc8WxgQ1FFJqg==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - minipass: 4.2.5 + minipass: 7.0.4 minipass-sized: 1.0.3 minizlib: 2.1.2 optionalDependencies: @@ -1340,11 +1452,16 @@ packages: yallist: 4.0.0 dev: false - /minipass@4.2.5: - resolution: {integrity: sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==} + /minipass@5.0.0: + resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==} engines: {node: '>=8'} dev: false + /minipass@7.0.4: + resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} + engines: {node: '>=16 || 14 >=14.17'} + dev: false + /minizlib@2.1.2: resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} engines: {node: '>= 8'} @@ -1380,8 +1497,8 @@ packages: resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==} dev: false - /node-fetch@2.6.9: - resolution: {integrity: sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==} + /node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} peerDependencies: encoding: ^0.1.0 @@ -1397,16 +1514,16 @@ packages: engines: {node: '>=0.10.0'} dev: false - /object-inspect@1.12.3: - resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} + /object-inspect@1.13.1: + resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} dev: false - /object-is@1.1.5: - resolution: {integrity: sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==} + /object-is@1.1.6: + resolution: {integrity: sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.7 + define-properties: 1.2.1 dev: false /object-keys@1.1.1: @@ -1414,12 +1531,12 @@ packages: engines: {node: '>= 0.4'} dev: false - /object.assign@4.1.4: - resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} + /object.assign@4.1.5: + resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.7 + define-properties: 1.2.1 has-symbols: 1.0.3 object-keys: 1.1.1 dev: false @@ -1443,36 +1560,37 @@ packages: engines: {node: '>= 0.8'} dev: false - /path-scurry@1.6.3: - resolution: {integrity: sha512-RAmB+n30SlN+HnNx6EbcpoDy9nwdpcGPnEKrJnu6GZoDWBdIjo1UQMVtW2ybtC7LC2oKLcMq8y5g8WnKLiod9g==} + /path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: false + + /path-scurry@1.10.2: + resolution: {integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==} engines: {node: '>=16 || 14 >=14.17'} dependencies: - lru-cache: 7.18.3 - minipass: 4.2.5 + lru-cache: 10.2.0 + minipass: 7.0.4 dev: false /path-to-regexp@0.1.7: - resolution: {integrity: sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=} + resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==} + dev: false + + /possible-typed-array-names@1.0.0: + resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} + engines: {node: '>= 0.4'} dev: false - /pretty-format@29.5.0: - resolution: {integrity: sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==} + /pretty-format@29.7.0: + resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/schemas': 29.4.3 + '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 react-is: 18.2.0 dev: false - /promise-inflight@1.0.1: - resolution: {integrity: sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==} - peerDependencies: - bluebird: '*' - peerDependenciesMeta: - bluebird: - optional: true - dev: false - /promise-retry@2.0.1: resolution: {integrity: sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==} engines: {node: '>=10'} @@ -1493,7 +1611,7 @@ packages: resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==} engines: {node: '>=0.6'} dependencies: - side-channel: 1.0.4 + side-channel: 1.0.6 dev: false /range-parser@1.2.1: @@ -1501,16 +1619,6 @@ packages: engines: {node: '>= 0.6'} dev: false - /raw-body@2.5.1: - resolution: {integrity: sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==} - engines: {node: '>= 0.8'} - dependencies: - bytes: 3.1.2 - http-errors: 2.0.0 - iconv-lite: 0.4.24 - unpipe: 1.0.0 - dev: false - /raw-body@2.5.2: resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==} engines: {node: '>= 0.8'} @@ -1525,13 +1633,14 @@ packages: resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} dev: false - /regexp.prototype.flags@1.4.3: - resolution: {integrity: sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==} + /regexp.prototype.flags@1.5.2: + resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - functions-have-names: 1.2.3 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-errors: 1.3.0 + set-function-name: 2.0.2 dev: false /retry@0.12.0: @@ -1552,8 +1661,8 @@ packages: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} dev: false - /semver@7.5.4: - resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} + /semver@7.6.0: + resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==} engines: {node: '>=10'} hasBin: true dependencies: @@ -1593,6 +1702,28 @@ packages: - supports-color dev: false + /set-function-length@1.2.2: + resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + function-bind: 1.1.2 + get-intrinsic: 1.2.4 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + dev: false + + /set-function-name@2.0.2: + resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + functions-have-names: 1.2.3 + has-property-descriptors: 1.0.2 + dev: false + /setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} dev: false @@ -1605,12 +1736,31 @@ packages: safe-buffer: 5.2.1 dev: false - /side-channel@1.0.4: - resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} + /shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.0 - object-inspect: 1.12.3 + shebang-regex: 3.0.0 + dev: false + + /shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: false + + /side-channel@1.0.6: + resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + object-inspect: 1.13.1 + dev: false + + /signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} dev: false /smart-buffer@4.2.0: @@ -1624,24 +1774,28 @@ packages: dependencies: agent-base: 6.0.2 debug: 4.3.4 - socks: 2.7.1 + socks: 2.8.1 transitivePeerDependencies: - supports-color dev: false - /socks@2.7.1: - resolution: {integrity: sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==} - engines: {node: '>= 10.13.0', npm: '>= 3.0.0'} + /socks@2.8.1: + resolution: {integrity: sha512-B6w7tkwNid7ToxjZ08rQMT8M9BJAf8DKx8Ft4NivzH0zBUfd6jldGcisJn/RLgxcX3FPNDdNQCUEMMT79b+oCQ==} + engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} dependencies: - ip: 2.0.0 + ip-address: 9.0.5 smart-buffer: 4.2.0 dev: false - /ssri@10.0.2: - resolution: {integrity: sha512-LWMXUSh7fEfCXNBq4UnRzC4Qc5Y1PPg5ogmb+6HX837i2cKzjB133aYmQ4lgO0shVTcTQHquKp3v5bn898q3Sw==} + /sprintf-js@1.1.3: + resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==} + dev: false + + /ssri@10.0.5: + resolution: {integrity: sha512-bSf16tAFkGeRlUNDjXu8FzaMQt6g2HZJrun7mtMbIPOddxt3GLMSz5VWUWcqTJUPfLEaDIepGxv+bYQW49596A==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - minipass: 4.2.5 + minipass: 7.0.4 dev: false /statuses@2.0.1: @@ -1653,7 +1807,39 @@ packages: resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==} engines: {node: '>= 0.4'} dependencies: - internal-slot: 1.0.5 + internal-slot: 1.0.7 + dev: false + + /string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + dev: false + + /string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + dev: false + + /strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + dev: false + + /strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + dependencies: + ansi-regex: 6.0.1 dev: false /supports-color@7.2.0: @@ -1663,13 +1849,13 @@ packages: has-flag: 4.0.0 dev: false - /tar@6.1.13: - resolution: {integrity: sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==} + /tar@6.2.1: + resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==} engines: {node: '>=10'} dependencies: chownr: 2.0.0 fs-minipass: 2.1.0 - minipass: 4.2.5 + minipass: 5.0.0 minizlib: 2.1.2 mkdirp: 1.0.4 yallist: 4.0.0 @@ -1684,13 +1870,13 @@ packages: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} dev: false - /ts-graphviz@1.5.5: - resolution: {integrity: sha512-abon0Tlcgvxcqr8x+p8QH1fTbR2R4cEXKGZfT4OJONZWah2YfqkmERb6hrr82omAc1IHwk5PlF8g4BS/ECYvwQ==} + /ts-graphviz@1.8.2: + resolution: {integrity: sha512-5YhbFoHmjxa7pgQLkB07MtGnGJ/yhvjmc9uhsnDBEICME6gkPf83SBwLDQqGDoCa3XzUMWLk1AU2Wn1u1naDtA==} engines: {node: '>=14.16'} dev: false - /tslib@2.5.0: - resolution: {integrity: sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==} + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} dev: false /type-is@1.6.18: @@ -1701,6 +1887,10 @@ packages: mime-types: 2.1.35 dev: false + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + dev: false + /unique-filename@3.0.0: resolution: {integrity: sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -1721,12 +1911,12 @@ packages: dev: false /utils-merge@1.0.1: - resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} + resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} dev: false - /uuid@9.0.0: - resolution: {integrity: sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==} + /uuid@9.0.1: + resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} hasBin: true dev: false @@ -1766,25 +1956,51 @@ packages: is-symbol: 1.0.4 dev: false - /which-collection@1.0.1: - resolution: {integrity: sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==} + /which-collection@1.0.2: + resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==} + engines: {node: '>= 0.4'} dependencies: - is-map: 2.0.2 - is-set: 2.0.2 - is-weakmap: 2.0.1 - is-weakset: 2.0.2 + is-map: 2.0.3 + is-set: 2.0.3 + is-weakmap: 2.0.2 + is-weakset: 2.0.3 dev: false - /which-typed-array@1.1.9: - resolution: {integrity: sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==} + /which-typed-array@1.1.15: + resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} engines: {node: '>= 0.4'} dependencies: - available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 for-each: 0.3.3 gopd: 1.0.1 - has-tostringtag: 1.0.0 - is-typed-array: 1.1.10 + has-tostringtag: 1.0.2 + dev: false + + /which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: false + + /wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: false + + /wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 dev: false /yallist@4.0.0: diff --git a/apps/gateway/supergraph.graphqls b/apps/gateway/supergraph.graphqls new file mode 100644 index 000000000..cc587ef1b --- /dev/null +++ b/apps/gateway/supergraph.graphqls @@ -0,0 +1,4866 @@ +schema + @link(url: "https://specs.apollo.dev/link/v1.0") + @link(url: "https://specs.apollo.dev/join/v0.3", for: EXECUTION) +{ + query: Query + mutation: Mutation +} + +directive @join__enumValue(graph: join__Graph!) repeatable on ENUM_VALUE + +directive @join__field(graph: join__Graph, requires: join__FieldSet, provides: join__FieldSet, type: String, external: Boolean, override: String, usedOverridden: Boolean) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION + +directive @join__graph(name: String!, url: String!) on ENUM_VALUE + +directive @join__implements(graph: join__Graph!, interface: String!) repeatable on OBJECT | INTERFACE + +directive @join__type(graph: join__Graph!, key: join__FieldSet, extension: Boolean! = false, resolvable: Boolean! = true, isInterfaceObject: Boolean! = false) repeatable on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT | SCALAR + +directive @join__unionMember(graph: join__Graph!, member: String!) repeatable on UNION + +directive @link(url: String, as: String, for: link__Purpose, import: [link__Import]) repeatable on SCHEMA + +type Account + @join__type(graph: ACCOUNT_API) +{ + contactEmail: String + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: String! + isActive: Boolean + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + logo: String + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + targetNamespace: String + updateTime: Date! +} + +input AccountIn + @join__type(graph: ACCOUNT_API) +{ + contactEmail: String + displayName: String! + isActive: Boolean + logo: String + metadata: MetadataIn +} + +type AccountMembership + @join__type(graph: ACCOUNT_API) +{ + accountName: String! + role: Github__com___kloudlite___api___apps___iam___types__Role! + userId: String! + user: User! +} + +input AccountMembershipIn + @join__type(graph: ACCOUNT_API) +{ + accountName: String! + role: Github__com___kloudlite___api___apps___iam___types__Role! + userId: String! +} + +type AccountsCheckNameAvailabilityOutput + @join__type(graph: ACCOUNT_API) +{ + result: Boolean! + suggestedNames: [String!] +} + +scalar Any + @join__type(graph: ACCOUNT_API) + @join__type(graph: AUTH_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) + +type App + @join__type(graph: CONSOLE_API) +{ + accountName: String! + apiVersion: String + ciBuildId: ID + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + enabled: Boolean + environmentName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + projectName: String! + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__AppSpec! + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! + build: Build +} + +type AppEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: App! +} + +input AppIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + ciBuildId: ID + displayName: String! + enabled: Boolean + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__AppSpecIn! +} + +type AppPaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [AppEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type Build + @join__type(graph: CONSOLE_API, key: "id") + @join__type(graph: CONTAINER_REGISTRY_API, key: "id", extension: true) +{ + id: ID! + buildClusterName: String! @join__field(graph: CONTAINER_REGISTRY_API) + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! @join__field(graph: CONTAINER_REGISTRY_API) + creationTime: Date! @join__field(graph: CONTAINER_REGISTRY_API) + credUser: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! @join__field(graph: CONTAINER_REGISTRY_API) + errorMessages: Map! @join__field(graph: CONTAINER_REGISTRY_API) + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! @join__field(graph: CONTAINER_REGISTRY_API) + markedForDeletion: Boolean @join__field(graph: CONTAINER_REGISTRY_API) + name: String! @join__field(graph: CONTAINER_REGISTRY_API) + recordVersion: Int! @join__field(graph: CONTAINER_REGISTRY_API) + source: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource! @join__field(graph: CONTAINER_REGISTRY_API) + spec: Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec! @join__field(graph: CONTAINER_REGISTRY_API) + status: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__BuildStatus! @join__field(graph: CONTAINER_REGISTRY_API) + updateTime: Date! @join__field(graph: CONTAINER_REGISTRY_API) + latestBuildRun: BuildRun @join__field(graph: CONTAINER_REGISTRY_API) +} + +type BuildEdge + @join__type(graph: CONTAINER_REGISTRY_API) +{ + cursor: String! + node: Build! +} + +input BuildIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + buildClusterName: String! + name: String! + source: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSourceIn! + spec: Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpecIn! +} + +type BuildPaginatedRecords + @join__type(graph: CONTAINER_REGISTRY_API) +{ + edges: [BuildEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type BuildRun + @join__type(graph: CONTAINER_REGISTRY_API) +{ + accountName: String! + apiVersion: String + buildId: ID! + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type BuildRunEdge + @join__type(graph: CONTAINER_REGISTRY_API) +{ + cursor: String! + node: BuildRun! +} + +input BuildRunIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + displayName: String! +} + +type BuildRunPaginatedRecords + @join__type(graph: CONTAINER_REGISTRY_API) +{ + edges: [BuildRunEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type BYOKCluster + @join__type(graph: INFRA_API) +{ + accountName: String! + ClusterSpec: Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata! + recordVersion: Int! + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +input BYOKClusterIn + @join__type(graph: INFRA_API) +{ + displayName: String! + metadata: MetadataIn! +} + +type CheckAwsAccessOutput + @join__type(graph: INFRA_API) +{ + result: Boolean! + installationUrl: String +} + +type CheckNameAvailabilityOutput + @join__type(graph: INFRA_API) +{ + result: Boolean! + suggestedNames: [String!]! +} + +type CloudProviderSecret + @join__type(graph: INFRA_API) +{ + accountName: String! + aws: Github__com___kloudlite___api___apps___infra___internal___entities__AWSSecretCredentials + cloudProviderName: Github__com___kloudlite___operator___apis___common____types__CloudProvider! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata! + recordVersion: Int! + updateTime: Date! +} + +type CloudProviderSecretEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: CloudProviderSecret! +} + +input CloudProviderSecretIn + @join__type(graph: INFRA_API) +{ + aws: Github__com___kloudlite___api___apps___infra___internal___entities__AWSSecretCredentialsIn + cloudProviderName: Github__com___kloudlite___operator___apis___common____types__CloudProvider! + displayName: String! + metadata: MetadataIn! +} + +type CloudProviderSecretPaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [CloudProviderSecretEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type Cluster + @join__type(graph: INFRA_API) +{ + accountName: String! + apiVersion: String + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata! + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec! + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! + adminKubeconfig: EncodedValue +} + +type ClusterEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: Cluster! +} + +input ClusterIn + @join__type(graph: INFRA_API) +{ + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn! + spec: Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpecIn! +} + +type ClusterManagedService + @join__type(graph: INFRA_API) +{ + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__ClusterManagedServiceSpec + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type ClusterManagedServiceEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: ClusterManagedService! +} + +input ClusterManagedServiceIn + @join__type(graph: INFRA_API) +{ + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__ClusterManagedServiceSpecIn +} + +type ClusterManagedServicePaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [ClusterManagedServiceEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type ClusterPaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [ClusterEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type Config + @join__type(graph: CONSOLE_API) +{ + accountName: String! + apiVersion: String + binaryData: Map + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + data: Map + displayName: String! + environmentName: String! + id: ID! + immutable: Boolean + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + projectName: String! + recordVersion: Int! + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type ConfigEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: Config! +} + +input ConfigIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + binaryData: Map + data: Map + displayName: String! + immutable: Boolean + kind: String + metadata: MetadataIn +} + +type ConfigKeyRef + @join__type(graph: CONSOLE_API) +{ + configName: String! + key: String! +} + +input ConfigKeyRefIn + @join__type(graph: CONSOLE_API) +{ + configName: String! + key: String! +} + +type ConfigKeyValueRef + @join__type(graph: CONSOLE_API) +{ + configName: String! + key: String! + value: String! +} + +input ConfigKeyValueRefIn + @join__type(graph: CONSOLE_API) +{ + configName: String! + key: String! + value: String! +} + +type ConfigPaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [ConfigEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type ConsoleCheckNameAvailabilityOutput + @join__type(graph: CONSOLE_API) +{ + result: Boolean! + suggestedNames: [String!] +} + +enum ConsoleResType + @join__type(graph: CONSOLE_API) +{ + project @join__enumValue(graph: CONSOLE_API) + app @join__enumValue(graph: CONSOLE_API) + config @join__enumValue(graph: CONSOLE_API) + secret @join__enumValue(graph: CONSOLE_API) + router @join__enumValue(graph: CONSOLE_API) + managed_service @join__enumValue(graph: CONSOLE_API) + project_managed_service @join__enumValue(graph: CONSOLE_API) + managed_resource @join__enumValue(graph: CONSOLE_API) + environment @join__enumValue(graph: CONSOLE_API) + vpn_device @join__enumValue(graph: CONSOLE_API) +} + +type ConsoleVPNDevice + @join__type(graph: CONSOLE_API) +{ + accountName: String! + apiVersion: String + clusterName: String + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + environmentName: String + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + linkedClusters: [String!] + markedForDeletion: Boolean + metadata: Metadata + projectName: String + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___wireguard___v1__DeviceSpec + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! + wireguardConfig: Github__com___kloudlite___api___pkg___types__EncodedString +} + +type ConsoleVPNDeviceEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: ConsoleVPNDevice! +} + +input ConsoleVPNDeviceIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + clusterName: String + displayName: String! + environmentName: String + kind: String + metadata: MetadataIn + projectName: String + spec: Github__com___kloudlite___operator___apis___wireguard___v1__DeviceSpecIn +} + +type ConsoleVPNDevicePaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [ConsoleVPNDeviceEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +input CoreSearchVPNDevices + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +type CRCheckNameAvailabilityOutput + @join__type(graph: CONTAINER_REGISTRY_API) +{ + result: Boolean! + suggestedNames: [String!] +} + +type Credential + @join__type(graph: CONTAINER_REGISTRY_API) +{ + access: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__RepoAccess! + accountName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + expiration: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration! + id: ID! + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + name: String! + recordVersion: Int! + updateTime: Date! + username: String! +} + +type CredentialEdge + @join__type(graph: CONTAINER_REGISTRY_API) +{ + cursor: String! + node: Credential! +} + +input CredentialIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + access: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__RepoAccess! + expiration: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__ExpirationIn! + name: String! + username: String! +} + +type CredentialPaginatedRecords + @join__type(graph: CONTAINER_REGISTRY_API) +{ + edges: [CredentialEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type CursorPagination + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + after: String + before: String + first: Int + last: Int + orderBy: String + sortDirection: CursorPaginationSortDirection +} + +input CursorPaginationIn + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + after: String + before: String + first: Int + last: Int + orderBy: String = "_id" + sortDirection: CursorPaginationSortDirection = ASC +} + +enum CursorPaginationSortDirection + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + ASC @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + DESC @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) +} + +scalar Date + @join__type(graph: ACCOUNT_API) + @join__type(graph: AUTH_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) + +type Digest + @join__type(graph: CONTAINER_REGISTRY_API) +{ + accountName: String! + actor: String! + creationTime: Date! + deleting: Boolean! + digest: String! + id: ID! + length: Int! + markedForDeletion: Boolean + mediaType: String! + recordVersion: Int! + repository: String! + size: Int! + tags: [String!]! + updateTime: Date! + url: String! +} + +type DigestEdge + @join__type(graph: CONTAINER_REGISTRY_API) +{ + cursor: String! + node: Digest! +} + +type DigestPaginatedRecords + @join__type(graph: CONTAINER_REGISTRY_API) +{ + edges: [DigestEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type DomainEntry + @join__type(graph: INFRA_API) +{ + accountName: String! + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + domainName: String! + id: ID! + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + recordVersion: Int! + updateTime: Date! +} + +type DomainEntryEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: DomainEntry! +} + +input DomainEntryIn + @join__type(graph: INFRA_API) +{ + clusterName: String! + displayName: String! + domainName: String! +} + +type DomainEntryPaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [DomainEntryEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type EncodedValue + @join__type(graph: INFRA_API) +{ + value: String! + encoding: String! +} + +type Environment + @join__type(graph: CONSOLE_API) +{ + accountName: String! + apiVersion: String + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + projectName: String! + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__EnvironmentSpec + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type EnvironmentEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: Environment! +} + +input EnvironmentIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__EnvironmentSpecIn +} + +type EnvironmentPaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [EnvironmentEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type GitBranch + @join__type(graph: CONTAINER_REGISTRY_API) +{ + name: String + protected: Boolean +} + +enum Github__com___kloudlite___api___apps___console___internal___entities__PullSecretFormat + @join__type(graph: CONSOLE_API) +{ + dockerConfigJson @join__enumValue(graph: CONSOLE_API) + params @join__enumValue(graph: CONSOLE_API) +} + +enum Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__BuildStatus + @join__type(graph: CONTAINER_REGISTRY_API) +{ + error @join__enumValue(graph: CONTAINER_REGISTRY_API) + failed @join__enumValue(graph: CONTAINER_REGISTRY_API) + idle @join__enumValue(graph: CONTAINER_REGISTRY_API) + pending @join__enumValue(graph: CONTAINER_REGISTRY_API) + queued @join__enumValue(graph: CONTAINER_REGISTRY_API) + running @join__enumValue(graph: CONTAINER_REGISTRY_API) + success @join__enumValue(graph: CONTAINER_REGISTRY_API) +} + +type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration + @join__type(graph: CONTAINER_REGISTRY_API) +{ + unit: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__ExpirationUnit! + value: Int! +} + +input Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__ExpirationIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + unit: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__ExpirationUnit! + value: Int! +} + +enum Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__ExpirationUnit + @join__type(graph: CONTAINER_REGISTRY_API) +{ + d @join__enumValue(graph: CONTAINER_REGISTRY_API) + h @join__enumValue(graph: CONTAINER_REGISTRY_API) + m @join__enumValue(graph: CONTAINER_REGISTRY_API) + w @join__enumValue(graph: CONTAINER_REGISTRY_API) + y @join__enumValue(graph: CONTAINER_REGISTRY_API) +} + +type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository + @join__type(graph: CONTAINER_REGISTRY_API) +{ + archived: Boolean + cloneUrl: String + createdAt: Date + defaultBranch: String + description: String + disabled: Boolean + fullName: String + gitignoreTemplate: String + gitUrl: String + htmlUrl: String + id: Int + language: String + masterBranch: String + mirrorUrl: String + name: String + node_id: String + permissions: Map + private: Boolean + pushedAt: Date + size: Int + team_id: Int + updatedAt: Date + url: String + visibility: String +} + +type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount + @join__type(graph: CONTAINER_REGISTRY_API) +{ + avatarUrl: String + id: Int + login: String + nodeId: String + type: String +} + +input Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccountIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + avatarUrl: String + id: Int + login: String + nodeId: String + type: String +} + +enum Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitProvider + @join__type(graph: CONTAINER_REGISTRY_API) +{ + github @join__enumValue(graph: CONTAINER_REGISTRY_API) + gitlab @join__enumValue(graph: CONTAINER_REGISTRY_API) +} + +type Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource + @join__type(graph: CONTAINER_REGISTRY_API) +{ + branch: String! + provider: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitProvider! + repository: String! + webhookId: Int +} + +input Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSourceIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + branch: String! + provider: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitProvider! + repository: String! +} + +enum Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__RepoAccess + @join__type(graph: CONTAINER_REGISTRY_API) +{ + read @join__enumValue(graph: CONTAINER_REGISTRY_API) + read_write @join__enumValue(graph: CONTAINER_REGISTRY_API) +} + +enum Github__com___kloudlite___api___apps___iam___types__Role + @join__type(graph: ACCOUNT_API) +{ + account_admin @join__enumValue(graph: ACCOUNT_API) + account_member @join__enumValue(graph: ACCOUNT_API) + account_owner @join__enumValue(graph: ACCOUNT_API) + project_admin @join__enumValue(graph: ACCOUNT_API) + project_member @join__enumValue(graph: ACCOUNT_API) + resource_owner @join__enumValue(graph: ACCOUNT_API) +} + +type Github__com___kloudlite___api___apps___infra___internal___entities__AWSAssumeRoleParams + @join__type(graph: INFRA_API) +{ + awsAccountId: String! + cfParamTrustedARN: String! + externalID: String! + roleARN: String! +} + +input Github__com___kloudlite___api___apps___infra___internal___entities__AWSAssumeRoleParamsIn + @join__type(graph: INFRA_API) +{ + awsAccountId: String! +} + +type Github__com___kloudlite___api___apps___infra___internal___entities__AWSAuthSecretKeys + @join__type(graph: INFRA_API) +{ + accessKey: String! + cfParamUserName: String! + secretKey: String! +} + +input Github__com___kloudlite___api___apps___infra___internal___entities__AWSAuthSecretKeysIn + @join__type(graph: INFRA_API) +{ + accessKey: String! + secretKey: String! +} + +type Github__com___kloudlite___api___apps___infra___internal___entities__AWSSecretCredentials + @join__type(graph: INFRA_API) +{ + assumeRoleParams: Github__com___kloudlite___api___apps___infra___internal___entities__AWSAssumeRoleParams + authMechanism: Github__com___kloudlite___operator___apis___clusters___v1__AwsAuthMechanism! + authSecretKeys: Github__com___kloudlite___api___apps___infra___internal___entities__AWSAuthSecretKeys + cfParamInstanceProfileName: String + cfParamRoleName: String + cfParamStackName: String +} + +input Github__com___kloudlite___api___apps___infra___internal___entities__AWSSecretCredentialsIn + @join__type(graph: INFRA_API) +{ + assumeRoleParams: Github__com___kloudlite___api___apps___infra___internal___entities__AWSAssumeRoleParamsIn + authMechanism: Github__com___kloudlite___operator___apis___clusters___v1__AwsAuthMechanism! + authSecretKeys: Github__com___kloudlite___api___apps___infra___internal___entities__AWSAuthSecretKeysIn +} + +type Github__com___kloudlite___api___apps___infra___internal___entities__InputField + @join__type(graph: INFRA_API) +{ + defaultValue: Any + displayUnit: String + inputType: String! + label: String! + max: Float + min: Float + multiplier: Float + name: String! + required: Boolean + unit: String +} + +type Github__com___kloudlite___api___apps___infra___internal___entities__MresTemplate + @join__type(graph: INFRA_API) +{ + apiVersion: String + description: String! + displayName: String! + fields: [Github__com___kloudlite___api___apps___infra___internal___entities__InputField!]! + kind: String + name: String! + outputs: [Github__com___kloudlite___api___apps___infra___internal___entities__OutputField!]! +} + +type Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry + @join__type(graph: INFRA_API) +{ + active: Boolean! + apiVersion: String + description: String! + displayName: String! + fields: [Github__com___kloudlite___api___apps___infra___internal___entities__InputField!]! + kind: String + logoUrl: String! + name: String! + outputs: [Github__com___kloudlite___api___apps___infra___internal___entities__OutputField!]! + resources: [Github__com___kloudlite___api___apps___infra___internal___entities__MresTemplate!]! +} + +type Github__com___kloudlite___api___apps___infra___internal___entities__OutputField + @join__type(graph: INFRA_API) +{ + description: String! + label: String! + name: String! +} + +type Github__com___kloudlite___api___common__CreatedOrUpdatedBy + @join__type(graph: ACCOUNT_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + userEmail: String! + userId: String! + userName: String! +} + +type Github__com___kloudlite___api___pkg___types__EncodedString + @join__type(graph: CONSOLE_API) +{ + encoding: String! + value: String! +} + +enum Github__com___kloudlite___api___pkg___types__SyncAction + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + APPLY @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + DELETE @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) +} + +enum Github__com___kloudlite___api___pkg___types__SyncState + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + APPLIED_AT_AGENT @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + DELETED_AT_AGENT @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + DELETING_AT_AGENT @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + ERRORED_AT_AGENT @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + IDLE @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + IN_QUEUE @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + UPDATED_AT_AGENT @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) +} + +type Github__com___kloudlite___api___pkg___types__SyncStatus + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + action: Github__com___kloudlite___api___pkg___types__SyncAction! + error: String + lastSyncedAt: Date + recordVersion: Int! + state: Github__com___kloudlite___api___pkg___types__SyncState! + syncScheduledAt: Date +} + +enum Github__com___kloudlite___operator___apis___clusters___v1__AwsAuthMechanism + @join__type(graph: INFRA_API) +{ + assume_role @join__enumValue(graph: INFRA_API) + secret_keys @join__enumValue(graph: INFRA_API) +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AWSClusterConfig + @join__type(graph: INFRA_API) +{ + credentials: Github__com___kloudlite___operator___apis___clusters___v1__AwsCredentials! + k3sMasters: Github__com___kloudlite___operator___apis___clusters___v1__AWSK3sMastersConfig + nodePools: Map + region: String! + spotNodePools: Map + vpc: Github__com___kloudlite___operator___apis___clusters___v1__AwsVPCParams +} + +input Github__com___kloudlite___operator___apis___clusters___v1__AWSClusterConfigIn + @join__type(graph: INFRA_API) +{ + credentials: Github__com___kloudlite___operator___apis___clusters___v1__AwsCredentialsIn! + k3sMasters: Github__com___kloudlite___operator___apis___clusters___v1__AWSK3sMastersConfigIn + region: String! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AwsCredentials + @join__type(graph: INFRA_API) +{ + authMechanism: Github__com___kloudlite___operator___apis___clusters___v1__AwsAuthMechanism! + secretRef: Github__com___kloudlite___operator___apis___common____types__SecretRef! +} + +input Github__com___kloudlite___operator___apis___clusters___v1__AwsCredentialsIn + @join__type(graph: INFRA_API) +{ + authMechanism: Github__com___kloudlite___operator___apis___clusters___v1__AwsAuthMechanism! + secretRef: Github__com___kloudlite___operator___apis___common____types__SecretRefIn! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig + @join__type(graph: INFRA_API) +{ + instanceType: String! + nodes: Map +} + +input Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfigIn + @join__type(graph: INFRA_API) +{ + instanceType: String! + nodes: Map +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AWSK3sMastersConfig + @join__type(graph: INFRA_API) +{ + iamInstanceProfileRole: String + instanceType: String! + nodes: Map + nvidiaGpuEnabled: Boolean! + rootVolumeSize: Int! + rootVolumeType: String! +} + +input Github__com___kloudlite___operator___apis___clusters___v1__AWSK3sMastersConfigIn + @join__type(graph: INFRA_API) +{ + instanceType: String! + nvidiaGpuEnabled: Boolean! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AWSNodePoolConfig + @join__type(graph: INFRA_API) +{ + availabilityZone: String! + ec2Pool: Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfig + iamInstanceProfileRole: String + nvidiaGpuEnabled: Boolean! + poolType: Github__com___kloudlite___operator___apis___clusters___v1__AWSPoolType! + rootVolumeSize: Int! + rootVolumeType: String! + spotPool: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig + vpcId: String! + vpcSubnetId: String! +} + +input Github__com___kloudlite___operator___apis___clusters___v1__AWSNodePoolConfigIn + @join__type(graph: INFRA_API) +{ + availabilityZone: String! + ec2Pool: Github__com___kloudlite___operator___apis___clusters___v1__AwsEC2PoolConfigIn + nvidiaGpuEnabled: Boolean! + poolType: Github__com___kloudlite___operator___apis___clusters___v1__AWSPoolType! + spotPool: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfigIn +} + +enum Github__com___kloudlite___operator___apis___clusters___v1__AWSPoolType + @join__type(graph: INFRA_API) +{ + ec2 @join__enumValue(graph: INFRA_API) + spot @join__enumValue(graph: INFRA_API) +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotCpuNode + @join__type(graph: INFRA_API) +{ + memoryPerVcpu: Github__com___kloudlite___operator___apis___common____types__MinMaxFloat + vcpu: Github__com___kloudlite___operator___apis___common____types__MinMaxFloat! +} + +input Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotCpuNodeIn + @join__type(graph: INFRA_API) +{ + memoryPerVcpu: Github__com___kloudlite___operator___apis___common____types__MinMaxFloatIn + vcpu: Github__com___kloudlite___operator___apis___common____types__MinMaxFloatIn! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNode + @join__type(graph: INFRA_API) +{ + instanceTypes: [String!]! +} + +input Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNodeIn + @join__type(graph: INFRA_API) +{ + instanceTypes: [String!]! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfig + @join__type(graph: INFRA_API) +{ + cpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotCpuNode + gpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNode + nodes: Map + spotFleetTaggingRoleName: String! +} + +input Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotPoolConfigIn + @join__type(graph: INFRA_API) +{ + cpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotCpuNodeIn + gpuNode: Github__com___kloudlite___operator___apis___clusters___v1__AwsSpotGpuNodeIn + nodes: Map +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AwsSubnetWithID + @join__type(graph: INFRA_API) +{ + availabilityZone: String! + id: String! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__AwsVPCParams + @join__type(graph: INFRA_API) +{ + id: String! + publicSubnets: [Github__com___kloudlite___operator___apis___clusters___v1__AwsSubnetWithID!]! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__ClusterOutput + @join__type(graph: INFRA_API) +{ + jobName: String! + jobNamespace: String! + keyAWSVPCId: String + keyAWSVPCPublicSubnets: String + keyK3sAgentJoinToken: String! + keyK3sServerJoinToken: String! + keyKubeconfig: String! + secretName: String! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec + @join__type(graph: INFRA_API) +{ + accountId: String! + accountName: String! + availabilityMode: Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpecAvailabilityMode! + aws: Github__com___kloudlite___operator___apis___clusters___v1__AWSClusterConfig + backupToS3Enabled: Boolean! + cloudflareEnabled: Boolean + cloudProvider: Github__com___kloudlite___operator___apis___common____types__CloudProvider! + clusterInternalDnsHost: String + clusterTokenRef: Github__com___kloudlite___operator___apis___common____types__SecretKeyRef + kloudliteRelease: String! + messageQueueTopicName: String! + output: Github__com___kloudlite___operator___apis___clusters___v1__ClusterOutput + publicDNSHost: String! + taintMasterNodes: Boolean! +} + +enum Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpecAvailabilityMode + @join__type(graph: INFRA_API) +{ + dev @join__enumValue(graph: INFRA_API) + HA @join__enumValue(graph: INFRA_API) +} + +input Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpecIn + @join__type(graph: INFRA_API) +{ + availabilityMode: Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpecAvailabilityMode! + aws: Github__com___kloudlite___operator___apis___clusters___v1__AWSClusterConfigIn + cloudflareEnabled: Boolean + cloudProvider: Github__com___kloudlite___operator___apis___common____types__CloudProvider! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__GCPNodePoolConfig + @join__type(graph: INFRA_API) +{ + availabilityZone: String! + bootVolumeSize: Int! + bootVolumeType: String! + credentials: Github__com___kloudlite___operator___apis___common____types__SecretRef! + machineType: String! + nodes: Map + poolType: Github__com___kloudlite___operator___apis___clusters___v1__GCPPoolType! + region: String! +} + +input Github__com___kloudlite___operator___apis___clusters___v1__GCPNodePoolConfigIn + @join__type(graph: INFRA_API) +{ + availabilityZone: String! + bootVolumeSize: Int! + bootVolumeType: String! + credentials: Github__com___kloudlite___operator___apis___common____types__SecretRefIn! + machineType: String! + nodes: Map + poolType: Github__com___kloudlite___operator___apis___clusters___v1__GCPPoolType! + region: String! +} + +enum Github__com___kloudlite___operator___apis___clusters___v1__GCPPoolType + @join__type(graph: INFRA_API) +{ + SPOT @join__enumValue(graph: INFRA_API) + STANDARD @join__enumValue(graph: INFRA_API) +} + +type Github__com___kloudlite___operator___apis___clusters___v1__MasterNodeProps + @join__type(graph: INFRA_API) +{ + availabilityZone: String! + kloudliteRelease: String! + lastRecreatedAt: Date + role: String! +} + +type Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec + @join__type(graph: INFRA_API) +{ + aws: Github__com___kloudlite___operator___apis___clusters___v1__AWSNodePoolConfig + cloudProvider: Github__com___kloudlite___operator___apis___common____types__CloudProvider! + gcp: Github__com___kloudlite___operator___apis___clusters___v1__GCPNodePoolConfig + maxCount: Int! + minCount: Int! + nodeLabels: Map + nodeTaints: [K8s__io___api___core___v1__Taint!] +} + +input Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpecIn + @join__type(graph: INFRA_API) +{ + aws: Github__com___kloudlite___operator___apis___clusters___v1__AWSNodePoolConfigIn + cloudProvider: Github__com___kloudlite___operator___apis___common____types__CloudProvider! + gcp: Github__com___kloudlite___operator___apis___clusters___v1__GCPNodePoolConfigIn + maxCount: Int! + minCount: Int! + nodeLabels: Map + nodeTaints: [K8s__io___api___core___v1__TaintIn!] +} + +type Github__com___kloudlite___operator___apis___clusters___v1__NodeProps + @join__type(graph: INFRA_API) +{ + lastRecreatedAt: Date +} + +input Github__com___kloudlite___operator___apis___clusters___v1__NodePropsIn + @join__type(graph: INFRA_API) +{ + lastRecreatedAt: Date +} + +type Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec + @join__type(graph: INFRA_API) +{ + nodepoolName: String! +} + +input Github__com___kloudlite___operator___apis___clusters___v1__NodeSpecIn + @join__type(graph: INFRA_API) +{ + nodepoolName: String! +} + +enum Github__com___kloudlite___operator___apis___common____types__CloudProvider + @join__type(graph: INFRA_API) +{ + aws @join__enumValue(graph: INFRA_API) + azure @join__enumValue(graph: INFRA_API) + digitalocean @join__enumValue(graph: INFRA_API) + gcp @join__enumValue(graph: INFRA_API) +} + +type Github__com___kloudlite___operator___apis___common____types__MinMaxFloat + @join__type(graph: INFRA_API) +{ + max: String! + min: String! +} + +input Github__com___kloudlite___operator___apis___common____types__MinMaxFloatIn + @join__type(graph: INFRA_API) +{ + max: String! + min: String! +} + +type Github__com___kloudlite___operator___apis___common____types__SecretKeyRef + @join__type(graph: INFRA_API) +{ + key: String! + name: String! + namespace: String +} + +type Github__com___kloudlite___operator___apis___common____types__SecretRef + @join__type(graph: INFRA_API) +{ + name: String! + namespace: String +} + +input Github__com___kloudlite___operator___apis___common____types__SecretRefIn + @join__type(graph: INFRA_API) +{ + name: String! + namespace: String +} + +type Github__com___kloudlite___operator___apis___crds___v1__AppContainer + @join__type(graph: CONSOLE_API) +{ + args: [String!] + command: [String!] + env: [Github__com___kloudlite___operator___apis___crds___v1__ContainerEnv!] + envFrom: [Github__com___kloudlite___operator___apis___crds___v1__EnvFrom!] + image: String! + imagePullPolicy: String + livenessProbe: Github__com___kloudlite___operator___apis___crds___v1__Probe + name: String! + readinessProbe: Github__com___kloudlite___operator___apis___crds___v1__Probe + resourceCpu: Github__com___kloudlite___operator___apis___crds___v1__ContainerResource + resourceMemory: Github__com___kloudlite___operator___apis___crds___v1__ContainerResource + volumes: [Github__com___kloudlite___operator___apis___crds___v1__ContainerVolume!] +} + +input Github__com___kloudlite___operator___apis___crds___v1__AppContainerIn + @join__type(graph: CONSOLE_API) +{ + args: [String!] + command: [String!] + env: [Github__com___kloudlite___operator___apis___crds___v1__ContainerEnvIn!] + envFrom: [Github__com___kloudlite___operator___apis___crds___v1__EnvFromIn!] + image: String! + imagePullPolicy: String + livenessProbe: Github__com___kloudlite___operator___apis___crds___v1__ProbeIn + name: String! + readinessProbe: Github__com___kloudlite___operator___apis___crds___v1__ProbeIn + resourceCpu: Github__com___kloudlite___operator___apis___crds___v1__ContainerResourceIn + resourceMemory: Github__com___kloudlite___operator___apis___crds___v1__ContainerResourceIn + volumes: [Github__com___kloudlite___operator___apis___crds___v1__ContainerVolumeIn!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__AppSpec + @join__type(graph: CONSOLE_API) +{ + containers: [Github__com___kloudlite___operator___apis___crds___v1__AppContainer!]! + displayName: String + freeze: Boolean + hpa: Github__com___kloudlite___operator___apis___crds___v1__HPA + intercept: Github__com___kloudlite___operator___apis___crds___v1__Intercept + nodeSelector: Map + region: String + replicas: Int + serviceAccount: String + services: [Github__com___kloudlite___operator___apis___crds___v1__AppSvc!] + tolerations: [K8s__io___api___core___v1__Toleration!] + topologySpreadConstraints: [K8s__io___api___core___v1__TopologySpreadConstraint!] +} + +input Github__com___kloudlite___operator___apis___crds___v1__AppSpecIn + @join__type(graph: CONSOLE_API) +{ + containers: [Github__com___kloudlite___operator___apis___crds___v1__AppContainerIn!]! + displayName: String + freeze: Boolean + hpa: Github__com___kloudlite___operator___apis___crds___v1__HPAIn + intercept: Github__com___kloudlite___operator___apis___crds___v1__InterceptIn + nodeSelector: Map + region: String + replicas: Int + serviceAccount: String + services: [Github__com___kloudlite___operator___apis___crds___v1__AppSvcIn!] + tolerations: [K8s__io___api___core___v1__TolerationIn!] + topologySpreadConstraints: [K8s__io___api___core___v1__TopologySpreadConstraintIn!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__AppSvc + @join__type(graph: CONSOLE_API) +{ + name: String + port: Int! + targetPort: Int + type: String +} + +input Github__com___kloudlite___operator___apis___crds___v1__AppSvcIn + @join__type(graph: CONSOLE_API) +{ + name: String + port: Int! + targetPort: Int + type: String +} + +type Github__com___kloudlite___operator___apis___crds___v1__BasicAuth + @join__type(graph: CONSOLE_API) +{ + enabled: Boolean! + secretName: String + username: String +} + +input Github__com___kloudlite___operator___apis___crds___v1__BasicAuthIn + @join__type(graph: CONSOLE_API) +{ + enabled: Boolean! + secretName: String + username: String +} + +type Github__com___kloudlite___operator___apis___crds___v1__ClusterManagedServiceSpec + @join__type(graph: INFRA_API) +{ + msvcSpec: Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec! + targetNamespace: String! +} + +input Github__com___kloudlite___operator___apis___crds___v1__ClusterManagedServiceSpecIn + @join__type(graph: INFRA_API) +{ + msvcSpec: Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpecIn! + targetNamespace: String! +} + +enum Github__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret + @join__type(graph: CONSOLE_API) +{ + config @join__enumValue(graph: CONSOLE_API) + secret @join__enumValue(graph: CONSOLE_API) +} + +type Github__com___kloudlite___operator___apis___crds___v1__ContainerEnv + @join__type(graph: CONSOLE_API) +{ + key: String! + optional: Boolean + refKey: String + refName: String + type: Github__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret + value: String +} + +input Github__com___kloudlite___operator___apis___crds___v1__ContainerEnvIn + @join__type(graph: CONSOLE_API) +{ + key: String! + optional: Boolean + refKey: String + refName: String + type: Github__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret + value: String +} + +type Github__com___kloudlite___operator___apis___crds___v1__ContainerResource + @join__type(graph: CONSOLE_API) +{ + max: String + min: String +} + +input Github__com___kloudlite___operator___apis___crds___v1__ContainerResourceIn + @join__type(graph: CONSOLE_API) +{ + max: String + min: String +} + +type Github__com___kloudlite___operator___apis___crds___v1__ContainerVolume + @join__type(graph: CONSOLE_API) +{ + items: [Github__com___kloudlite___operator___apis___crds___v1__ContainerVolumeItem!] + mountPath: String! + refName: String! + type: Github__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret! +} + +input Github__com___kloudlite___operator___apis___crds___v1__ContainerVolumeIn + @join__type(graph: CONSOLE_API) +{ + items: [Github__com___kloudlite___operator___apis___crds___v1__ContainerVolumeItemIn!] + mountPath: String! + refName: String! + type: Github__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret! +} + +type Github__com___kloudlite___operator___apis___crds___v1__ContainerVolumeItem + @join__type(graph: CONSOLE_API) +{ + fileName: String + key: String! +} + +input Github__com___kloudlite___operator___apis___crds___v1__ContainerVolumeItemIn + @join__type(graph: CONSOLE_API) +{ + fileName: String + key: String! +} + +type Github__com___kloudlite___operator___apis___crds___v1__Cors + @join__type(graph: CONSOLE_API) +{ + allowCredentials: Boolean + enabled: Boolean + origins: [String!] +} + +input Github__com___kloudlite___operator___apis___crds___v1__CorsIn + @join__type(graph: CONSOLE_API) +{ + allowCredentials: Boolean + enabled: Boolean + origins: [String!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__EnvFrom + @join__type(graph: CONSOLE_API) +{ + refName: String! + type: Github__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret! +} + +input Github__com___kloudlite___operator___apis___crds___v1__EnvFromIn + @join__type(graph: CONSOLE_API) +{ + refName: String! + type: Github__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret! +} + +type Github__com___kloudlite___operator___apis___crds___v1__EnvironmentRouting + @join__type(graph: CONSOLE_API) +{ + mode: Github__com___kloudlite___operator___apis___crds___v1__EnvironmentRoutingMode + privateIngressClass: String + publicIngressClass: String +} + +input Github__com___kloudlite___operator___apis___crds___v1__EnvironmentRoutingIn + @join__type(graph: CONSOLE_API) +{ + mode: Github__com___kloudlite___operator___apis___crds___v1__EnvironmentRoutingMode +} + +enum Github__com___kloudlite___operator___apis___crds___v1__EnvironmentRoutingMode + @join__type(graph: CONSOLE_API) +{ + private @join__enumValue(graph: CONSOLE_API) + public @join__enumValue(graph: CONSOLE_API) +} + +type Github__com___kloudlite___operator___apis___crds___v1__EnvironmentSpec + @join__type(graph: CONSOLE_API) +{ + projectName: String! + routing: Github__com___kloudlite___operator___apis___crds___v1__EnvironmentRouting + targetNamespace: String +} + +input Github__com___kloudlite___operator___apis___crds___v1__EnvironmentSpecIn + @join__type(graph: CONSOLE_API) +{ + projectName: String! + routing: Github__com___kloudlite___operator___apis___crds___v1__EnvironmentRoutingIn + targetNamespace: String +} + +type Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec + @join__type(graph: INFRA_API) +{ + chartName: String! + chartRepoURL: String! + chartVersion: String! + jobVars: Github__com___kloudlite___operator___apis___crds___v1__JobVars + postInstall: String + postUninstall: String + preInstall: String + preUninstall: String + releaseName: String + values: Map! +} + +input Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn + @join__type(graph: INFRA_API) +{ + chartName: String! + chartRepoURL: String! + chartVersion: String! + jobVars: Github__com___kloudlite___operator___apis___crds___v1__JobVarsIn + postInstall: String + postUninstall: String + preInstall: String + preUninstall: String + values: Map! +} + +type Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus + @join__type(graph: INFRA_API) +{ + checkList: [Github__com___kloudlite___operator___pkg___operator__CheckMeta!] + checks: Map + isReady: Boolean! + lastReadyGeneration: Int + lastReconcileTime: Date + message: Github__com___kloudlite___operator___pkg___raw____json__RawJson + releaseNotes: String! + releaseStatus: String! + resources: [Github__com___kloudlite___operator___pkg___operator__ResourceRef!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__HPA + @join__type(graph: CONSOLE_API) +{ + enabled: Boolean! + maxReplicas: Int + minReplicas: Int + thresholdCpu: Int + thresholdMemory: Int +} + +input Github__com___kloudlite___operator___apis___crds___v1__HPAIn + @join__type(graph: CONSOLE_API) +{ + enabled: Boolean! + maxReplicas: Int + minReplicas: Int + thresholdCpu: Int + thresholdMemory: Int +} + +type Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe + @join__type(graph: CONSOLE_API) +{ + httpHeaders: Map + path: String! + port: Int! +} + +input Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbeIn + @join__type(graph: CONSOLE_API) +{ + httpHeaders: Map + path: String! + port: Int! +} + +type Github__com___kloudlite___operator___apis___crds___v1__Https + @join__type(graph: CONSOLE_API) +{ + clusterIssuer: String + enabled: Boolean! + forceRedirect: Boolean +} + +input Github__com___kloudlite___operator___apis___crds___v1__HttpsIn + @join__type(graph: CONSOLE_API) +{ + clusterIssuer: String + enabled: Boolean! + forceRedirect: Boolean +} + +type Github__com___kloudlite___operator___apis___crds___v1__Intercept + @join__type(graph: CONSOLE_API) +{ + enabled: Boolean! + toDevice: String! +} + +input Github__com___kloudlite___operator___apis___crds___v1__InterceptIn + @join__type(graph: CONSOLE_API) +{ + enabled: Boolean! + toDevice: String! +} + +type Github__com___kloudlite___operator___apis___crds___v1__JobVars + @join__type(graph: INFRA_API) +{ + affinity: K8s__io___api___core___v1__Affinity + backOffLimit: Int + nodeSelector: Map + tolerations: [K8s__io___api___core___v1__Toleration!] +} + +input Github__com___kloudlite___operator___apis___crds___v1__JobVarsIn + @join__type(graph: INFRA_API) +{ + affinity: K8s__io___api___core___v1__AffinityIn + backOffLimit: Int + nodeSelector: Map + tolerations: [K8s__io___api___core___v1__TolerationIn!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec + @join__type(graph: CONSOLE_API) +{ + resourceNamePrefix: String + resourceTemplate: Github__com___kloudlite___operator___apis___crds___v1__MresResourceTemplate! +} + +input Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpecIn + @join__type(graph: CONSOLE_API) +{ + resourceNamePrefix: String + resourceTemplate: Github__com___kloudlite___operator___apis___crds___v1__MresResourceTemplateIn! +} + +type Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + nodeSelector: Map + serviceTemplate: Github__com___kloudlite___operator___apis___crds___v1__ServiceTemplate! + tolerations: [K8s__io___api___core___v1__Toleration!] +} + +input Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpecIn + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + nodeSelector: Map + serviceTemplate: Github__com___kloudlite___operator___apis___crds___v1__ServiceTemplateIn! + tolerations: [K8s__io___api___core___v1__TolerationIn!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__MresResourceTemplate + @join__type(graph: CONSOLE_API) +{ + apiVersion: String! + kind: String! + msvcRef: Github__com___kloudlite___operator___apis___crds___v1__MsvcNamedRef! + spec: Map! +} + +input Github__com___kloudlite___operator___apis___crds___v1__MresResourceTemplateIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String! + kind: String! + msvcRef: Github__com___kloudlite___operator___apis___crds___v1__MsvcNamedRefIn! + spec: Map! +} + +type Github__com___kloudlite___operator___apis___crds___v1__MsvcNamedRef + @join__type(graph: CONSOLE_API) +{ + apiVersion: String! + kind: String! + name: String! + namespace: String! +} + +input Github__com___kloudlite___operator___apis___crds___v1__MsvcNamedRefIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String! + kind: String! + name: String! + namespace: String! +} + +type Github__com___kloudlite___operator___apis___crds___v1__Probe + @join__type(graph: CONSOLE_API) +{ + failureThreshold: Int + httpGet: Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe + initialDelay: Int + interval: Int + shell: Github__com___kloudlite___operator___apis___crds___v1__ShellProbe + tcp: Github__com___kloudlite___operator___apis___crds___v1__TcpProbe + type: String! +} + +input Github__com___kloudlite___operator___apis___crds___v1__ProbeIn + @join__type(graph: CONSOLE_API) +{ + failureThreshold: Int + httpGet: Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbeIn + initialDelay: Int + interval: Int + shell: Github__com___kloudlite___operator___apis___crds___v1__ShellProbeIn + tcp: Github__com___kloudlite___operator___apis___crds___v1__TcpProbeIn + type: String! +} + +type Github__com___kloudlite___operator___apis___crds___v1__ProjectManagedServiceSpec + @join__type(graph: CONSOLE_API) +{ + msvcSpec: Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpec! + targetNamespace: String! +} + +input Github__com___kloudlite___operator___apis___crds___v1__ProjectManagedServiceSpecIn + @join__type(graph: CONSOLE_API) +{ + msvcSpec: Github__com___kloudlite___operator___apis___crds___v1__ManagedServiceSpecIn! + targetNamespace: String! +} + +type Github__com___kloudlite___operator___apis___crds___v1__ProjectSpec + @join__type(graph: CONSOLE_API) +{ + targetNamespace: String! +} + +input Github__com___kloudlite___operator___apis___crds___v1__ProjectSpecIn + @join__type(graph: CONSOLE_API) +{ + targetNamespace: String! +} + +type Github__com___kloudlite___operator___apis___crds___v1__RateLimit + @join__type(graph: CONSOLE_API) +{ + connections: Int + enabled: Boolean + rpm: Int + rps: Int +} + +input Github__com___kloudlite___operator___apis___crds___v1__RateLimitIn + @join__type(graph: CONSOLE_API) +{ + connections: Int + enabled: Boolean + rpm: Int + rps: Int +} + +type Github__com___kloudlite___operator___apis___crds___v1__Route + @join__type(graph: CONSOLE_API) +{ + app: String! + path: String! + port: Int! + rewrite: Boolean +} + +input Github__com___kloudlite___operator___apis___crds___v1__RouteIn + @join__type(graph: CONSOLE_API) +{ + app: String! + path: String! + port: Int! + rewrite: Boolean +} + +type Github__com___kloudlite___operator___apis___crds___v1__RouterSpec + @join__type(graph: CONSOLE_API) +{ + backendProtocol: String + basicAuth: Github__com___kloudlite___operator___apis___crds___v1__BasicAuth + cors: Github__com___kloudlite___operator___apis___crds___v1__Cors + domains: [String!]! + https: Github__com___kloudlite___operator___apis___crds___v1__Https + ingressClass: String + maxBodySizeInMB: Int + rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimit + routes: [Github__com___kloudlite___operator___apis___crds___v1__Route!] +} + +input Github__com___kloudlite___operator___apis___crds___v1__RouterSpecIn + @join__type(graph: CONSOLE_API) +{ + backendProtocol: String + basicAuth: Github__com___kloudlite___operator___apis___crds___v1__BasicAuthIn + cors: Github__com___kloudlite___operator___apis___crds___v1__CorsIn + domains: [String!]! + https: Github__com___kloudlite___operator___apis___crds___v1__HttpsIn + ingressClass: String + maxBodySizeInMB: Int + rateLimit: Github__com___kloudlite___operator___apis___crds___v1__RateLimitIn + routes: [Github__com___kloudlite___operator___apis___crds___v1__RouteIn!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__ServiceTemplate + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + apiVersion: String! + kind: String! + spec: Map! +} + +input Github__com___kloudlite___operator___apis___crds___v1__ServiceTemplateIn + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + apiVersion: String! + kind: String! + spec: Map! +} + +type Github__com___kloudlite___operator___apis___crds___v1__ShellProbe + @join__type(graph: CONSOLE_API) +{ + command: [String!] +} + +input Github__com___kloudlite___operator___apis___crds___v1__ShellProbeIn + @join__type(graph: CONSOLE_API) +{ + command: [String!] +} + +type Github__com___kloudlite___operator___apis___crds___v1__TcpProbe + @join__type(graph: CONSOLE_API) +{ + port: Int! +} + +input Github__com___kloudlite___operator___apis___crds___v1__TcpProbeIn + @join__type(graph: CONSOLE_API) +{ + port: Int! +} + +type Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions + @join__type(graph: CONTAINER_REGISTRY_API) +{ + buildArgs: Map + buildContexts: Map + contextDir: String + dockerfileContent: String + dockerfilePath: String + targetPlatforms: [String!] +} + +input Github__com___kloudlite___operator___apis___distribution___v1__BuildOptionsIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + buildArgs: Map + buildContexts: Map + contextDir: String + dockerfileContent: String + dockerfilePath: String + targetPlatforms: [String!] +} + +type Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec + @join__type(graph: CONTAINER_REGISTRY_API) +{ + accountName: String! + buildOptions: Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions + caches: [Github__com___kloudlite___operator___apis___distribution___v1__Cache!] + registry: Github__com___kloudlite___operator___apis___distribution___v1__Registry! + resource: Github__com___kloudlite___operator___apis___distribution___v1__Resource! +} + +input Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpecIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + buildOptions: Github__com___kloudlite___operator___apis___distribution___v1__BuildOptionsIn + caches: [Github__com___kloudlite___operator___apis___distribution___v1__CacheIn!] + registry: Github__com___kloudlite___operator___apis___distribution___v1__RegistryIn! + resource: Github__com___kloudlite___operator___apis___distribution___v1__ResourceIn! +} + +type Github__com___kloudlite___operator___apis___distribution___v1__Cache + @join__type(graph: CONTAINER_REGISTRY_API) +{ + name: String! + path: String! +} + +input Github__com___kloudlite___operator___apis___distribution___v1__CacheIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + name: String! + path: String! +} + +type Github__com___kloudlite___operator___apis___distribution___v1__Registry + @join__type(graph: CONTAINER_REGISTRY_API) +{ + repo: Github__com___kloudlite___operator___apis___distribution___v1__Repo! +} + +input Github__com___kloudlite___operator___apis___distribution___v1__RegistryIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + repo: Github__com___kloudlite___operator___apis___distribution___v1__RepoIn! +} + +type Github__com___kloudlite___operator___apis___distribution___v1__Repo + @join__type(graph: CONTAINER_REGISTRY_API) +{ + name: String! + tags: [String!]! +} + +input Github__com___kloudlite___operator___apis___distribution___v1__RepoIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + name: String! + tags: [String!]! +} + +type Github__com___kloudlite___operator___apis___distribution___v1__Resource + @join__type(graph: CONTAINER_REGISTRY_API) +{ + cpu: Int! + memoryInMb: Int! +} + +input Github__com___kloudlite___operator___apis___distribution___v1__ResourceIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + cpu: Int! + memoryInMb: Int! +} + +type Github__com___kloudlite___operator___apis___wireguard___v1__CNameRecord + @join__type(graph: CONSOLE_API) +{ + host: String + target: String +} + +input Github__com___kloudlite___operator___apis___wireguard___v1__CNameRecordIn + @join__type(graph: CONSOLE_API) +{ + host: String + target: String +} + +type Github__com___kloudlite___operator___apis___wireguard___v1__DeviceSpec + @join__type(graph: CONSOLE_API) +{ + activeNamespace: String + cnameRecords: [Github__com___kloudlite___operator___apis___wireguard___v1__CNameRecord!] + disabled: Boolean + nodeSelector: Map + noExternalService: Boolean + ports: [Github__com___kloudlite___operator___apis___wireguard___v1__Port!] +} + +input Github__com___kloudlite___operator___apis___wireguard___v1__DeviceSpecIn + @join__type(graph: CONSOLE_API) +{ + activeNamespace: String + cnameRecords: [Github__com___kloudlite___operator___apis___wireguard___v1__CNameRecordIn!] + ports: [Github__com___kloudlite___operator___apis___wireguard___v1__PortIn!] +} + +type Github__com___kloudlite___operator___apis___wireguard___v1__Port + @join__type(graph: CONSOLE_API) +{ + port: Int + targetPort: Int +} + +input Github__com___kloudlite___operator___apis___wireguard___v1__PortIn + @join__type(graph: CONSOLE_API) +{ + port: Int + targetPort: Int +} + +type Github__com___kloudlite___operator___pkg___operator__Check + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + debug: String + error: String + generation: Int + info: String + message: String + startedAt: Date + state: Github__com___kloudlite___operator___pkg___operator__State + status: Boolean! +} + +input Github__com___kloudlite___operator___pkg___operator__CheckIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + debug: String + error: String + generation: Int + info: String + message: String + startedAt: Date + state: Github__com___kloudlite___operator___pkg___operator__State + status: Boolean! +} + +type Github__com___kloudlite___operator___pkg___operator__CheckMeta + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + debug: Boolean + description: String + name: String! + title: String! +} + +input Github__com___kloudlite___operator___pkg___operator__CheckMetaIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + debug: Boolean + description: String + name: String! + title: String! +} + +type Github__com___kloudlite___operator___pkg___operator__ResourceRef + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + apiVersion: String! + kind: String! + name: String! + namespace: String! +} + +input Github__com___kloudlite___operator___pkg___operator__ResourceRefIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + apiVersion: String! + kind: String! + name: String! + namespace: String! +} + +enum Github__com___kloudlite___operator___pkg___operator__State + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + errored____during____reconcilation @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + finished____reconcilation @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + under____reconcilation @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + yet____to____be____reconciled @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) +} + +type Github__com___kloudlite___operator___pkg___operator__Status + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + checkList: [Github__com___kloudlite___operator___pkg___operator__CheckMeta!] + checks: Map + isReady: Boolean! + lastReadyGeneration: Int + lastReconcileTime: Date + message: Github__com___kloudlite___operator___pkg___raw____json__RawJson + resources: [Github__com___kloudlite___operator___pkg___operator__ResourceRef!] +} + +input Github__com___kloudlite___operator___pkg___operator__StatusIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + checkList: [Github__com___kloudlite___operator___pkg___operator__CheckMetaIn!] + checks: Map + isReady: Boolean! + lastReadyGeneration: Int + lastReconcileTime: Date + message: Github__com___kloudlite___operator___pkg___raw____json__RawJsonIn + resources: [Github__com___kloudlite___operator___pkg___operator__ResourceRefIn!] +} + +type Github__com___kloudlite___operator___pkg___raw____json__RawJson + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + RawMessage: Any +} + +input Github__com___kloudlite___operator___pkg___raw____json__RawJsonIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + RawMessage: Any +} + +type GithubBranch + @join__type(graph: CONTAINER_REGISTRY_API) +{ + name: String + protected: Boolean +} + +type GithubInstallation + @join__type(graph: CONTAINER_REGISTRY_API) +{ + account: Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount + appId: Int + id: Int + nodeId: String + repositoriesUrl: String + targetId: Int + targetType: String +} + +type GithubListRepository + @join__type(graph: CONTAINER_REGISTRY_API) +{ + repositories: [Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository]! + totalCount: Int +} + +type GithubSearchRepository + @join__type(graph: CONTAINER_REGISTRY_API) +{ + incompleteResults: Boolean + repositories: [Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository]! + total: Int +} + +type GitlabBranch + @join__type(graph: CONTAINER_REGISTRY_API) +{ + canPush: Boolean! + default: Boolean! + developersCanMerge: Boolean! + developersCanPush: Boolean! + merged: Boolean! + name: String! + protected: Boolean! + webUrl: String! +} + +type GitlabGroup + @join__type(graph: CONTAINER_REGISTRY_API) +{ + avatarUrl: String! + fullName: String! + id: String! +} + +type GitlabProject + @join__type(graph: CONTAINER_REGISTRY_API) +{ + archived: Boolean! + avatarUrl: String! + createdAt: Date + creatorId: Int! + defaultBranch: String! + description: String! + emptyRepo: Boolean! + httpUrlToRepo: String! + id: Int! + lastActivityAt: Date + name: String! + nameWithNamespace: String! + path: String! + pathWithNamespace: String! + public: Boolean! + sshUrlToRepo: String! + tagList: [String!]! + topics: [String!]! + webUrl: String! +} + +type HelmRelease + @join__type(graph: INFRA_API) +{ + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpec + status: Github__com___kloudlite___operator___apis___crds___v1__HelmChartStatus + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type HelmReleaseEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: HelmRelease! +} + +input HelmReleaseIn + @join__type(graph: INFRA_API) +{ + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__HelmChartSpecIn +} + +type HelmReleasePaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [HelmReleaseEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type ImagePullSecret + @join__type(graph: CONSOLE_API) +{ + accountName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + dockerConfigJson: String + environmentName: String! + format: Github__com___kloudlite___api___apps___console___internal___entities__PullSecretFormat! + id: ID! + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata! + projectName: String! + recordVersion: Int! + registryPassword: String + registryURL: String + registryUsername: String + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type ImagePullSecretEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: ImagePullSecret! +} + +input ImagePullSecretIn + @join__type(graph: CONSOLE_API) +{ + displayName: String! + dockerConfigJson: String + format: Github__com___kloudlite___api___apps___console___internal___entities__PullSecretFormat! + metadata: MetadataIn! + registryPassword: String + registryURL: String + registryUsername: String +} + +type ImagePullSecretPaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [ImagePullSecretEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type Invitation + @join__type(graph: ACCOUNT_API) +{ + accepted: Boolean + accountName: String! + creationTime: Date! + id: String! + invitedBy: String! + inviteToken: String! + markedForDeletion: Boolean + recordVersion: Int! + rejected: Boolean + updateTime: Date! + userEmail: String + userName: String + userRole: Github__com___kloudlite___api___apps___iam___types__Role! +} + +input InvitationIn + @join__type(graph: ACCOUNT_API) +{ + userEmail: String + userName: String + userRole: Github__com___kloudlite___api___apps___iam___types__Role! +} + +scalar join__FieldSet + +enum join__Graph { + ACCOUNT_API @join__graph(name: "account-api", url: "http://accounts-api/query") + AUTH_API @join__graph(name: "auth-api", url: "http://auth-api/query") + CONSOLE_API @join__graph(name: "console-api", url: "http://console-api/query") + CONTAINER_REGISTRY_API @join__graph(name: "container-registry-api", url: "http://container-registry-api/query") + INFRA_API @join__graph(name: "infra-api", url: "http://infra-api/query") +} + +scalar Json + @join__type(graph: ACCOUNT_API) + @join__type(graph: AUTH_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) + +type K8s__io___api___core___v1__Affinity + @join__type(graph: INFRA_API) +{ + nodeAffinity: K8s__io___api___core___v1__NodeAffinity + podAffinity: K8s__io___api___core___v1__PodAffinity + podAntiAffinity: K8s__io___api___core___v1__PodAntiAffinity +} + +input K8s__io___api___core___v1__AffinityIn + @join__type(graph: INFRA_API) +{ + nodeAffinity: K8s__io___api___core___v1__NodeAffinityIn + podAffinity: K8s__io___api___core___v1__PodAffinityIn + podAntiAffinity: K8s__io___api___core___v1__PodAntiAffinityIn +} + +type K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + partition: Int + readOnly: Boolean + volumeID: String! +} + +input K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + partition: Int + readOnly: Boolean + volumeID: String! +} + +type K8s__io___api___core___v1__AzureDiskVolumeSource + @join__type(graph: INFRA_API) +{ + cachingMode: String + diskName: String! + diskURI: String! + fsType: String + kind: String + readOnly: Boolean +} + +input K8s__io___api___core___v1__AzureDiskVolumeSourceIn + @join__type(graph: INFRA_API) +{ + cachingMode: String + diskName: String! + diskURI: String! + fsType: String + kind: String + readOnly: Boolean +} + +type K8s__io___api___core___v1__AzureFilePersistentVolumeSource + @join__type(graph: INFRA_API) +{ + readOnly: Boolean + secretName: String! + secretNamespace: String + shareName: String! +} + +input K8s__io___api___core___v1__AzureFilePersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + readOnly: Boolean + secretName: String! + secretNamespace: String + shareName: String! +} + +type K8s__io___api___core___v1__CephFSPersistentVolumeSource + @join__type(graph: INFRA_API) +{ + monitors: [String!]! + path: String + readOnly: Boolean + secretFile: String + secretRef: K8s__io___api___core___v1__SecretReference + user: String +} + +input K8s__io___api___core___v1__CephFSPersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + monitors: [String!]! + path: String + readOnly: Boolean + secretFile: String + secretRef: K8s__io___api___core___v1__SecretReferenceIn + user: String +} + +type K8s__io___api___core___v1__CinderPersistentVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReference + volumeID: String! +} + +input K8s__io___api___core___v1__CinderPersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReferenceIn + volumeID: String! +} + +enum K8s__io___api___core___v1__ConditionStatus + @join__type(graph: INFRA_API) +{ + False @join__enumValue(graph: INFRA_API) + True @join__enumValue(graph: INFRA_API) + Unknown @join__enumValue(graph: INFRA_API) +} + +type K8s__io___api___core___v1__CSIPersistentVolumeSource + @join__type(graph: INFRA_API) +{ + controllerExpandSecretRef: K8s__io___api___core___v1__SecretReference + controllerPublishSecretRef: K8s__io___api___core___v1__SecretReference + driver: String! + fsType: String + nodeExpandSecretRef: K8s__io___api___core___v1__SecretReference + nodePublishSecretRef: K8s__io___api___core___v1__SecretReference + nodeStageSecretRef: K8s__io___api___core___v1__SecretReference + readOnly: Boolean + volumeAttributes: Map + volumeHandle: String! +} + +input K8s__io___api___core___v1__CSIPersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + controllerExpandSecretRef: K8s__io___api___core___v1__SecretReferenceIn + controllerPublishSecretRef: K8s__io___api___core___v1__SecretReferenceIn + driver: String! + fsType: String + nodeExpandSecretRef: K8s__io___api___core___v1__SecretReferenceIn + nodePublishSecretRef: K8s__io___api___core___v1__SecretReferenceIn + nodeStageSecretRef: K8s__io___api___core___v1__SecretReferenceIn + readOnly: Boolean + volumeAttributes: Map + volumeHandle: String! +} + +type K8s__io___api___core___v1__FCVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + lun: Int + readOnly: Boolean + targetWWNs: [String!] + wwids: [String!] +} + +input K8s__io___api___core___v1__FCVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + lun: Int + readOnly: Boolean + targetWWNs: [String!] + wwids: [String!] +} + +type K8s__io___api___core___v1__FlexPersistentVolumeSource + @join__type(graph: INFRA_API) +{ + driver: String! + fsType: String + options: Map + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReference +} + +input K8s__io___api___core___v1__FlexPersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + driver: String! + fsType: String + options: Map + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReferenceIn +} + +type K8s__io___api___core___v1__FlockerVolumeSource + @join__type(graph: INFRA_API) +{ + datasetName: String + datasetUUID: String +} + +input K8s__io___api___core___v1__FlockerVolumeSourceIn + @join__type(graph: INFRA_API) +{ + datasetName: String + datasetUUID: String +} + +type K8s__io___api___core___v1__GCEPersistentDiskVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + partition: Int + pdName: String! + readOnly: Boolean +} + +input K8s__io___api___core___v1__GCEPersistentDiskVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + partition: Int + pdName: String! + readOnly: Boolean +} + +type K8s__io___api___core___v1__GlusterfsPersistentVolumeSource + @join__type(graph: INFRA_API) +{ + endpoints: String! + endpointsNamespace: String + path: String! + readOnly: Boolean +} + +input K8s__io___api___core___v1__GlusterfsPersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + endpoints: String! + endpointsNamespace: String + path: String! + readOnly: Boolean +} + +type K8s__io___api___core___v1__HostPathVolumeSource + @join__type(graph: INFRA_API) +{ + path: String! + type: String +} + +input K8s__io___api___core___v1__HostPathVolumeSourceIn + @join__type(graph: INFRA_API) +{ + path: String! + type: String +} + +type K8s__io___api___core___v1__ISCSIPersistentVolumeSource + @join__type(graph: INFRA_API) +{ + chapAuthDiscovery: Boolean + chapAuthSession: Boolean + fsType: String + initiatorName: String + iqn: String! + iscsiInterface: String + lun: Int! + portals: [String!] + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReference + targetPortal: String! +} + +input K8s__io___api___core___v1__ISCSIPersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + chapAuthDiscovery: Boolean + chapAuthSession: Boolean + fsType: String + initiatorName: String + iqn: String! + iscsiInterface: String + lun: Int! + portals: [String!] + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReferenceIn + targetPortal: String! +} + +type K8s__io___api___core___v1__LocalVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + path: String! +} + +input K8s__io___api___core___v1__LocalVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + path: String! +} + +type K8s__io___api___core___v1__NamespaceCondition + @join__type(graph: INFRA_API) +{ + lastTransitionTime: Date + message: String + reason: String + status: K8s__io___api___core___v1__ConditionStatus! + type: K8s__io___api___core___v1__NamespaceConditionType! +} + +input K8s__io___api___core___v1__NamespaceConditionIn + @join__type(graph: INFRA_API) +{ + lastTransitionTime: Date + message: String + reason: String + status: K8s__io___api___core___v1__ConditionStatus! + type: K8s__io___api___core___v1__NamespaceConditionType! +} + +enum K8s__io___api___core___v1__NamespaceConditionType + @join__type(graph: INFRA_API) +{ + NamespaceContentRemaining @join__enumValue(graph: INFRA_API) + NamespaceDeletionContentFailure @join__enumValue(graph: INFRA_API) + NamespaceDeletionDiscoveryFailure @join__enumValue(graph: INFRA_API) + NamespaceDeletionGroupVersionParsingFailure @join__enumValue(graph: INFRA_API) + NamespaceFinalizersRemaining @join__enumValue(graph: INFRA_API) +} + +enum K8s__io___api___core___v1__NamespacePhase + @join__type(graph: INFRA_API) +{ + Active @join__enumValue(graph: INFRA_API) + Terminating @join__enumValue(graph: INFRA_API) +} + +type K8s__io___api___core___v1__NamespaceSpec + @join__type(graph: INFRA_API) +{ + finalizers: [String!] +} + +input K8s__io___api___core___v1__NamespaceSpecIn + @join__type(graph: INFRA_API) +{ + finalizers: [String!] +} + +type K8s__io___api___core___v1__NamespaceStatus + @join__type(graph: INFRA_API) +{ + conditions: [K8s__io___api___core___v1__NamespaceCondition!] + phase: K8s__io___api___core___v1__NamespacePhase +} + +input K8s__io___api___core___v1__NamespaceStatusIn + @join__type(graph: INFRA_API) +{ + conditions: [K8s__io___api___core___v1__NamespaceConditionIn!] + phase: K8s__io___api___core___v1__NamespacePhase +} + +type K8s__io___api___core___v1__NFSVolumeSource + @join__type(graph: INFRA_API) +{ + path: String! + readOnly: Boolean + server: String! +} + +input K8s__io___api___core___v1__NFSVolumeSourceIn + @join__type(graph: INFRA_API) +{ + path: String! + readOnly: Boolean + server: String! +} + +type K8s__io___api___core___v1__NodeAffinity + @join__type(graph: INFRA_API) +{ + preferredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__PreferredSchedulingTerm!] + requiredDuringSchedulingIgnoredDuringExecution: K8s__io___api___core___v1__NodeSelector +} + +input K8s__io___api___core___v1__NodeAffinityIn + @join__type(graph: INFRA_API) +{ + preferredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__PreferredSchedulingTermIn!] + requiredDuringSchedulingIgnoredDuringExecution: K8s__io___api___core___v1__NodeSelectorIn +} + +type K8s__io___api___core___v1__NodeSelector + @join__type(graph: INFRA_API) +{ + nodeSelectorTerms: [K8s__io___api___core___v1__NodeSelectorTerm!]! +} + +input K8s__io___api___core___v1__NodeSelectorIn + @join__type(graph: INFRA_API) +{ + nodeSelectorTerms: [K8s__io___api___core___v1__NodeSelectorTermIn!]! +} + +enum K8s__io___api___core___v1__NodeSelectorOperator + @join__type(graph: INFRA_API) +{ + DoesNotExist @join__enumValue(graph: INFRA_API) + Exists @join__enumValue(graph: INFRA_API) + Gt @join__enumValue(graph: INFRA_API) + In @join__enumValue(graph: INFRA_API) + Lt @join__enumValue(graph: INFRA_API) + NotIn @join__enumValue(graph: INFRA_API) +} + +type K8s__io___api___core___v1__NodeSelectorRequirement + @join__type(graph: INFRA_API) +{ + key: String! + operator: K8s__io___api___core___v1__NodeSelectorOperator! + values: [String!] +} + +input K8s__io___api___core___v1__NodeSelectorRequirementIn + @join__type(graph: INFRA_API) +{ + key: String! + operator: K8s__io___api___core___v1__NodeSelectorOperator! + values: [String!] +} + +type K8s__io___api___core___v1__NodeSelectorTerm + @join__type(graph: INFRA_API) +{ + matchExpressions: [K8s__io___api___core___v1__NodeSelectorRequirement!] + matchFields: [K8s__io___api___core___v1__NodeSelectorRequirement!] +} + +input K8s__io___api___core___v1__NodeSelectorTermIn + @join__type(graph: INFRA_API) +{ + matchExpressions: [K8s__io___api___core___v1__NodeSelectorRequirementIn!] + matchFields: [K8s__io___api___core___v1__NodeSelectorRequirementIn!] +} + +type K8s__io___api___core___v1__ObjectReference + @join__type(graph: INFRA_API) +{ + apiVersion: String + fieldPath: String + kind: String + name: String + namespace: String + resourceVersion: String + uid: String +} + +input K8s__io___api___core___v1__ObjectReferenceIn + @join__type(graph: INFRA_API) +{ + apiVersion: String + fieldPath: String + kind: String + name: String + namespace: String + resourceVersion: String + uid: String +} + +type K8s__io___api___core___v1__PersistentVolumeClaimCondition + @join__type(graph: INFRA_API) +{ + lastProbeTime: Date + lastTransitionTime: Date + message: String + reason: String + status: K8s__io___api___core___v1__ConditionStatus! + type: K8s__io___api___core___v1__PersistentVolumeClaimConditionType! +} + +input K8s__io___api___core___v1__PersistentVolumeClaimConditionIn + @join__type(graph: INFRA_API) +{ + lastProbeTime: Date + lastTransitionTime: Date + message: String + reason: String + status: K8s__io___api___core___v1__ConditionStatus! + type: K8s__io___api___core___v1__PersistentVolumeClaimConditionType! +} + +enum K8s__io___api___core___v1__PersistentVolumeClaimConditionType + @join__type(graph: INFRA_API) +{ + FileSystemResizePending @join__enumValue(graph: INFRA_API) + Resizing @join__enumValue(graph: INFRA_API) +} + +enum K8s__io___api___core___v1__PersistentVolumeClaimPhase + @join__type(graph: INFRA_API) +{ + Bound @join__enumValue(graph: INFRA_API) + Lost @join__enumValue(graph: INFRA_API) + Pending @join__enumValue(graph: INFRA_API) +} + +type K8s__io___api___core___v1__PersistentVolumeClaimSpec + @join__type(graph: INFRA_API) +{ + accessModes: [String!] + dataSource: K8s__io___api___core___v1__TypedLocalObjectReference + dataSourceRef: K8s__io___api___core___v1__TypedObjectReference + resources: K8s__io___api___core___v1__ResourceRequirements + selector: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector + storageClassName: String + volumeMode: String + volumeName: String +} + +input K8s__io___api___core___v1__PersistentVolumeClaimSpecIn + @join__type(graph: INFRA_API) +{ + accessModes: [String!] + dataSource: K8s__io___api___core___v1__TypedLocalObjectReferenceIn + dataSourceRef: K8s__io___api___core___v1__TypedObjectReferenceIn + resources: K8s__io___api___core___v1__ResourceRequirementsIn + selector: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorIn + storageClassName: String + volumeMode: String + volumeName: String +} + +type K8s__io___api___core___v1__PersistentVolumeClaimStatus + @join__type(graph: INFRA_API) +{ + accessModes: [String!] + allocatedResources: Map + allocatedResourceStatuses: Map + capacity: Map + conditions: [K8s__io___api___core___v1__PersistentVolumeClaimCondition!] + phase: K8s__io___api___core___v1__PersistentVolumeClaimPhase +} + +input K8s__io___api___core___v1__PersistentVolumeClaimStatusIn + @join__type(graph: INFRA_API) +{ + accessModes: [String!] + allocatedResources: Map + allocatedResourceStatuses: Map + capacity: Map + conditions: [K8s__io___api___core___v1__PersistentVolumeClaimConditionIn!] + phase: K8s__io___api___core___v1__PersistentVolumeClaimPhase +} + +enum K8s__io___api___core___v1__PersistentVolumePhase + @join__type(graph: INFRA_API) +{ + Available @join__enumValue(graph: INFRA_API) + Bound @join__enumValue(graph: INFRA_API) + Failed @join__enumValue(graph: INFRA_API) + Pending @join__enumValue(graph: INFRA_API) + Released @join__enumValue(graph: INFRA_API) +} + +enum K8s__io___api___core___v1__PersistentVolumeReclaimPolicy + @join__type(graph: INFRA_API) +{ + Delete @join__enumValue(graph: INFRA_API) + Recycle @join__enumValue(graph: INFRA_API) + Retain @join__enumValue(graph: INFRA_API) +} + +type K8s__io___api___core___v1__PersistentVolumeSpec + @join__type(graph: INFRA_API) +{ + accessModes: [String!] + awsElasticBlockStore: K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSource + azureDisk: K8s__io___api___core___v1__AzureDiskVolumeSource + azureFile: K8s__io___api___core___v1__AzureFilePersistentVolumeSource + capacity: Map + cephfs: K8s__io___api___core___v1__CephFSPersistentVolumeSource + cinder: K8s__io___api___core___v1__CinderPersistentVolumeSource + claimRef: K8s__io___api___core___v1__ObjectReference + csi: K8s__io___api___core___v1__CSIPersistentVolumeSource + fc: K8s__io___api___core___v1__FCVolumeSource + flexVolume: K8s__io___api___core___v1__FlexPersistentVolumeSource + flocker: K8s__io___api___core___v1__FlockerVolumeSource + gcePersistentDisk: K8s__io___api___core___v1__GCEPersistentDiskVolumeSource + glusterfs: K8s__io___api___core___v1__GlusterfsPersistentVolumeSource + hostPath: K8s__io___api___core___v1__HostPathVolumeSource + iscsi: K8s__io___api___core___v1__ISCSIPersistentVolumeSource + local: K8s__io___api___core___v1__LocalVolumeSource + mountOptions: [String!] + nfs: K8s__io___api___core___v1__NFSVolumeSource + nodeAffinity: K8s__io___api___core___v1__VolumeNodeAffinity + persistentVolumeReclaimPolicy: K8s__io___api___core___v1__PersistentVolumeReclaimPolicy + photonPersistentDisk: K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource + portworxVolume: K8s__io___api___core___v1__PortworxVolumeSource + quobyte: K8s__io___api___core___v1__QuobyteVolumeSource + rbd: K8s__io___api___core___v1__RBDPersistentVolumeSource + scaleIO: K8s__io___api___core___v1__ScaleIOPersistentVolumeSource + storageClassName: String + storageos: K8s__io___api___core___v1__StorageOSPersistentVolumeSource + volumeMode: String + vsphereVolume: K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource +} + +input K8s__io___api___core___v1__PersistentVolumeSpecIn + @join__type(graph: INFRA_API) +{ + accessModes: [String!] + awsElasticBlockStore: K8s__io___api___core___v1__AWSElasticBlockStoreVolumeSourceIn + azureDisk: K8s__io___api___core___v1__AzureDiskVolumeSourceIn + azureFile: K8s__io___api___core___v1__AzureFilePersistentVolumeSourceIn + capacity: Map + cephfs: K8s__io___api___core___v1__CephFSPersistentVolumeSourceIn + cinder: K8s__io___api___core___v1__CinderPersistentVolumeSourceIn + claimRef: K8s__io___api___core___v1__ObjectReferenceIn + csi: K8s__io___api___core___v1__CSIPersistentVolumeSourceIn + fc: K8s__io___api___core___v1__FCVolumeSourceIn + flexVolume: K8s__io___api___core___v1__FlexPersistentVolumeSourceIn + flocker: K8s__io___api___core___v1__FlockerVolumeSourceIn + gcePersistentDisk: K8s__io___api___core___v1__GCEPersistentDiskVolumeSourceIn + glusterfs: K8s__io___api___core___v1__GlusterfsPersistentVolumeSourceIn + hostPath: K8s__io___api___core___v1__HostPathVolumeSourceIn + iscsi: K8s__io___api___core___v1__ISCSIPersistentVolumeSourceIn + local: K8s__io___api___core___v1__LocalVolumeSourceIn + mountOptions: [String!] + nfs: K8s__io___api___core___v1__NFSVolumeSourceIn + nodeAffinity: K8s__io___api___core___v1__VolumeNodeAffinityIn + persistentVolumeReclaimPolicy: K8s__io___api___core___v1__PersistentVolumeReclaimPolicy + photonPersistentDisk: K8s__io___api___core___v1__PhotonPersistentDiskVolumeSourceIn + portworxVolume: K8s__io___api___core___v1__PortworxVolumeSourceIn + quobyte: K8s__io___api___core___v1__QuobyteVolumeSourceIn + rbd: K8s__io___api___core___v1__RBDPersistentVolumeSourceIn + scaleIO: K8s__io___api___core___v1__ScaleIOPersistentVolumeSourceIn + storageClassName: String + storageos: K8s__io___api___core___v1__StorageOSPersistentVolumeSourceIn + volumeMode: String + vsphereVolume: K8s__io___api___core___v1__VsphereVirtualDiskVolumeSourceIn +} + +type K8s__io___api___core___v1__PersistentVolumeStatus + @join__type(graph: INFRA_API) +{ + lastPhaseTransitionTime: Date + message: String + phase: K8s__io___api___core___v1__PersistentVolumePhase + reason: String +} + +input K8s__io___api___core___v1__PersistentVolumeStatusIn + @join__type(graph: INFRA_API) +{ + lastPhaseTransitionTime: Date + message: String + phase: K8s__io___api___core___v1__PersistentVolumePhase + reason: String +} + +type K8s__io___api___core___v1__PhotonPersistentDiskVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + pdID: String! +} + +input K8s__io___api___core___v1__PhotonPersistentDiskVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + pdID: String! +} + +type K8s__io___api___core___v1__PodAffinity + @join__type(graph: INFRA_API) +{ + preferredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__WeightedPodAffinityTerm!] + requiredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__PodAffinityTerm!] +} + +input K8s__io___api___core___v1__PodAffinityIn + @join__type(graph: INFRA_API) +{ + preferredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__WeightedPodAffinityTermIn!] + requiredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__PodAffinityTermIn!] +} + +type K8s__io___api___core___v1__PodAffinityTerm + @join__type(graph: INFRA_API) +{ + labelSelector: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector + namespaces: [String!] + namespaceSelector: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector + topologyKey: String! +} + +input K8s__io___api___core___v1__PodAffinityTermIn + @join__type(graph: INFRA_API) +{ + labelSelector: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorIn + namespaces: [String!] + namespaceSelector: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorIn + topologyKey: String! +} + +type K8s__io___api___core___v1__PodAntiAffinity + @join__type(graph: INFRA_API) +{ + preferredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__WeightedPodAffinityTerm!] + requiredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__PodAffinityTerm!] +} + +input K8s__io___api___core___v1__PodAntiAffinityIn + @join__type(graph: INFRA_API) +{ + preferredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__WeightedPodAffinityTermIn!] + requiredDuringSchedulingIgnoredDuringExecution: [K8s__io___api___core___v1__PodAffinityTermIn!] +} + +type K8s__io___api___core___v1__PortworxVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + readOnly: Boolean + volumeID: String! +} + +input K8s__io___api___core___v1__PortworxVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + readOnly: Boolean + volumeID: String! +} + +type K8s__io___api___core___v1__PreferredSchedulingTerm + @join__type(graph: INFRA_API) +{ + preference: K8s__io___api___core___v1__NodeSelectorTerm! + weight: Int! +} + +input K8s__io___api___core___v1__PreferredSchedulingTermIn + @join__type(graph: INFRA_API) +{ + preference: K8s__io___api___core___v1__NodeSelectorTermIn! + weight: Int! +} + +type K8s__io___api___core___v1__QuobyteVolumeSource + @join__type(graph: INFRA_API) +{ + group: String + readOnly: Boolean + registry: String! + tenant: String + user: String + volume: String! +} + +input K8s__io___api___core___v1__QuobyteVolumeSourceIn + @join__type(graph: INFRA_API) +{ + group: String + readOnly: Boolean + registry: String! + tenant: String + user: String + volume: String! +} + +type K8s__io___api___core___v1__RBDPersistentVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + image: String! + keyring: String + monitors: [String!]! + pool: String + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReference + user: String +} + +input K8s__io___api___core___v1__RBDPersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + image: String! + keyring: String + monitors: [String!]! + pool: String + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReferenceIn + user: String +} + +type K8s__io___api___core___v1__ResourceClaim + @join__type(graph: INFRA_API) +{ + name: String! +} + +input K8s__io___api___core___v1__ResourceClaimIn + @join__type(graph: INFRA_API) +{ + name: String! +} + +type K8s__io___api___core___v1__ResourceRequirements + @join__type(graph: INFRA_API) +{ + claims: [K8s__io___api___core___v1__ResourceClaim!] + limits: Map + requests: Map +} + +input K8s__io___api___core___v1__ResourceRequirementsIn + @join__type(graph: INFRA_API) +{ + claims: [K8s__io___api___core___v1__ResourceClaimIn!] + limits: Map + requests: Map +} + +type K8s__io___api___core___v1__ScaleIOPersistentVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + gateway: String! + protectionDomain: String + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReference + sslEnabled: Boolean + storageMode: String + storagePool: String + system: String! + volumeName: String +} + +input K8s__io___api___core___v1__ScaleIOPersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + gateway: String! + protectionDomain: String + readOnly: Boolean + secretRef: K8s__io___api___core___v1__SecretReferenceIn + sslEnabled: Boolean + storageMode: String + storagePool: String + system: String! + volumeName: String +} + +type K8s__io___api___core___v1__Secret + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + data: Map + immutable: Boolean + kind: String + metadata: Metadata + stringData: Map + type: K8s__io___api___core___v1__SecretType +} + +type K8s__io___api___core___v1__SecretReference + @join__type(graph: INFRA_API) +{ + name: String + namespace: String +} + +input K8s__io___api___core___v1__SecretReferenceIn + @join__type(graph: INFRA_API) +{ + name: String + namespace: String +} + +enum K8s__io___api___core___v1__SecretType + @join__type(graph: CONSOLE_API) +{ + bootstrap__kubernetes__io___token @join__enumValue(graph: CONSOLE_API) + kubernetes__io___basic____auth @join__enumValue(graph: CONSOLE_API) + kubernetes__io___dockercfg @join__enumValue(graph: CONSOLE_API) + kubernetes__io___dockerconfigjson @join__enumValue(graph: CONSOLE_API) + kubernetes__io___service____account____token @join__enumValue(graph: CONSOLE_API) + kubernetes__io___ssh____auth @join__enumValue(graph: CONSOLE_API) + kubernetes__io___tls @join__enumValue(graph: CONSOLE_API) + Opaque @join__enumValue(graph: CONSOLE_API) +} + +type K8s__io___api___core___v1__StorageOSPersistentVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + readOnly: Boolean + secretRef: K8s__io___api___core___v1__ObjectReference + volumeName: String + volumeNamespace: String +} + +input K8s__io___api___core___v1__StorageOSPersistentVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + readOnly: Boolean + secretRef: K8s__io___api___core___v1__ObjectReferenceIn + volumeName: String + volumeNamespace: String +} + +type K8s__io___api___core___v1__Taint + @join__type(graph: INFRA_API) +{ + effect: K8s__io___api___core___v1__TaintEffect! + key: String! + timeAdded: Date + value: String +} + +enum K8s__io___api___core___v1__TaintEffect + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + NoExecute @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: INFRA_API) + NoSchedule @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: INFRA_API) + PreferNoSchedule @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: INFRA_API) +} + +input K8s__io___api___core___v1__TaintIn + @join__type(graph: INFRA_API) +{ + effect: K8s__io___api___core___v1__TaintEffect! + key: String! + timeAdded: Date + value: String +} + +type K8s__io___api___core___v1__Toleration + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + effect: K8s__io___api___core___v1__TaintEffect + key: String + operator: K8s__io___api___core___v1__TolerationOperator + tolerationSeconds: Int + value: String +} + +input K8s__io___api___core___v1__TolerationIn + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + effect: K8s__io___api___core___v1__TaintEffect + key: String + operator: K8s__io___api___core___v1__TolerationOperator + tolerationSeconds: Int + value: String +} + +enum K8s__io___api___core___v1__TolerationOperator + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + Equal @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: INFRA_API) + Exists @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: INFRA_API) +} + +type K8s__io___api___core___v1__TopologySpreadConstraint + @join__type(graph: CONSOLE_API) +{ + labelSelector: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector + matchLabelKeys: [String!] + maxSkew: Int! + minDomains: Int + nodeAffinityPolicy: String + nodeTaintsPolicy: String + topologyKey: String! + whenUnsatisfiable: K8s__io___api___core___v1__UnsatisfiableConstraintAction! +} + +input K8s__io___api___core___v1__TopologySpreadConstraintIn + @join__type(graph: CONSOLE_API) +{ + labelSelector: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorIn + matchLabelKeys: [String!] + maxSkew: Int! + minDomains: Int + nodeAffinityPolicy: String + nodeTaintsPolicy: String + topologyKey: String! + whenUnsatisfiable: K8s__io___api___core___v1__UnsatisfiableConstraintAction! +} + +type K8s__io___api___core___v1__TypedLocalObjectReference + @join__type(graph: INFRA_API) +{ + apiGroup: String + kind: String! + name: String! +} + +input K8s__io___api___core___v1__TypedLocalObjectReferenceIn + @join__type(graph: INFRA_API) +{ + apiGroup: String + kind: String! + name: String! +} + +type K8s__io___api___core___v1__TypedObjectReference + @join__type(graph: INFRA_API) +{ + apiGroup: String + kind: String! + name: String! + namespace: String +} + +input K8s__io___api___core___v1__TypedObjectReferenceIn + @join__type(graph: INFRA_API) +{ + apiGroup: String + kind: String! + name: String! + namespace: String +} + +enum K8s__io___api___core___v1__UnsatisfiableConstraintAction + @join__type(graph: CONSOLE_API) +{ + DoNotSchedule @join__enumValue(graph: CONSOLE_API) + ScheduleAnyway @join__enumValue(graph: CONSOLE_API) +} + +type K8s__io___api___core___v1__VolumeNodeAffinity + @join__type(graph: INFRA_API) +{ + required: K8s__io___api___core___v1__NodeSelector +} + +input K8s__io___api___core___v1__VolumeNodeAffinityIn + @join__type(graph: INFRA_API) +{ + required: K8s__io___api___core___v1__NodeSelectorIn +} + +type K8s__io___api___core___v1__VsphereVirtualDiskVolumeSource + @join__type(graph: INFRA_API) +{ + fsType: String + storagePolicyID: String + storagePolicyName: String + volumePath: String! +} + +input K8s__io___api___core___v1__VsphereVirtualDiskVolumeSourceIn + @join__type(graph: INFRA_API) +{ + fsType: String + storagePolicyID: String + storagePolicyName: String + volumePath: String! +} + +type K8s__io___api___core___v1__WeightedPodAffinityTerm + @join__type(graph: INFRA_API) +{ + podAffinityTerm: K8s__io___api___core___v1__PodAffinityTerm! + weight: Int! +} + +input K8s__io___api___core___v1__WeightedPodAffinityTermIn + @join__type(graph: INFRA_API) +{ + podAffinityTerm: K8s__io___api___core___v1__PodAffinityTermIn! + weight: Int! +} + +type K8s__io___api___storage___v1__VolumeAttachmentSource + @join__type(graph: INFRA_API) +{ + inlineVolumeSpec: K8s__io___api___core___v1__PersistentVolumeSpec + persistentVolumeName: String +} + +input K8s__io___api___storage___v1__VolumeAttachmentSourceIn + @join__type(graph: INFRA_API) +{ + inlineVolumeSpec: K8s__io___api___core___v1__PersistentVolumeSpecIn + persistentVolumeName: String +} + +type K8s__io___api___storage___v1__VolumeAttachmentSpec + @join__type(graph: INFRA_API) +{ + attacher: String! + nodeName: String! + source: K8s__io___api___storage___v1__VolumeAttachmentSource! +} + +input K8s__io___api___storage___v1__VolumeAttachmentSpecIn + @join__type(graph: INFRA_API) +{ + attacher: String! + nodeName: String! + source: K8s__io___api___storage___v1__VolumeAttachmentSourceIn! +} + +type K8s__io___api___storage___v1__VolumeAttachmentStatus + @join__type(graph: INFRA_API) +{ + attached: Boolean! + attachError: K8s__io___api___storage___v1__VolumeError + attachmentMetadata: Map + detachError: K8s__io___api___storage___v1__VolumeError +} + +input K8s__io___api___storage___v1__VolumeAttachmentStatusIn + @join__type(graph: INFRA_API) +{ + attached: Boolean! + attachError: K8s__io___api___storage___v1__VolumeErrorIn + attachmentMetadata: Map + detachError: K8s__io___api___storage___v1__VolumeErrorIn +} + +type K8s__io___api___storage___v1__VolumeError + @join__type(graph: INFRA_API) +{ + message: String + time: Date +} + +input K8s__io___api___storage___v1__VolumeErrorIn + @join__type(graph: INFRA_API) +{ + message: String + time: Date +} + +enum K8s__io___apimachinery___pkg___api___resource__Format + @join__type(graph: INFRA_API) +{ + BinarySI @join__enumValue(graph: INFRA_API) + DecimalExponent @join__enumValue(graph: INFRA_API) + DecimalSI @join__enumValue(graph: INFRA_API) +} + +type K8s__io___apimachinery___pkg___api___resource__Quantity + @join__type(graph: INFRA_API) +{ + Format: K8s__io___apimachinery___pkg___api___resource__Format! +} + +input K8s__io___apimachinery___pkg___api___resource__QuantityIn + @join__type(graph: INFRA_API) +{ + Format: K8s__io___apimachinery___pkg___api___resource__Format! +} + +type K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + matchExpressions: [K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement!] + matchLabels: Map +} + +input K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorIn + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + matchExpressions: [K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirementIn!] + matchLabels: Map +} + +enum K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorOperator + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + DoesNotExist @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: INFRA_API) + Exists @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: INFRA_API) + In @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: INFRA_API) + NotIn @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: INFRA_API) +} + +type K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + key: String! + operator: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorOperator! + values: [String!] +} + +input K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirementIn + @join__type(graph: CONSOLE_API) + @join__type(graph: INFRA_API) +{ + key: String! + operator: K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorOperator! + values: [String!] +} + +scalar link__Import + +enum link__Purpose { + """ + `SECURITY` features provide metadata necessary to securely resolve fields. + """ + SECURITY + + """ + `EXECUTION` features provide metadata necessary for operation execution. + """ + EXECUTION +} + +type ManagedResource + @join__type(graph: CONSOLE_API) +{ + accountName: String! + apiVersion: String + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + enabled: Boolean + environmentName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + projectName: String! + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpec! + status: Github__com___kloudlite___operator___pkg___operator__Status + syncedOutputSecretRef: K8s__io___api___core___v1__Secret + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type ManagedResourceEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: ManagedResource! +} + +input ManagedResourceIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + displayName: String! + enabled: Boolean + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpecIn! +} + +type ManagedResourceKeyRef + @join__type(graph: CONSOLE_API) +{ + key: String! + mresName: String! +} + +input ManagedResourceKeyRefIn + @join__type(graph: CONSOLE_API) +{ + key: String! + mresName: String! +} + +type ManagedResourceKeyValueRef + @join__type(graph: CONSOLE_API) +{ + key: String! + mresName: String! + value: String! +} + +input ManagedResourceKeyValueRefIn + @join__type(graph: CONSOLE_API) +{ + key: String! + mresName: String! + value: String! +} + +type ManagedResourcePaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [ManagedResourceEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +scalar Map + @join__type(graph: ACCOUNT_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) + +type MatchFilter + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + array: [Any!] + exact: Any + matchType: MatchFilterMatchType! + regex: String +} + +input MatchFilterIn + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + array: [Any!] + exact: Any + matchType: MatchFilterMatchType! + regex: String +} + +enum MatchFilterMatchType + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + array @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + exact @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) + regex @join__enumValue(graph: CONSOLE_API) @join__enumValue(graph: CONTAINER_REGISTRY_API) @join__enumValue(graph: INFRA_API) +} + +type Metadata + @join__type(graph: ACCOUNT_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + annotations: Map + creationTimestamp: Date! + deletionTimestamp: Date + generation: Int! + labels: Map + name: String! + namespace: String +} + +input MetadataIn + @join__type(graph: ACCOUNT_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + annotations: Map + labels: Map + name: String! + namespace: String +} + +type MsvcTemplate + @join__type(graph: INFRA_API) +{ + category: String! + displayName: String! + items: [Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry!]! +} + +type Mutation + @join__type(graph: ACCOUNT_API) + @join__type(graph: AUTH_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + accounts_createAccount(account: AccountIn!): Account! @join__field(graph: ACCOUNT_API) + accounts_updateAccount(account: AccountIn!): Account! @join__field(graph: ACCOUNT_API) + accounts_deactivateAccount(accountName: String!): Boolean! @join__field(graph: ACCOUNT_API) + accounts_activateAccount(accountName: String!): Boolean! @join__field(graph: ACCOUNT_API) + accounts_deleteAccount(accountName: String!): Boolean! @join__field(graph: ACCOUNT_API) + accounts_inviteMembers(accountName: String!, invitations: [InvitationIn!]!): [Invitation!] @join__field(graph: ACCOUNT_API) + accounts_resendInviteMail(accountName: String!, invitationId: String!): Boolean! @join__field(graph: ACCOUNT_API) + accounts_deleteInvitation(accountName: String!, invitationId: String!): Boolean! @join__field(graph: ACCOUNT_API) + accounts_acceptInvitation(accountName: String!, inviteToken: String!): Boolean! @join__field(graph: ACCOUNT_API) + accounts_rejectInvitation(accountName: String!, inviteToken: String!): Boolean! @join__field(graph: ACCOUNT_API) + accounts_removeAccountMembership(accountName: String!, memberId: ID!): Boolean! @join__field(graph: ACCOUNT_API) + accounts_updateAccountMembership(accountName: String!, memberId: ID!, role: Github__com___kloudlite___api___apps___iam___types__Role!): Boolean! @join__field(graph: ACCOUNT_API) + auth_setRemoteAuthHeader(loginId: String!, authHeader: String): Boolean! @join__field(graph: AUTH_API) + auth_createRemoteLogin(secret: String): String! @join__field(graph: AUTH_API) + auth_login(email: String!, password: String!): Session @join__field(graph: AUTH_API) + auth_signup(name: String!, email: String!, password: String!): Session @join__field(graph: AUTH_API) + oAuth_login(provider: String!, code: String!, state: String): Session! @join__field(graph: AUTH_API) + oAuth_addLogin(provider: String!, state: String!, code: String!): Boolean! @join__field(graph: AUTH_API) + auth_logout: Boolean! @join__field(graph: AUTH_API) + auth_setMetadata(values: Json!): User! @join__field(graph: AUTH_API) + auth_clearMetadata: User! @join__field(graph: AUTH_API) + auth_verifyEmail(token: String!): Session! @join__field(graph: AUTH_API) + auth_resetPassword(token: String!, password: String!): Boolean! @join__field(graph: AUTH_API) + auth_requestResetPassword(email: String!): Boolean! @join__field(graph: AUTH_API) + auth_changeEmail(email: String!): Boolean! @join__field(graph: AUTH_API) + auth_resendVerificationEmail: Boolean! @join__field(graph: AUTH_API) + auth_changePassword(currentPassword: String!, newPassword: String!): Boolean! @join__field(graph: AUTH_API) + core_createProject(project: ProjectIn!): Project @join__field(graph: CONSOLE_API) + core_updateProject(project: ProjectIn!): Project @join__field(graph: CONSOLE_API) + core_deleteProject(name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_createEnvironment(projectName: String!, env: EnvironmentIn!): Environment @join__field(graph: CONSOLE_API) + core_updateEnvironment(projectName: String!, env: EnvironmentIn!): Environment @join__field(graph: CONSOLE_API) + core_deleteEnvironment(projectName: String!, envName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_cloneEnvironment(projectName: String!, sourceEnvName: String!, destinationEnvName: String!, displayName: String!, environmentRoutingMode: Github__com___kloudlite___operator___apis___crds___v1__EnvironmentRoutingMode!): Environment @join__field(graph: CONSOLE_API) + core_createImagePullSecret(projectName: String!, envName: String!, imagePullSecretIn: ImagePullSecretIn!): ImagePullSecret @join__field(graph: CONSOLE_API) + core_deleteImagePullSecret(projectName: String!, envName: String!, secretName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_createApp(projectName: String!, envName: String!, app: AppIn!): App @join__field(graph: CONSOLE_API) + core_updateApp(projectName: String!, envName: String!, app: AppIn!): App @join__field(graph: CONSOLE_API) + core_deleteApp(projectName: String!, envName: String!, appName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_interceptApp(projectName: String!, envName: String!, appname: String!, deviceName: String!, intercept: Boolean!): Boolean! @join__field(graph: CONSOLE_API) + core_createConfig(projectName: String!, envName: String!, config: ConfigIn!): Config @join__field(graph: CONSOLE_API) + core_updateConfig(projectName: String!, envName: String!, config: ConfigIn!): Config @join__field(graph: CONSOLE_API) + core_deleteConfig(projectName: String!, envName: String!, configName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_createSecret(projectName: String!, envName: String!, secret: SecretIn!): Secret @join__field(graph: CONSOLE_API) + core_updateSecret(projectName: String!, envName: String!, secret: SecretIn!): Secret @join__field(graph: CONSOLE_API) + core_deleteSecret(projectName: String!, envName: String!, secretName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_createRouter(projectName: String!, envName: String!, router: RouterIn!): Router @join__field(graph: CONSOLE_API) + core_updateRouter(projectName: String!, envName: String!, router: RouterIn!): Router @join__field(graph: CONSOLE_API) + core_deleteRouter(projectName: String!, envName: String!, routerName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_createManagedResource(projectName: String!, envName: String!, mres: ManagedResourceIn!): ManagedResource @join__field(graph: CONSOLE_API) + core_updateManagedResource(projectName: String!, envName: String!, mres: ManagedResourceIn!): ManagedResource @join__field(graph: CONSOLE_API) + core_deleteManagedResource(projectName: String!, envName: String!, mresName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_createProjectManagedService(projectName: String!, pmsvc: ProjectManagedServiceIn!): ProjectManagedService @join__field(graph: CONSOLE_API) + core_updateProjectManagedService(projectName: String!, pmsvc: ProjectManagedServiceIn!): ProjectManagedService @join__field(graph: CONSOLE_API) + core_deleteProjectManagedService(projectName: String!, pmsvcName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_createVPNDevice(vpnDevice: ConsoleVPNDeviceIn!): ConsoleVPNDevice @join__field(graph: CONSOLE_API) + core_updateVPNDevice(vpnDevice: ConsoleVPNDeviceIn!): ConsoleVPNDevice @join__field(graph: CONSOLE_API) + core_updateVPNDevicePorts(deviceName: String!, ports: [PortIn!]!): Boolean! @join__field(graph: CONSOLE_API) + core_updateVPNDeviceEnv(deviceName: String!, projectName: String!, envName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_updateVpnDeviceNs(deviceName: String!, ns: String!): Boolean! @join__field(graph: CONSOLE_API) + core_updateVpnClusterName(deviceName: String!, clusterName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_deleteVPNDevice(deviceName: String!): Boolean! @join__field(graph: CONSOLE_API) + cr_createRepo(repository: RepositoryIn!): Repository @join__field(graph: CONTAINER_REGISTRY_API) + cr_createCred(credential: CredentialIn!): Credential @join__field(graph: CONTAINER_REGISTRY_API) + cr_deleteRepo(name: String!): Boolean! @join__field(graph: CONTAINER_REGISTRY_API) + cr_deleteCred(username: String!): Boolean! @join__field(graph: CONTAINER_REGISTRY_API) + cr_deleteDigest(repoName: String!, digest: String!): Boolean! @join__field(graph: CONTAINER_REGISTRY_API) + cr_addBuild(build: BuildIn!): Build @join__field(graph: CONTAINER_REGISTRY_API) + cr_updateBuild(id: ID!, build: BuildIn!): Build @join__field(graph: CONTAINER_REGISTRY_API) + cr_deleteBuild(id: ID!): Boolean! @join__field(graph: CONTAINER_REGISTRY_API) + cr_triggerBuild(id: ID!): Boolean! @join__field(graph: CONTAINER_REGISTRY_API) + infra_createCluster(cluster: ClusterIn!): Cluster @join__field(graph: INFRA_API) + infra_updateCluster(cluster: ClusterIn!): Cluster @join__field(graph: INFRA_API) + infra_deleteCluster(name: String!): Boolean! @join__field(graph: INFRA_API) + infra_createBYOKCluster(cluster: BYOKClusterIn!): BYOKCluster @join__field(graph: INFRA_API) + infra_upgradeHelmKloudliteAgent(clusterName: String!): Boolean! @join__field(graph: INFRA_API) + infra_createProviderSecret(secret: CloudProviderSecretIn!): CloudProviderSecret @join__field(graph: INFRA_API) + infra_updateProviderSecret(secret: CloudProviderSecretIn!): CloudProviderSecret @join__field(graph: INFRA_API) + infra_deleteProviderSecret(secretName: String!): Boolean! @join__field(graph: INFRA_API) + infra_createDomainEntry(domainEntry: DomainEntryIn!): DomainEntry @join__field(graph: INFRA_API) + infra_updateDomainEntry(domainEntry: DomainEntryIn!): DomainEntry @join__field(graph: INFRA_API) + infra_deleteDomainEntry(domainName: String!): Boolean! @join__field(graph: INFRA_API) + infra_createNodePool(clusterName: String!, pool: NodePoolIn!): NodePool @join__field(graph: INFRA_API) + infra_updateNodePool(clusterName: String!, pool: NodePoolIn!): NodePool @join__field(graph: INFRA_API) + infra_deleteNodePool(clusterName: String!, poolName: String!): Boolean! @join__field(graph: INFRA_API) + infra_createClusterManagedService(clusterName: String!, service: ClusterManagedServiceIn!): ClusterManagedService @join__field(graph: INFRA_API) + infra_updateClusterManagedService(clusterName: String!, service: ClusterManagedServiceIn!): ClusterManagedService @join__field(graph: INFRA_API) + infra_deleteClusterManagedService(clusterName: String!, serviceName: String!): Boolean! @join__field(graph: INFRA_API) + infra_createHelmRelease(clusterName: String!, release: HelmReleaseIn!): HelmRelease @join__field(graph: INFRA_API) + infra_updateHelmRelease(clusterName: String!, release: HelmReleaseIn!): HelmRelease @join__field(graph: INFRA_API) + infra_deleteHelmRelease(clusterName: String!, releaseName: String!): Boolean! @join__field(graph: INFRA_API) + infra_deletePV(clusterName: String!, pvName: String!): Boolean! @join__field(graph: INFRA_API) +} + +type Namespace + @join__type(graph: INFRA_API) +{ + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: K8s__io___api___core___v1__NamespaceSpec + status: K8s__io___api___core___v1__NamespaceStatus + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type NamespaceEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: Namespace! +} + +input NamespaceIn + @join__type(graph: INFRA_API) +{ + apiVersion: String + kind: String + metadata: MetadataIn + spec: K8s__io___api___core___v1__NamespaceSpecIn + status: K8s__io___api___core___v1__NamespaceStatusIn +} + +type NamespacePaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [NamespaceEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type Node + @join__type(graph: INFRA_API) +{ + accountName: String! + apiVersion: String + clusterName: String! + creationTime: Date! + id: ID! + kind: String + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___clusters___v1__NodeSpec! + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type NodeEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: Node! +} + +input NodeIn + @join__type(graph: INFRA_API) +{ + apiVersion: String + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___clusters___v1__NodeSpecIn! +} + +type NodePaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [NodeEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type NodePool + @join__type(graph: INFRA_API) +{ + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpec! + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type NodePoolEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: NodePool! +} + +input NodePoolIn + @join__type(graph: INFRA_API) +{ + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___clusters___v1__NodePoolSpecIn! +} + +type NodePoolPaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [NodePoolEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type OAuthProviderStatus + @join__type(graph: AUTH_API) +{ + provider: String! + enabled: Boolean! +} + +type PageInfo + @join__type(graph: ACCOUNT_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + endCursor: String + hasNextPage: Boolean + hasPreviousPage: Boolean + startCursor: String +} + +type Pagination + @join__type(graph: CONTAINER_REGISTRY_API) +{ + page: Int + per_page: Int +} + +input PaginationIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + page: Int + per_page: Int +} + +type PersistentVolume + @join__type(graph: INFRA_API) +{ + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: K8s__io___api___core___v1__PersistentVolumeSpec + status: K8s__io___api___core___v1__PersistentVolumeStatus + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type PersistentVolumeClaim + @join__type(graph: INFRA_API) +{ + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: K8s__io___api___core___v1__PersistentVolumeClaimSpec + status: K8s__io___api___core___v1__PersistentVolumeClaimStatus + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type PersistentVolumeClaimEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: PersistentVolumeClaim! +} + +type PersistentVolumeClaimPaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [PersistentVolumeClaimEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type PersistentVolumeEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: PersistentVolume! +} + +input PersistentVolumeIn + @join__type(graph: INFRA_API) +{ + apiVersion: String + kind: String + metadata: MetadataIn + spec: K8s__io___api___core___v1__PersistentVolumeSpecIn + status: K8s__io___api___core___v1__PersistentVolumeStatusIn +} + +type PersistentVolumePaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [PersistentVolumeEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type Port + @join__type(graph: CONSOLE_API) +{ + port: Int + targetPort: Int +} + +input PortIn + @join__type(graph: CONSOLE_API) +{ + port: Int + targetPort: Int +} + +type Project + @join__type(graph: CONSOLE_API) +{ + accountName: String! + apiVersion: String + clusterName: String + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__ProjectSpec! + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type ProjectEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: Project! +} + +input ProjectIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + clusterName: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__ProjectSpecIn! +} + +type ProjectManagedService + @join__type(graph: CONSOLE_API) +{ + accountName: String! + apiVersion: String + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + projectName: String! + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__ProjectManagedServiceSpec + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type ProjectManagedServiceEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: ProjectManagedService! +} + +input ProjectManagedServiceIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + displayName: String! + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__ProjectManagedServiceSpecIn +} + +type ProjectManagedServicePaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [ProjectManagedServiceEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type ProjectPaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [ProjectEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +scalar ProviderDetail + @join__type(graph: AUTH_API) + +type Query + @join__type(graph: ACCOUNT_API) + @join__type(graph: AUTH_API) + @join__type(graph: CONSOLE_API) + @join__type(graph: CONTAINER_REGISTRY_API) + @join__type(graph: INFRA_API) +{ + accounts_listAccounts: [Account] @join__field(graph: ACCOUNT_API) + accounts_getAccount(accountName: String!): Account @join__field(graph: ACCOUNT_API) + accounts_resyncAccount(accountName: String!): Boolean! @join__field(graph: ACCOUNT_API) + accounts_listInvitations(accountName: String!): [Invitation!] @join__field(graph: ACCOUNT_API) + accounts_getInvitation(accountName: String!, invitationId: String!): Invitation @join__field(graph: ACCOUNT_API) + accounts_listInvitationsForUser(onlyPending: Boolean!): [Invitation!] @join__field(graph: ACCOUNT_API) + accounts_checkNameAvailability(name: String!): AccountsCheckNameAvailabilityOutput! @join__field(graph: ACCOUNT_API) + accounts_listMembershipsForUser: [AccountMembership!] @join__field(graph: ACCOUNT_API) + accounts_listMembershipsForAccount(accountName: String!, role: Github__com___kloudlite___api___apps___iam___types__Role): [AccountMembership!] @join__field(graph: ACCOUNT_API) + accounts_getAccountMembership(accountName: String!): AccountMembership @join__field(graph: ACCOUNT_API) + accounts_ensureKloudliteRegistryPullSecrets(accountName: String!): Boolean! @join__field(graph: ACCOUNT_API) + auth_me: User @join__field(graph: AUTH_API) + auth_findByEmail(email: String!): User @join__field(graph: AUTH_API) + oAuth_requestLogin(provider: String!, state: String): URL! @join__field(graph: AUTH_API) + auth_getRemoteLogin(loginId: String!, secret: String!): RemoteLogin @join__field(graph: AUTH_API) + auth_listOAuthProviders: [OAuthProviderStatus!] @join__field(graph: AUTH_API) + core_checkNameAvailability(projectName: String, envName: String, resType: ConsoleResType!, name: String!): ConsoleCheckNameAvailabilityOutput! @join__field(graph: CONSOLE_API) + core_listProjects(search: SearchProjects, pq: CursorPaginationIn): ProjectPaginatedRecords @join__field(graph: CONSOLE_API) + core_getProject(name: String!): Project @join__field(graph: CONSOLE_API) + core_resyncProject(name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_listEnvironments(projectName: String!, search: SearchEnvironments, pq: CursorPaginationIn): EnvironmentPaginatedRecords @join__field(graph: CONSOLE_API) + core_getEnvironment(projectName: String!, name: String!): Environment @join__field(graph: CONSOLE_API) + core_resyncEnvironment(projectName: String!, name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_listImagePullSecrets(projectName: String!, envName: String!, search: SearchImagePullSecrets, pq: CursorPaginationIn): ImagePullSecretPaginatedRecords @join__field(graph: CONSOLE_API) + core_getImagePullSecret(projectName: String!, envName: String!, name: String!): ImagePullSecret @join__field(graph: CONSOLE_API) + core_resyncImagePullSecret(projectName: String!, envName: String!, name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_listApps(projectName: String!, envName: String!, search: SearchApps, pq: CursorPaginationIn): AppPaginatedRecords @join__field(graph: CONSOLE_API) + core_getApp(projectName: String!, envName: String!, name: String!): App @join__field(graph: CONSOLE_API) + core_resyncApp(projectName: String!, envName: String!, name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_restartApp(projectName: String!, envName: String!, appName: String!): Boolean! @join__field(graph: CONSOLE_API) + core_getConfigValues(projectName: String!, envName: String!, queries: [ConfigKeyRefIn]): [ConfigKeyValueRef!] @join__field(graph: CONSOLE_API) + core_listConfigs(projectName: String!, envName: String!, search: SearchConfigs, pq: CursorPaginationIn): ConfigPaginatedRecords @join__field(graph: CONSOLE_API) + core_getConfig(projectName: String!, envName: String!, name: String!): Config @join__field(graph: CONSOLE_API) + core_resyncConfig(projectName: String!, envName: String!, name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_getSecretValues(projectName: String!, envName: String!, queries: [SecretKeyRefIn!]): [SecretKeyValueRef!] @join__field(graph: CONSOLE_API) + core_listSecrets(projectName: String!, envName: String!, search: SearchSecrets, pq: CursorPaginationIn): SecretPaginatedRecords @join__field(graph: CONSOLE_API) + core_getSecret(projectName: String!, envName: String!, name: String!): Secret @join__field(graph: CONSOLE_API) + core_resyncSecret(projectName: String!, envName: String!, name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_listRouters(projectName: String!, envName: String!, search: SearchRouters, pq: CursorPaginationIn): RouterPaginatedRecords @join__field(graph: CONSOLE_API) + core_getRouter(projectName: String!, envName: String!, name: String!): Router @join__field(graph: CONSOLE_API) + core_resyncRouter(projectName: String!, envName: String!, name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_getManagedResouceOutputKeys(projectName: String!, envName: String!, name: String!): [String!]! @join__field(graph: CONSOLE_API) + core_getManagedResouceOutputKeyValues(projectName: String!, envName: String!, keyrefs: [ManagedResourceKeyRefIn]): [ManagedResourceKeyValueRef!]! @join__field(graph: CONSOLE_API) + core_listManagedResources(projectName: String!, envName: String!, search: SearchManagedResources, pq: CursorPaginationIn): ManagedResourcePaginatedRecords @join__field(graph: CONSOLE_API) + core_getManagedResource(projectName: String!, envName: String!, name: String!): ManagedResource @join__field(graph: CONSOLE_API) + core_resyncManagedResource(projectName: String!, envName: String!, name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_listProjectManagedServices(projectName: String!, search: SearchProjectManagedService, pq: CursorPaginationIn): ProjectManagedServicePaginatedRecords @join__field(graph: CONSOLE_API) + core_getProjectManagedService(projectName: String!, name: String!): ProjectManagedService @join__field(graph: CONSOLE_API) + core_resyncProjectManagedService(projectName: String!, name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_restartProjectManagedService(projectName: String!, name: String!): Boolean! @join__field(graph: CONSOLE_API) + core_listVPNDevices(search: CoreSearchVPNDevices, pq: CursorPaginationIn): ConsoleVPNDevicePaginatedRecords @join__field(graph: CONSOLE_API) + core_listVPNDevicesForUser: [ConsoleVPNDevice!] @join__field(graph: CONSOLE_API) + core_getVPNDevice(name: String!): ConsoleVPNDevice @join__field(graph: CONSOLE_API) + cr_listRepos(search: SearchRepos, pagination: CursorPaginationIn): RepositoryPaginatedRecords @join__field(graph: CONTAINER_REGISTRY_API) + cr_listCreds(search: SearchCreds, pagination: CursorPaginationIn): CredentialPaginatedRecords @join__field(graph: CONTAINER_REGISTRY_API) + cr_listDigests(repoName: String!, search: SearchRepos, pagination: CursorPaginationIn): DigestPaginatedRecords @join__field(graph: CONTAINER_REGISTRY_API) + cr_getCredToken(username: String!): String! @join__field(graph: CONTAINER_REGISTRY_API) + cr_checkUserNameAvailability(name: String!): CRCheckNameAvailabilityOutput! @join__field(graph: CONTAINER_REGISTRY_API) + cr_getBuild(id: ID!): Build @join__field(graph: CONTAINER_REGISTRY_API) + cr_listBuilds(repoName: String!, search: SearchBuilds, pagination: CursorPaginationIn): BuildPaginatedRecords @join__field(graph: CONTAINER_REGISTRY_API) + cr_listGithubInstallations(pagination: PaginationIn): [GithubInstallation!] @join__field(graph: CONTAINER_REGISTRY_API) + cr_listGithubRepos(installationId: Int!, pagination: PaginationIn): GithubListRepository @join__field(graph: CONTAINER_REGISTRY_API) + cr_searchGithubRepos(organization: String!, search: String!, pagination: PaginationIn): GithubSearchRepository @join__field(graph: CONTAINER_REGISTRY_API) + cr_listGithubBranches(repoUrl: String!, pagination: PaginationIn): [GitBranch!] @join__field(graph: CONTAINER_REGISTRY_API) + cr_listGitlabGroups(query: String, pagination: PaginationIn): [GitlabGroup!] @join__field(graph: CONTAINER_REGISTRY_API) + cr_listGitlabRepositories(groupId: String!, query: String, pagination: PaginationIn): [GitlabProject!] @join__field(graph: CONTAINER_REGISTRY_API) + cr_listGitlabBranches(repoId: String!, query: String, pagination: PaginationIn): [GitBranch!] @join__field(graph: CONTAINER_REGISTRY_API) + cr_listBuildRuns(search: SearchBuildRuns, pq: CursorPaginationIn): BuildRunPaginatedRecords @join__field(graph: CONTAINER_REGISTRY_API) + cr_getBuildRun(buildID: ID!, buildRunName: String!): BuildRun @join__field(graph: CONTAINER_REGISTRY_API) + infra_checkNameAvailability(resType: ResType!, clusterName: String, name: String!): CheckNameAvailabilityOutput! @join__field(graph: INFRA_API) + infra_listClusters(search: SearchCluster, pagination: CursorPaginationIn): ClusterPaginatedRecords @join__field(graph: INFRA_API) + infra_getCluster(name: String!): Cluster @join__field(graph: INFRA_API) + infra_listNodePools(clusterName: String!, search: SearchNodepool, pagination: CursorPaginationIn): NodePoolPaginatedRecords @join__field(graph: INFRA_API) + infra_getNodePool(clusterName: String!, poolName: String!): NodePool @join__field(graph: INFRA_API) + infra_listProviderSecrets(search: SearchProviderSecret, pagination: CursorPaginationIn): CloudProviderSecretPaginatedRecords @join__field(graph: INFRA_API) + infra_getProviderSecret(name: String!): CloudProviderSecret @join__field(graph: INFRA_API) + infra_listDomainEntries(search: SearchDomainEntry, pagination: CursorPaginationIn): DomainEntryPaginatedRecords @join__field(graph: INFRA_API) + infra_getDomainEntry(domainName: String!): DomainEntry @join__field(graph: INFRA_API) + infra_checkAwsAccess(cloudproviderName: String!): CheckAwsAccessOutput! @join__field(graph: INFRA_API) + infra_listClusterManagedServices(clusterName: String!, search: SearchClusterManagedService, pagination: CursorPaginationIn): ClusterManagedServicePaginatedRecords @join__field(graph: INFRA_API) + infra_getClusterManagedService(clusterName: String!, name: String!): ClusterManagedService @join__field(graph: INFRA_API) + infra_listHelmReleases(clusterName: String!, search: SearchHelmRelease, pagination: CursorPaginationIn): HelmReleasePaginatedRecords @join__field(graph: INFRA_API) + infra_getHelmRelease(clusterName: String!, name: String!): HelmRelease @join__field(graph: INFRA_API) + infra_listManagedServiceTemplates: [MsvcTemplate!] @join__field(graph: INFRA_API) + infra_getManagedServiceTemplate(category: String!, name: String!): Github__com___kloudlite___api___apps___infra___internal___entities__MsvcTemplateEntry @join__field(graph: INFRA_API) + infra_listPVCs(clusterName: String!, search: SearchPersistentVolumeClaims, pq: CursorPaginationIn): PersistentVolumeClaimPaginatedRecords @join__field(graph: INFRA_API) + infra_getPVC(clusterName: String!, name: String!): PersistentVolumeClaim @join__field(graph: INFRA_API) + infra_listNamespaces(clusterName: String!, search: SearchNamespaces, pq: CursorPaginationIn): NamespacePaginatedRecords @join__field(graph: INFRA_API) + infra_getNamespace(clusterName: String!, name: String!): Namespace @join__field(graph: INFRA_API) + infra_listPVs(clusterName: String!, search: SearchPersistentVolumes, pq: CursorPaginationIn): PersistentVolumePaginatedRecords @join__field(graph: INFRA_API) + infra_getPV(clusterName: String!, name: String!): PersistentVolume @join__field(graph: INFRA_API) + infra_listVolumeAttachments(clusterName: String!, search: SearchVolumeAttachments, pq: CursorPaginationIn): VolumeAttachmentPaginatedRecords @join__field(graph: INFRA_API) + infra_getVolumeAttachment(clusterName: String!, name: String!): VolumeAttachment @join__field(graph: INFRA_API) +} + +type RemoteLogin + @join__type(graph: AUTH_API) +{ + status: String! + authHeader: String +} + +type Repository + @join__type(graph: CONTAINER_REGISTRY_API) +{ + accountName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + id: ID! + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + name: String! + recordVersion: Int! + updateTime: Date! +} + +type RepositoryEdge + @join__type(graph: CONTAINER_REGISTRY_API) +{ + cursor: String! + node: Repository! +} + +input RepositoryIn + @join__type(graph: CONTAINER_REGISTRY_API) +{ + name: String! +} + +type RepositoryPaginatedRecords + @join__type(graph: CONTAINER_REGISTRY_API) +{ + edges: [RepositoryEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum ResType + @join__type(graph: INFRA_API) +{ + cluster @join__enumValue(graph: INFRA_API) + providersecret @join__enumValue(graph: INFRA_API) + nodepool @join__enumValue(graph: INFRA_API) + helm_release @join__enumValue(graph: INFRA_API) +} + +type Router + @join__type(graph: CONSOLE_API) +{ + accountName: String! + apiVersion: String + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + enabled: Boolean + environmentName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + projectName: String! + recordVersion: Int! + spec: Github__com___kloudlite___operator___apis___crds___v1__RouterSpec! + status: Github__com___kloudlite___operator___pkg___operator__Status + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type RouterEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: Router! +} + +input RouterIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + displayName: String! + enabled: Boolean + kind: String + metadata: MetadataIn + spec: Github__com___kloudlite___operator___apis___crds___v1__RouterSpecIn! +} + +type RouterPaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [RouterEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +input SearchApps + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +input SearchBuildRuns + @join__type(graph: CONTAINER_REGISTRY_API) +{ + buildId: ID + repoName: MatchFilterIn +} + +input SearchBuilds + @join__type(graph: CONTAINER_REGISTRY_API) +{ + text: MatchFilterIn +} + +input SearchCluster + @join__type(graph: INFRA_API) +{ + cloudProviderName: MatchFilterIn + isReady: MatchFilterIn + region: MatchFilterIn + text: MatchFilterIn +} + +input SearchClusterManagedService + @join__type(graph: INFRA_API) +{ + isReady: MatchFilterIn + text: MatchFilterIn +} + +input SearchConfigs + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +input SearchCreds + @join__type(graph: CONTAINER_REGISTRY_API) +{ + text: MatchFilterIn +} + +input SearchDomainEntry + @join__type(graph: INFRA_API) +{ + clusterName: MatchFilterIn + text: MatchFilterIn +} + +input SearchEnvironments + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + projectName: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +input SearchHelmRelease + @join__type(graph: INFRA_API) +{ + text: MatchFilterIn + isReady: MatchFilterIn +} + +input SearchImagePullSecrets + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +input SearchManagedResources + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + managedServiceName: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +input SearchNamespaces + @join__type(graph: INFRA_API) +{ + text: MatchFilterIn +} + +input SearchNodepool + @join__type(graph: INFRA_API) +{ + text: MatchFilterIn +} + +input SearchPersistentVolumeClaims + @join__type(graph: INFRA_API) +{ + text: MatchFilterIn +} + +input SearchPersistentVolumes + @join__type(graph: INFRA_API) +{ + text: MatchFilterIn +} + +input SearchProjectManagedService + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + managedServiceName: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +input SearchProjects + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +input SearchProviderSecret + @join__type(graph: INFRA_API) +{ + cloudProviderName: MatchFilterIn + text: MatchFilterIn +} + +input SearchRepos + @join__type(graph: CONTAINER_REGISTRY_API) +{ + text: MatchFilterIn +} + +input SearchRouters + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +input SearchSecrets + @join__type(graph: CONSOLE_API) +{ + text: MatchFilterIn + isReady: MatchFilterIn + markedForDeletion: MatchFilterIn +} + +input SearchVolumeAttachments + @join__type(graph: INFRA_API) +{ + text: MatchFilterIn +} + +type Secret + @join__type(graph: CONSOLE_API) +{ + accountName: String! + apiVersion: String + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + data: Map + displayName: String! + environmentName: String! + id: ID! + immutable: Boolean + isReadyOnly: Boolean! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + projectName: String! + recordVersion: Int! + stringData: Map + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + type: K8s__io___api___core___v1__SecretType + updateTime: Date! +} + +type SecretEdge + @join__type(graph: CONSOLE_API) +{ + cursor: String! + node: Secret! +} + +input SecretIn + @join__type(graph: CONSOLE_API) +{ + apiVersion: String + data: Map + displayName: String! + immutable: Boolean + kind: String + metadata: MetadataIn + stringData: Map + type: K8s__io___api___core___v1__SecretType +} + +type SecretKeyRef + @join__type(graph: CONSOLE_API) +{ + key: String! + secretName: String! +} + +input SecretKeyRefIn + @join__type(graph: CONSOLE_API) +{ + key: String! + secretName: String! +} + +type SecretKeyValueRef + @join__type(graph: CONSOLE_API) +{ + key: String! + secretName: String! + value: String! +} + +input SecretKeyValueRefIn + @join__type(graph: CONSOLE_API) +{ + key: String! + secretName: String! + value: String! +} + +type SecretPaginatedRecords + @join__type(graph: CONSOLE_API) +{ + edges: [SecretEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type Session + @join__type(graph: AUTH_API) +{ + id: ID! + userId: ID! + userEmail: String! + loginMethod: String! + userVerified: Boolean! +} + +scalar URL + @join__type(graph: AUTH_API) + +type User + @join__type(graph: ACCOUNT_API, key: "id", extension: true) + @join__type(graph: AUTH_API, key: "id") +{ + id: ID! + accounts: [AccountMembership!] @join__field(graph: ACCOUNT_API) + accountInvitations(onlyPending: Boolean!): [Invitation!] @join__field(graph: ACCOUNT_API) + name: String! @join__field(graph: AUTH_API) + email: String! @join__field(graph: AUTH_API) + avatar: String @join__field(graph: AUTH_API) + invite: String! @join__field(graph: AUTH_API) + verified: Boolean! @join__field(graph: AUTH_API) + metadata: Json @join__field(graph: AUTH_API) + joined: Date! @join__field(graph: AUTH_API) + providerGitlab: ProviderDetail @join__field(graph: AUTH_API) + providerGithub: ProviderDetail @join__field(graph: AUTH_API) + providerGoogle: ProviderDetail @join__field(graph: AUTH_API) +} + +type VolumeAttachment + @join__type(graph: INFRA_API) +{ + accountName: String! + apiVersion: String + clusterName: String! + createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + creationTime: Date! + displayName: String! + id: ID! + kind: String + lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! + markedForDeletion: Boolean + metadata: Metadata + recordVersion: Int! + spec: K8s__io___api___storage___v1__VolumeAttachmentSpec! + status: K8s__io___api___storage___v1__VolumeAttachmentStatus + syncStatus: Github__com___kloudlite___api___pkg___types__SyncStatus! + updateTime: Date! +} + +type VolumeAttachmentEdge + @join__type(graph: INFRA_API) +{ + cursor: String! + node: VolumeAttachment! +} + +input VolumeAttachmentIn + @join__type(graph: INFRA_API) +{ + apiVersion: String + kind: String + metadata: MetadataIn + spec: K8s__io___api___storage___v1__VolumeAttachmentSpecIn! + status: K8s__io___api___storage___v1__VolumeAttachmentStatusIn +} + +type VolumeAttachmentPaginatedRecords + @join__type(graph: INFRA_API) +{ + edges: [VolumeAttachmentEdge!]! + pageInfo: PageInfo! + totalCount: Int! +} \ No newline at end of file diff --git a/go.mod b/go.mod index 781ac363d..12ca00a1f 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/go-redis/redis/v8 v8.11.5 github.com/gobuffalo/flect v1.0.2 github.com/gofiber/adaptor/v2 v2.1.23 - github.com/gofiber/fiber/v2 v2.51.0 + github.com/gofiber/fiber/v2 v2.52.1 github.com/gofiber/websocket/v2 v2.0.21 github.com/google/go-github/v43 v43.0.0 github.com/google/go-github/v45 v45.2.0 @@ -66,7 +66,7 @@ require ( github.com/nats-io/nkeys v0.4.6 // indirect github.com/nats-io/nuid v1.0.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/rivo/uniseg v0.4.2 // indirect + github.com/rivo/uniseg v0.4.7 // indirect github.com/sosodev/duration v1.2.0 // indirect github.com/stretchr/objx v0.5.2 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20231009173412-8bfb1ae86b6c // indirect @@ -79,7 +79,7 @@ require ( github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.2.0 // indirect github.com/agnivade/levenshtein v1.1.1 // indirect - github.com/andybalholm/brotli v1.0.5 // indirect + github.com/andybalholm/brotli v1.1.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect @@ -111,7 +111,7 @@ require ( github.com/imdario/mergo v0.3.13 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.17.0 // indirect + github.com/klauspost/compress v1.17.7 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect @@ -134,7 +134,7 @@ require ( github.com/spf13/pflag v1.0.5 github.com/urfave/cli/v2 v2.27.1 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect - github.com/valyala/fasthttp v1.50.0 // indirect + github.com/valyala/fasthttp v1.52.0 // indirect github.com/valyala/tcplisten v1.0.0 // indirect github.com/xdg-go/pbkdf2 v1.0.0 // indirect github.com/xdg-go/scram v1.1.2 // indirect diff --git a/go.sum b/go.sum index 1aec17ebb..8ca962893 100644 --- a/go.sum +++ b/go.sum @@ -17,6 +17,8 @@ github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= +github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q= github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= github.com/aws/aws-sdk-go v1.45.11 h1:8qiSrA12+NRr+2MVpMApi3JxtiFFjDVU1NeWe+80bYg= @@ -82,6 +84,8 @@ github.com/gofiber/adaptor/v2 v2.1.23/go.mod h1:hnYEQBPF2x1JaBHygutJJF5d0+J2eYnK github.com/gofiber/fiber/v2 v2.32.0/go.mod h1:CMy5ZLiXkn6qwthrl03YMyW1NLfj0rhxz2LKl4t7ZTY= github.com/gofiber/fiber/v2 v2.51.0 h1:JNACcZy5e2tGApWB2QrRpenTWn0fq0hkFm6k0C86gKQ= github.com/gofiber/fiber/v2 v2.51.0/go.mod h1:xaQRZQJGqnKOQnbQw+ltvku3/h8QxvNi8o6JiJ7Ll0U= +github.com/gofiber/fiber/v2 v2.52.1 h1:1RoU2NS+b98o1L77sdl5mboGPiW+0Ypsi5oLmcYlgHI= +github.com/gofiber/fiber/v2 v2.52.1/go.mod h1:KEOE+cXMhXG0zHc9d8+E38hoX+ZN7bhOtgeF2oT6jrQ= github.com/gofiber/utils v0.1.2 h1:1SH2YEz4RlNS0tJlMJ0bGwO0JkqPqvq6TbHK9tXZKtk= github.com/gofiber/utils v0.1.2/go.mod h1:pacRFtghAE3UoknMOUiXh2Io/nLWSUHtQCi/3QASsOc= github.com/gofiber/websocket/v2 v2.0.21 h1:mQEiLXBqFsNNlJc5dzFgSGeoqoEXYvIcdBQzAZBdbL0= @@ -159,6 +163,8 @@ github.com/klauspost/compress v1.14.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47e github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.17.0 h1:Rnbp4K9EjcDuVuHtd0dgA4qNuv9yKDYKK1ulpJwgrqM= github.com/klauspost/compress v1.17.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/kloudlite/container-registry-authorizer v0.0.0-20231021122509-161dc30fde55 h1:YnZh3TL6AG4EfoInx1/L5zcPHd2QxgLKseJB1KtHjdQ= github.com/kloudlite/container-registry-authorizer v0.0.0-20231021122509-161dc30fde55/go.mod h1:GZj3wZmIw/qCciclRhgQTgmGiqe8wxoVzMXQjbOfnbc= github.com/kloudlite/operator v1.0.4-0.20240320190031-57397d040302 h1:5oHaEVzE7gTnrVjbmpIWq9fIail31FRzqsPR4aqBtv0= @@ -237,6 +243,8 @@ github.com/prometheus/procfs v0.11.1/go.mod h1:eesXgaPo1q7lBpVMoMy0ZOFTth9hBn4W/ github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.2 h1:YwD0ulJSJytLpiaWua0sBDusfsCZohxjxzVTYjwxfV8= github.com/rivo/uniseg v0.4.2/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= +github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= +github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= @@ -291,6 +299,8 @@ github.com/valyala/fasthttp v1.33.0/go.mod h1:KJRK/MXx0J+yd0c5hlR+s1tIHD72sniU8Z github.com/valyala/fasthttp v1.35.0/go.mod h1:t/G+3rLek+CyY9bnIE+YlMRddxVAAGjhxndDB4i4C0I= github.com/valyala/fasthttp v1.50.0 h1:H7fweIlBm0rXLs2q0XbalvJ6r0CUPFWK3/bB4N13e9M= github.com/valyala/fasthttp v1.50.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= +github.com/valyala/fasthttp v1.52.0 h1:wqBQpxH71XW0e2g+Og4dzQM8pk34aFYlA1Ga8db7gU0= +github.com/valyala/fasthttp v1.52.0/go.mod h1:hf5C4QnVMkNXMspnsUlfM3WitlgYflyhHYoKol/szxQ= github.com/valyala/tcplisten v1.0.0 h1:rBHj/Xf+E1tRGZyWIWwJDiRY0zc1Js+CV5DqwacVSA8= github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= github.com/vektah/gqlparser/v2 v2.5.11 h1:JJxLtXIoN7+3x6MBdtIP59TP1RANnY7pXOaDnADQSf8=